{"format":"jobhunt.support.operation/v1","revision":"f77de0f4803debf8c5aaac1702865d976a380e994ea7f572d4e571c044d5495f","contract_sha256":"acfda93724db1a3f53160a30bc5891f447ad14601f26b02ff4cacd7c17d0812e","documentation_only":true,"operation":{"name":"save_workspace_company_v2","description":"Save an explicitly reviewed owned company action. Existing records require the exact fingerprint. Deletion unlinks relationships but preserves applications. Interaction notes record a conversation; they never send a message. Reuse the same request ID after an uncertain response.","http":"POST /api/v1/journey/save_workspace_company_v2","readOnly":false,"scopes":["write:companies"],"availability":"connected-journey","destructive":true,"implementation_sha256":"1a2f21bbf27bd960fe861fae0968251b03ec8c03a3c044da6ad58d78f88fbaaa","input_schema_ref":"/support/contracts.json#/tools/save_workspace_company_v2/inputSchema","output_schema_ref":"/support/contracts.json#/tools/save_workspace_company_v2/outputSchema","required_fields":["request_id","kind","action"]},"contract":{"annotations":{"destructiveHint":true,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":false,"title":"Save workspace company"},"description":"Save an explicitly reviewed owned company action. Existing records require the exact fingerprint. Deletion unlinks relationships but preserves applications. Interaction notes record a conversation; they never send a message. Reuse the same request ID after an uncertain response.","inputSchema":{"$defs":{"CrmFields":{"additionalProperties":false,"properties":{"company":{"anyOf":[{"maxLength":255,"type":"string"},{"type":"null"}],"default":null,"title":"Company"},"company_id":{"anyOf":[{"maxLength":256,"minLength":1,"pattern":"^[A-Za-z0-9][A-Za-z0-9._-]*$","type":"string"},{"type":"null"}],"default":null,"title":"Company Id"},"description":{"anyOf":[{"maxLength":12000,"type":"string"},{"type":"null"}],"default":null,"title":"Description"},"email":{"anyOf":[{"maxLength":255,"type":"string"},{"type":"null"}],"default":null,"title":"Email"},"industry":{"anyOf":[{"maxLength":255,"type":"string"},{"type":"null"}],"default":null,"title":"Industry"},"is_target":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":null,"title":"Is Target"},"linkedin_url":{"anyOf":[{"maxLength":500,"type":"string"},{"type":"null"}],"default":null,"title":"Linkedin Url"},"location":{"anyOf":[{"maxLength":255,"type":"string"},{"type":"null"}],"default":null,"title":"Location"},"name":{"anyOf":[{"maxLength":255,"type":"string"},{"type":"null"}],"default":null,"title":"Name"},"phone":{"anyOf":[{"maxLength":50,"type":"string"},{"type":"null"}],"default":null,"title":"Phone"},"size":{"anyOf":[{"maxLength":50,"type":"string"},{"type":"null"}],"default":null,"title":"Size"},"status":{"anyOf":[{"enum":["target","applied","engaged","closed"],"type":"string"},{"type":"null"}],"default":null,"title":"Status"},"title":{"anyOf":[{"maxLength":255,"type":"string"},{"type":"null"}],"default":null,"title":"Title"},"website":{"anyOf":[{"maxLength":500,"type":"string"},{"type":"null"}],"default":null,"title":"Website"}},"title":"CrmFields","type":"object"}},"additionalProperties":false,"properties":{"action":{"enum":["create","update","delete","note_save","note_delete","interaction_save","interaction_delete","task_create","link_application","unlink_application","update_relationship"],"title":"Action","type":"string"},"application_id":{"anyOf":[{"maxLength":256,"minLength":1,"pattern":"^[A-Za-z0-9][A-Za-z0-9._-]*$","type":"string"},{"type":"null"}],"default":null,"title":"Application Id"},"body":{"default":"","maxLength":12000,"title":"Body","type":"string"},"entity_id":{"anyOf":[{"maxLength":256,"minLength":1,"pattern":"^[A-Za-z0-9][A-Za-z0-9._-]*$","type":"string"},{"type":"null"}],"default":null,"title":"Entity Id"},"expected_account_id":{"anyOf":[{"maxLength":256,"minLength":1,"pattern":"^[A-Za-z0-9][A-Za-z0-9._-]*$","type":"string"},{"type":"null"}],"default":null,"description":"Use the verified get_connected_account ID for this intent. A changed connection is rejected before any action; never replace it automatically on retry.","title":"Expected Account Id"},"expected_application_revision":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"Expected Application Revision"},"expected_fingerprint":{"anyOf":[{"pattern":"^[a-f0-9]{64}$","type":"string"},{"type":"null"}],"default":null,"title":"Expected Fingerprint"},"fields":{"anyOf":[{"$ref":"#/$defs/CrmFields"},{"type":"null"}],"default":null},"interaction_type":{"default":"call","enum":["call","email_received","email_sent","linkedin_message","meeting","text","video_call"],"title":"Interaction Type","type":"string"},"is_primary":{"default":false,"title":"Is Primary","type":"boolean"},"item_id":{"anyOf":[{"maxLength":256,"minLength":1,"pattern":"^[A-Za-z0-9][A-Za-z0-9._-]*$","type":"string"},{"type":"null"}],"default":null,"title":"Item Id"},"kind":{"enum":["contact","company"],"title":"Kind","type":"string"},"occurred_at":{"anyOf":[{"maxLength":40,"type":"string"},{"type":"null"}],"default":null,"title":"Occurred At"},"request_id":{"maxLength":36,"minLength":36,"title":"Request Id","type":"string"},"role":{"default":"other","enum":["recruiter","hiring_manager","interviewer","referral","other"],"title":"Role","type":"string"},"title":{"default":"","maxLength":255,"title":"Title","type":"string"}},"required":["request_id","kind","action"],"title":"CrmMutation","type":"object"},"name":"save_workspace_company_v2","outputSchema":{"$defs":{"CrmData":{"additionalProperties":false,"properties":{"changed_item":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"default":null,"title":"Changed Item"},"deleted":{"default":false,"title":"Deleted","type":"boolean"},"entity_id":{"title":"Entity Id","type":"string"},"fingerprint":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fingerprint"},"item_id":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Item Id"},"related_has_more":{"default":false,"title":"Related Has More","type":"boolean"},"related_page":{"default":1,"title":"Related Page","type":"integer"},"workspace":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Workspace"}},"required":["workspace","fingerprint","entity_id"],"title":"CrmData","type":"object"},"Failure":{"additionalProperties":false,"properties":{"code":{"enum":["authentication_required","account_changed","insufficient_scope","access_unavailable","not_found","invalid_input","revision_conflict","request_id_conflict","source_unavailable","processing_failed","rate_limited","retry_expired"],"title":"Code","type":"string"},"message":{"maxLength":1000,"minLength":1,"title":"Message","type":"string"},"retry_after_seconds":{"anyOf":[{"maximum":900,"minimum":0,"type":"integer"},{"type":"null"}],"default":null,"title":"Retry After Seconds"}},"required":["code","message"],"title":"Failure","type":"object"},"NextAction":{"additionalProperties":false,"properties":{"kind":{"enum":["read","edit","select","retry","reconnect","consent","open_website","open_employer","support","none"],"title":"Kind","type":"string"},"label":{"maxLength":255,"title":"Label","type":"string"},"record_id":{"anyOf":[{"maxLength":256,"minLength":1,"pattern":"^[A-Za-z0-9][A-Za-z0-9._-]*$","type":"string"},{"type":"null"}],"default":null,"title":"Record Id"}},"required":["kind","label"],"title":"NextAction","type":"object"},"Operation":{"additionalProperties":false,"properties":{"error":{"anyOf":[{"$ref":"#/$defs/Failure"},{"type":"null"}],"default":null},"id":{"maxLength":256,"minLength":1,"pattern":"^[A-Za-z0-9][A-Za-z0-9._-]*$","title":"Id","type":"string"},"kind":{"maxLength":100,"minLength":1,"title":"Kind","type":"string"},"resource":{"anyOf":[{"$ref":"#/$defs/Summary"},{"type":"null"}],"default":null},"retry_after_seconds":{"maximum":900,"minimum":0,"title":"Retry After Seconds","type":"integer"},"retry_expires_at":{"maxLength":40,"minLength":20,"title":"Retry Expires At","type":"string"},"status":{"enum":["pending","running","succeeded","failed"],"title":"Status","type":"string"}},"required":["id","status","kind","retry_after_seconds","retry_expires_at"],"title":"Operation","type":"object"},"Summary":{"additionalProperties":false,"properties":{"id":{"maxLength":256,"minLength":1,"pattern":"^[A-Za-z0-9][A-Za-z0-9._-]*$","title":"Id","type":"string"},"kind":{"enum":["application","search","document","task","interview","contact","company","note","profile","package","notification","highlight"],"title":"Kind","type":"string"},"label":{"maxLength":255,"minLength":1,"title":"Label","type":"string"},"revision":{"anyOf":[{"maximum":2147483647,"minimum":1,"type":"integer"},{"type":"null"}],"title":"Revision"},"website_url":{"anyOf":[{"maxLength":2048,"type":"string"},{"type":"null"}],"default":null,"title":"Website Url"}},"required":["id","kind","label","revision"],"title":"Summary","type":"object"}},"additionalProperties":false,"properties":{"data":{"anyOf":[{"$ref":"#/$defs/CrmData"},{"type":"null"}]},"error":{"anyOf":[{"$ref":"#/$defs/Failure"},{"type":"null"}],"default":null},"next_action":{"$ref":"#/$defs/NextAction"},"operation":{"anyOf":[{"$ref":"#/$defs/Operation"},{"type":"null"}],"default":null},"outcome":{"enum":["ready","pending","needs_input","conflict","failed"],"title":"Outcome","type":"string"},"revision":{"anyOf":[{"maximum":2147483647,"minimum":1,"type":"integer"},{"type":"null"}],"default":null,"title":"Revision"},"website_url":{"anyOf":[{"maxLength":2048,"type":"string"},{"type":"null"}],"default":null,"title":"Website Url"}},"required":["outcome","data","next_action"],"title":"Result[CrmData]","type":"object"},"title":"Save workspace company"}}