{"openapi":"3.1.0","info":{"title":"LIFTY Control Plane API","version":"1.0.0","description":"Authenticated REST boundary for LIFTY workspace provisioning."},"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"schemas":{"ConferenceEventValue":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"oneOf":[{"$ref":"#/components/schemas/ConferenceEventValue"},{"type":"null"}]}},{"type":"object","additionalProperties":{"oneOf":[{"$ref":"#/components/schemas/ConferenceEventValue"},{"type":"null"}]}}]},"ReportCutsEvidence":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"oneOf":[{"$ref":"#/components/schemas/ReportCutsEvidence"},{"type":"null"}]}},{"type":"object","additionalProperties":{"oneOf":[{"$ref":"#/components/schemas/ReportCutsEvidence"},{"type":"null"}]}}]}},"parameters":{}},"paths":{"/v1/workspace/integrations":{"get":{"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"integrations":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":120},"family":{"type":"string","enum":["crm","notification","context_source","publisher"]},"capabilities":{"type":"array","items":{"type":"string"}},"connection_flow":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,63}$"},"connected":{"type":"boolean"}},"required":["id","label","family","capabilities","connection_flow","connected"]}}},"required":["integrations"]}}}},"409":{"description":"Unsupported client contract; update the installed CLI and skill."}},"parameters":[{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}]}},"/v1/workspace/integrations/{id}/connect":{"post":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,63}$"},"required":true,"name":"id","in":"path"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"responses":{"200":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","format":"uri"}},"required":["url"]}}}},"409":{"description":"Unsupported client contract; update the installed CLI and skill."}}}},"/v1/workspace/integrations/{id}/disconnect":{"post":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,63}$"},"required":true,"name":"id","in":"path"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"responses":{"200":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"connected":{"type":"boolean","enum":[false]}},"required":["connected"]}}}},"409":{"description":"Unsupported client contract; update the installed CLI and skill."}}}},"/v1/workspace/primary-mailbox":{"get":{"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"selected":{"type":["object","null"],"properties":{"connection_ref":{"type":"string","format":"uuid"},"mailbox_email":{"type":"string","minLength":3,"maxLength":320},"readable":{"type":"boolean"}},"required":["connection_ref","mailbox_email","readable"]},"options":{"type":"array","items":{"type":"object","properties":{"connection_ref":{"type":"string","format":"uuid"},"mailbox_email":{"type":"string","minLength":3,"maxLength":320}},"required":["connection_ref","mailbox_email"]},"maxItems":200}},"required":["selected","options"]}}}},"409":{"description":"Unsupported client contract; update the installed CLI and skill."}},"parameters":[{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}]},"put":{"security":[{"bearerAuth":[]}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"connection_ref":{"type":"string","format":"uuid"}},"required":["connection_ref"],"additionalProperties":false}}}},"responses":{"200":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"selected":{"type":["object","null"],"properties":{"connection_ref":{"type":"string","format":"uuid"},"mailbox_email":{"type":"string","minLength":3,"maxLength":320},"readable":{"type":"boolean"}},"required":["connection_ref","mailbox_email","readable"]},"options":{"type":"array","items":{"type":"object","properties":{"connection_ref":{"type":"string","format":"uuid"},"mailbox_email":{"type":"string","minLength":3,"maxLength":320}},"required":["connection_ref","mailbox_email"]},"maxItems":200}},"required":["selected","options"]}}}},"409":{"description":"Unsupported client contract; update the installed CLI and skill."}},"parameters":[{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}]}},"/v1/workspaces/{workspace_ref}/research/recovery/{first_run_ref}":{"get":{"operationId":"getAcquisitionRecovery","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"workspace_ref","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"first_run_ref","in":"path"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"responses":{"200":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"first_run_ref":{"type":"string","format":"uuid"},"current_acquisition_ref":{"type":"string","format":"uuid"},"all_acquisition_refs":{"type":"array","items":{"type":"string","format":"uuid"},"minItems":1},"attempt":{"type":"integer","minimum":0},"can_restart":{"type":"boolean"},"blocker":{"type":["string","null"],"enum":["first_run_not_failed","terminal_proof_required","active_candidates","workspace_suspended","acquisition_stale","trigger_unavailable","trigger_not_terminal","trigger_graph_invalid","trigger_graph_changed","trigger_identity_mismatch",null]},"recovery_ref":{"type":["string","null"],"format":"uuid"},"recovery_state":{"type":["string","null"],"enum":["queued","checking","blocked","verified",null]}},"required":["workspace_ref","first_run_ref","current_acquisition_ref","all_acquisition_refs","attempt","can_restart","blocker","recovery_ref","recovery_state"]}}}},"400":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Unsupported client contract; update the installed CLI and skill."},"502":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}},"post":{"operationId":"requestOrRestartAcquisition","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"workspace_ref","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"first_run_ref","in":"path"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"operation":{"type":"string","enum":["status"]}},"required":["operation"],"additionalProperties":false},{"type":"object","properties":{"operation":{"type":"string","enum":["request"]},"expected_acquisition_ref":{"type":"string","format":"uuid"}},"required":["operation","expected_acquisition_ref"],"additionalProperties":false},{"type":"object","properties":{"operation":{"type":"string","enum":["restart"]},"expected_acquisition_ref":{"type":"string","format":"uuid"}},"required":["operation","expected_acquisition_ref"],"additionalProperties":false}]}}}},"responses":{"200":{"description":"JSON response","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"first_run_ref":{"type":"string","format":"uuid"},"current_acquisition_ref":{"type":"string","format":"uuid"},"all_acquisition_refs":{"type":"array","items":{"type":"string","format":"uuid"},"minItems":1},"attempt":{"type":"integer","minimum":0},"can_restart":{"type":"boolean"},"blocker":{"type":["string","null"],"enum":["first_run_not_failed","terminal_proof_required","active_candidates","workspace_suspended","acquisition_stale","trigger_unavailable","trigger_not_terminal","trigger_graph_invalid","trigger_graph_changed","trigger_identity_mismatch",null]},"recovery_ref":{"type":["string","null"],"format":"uuid"},"recovery_state":{"type":["string","null"],"enum":["queued","checking","blocked","verified",null]}},"required":["workspace_ref","first_run_ref","current_acquisition_ref","all_acquisition_refs","attempt","can_restart","blocker","recovery_ref","recovery_state"]},{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"first_run_ref":{"type":"string","format":"uuid"},"current_acquisition_ref":{"type":"string","format":"uuid"},"all_acquisition_refs":{"type":"array","items":{"type":"string","format":"uuid"},"minItems":1},"attempt":{"type":"integer","minimum":0},"previous_acquisition_ref":{"type":"string","format":"uuid"},"state":{"type":"string","enum":["queued"]}},"required":["workspace_ref","first_run_ref","current_acquisition_ref","all_acquisition_refs","attempt","previous_acquisition_ref","state"]}]}}}},"400":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/workspaces/{workspace_ref}/retire":{"post":{"operationId":"retireWorkspace","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"workspace_ref","in":"path"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"confirm_slug":{"type":"string","pattern":"^[a-z0-9_-]{1,100}$"},"confirm_name":{"type":"string","minLength":1,"maxLength":200}},"required":["confirm_slug","confirm_name"],"additionalProperties":false}}}},"responses":{"200":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"slug":{"type":"string","minLength":1},"name":{"type":"string","minLength":1},"state":{"type":"string","enum":["deleted"]},"budget_preserved":{"type":"boolean","enum":[true]}},"required":["workspace_ref","slug","name","state","budget_preserved"]}}}},"400":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/me/workspaces":{"get":{"operationId":"listMemberWorkspaces","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"slug":{"type":"string","minLength":1,"maxLength":100},"name":{"type":"string","minLength":1,"maxLength":500},"active":{"type":"boolean"}},"required":["workspace_ref","slug","name","active"]},"maxItems":200}},"required":["workspaces"]}}}},"401":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Unsupported client contract; update the installed CLI and skill."},"502":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}},"parameters":[{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}]}},"/v1/me/delete":{"post":{"operationId":"deleteOwnLogin","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"confirm_email":{"type":"string","minLength":3,"maxLength":254}},"required":["confirm_email"],"additionalProperties":false}}}},"responses":{"200":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"deleted":{"type":"boolean","enum":[true]},"user_ref":{"type":"string","format":"uuid"}},"required":["deleted","user_ref"]}}}},"400":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}},"parameters":[{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}]}},"/v1/email/campaign/placement/preview":{"get":{"operationId":"previewEmailPlacement","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[a-zA-Z0-9_-]+$"},"required":true,"name":"workspace","in":"query"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"campaign_ref","in":"query"},{"schema":{"type":"string","pattern":"^[a-f0-9]{64}$"},"required":true,"name":"digest","in":"query"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"responses":{"200":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"campaign_ref":{"type":"string","format":"uuid"},"digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"placement_ref":{"type":"string","format":"uuid"},"status":{"type":"string","enum":["queued","running","completed","failed","awaiting_confirmation","ambiguous","blocked","ready"]},"passed":{"type":["boolean","null"]},"seed_count":{"type":["integer","null"],"minimum":0},"test_ref":{"type":["string","null"],"pattern":"^[A-Za-z0-9_-]{1,255}$"},"reason":{"type":["string","null"],"enum":["seed_batch_exceeds_daily_limit","seed_confirmation_required","workspace_suspended","campaign_changed","sender_disconnected","confirmation_expired","provider_unavailable","ambiguous","invalid_response","provider_rejected","insufficient_credits",null]},"seed_emails":{"type":["array","null"],"items":{"type":"string","maxLength":254,"format":"email"},"minItems":1,"maxItems":1000}},"required":["workspace_ref","campaign_ref","digest","placement_ref","status","passed","seed_count","seed_emails"]}}}},"400":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/email/campaign/placement":{"get":{"operationId":"getEmailPlacement","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[a-zA-Z0-9_-]+$"},"required":true,"name":"workspace","in":"query"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"campaign_ref","in":"query"},{"schema":{"type":"string","pattern":"^[a-f0-9]{64}$"},"required":true,"name":"digest","in":"query"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"responses":{"200":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"campaign_ref":{"type":"string","format":"uuid"},"digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"placement_ref":{"type":"string","format":"uuid"},"status":{"type":"string","enum":["queued","running","completed","failed","awaiting_confirmation","ambiguous","blocked","ready"]},"passed":{"type":["boolean","null"]},"seed_count":{"type":["integer","null"],"minimum":0},"test_ref":{"type":["string","null"],"pattern":"^[A-Za-z0-9_-]{1,255}$"},"reason":{"type":["string","null"],"enum":["seed_batch_exceeds_daily_limit","seed_confirmation_required","workspace_suspended","campaign_changed","sender_disconnected","confirmation_expired","provider_unavailable","ambiguous","invalid_response","provider_rejected","insufficient_credits",null]}},"required":["workspace_ref","campaign_ref","digest","placement_ref","status","passed","seed_count"]}}}},"400":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/email/campaign":{"post":{"operationId":"emailCampaign","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"operation":{"type":"string","enum":["preview"]},"payload":{"type":"object","properties":{"workspace":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[a-zA-Z0-9_-]+$"},"campaign_ref":{"type":"string","format":"uuid"}},"required":["workspace","campaign_ref"],"additionalProperties":false}},"required":["operation","payload"],"additionalProperties":false},{"type":"object","properties":{"operation":{"type":"string","enum":["status"]},"payload":{"type":"object","properties":{"workspace":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[a-zA-Z0-9_-]+$"},"campaign_ref":{"type":"string","format":"uuid"}},"required":["workspace","campaign_ref"],"additionalProperties":false}},"required":["operation","payload"],"additionalProperties":false},{"type":"object","properties":{"operation":{"type":"string","enum":["pause"]},"payload":{"type":"object","properties":{"workspace":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[a-zA-Z0-9_-]+$"},"campaign_ref":{"type":"string","format":"uuid"}},"required":["workspace","campaign_ref"],"additionalProperties":false}},"required":["operation","payload"],"additionalProperties":false},{"type":"object","properties":{"operation":{"type":"string","enum":["cancel"]},"payload":{"type":"object","properties":{"workspace":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[a-zA-Z0-9_-]+$"},"campaign_ref":{"type":"string","format":"uuid"},"digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"confirm_cancel":{"type":"boolean","enum":[true]}},"required":["workspace","campaign_ref","digest","confirm_cancel"],"additionalProperties":false}},"required":["operation","payload"],"additionalProperties":false},{"type":"object","properties":{"operation":{"type":"string","enum":["placement"]},"payload":{"type":"object","properties":{"workspace":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[a-zA-Z0-9_-]+$"},"campaign_ref":{"type":"string","format":"uuid"},"digest":{"type":"string","pattern":"^[a-f0-9]{64}$"}},"required":["workspace","campaign_ref","digest"],"additionalProperties":false}},"required":["operation","payload"],"additionalProperties":false},{"type":"object","properties":{"operation":{"type":"string","enum":["placement-status"]},"payload":{"type":"object","properties":{"workspace":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[a-zA-Z0-9_-]+$"},"campaign_ref":{"type":"string","format":"uuid"},"digest":{"type":"string","pattern":"^[a-f0-9]{64}$"}},"required":["workspace","campaign_ref","digest"],"additionalProperties":false}},"required":["operation","payload"],"additionalProperties":false},{"type":"object","properties":{"operation":{"type":"string","enum":["placement-preview"]},"payload":{"type":"object","properties":{"workspace":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[a-zA-Z0-9_-]+$"},"campaign_ref":{"type":"string","format":"uuid"},"digest":{"type":"string","pattern":"^[a-f0-9]{64}$"}},"required":["workspace","campaign_ref","digest"],"additionalProperties":false}},"required":["operation","payload"],"additionalProperties":false},{"type":"object","properties":{"operation":{"type":"string","enum":["placement-confirm"]},"payload":{"type":"object","properties":{"workspace":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[a-zA-Z0-9_-]+$"},"campaign_ref":{"type":"string","format":"uuid"},"digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"placement_ref":{"type":"string","format":"uuid"},"test_ref":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,255}$"},"seed_count":{"type":"integer","minimum":1,"maximum":10},"confirm_seeds":{"type":"boolean","enum":[true]}},"required":["workspace","campaign_ref","digest","placement_ref","test_ref","seed_count","confirm_seeds"],"additionalProperties":false}},"required":["operation","payload"],"additionalProperties":false},{"type":"object","properties":{"operation":{"type":"string","enum":["suppress"]},"payload":{"type":"object","properties":{"workspace":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[a-zA-Z0-9_-]+$"},"lead_ref":{"type":"string","format":"uuid"}},"required":["workspace","lead_ref"],"additionalProperties":false}},"required":["operation","payload"],"additionalProperties":false}]}}}},"responses":{"200":{"description":"JSON response","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"recovery":{"type":"object","properties":{"state":{"type":"string","enum":["ready","checking","blocked","canceled"]},"reason":{"type":["string","null"],"enum":["send_unconfirmed","accepted_unlinked","connection_unavailable","reply_read_incomplete",null]},"checked_at":{"type":["string","null"],"format":"date-time"},"cancel_allowed":{"type":"boolean"}},"required":["state","reason","checked_at","cancel_allowed"]},"campaign_ref":{"type":"string","format":"uuid"},"workspace_ref":{"type":"string","format":"uuid"},"state":{"type":"string","enum":["draft","approved","active","paused","completed","replied","suppressed","canceled"]},"version_ref":{"type":"string","format":"uuid"},"digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"email_policy":{"oneOf":[{"type":"object","properties":{"version":{"type":"string","enum":["strict.v1"]},"revision":{"type":["string","null"],"format":"uuid"},"placement_required":{"type":"boolean","enum":[true]},"habitual_only":{"type":"boolean","enum":[false]}},"required":["version","revision","placement_required","habitual_only"]},{"type":"object","properties":{"version":{"type":"string","enum":["lifty.personal-beta.v1"]},"revision":{"type":"string","format":"uuid"},"placement_required":{"type":"boolean","enum":[false]},"habitual_only":{"type":"boolean","enum":[true]}},"required":["version","revision","placement_required","habitual_only"]}]},"placement_required":{"type":"boolean"},"placement_performed":{"type":"boolean"},"content":{"type":"object","properties":{"email_policy":{"oneOf":[{"type":"object","properties":{"version":{"type":"string","enum":["strict.v1"]},"revision":{"type":["string","null"],"format":"uuid"},"placement_required":{"type":"boolean","enum":[true]},"habitual_only":{"type":"boolean","enum":[false]}},"required":["version","revision","placement_required","habitual_only"]},{"type":"object","properties":{"version":{"type":"string","enum":["lifty.personal-beta.v1"]},"revision":{"type":"string","format":"uuid"},"placement_required":{"type":"boolean","enum":[false]},"habitual_only":{"type":"boolean","enum":[true]}},"required":["version","revision","placement_required","habitual_only"]}]},"name":{"type":"string","maxLength":200},"connection_ref":{"type":"string","format":"uuid"},"sender_email":{"type":"string","format":"email"},"lead_ref":{"type":"string","format":"uuid"},"recipient_email":{"type":"string","format":"email"},"start_at":{"type":"string"},"daily_limit":{"type":"number","enum":[10]},"stop_on_reply":{"type":"boolean","enum":[true]},"steps":{"type":"array","items":{"type":"object","properties":{"subject":{"type":"string","minLength":1,"maxLength":300,"pattern":"^[^\\r\\n]+$"},"text":{"type":"string","minLength":1,"maxLength":20000},"delay_minutes":{"type":"integer","minimum":0,"maximum":43200}},"required":["subject","text","delay_minutes"]},"minItems":1,"maxItems":5}},"required":["name","connection_ref","sender_email","lead_ref","recipient_email","start_at","daily_limit","stop_on_reply","steps"]},"approved":{"type":"boolean"},"mailbox_use":{"type":["string","null"],"enum":["personal","outreach",null]},"blockers":{"type":"array","items":{"type":"string","pattern":"^email_[a-z_]+$"}},"execution_ref":{"type":["string","null"],"format":"uuid"},"execution_state":{"type":["string","null"],"enum":["active","paused","completed","replied","suppressed","superseded","canceled",null]},"steps":{"type":"array","items":{"type":"object","properties":{"step_ref":{"type":"string","format":"uuid"},"position":{"type":"integer","minimum":1,"maximum":5},"state":{"type":"string","enum":["pending","accepted","canceled"]},"delivery_state":{"type":["string","null"],"enum":["reserved","dispatching","accepted","ambiguous","rejected","canceled",null]},"delivery_status":{"type":"string","enum":["unsent","sent","unconfirmed","accepted_unlinked","canceled"]},"due_at":{"type":["string","null"]},"intent_ref":{"type":["string","null"],"format":"uuid"},"accepted_at":{"type":["string","null"]}},"required":["step_ref","position","state","due_at","intent_ref","accepted_at"]}},"replies":{"type":"array","items":{"type":"object","properties":{"message_ref":{"type":"string","format":"uuid"},"received_at":{"type":"string"}},"required":["message_ref","received_at"]}}},"required":["campaign_ref","workspace_ref","state","version_ref","digest","content","approved","mailbox_use","blockers","execution_ref","execution_state","steps","replies"]},{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"campaign_ref":{"type":"string","format":"uuid"},"digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"placement_ref":{"type":"string","format":"uuid"},"status":{"type":"string","enum":["queued","running","completed","failed","awaiting_confirmation","ambiguous","blocked","ready"]},"passed":{"type":["boolean","null"]},"seed_count":{"type":["integer","null"],"minimum":0},"test_ref":{"type":["string","null"],"pattern":"^[A-Za-z0-9_-]{1,255}$"},"reason":{"type":["string","null"],"enum":["seed_batch_exceeds_daily_limit","seed_confirmation_required","workspace_suspended","campaign_changed","sender_disconnected","confirmation_expired","provider_unavailable","ambiguous","invalid_response","provider_rejected","insufficient_credits",null]},"seed_emails":{"type":["array","null"],"items":{"type":"string","maxLength":254,"format":"email"},"minItems":1,"maxItems":1000}},"required":["workspace_ref","campaign_ref","digest","placement_ref","status","passed","seed_count","seed_emails"]},{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"campaign_ref":{"type":"string","format":"uuid"},"digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"placement_ref":{"type":"string","format":"uuid"},"status":{"type":"string","enum":["queued","running","completed","failed","awaiting_confirmation","ambiguous","blocked","ready"]},"passed":{"type":["boolean","null"]},"seed_count":{"type":["integer","null"],"minimum":0},"test_ref":{"type":["string","null"],"pattern":"^[A-Za-z0-9_-]{1,255}$"},"reason":{"type":["string","null"],"enum":["seed_batch_exceeds_daily_limit","seed_confirmation_required","workspace_suspended","campaign_changed","sender_disconnected","confirmation_expired","provider_unavailable","ambiguous","invalid_response","provider_rejected","insufficient_credits",null]}},"required":["workspace_ref","campaign_ref","digest","placement_ref","status","passed","seed_count"]},{"type":"object","properties":{"suppressed":{"type":"boolean","enum":[true]},"lead_ref":{"type":"string","format":"uuid"}},"required":["suppressed","lead_ref"]}]}}}},"400":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"503":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}},"parameters":[{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}]}},"/v1/email/warmup":{"get":{"operationId":"getEmailWarmup","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[a-zA-Z0-9_-]+$"},"required":true,"name":"workspace","in":"query"},{"schema":{"type":"string","format":"uuid"},"required":false,"name":"connection_ref","in":"query"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"responses":{"200":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"connection_ref":{"type":["string","null"],"format":"uuid"},"email":{"type":["string","null"],"format":"email"},"mailbox_use":{"type":["string","null"],"enum":["personal","outreach",null]},"warmup_required":{"type":"boolean"},"required_active_days":{"type":"integer","minimum":1,"maximum":365},"state":{"type":"string","enum":["not_started","link_issued","pending_consent","warming","paused","problem","removed"]},"user_paused":{"type":"boolean"},"connection_paused":{"type":"boolean"},"state_label":{"type":"string","minLength":1,"maxLength":120},"requested_action":{"type":["string","null"],"enum":["pause","resume","remove",null]},"blocking_reason":{"type":["object","null"],"properties":{"code":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,63}$"},"message":{"type":"string","minLength":1,"maxLength":300}},"required":["code","message"],"additionalProperties":false},"active_days":{"type":"integer","minimum":0,"maximum":100000},"today":{"type":"object","properties":{"warmup_emails":{"type":["integer","null"],"minimum":0,"maximum":1000000},"ramp_target":{"type":["integer","null"],"minimum":0,"maximum":1000000}},"required":["warmup_emails","ramp_target"],"additionalProperties":false},"checks":{"type":"object","properties":{"spf":{"type":"string","enum":["valid","not_valid","unknown"]},"dmarc":{"type":"string","enum":["valid","not_valid","unknown"]},"mx":{"type":"string","enum":["valid","not_valid","unknown"]}},"required":["spf","dmarc","mx"],"additionalProperties":false},"last_checked_at":{"type":["string","null"],"format":"date-time"},"initial_period_complete":{"type":"boolean"},"spam":{"type":["object","null"],"properties":{"spam_count":{"type":"integer","minimum":0,"maximum":1000000},"sent":{"type":"integer","minimum":0,"maximum":1000000},"window_days":{"type":"integer","minimum":1,"maximum":14},"holds_sending":{"type":"boolean"},"warning":{"type":"boolean"},"observed_at":{"type":"string","format":"date-time"}},"required":["spam_count","sent","window_days","holds_sending","warning","observed_at"],"additionalProperties":false},"warmup_ready":{"type":"boolean"},"recommended_go_live":{"type":"object","properties":{"kind":{"type":"string","enum":["connect_email","now","unlocked","awaiting_check","projected","held"]},"date":{"type":["string","null"],"format":"date"},"remaining_active_days":{"type":["integer","null"],"minimum":0,"maximum":365},"message":{"type":"string","minLength":1,"maxLength":600}},"required":["kind","date","remaining_active_days","message"],"additionalProperties":false}},"required":["workspace_ref","connection_ref","email","mailbox_use","warmup_required","required_active_days","state","user_paused","connection_paused","state_label","requested_action","blocking_reason","active_days","today","checks","last_checked_at","initial_period_complete","spam","warmup_ready","recommended_go_live"],"additionalProperties":false}}}},"400":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Unsupported client contract; update the installed CLI and skill."},"502":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"503":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/email/deliverability":{"get":{"operationId":"getEmailDeliverability","security":[{"bearerAuth":[]}],"description":"Read-only inbox health shared by the Deliverability page and the Lifty CLI: inboxes, warmup, placement history, campaigns, approval, notes and explained states (email-deliverability.v1). Never creates tests or changes sending.","parameters":[{"schema":{"type":"string","description":"Workspace slug or ID if not already selected."},"required":false,"description":"Workspace slug or ID if not already selected.","name":"workspace","in":"query"},{"schema":{"type":"string","enum":["workspace","fleet"],"description":"fleet requires the server-side LIFT admin role."},"required":false,"description":"fleet requires the server-side LIFT admin role.","name":"scope","in":"query"},{"schema":{"type":"string","description":"Sender ref, or unassigned for inboxes without a sender."},"required":false,"description":"Sender ref, or unassigned for inboxes without a sender.","name":"sender","in":"query"},{"schema":{"type":"string","description":"mailbox_ref or address. detail=placement needs a mailbox_ref."},"required":false,"description":"mailbox_ref or address. detail=placement needs a mailbox_ref.","name":"mailbox","in":"query"},{"schema":{"type":"string","description":"Placement attempts per inbox, 1-8 (default 3)."},"required":false,"description":"Placement attempts per inbox, 1-8 (default 3).","name":"history_limit","in":"query"},{"schema":{"type":"string","description":"Inboxes per page, 1-100 (default 50)."},"required":false,"description":"Inboxes per page, 1-100 (default 50).","name":"limit","in":"query"},{"schema":{"type":"string","description":"next_cursor from the previous page."},"required":false,"description":"next_cursor from the previous page.","name":"cursor","in":"query"},{"schema":{"type":"string","enum":["placement"],"description":"Resolve stored provider reports for up to three recent tests of one inbox."},"required":false,"description":"Resolve stored provider reports for up to three recent tests of one inbox.","name":"detail","in":"query"},{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"responses":{"200":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"schema_version":{"type":"string","enum":["email-deliverability.v1"]},"generated_at":{"type":"string","format":"date-time"},"scope":{"type":"object","properties":{"kind":{"type":"string","enum":["workspace","fleet"]},"workspace_ref":{"type":["string","null"],"format":"uuid"},"workspace_slug":{"type":["string","null"],"maxLength":100}},"required":["kind","workspace_ref","workspace_slug"],"additionalProperties":false},"query":{"type":"object","properties":{"sender":{"type":["string","null"],"maxLength":40},"mailbox":{"type":["string","null"],"maxLength":254},"history_limit":{"type":"integer","minimum":1,"maximum":8},"limit":{"type":"integer","minimum":1,"maximum":100},"detail":{"type":["string","null"],"enum":["placement"]}},"required":["sender","mailbox","history_limit","limit","detail"],"additionalProperties":false},"filters":{"type":"object","properties":{"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"slug":{"type":"string","maxLength":100},"name":{"type":"string","maxLength":200},"is_active":{"type":"boolean"}},"required":["workspace_ref","slug","name","is_active"],"additionalProperties":false},"maxItems":1000},"senders":{"type":"array","items":{"type":"object","properties":{"sender_ref":{"type":"string","format":"uuid"},"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string","maxLength":200},"mailbox_count":{"type":"integer","minimum":0,"maximum":1000000}},"required":["sender_ref","workspace_ref","name","mailbox_count"],"additionalProperties":false},"maxItems":5000},"unassigned_count":{"type":"integer","minimum":0,"maximum":1000000}},"required":["workspaces","senders","unassigned_count"],"additionalProperties":false},"workspace_health":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"slug":{"type":"string","maxLength":100},"name":{"type":"string","maxLength":200},"scope_note":{"type":"string","minLength":1,"maxLength":200},"status":{"type":"object","properties":{"code":{"type":"string","enum":["healthy","watch","degraded","critical","insufficient_data","unknown","none"]},"label":{"type":"string","minLength":1,"maxLength":120},"tone":{"type":"string","enum":["ok","watch","warn","bad","muted"]},"description":{"type":"string","minLength":1,"maxLength":600},"reasons":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,63}$"},"message":{"type":"string","minLength":1,"maxLength":400}},"required":["code","message"],"additionalProperties":false},"maxItems":20}},"required":["code","label","tone","description","reasons"],"additionalProperties":false},"captured_at":{"type":["string","null"],"format":"date-time"},"source":{"type":["string","null"],"maxLength":80},"components":{"type":"object","properties":{"placement":{"type":["string","null"],"maxLength":40},"live":{"type":["string","null"],"maxLength":40},"lifecycle":{"type":["string","null"],"maxLength":40}},"required":["placement","live","lifecycle"],"additionalProperties":false},"placement":{"type":"object","properties":{"gmail_inbox_pct":{"type":["number","null"],"minimum":0,"maximum":100},"office365_inbox_pct":{"type":["number","null"],"minimum":0,"maximum":100},"overall_spam_pct":{"type":["number","null"],"minimum":0,"maximum":100},"tested_at":{"type":["string","null"],"format":"date-time"}},"required":["gmail_inbox_pct","office365_inbox_pct","overall_spam_pct","tested_at"],"additionalProperties":false},"sends":{"type":["integer","null"],"minimum":0,"maximum":1000000}},"required":["workspace_ref","slug","name","scope_note","status","captured_at","source","components","placement","sends"],"additionalProperties":false},"maxItems":1000},"outreach_capacity":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"assessed_at":{"type":"string","format":"date-time"},"window_days":{"type":"integer","minimum":0},"business_days":{"type":"integer","minimum":0},"email":{"type":"object","properties":{"operating":{"type":"boolean"},"short":{"type":"boolean"},"on_deck_total":{"type":"integer","minimum":0},"inboxes_to_connect":{"type":"integer","minimum":0},"inboxes_short":{"type":"integer","minimum":0},"plan":{"type":"object","properties":{"leads_per_week":{"type":"integer","minimum":0},"valid_email_share":{"type":"number","minimum":0,"maximum":1},"emails_per_lead":{"type":"number","minimum":0},"emails_per_week":{"type":"number","minimum":0},"people":{"type":"integer","minimum":0}},"required":["leads_per_week","valid_email_share","emails_per_lead","emails_per_week","people"]},"people":{"type":"array","items":{"type":"object","properties":{"sender_ref":{"type":"string","format":"uuid"},"sender_name":{"type":"string","minLength":1,"maxLength":200},"inboxes":{"type":"array","items":{"type":"object","properties":{"mailbox":{"type":"string","minLength":3,"maxLength":254},"status":{"type":"string","enum":["sendable","warming","not_counted"]},"cap":{"type":"integer","minimum":0},"planned":{"type":"integer","minimum":0},"ready_on":{"type":["string","null"],"format":"date"},"safety_check_stale":{"type":"boolean"}},"required":["mailbox","status","cap","planned","ready_on","safety_check_stale"]}},"sendable_inboxes":{"type":"integer","minimum":0},"warming_inboxes":{"type":"integer","minimum":0},"capacity_per_day":{"type":"number","minimum":0},"capacity_at_caps_per_day":{"type":"number","minimum":0},"capacity_at_full_pace_per_day":{"type":"number","minimum":0},"target_rate":{"type":"number","minimum":0},"committed_rate":{"type":"number","minimum":0},"rate":{"type":"number","minimum":0},"backlog":{"type":"object","properties":{"overdue_steps":{"type":"integer","minimum":0},"waiting_journeys":{"type":"integer","minimum":0},"steps":{"type":"integer","minimum":0}},"required":["overdue_steps","waiting_journeys","steps"]},"days_to_clear":{"type":["number","null"],"minimum":0},"clears":{"type":"boolean"},"inboxes_needed":{"type":"integer","minimum":0},"on_deck":{"type":"integer","minimum":0},"inboxes_to_connect":{"type":"integer","minimum":0},"inboxes_short":{"type":"integer","minimum":0},"share":{"type":"number","minimum":0,"maximum":1},"share_basis":{"type":"string","enum":["equal","tier_a","other","founder_weight","segment"]},"intake_per_day":{"type":"integer","minimum":0},"covering_for":{"type":"array","items":{"type":"string","format":"uuid"}}},"required":["sender_ref","sender_name","inboxes","sendable_inboxes","warming_inboxes","capacity_per_day","capacity_at_caps_per_day","capacity_at_full_pace_per_day","target_rate","committed_rate","rate","backlog","days_to_clear","clears","inboxes_needed","on_deck","inboxes_to_connect","inboxes_short","share","share_basis","intake_per_day","covering_for"]}},"domain_plan":{"type":"object","properties":{"domains_short":{"type":"integer","minimum":0},"domains_to_buy":{"type":"integer","minimum":0},"domains":{"type":"array","items":{"type":"object","properties":{"domain":{"type":"string","minLength":1,"maxLength":253},"health":{"type":"string","enum":["healthy","placement_failed","dns_open"]},"inboxes":{"type":"array","items":{"type":"object","properties":{"mailbox":{"type":"string","minLength":3,"maxLength":254},"sender_ref":{"type":["string","null"],"format":"uuid"}},"required":["mailbox","sender_ref"]}},"room":{"type":"integer","minimum":0,"maximum":3}},"required":["domain","health","inboxes","room"]}},"people":{"type":"array","items":{"type":"object","properties":{"sender_ref":{"type":"string","format":"uuid"},"domains":{"type":"array","items":{"type":"string","minLength":1,"maxLength":253}},"domains_needed":{"type":"integer","minimum":0},"domains_to_add":{"type":"integer","minimum":0},"existing_domains":{"type":"array","items":{"type":"string","minLength":1,"maxLength":253}}},"required":["sender_ref","domains","domains_needed","domains_to_add","existing_domains"]}}},"required":["domains_short","domains_to_buy","domains","people"]}},"required":["operating","short","on_deck_total","inboxes_to_connect","inboxes_short","plan","people"]},"linkedin":{"type":"object","properties":{"operating":{"type":"boolean"},"short":{"type":"boolean"},"sendable_accounts":{"type":"integer","minimum":0},"invitations_per_week":{"type":"integer","minimum":0},"planned_messages_per_day":{"type":"integer","minimum":0},"invitations_needed_per_week":{"type":"number","minimum":0},"messages_needed_per_day":{"type":"number","minimum":0},"senders_needed":{"type":"integer","minimum":0},"senders_to_add":{"type":"integer","minimum":0},"backlog":{"type":"object","properties":{"invitations":{"type":"integer","minimum":0}},"required":["invitations"]},"days_to_clear":{"type":["number","null"],"minimum":0},"clears":{"type":"boolean"},"limits":{"type":"object","properties":{"reply_share":{"type":"number","minimum":0,"maximum":1},"new_sender":{"type":"object","properties":{"invitations_per_7_days":{"type":"integer","minimum":0},"messages_per_day":{"type":"integer","minimum":0},"planned_messages_per_day":{"type":"integer","minimum":0}},"required":["invitations_per_7_days","messages_per_day","planned_messages_per_day"]}},"required":["reply_share","new_sender"]}},"required":["operating","short","sendable_accounts","invitations_per_week","planned_messages_per_day","invitations_needed_per_week","messages_needed_per_day","senders_needed","senders_to_add","backlog","days_to_clear","clears","limits"]},"status":{"type":"string","enum":["available"]},"planned":{"type":"object","properties":{"leads_per_week":{"type":"number","minimum":0},"linkedin":{"type":["object","null"],"properties":{"invitations_per_week":{"type":"number","minimum":0},"senders_needed":{"type":"integer","minimum":0}},"required":["invitations_per_week","senders_needed"]},"email":{"type":["object","null"],"properties":{"emails_per_week":{"type":"number","minimum":0},"inboxes_needed":{"type":"integer","minimum":0},"on_deck":{"type":"integer","minimum":0}},"required":["emails_per_week","inboxes_needed","on_deck"]}},"required":["leads_per_week","linkedin","email"]}},"required":["workspace_ref","assessed_at","window_days","business_days","email","linkedin","status"]},{"type":"object","properties":{"status":{"type":"string","enum":["unavailable"]},"workspace_ref":{"type":"string","format":"uuid"}},"required":["status","workspace_ref"]}]},"maxItems":1000},"mailboxes":{"type":"array","items":{"type":"object","properties":{"mailbox_ref":{"type":"string","format":"uuid"},"workspace":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"slug":{"type":["string","null"],"maxLength":100},"name":{"type":["string","null"],"maxLength":200}},"required":["workspace_ref","slug","name"],"additionalProperties":false},"email":{"type":"string","minLength":3,"maxLength":254,"pattern":"^[^\\s@]+@[^\\s@]+$"},"domain":{"type":"string","maxLength":253},"senders":{"type":"array","items":{"type":"object","properties":{"sender_ref":{"type":"string","format":"uuid"},"name":{"type":"string","maxLength":200}},"required":["sender_ref","name"],"additionalProperties":false},"maxItems":50},"identity":{"type":"object","properties":{"code":{"type":"string","enum":["resolved","ambiguous_owner","unassigned"]},"label":{"type":"string","minLength":1,"maxLength":120},"tone":{"type":"string","enum":["ok","watch","warn","bad","muted"]},"description":{"type":"string","minLength":1,"maxLength":600},"reasons":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,63}$"},"message":{"type":"string","minLength":1,"maxLength":400}},"required":["code","message"],"additionalProperties":false},"maxItems":20}},"required":["code","label","tone","description","reasons"],"additionalProperties":false},"account":{"type":["object","null"],"properties":{"connection_ref":{"type":"string","format":"uuid"},"status":{"type":"string","enum":["connected","needs_reconnect","disconnected"]},"observation":{"type":"string","enum":["verified","unverified"]},"checked_at":{"type":["string","null"],"format":"date-time"},"outreach":{"type":"object","properties":{"code":{"type":"string","enum":["paused","blocked","enabled","idle","unknown"]},"label":{"type":"string","minLength":1,"maxLength":120},"tone":{"type":"string","enum":["ok","watch","warn","bad","muted"]},"description":{"type":"string","minLength":1,"maxLength":600},"reasons":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,63}$"},"message":{"type":"string","minLength":1,"maxLength":400}},"required":["code","message"],"additionalProperties":false},"maxItems":20}},"required":["code","label","tone","description","reasons"],"additionalProperties":false},"participation":{"type":"object","properties":{"status":{"type":"string","enum":["sending","no_active_campaign","waiting_for_first_lead","paused","not_connected","email_not_ready"]},"cause":{"type":"string","enum":["active_journeys","no_active_campaign_on_channel","no_lead_yet","paused_by_member","paused_by_disconnect","campaign_paused","workspace_suspended","sender_off","sender_paused","paused_by_lift","disconnected","needs_reconnect","unverified","warming","placement_required","declaration_required","signature_missing","mailbox_not_ready","health_hold","retired"]},"category":{"type":["string","null"],"enum":["transient","fixable_by_client","long","intentional",null]},"since":{"type":["string","null"],"format":"date-time"},"since_estimated":{"type":"boolean"},"waiting_journeys":{"type":"integer","minimum":0},"stop":{"type":"object","properties":{"scope":{"type":"string","enum":["account","sender","channel","workspace","all_workspaces"]},"origin":{"type":"string","enum":["person","system"]},"reason":{"type":"string","enum":["deliverability_review","account_safety","setup","client_request","maintenance","other","cutover","not_executed_by_lifty","ambiguous_send","provider_risk","recipient_restricted","recorded_before_lif1710","unspecified"]},"review_by":{"type":"string","format":"date-time"}},"required":["scope","origin","reason","review_by"]},"health":{"type":"object","properties":{"reason":{"type":"string","enum":["complaint","bounce_rate","provider_health","placement_failed","safety_check_failed"]}},"required":["reason"]},"also":{"type":"array","items":{"type":"object","properties":{"status":{"type":"string","enum":["sending","no_active_campaign","waiting_for_first_lead","paused","not_connected","email_not_ready"]},"cause":{"type":"string","enum":["active_journeys","no_active_campaign_on_channel","no_lead_yet","paused_by_member","paused_by_disconnect","campaign_paused","workspace_suspended","sender_off","sender_paused","paused_by_lift","disconnected","needs_reconnect","unverified","warming","placement_required","declaration_required","signature_missing","mailbox_not_ready","health_hold","retired"]},"category":{"type":["string","null"],"enum":["transient","fixable_by_client","long","intentional",null]},"since":{"type":["string","null"],"format":"date-time"},"next_step":{"type":"object","properties":{"label":{"type":"string","minLength":1,"maxLength":200},"owner":{"type":"string","enum":["member","lifty","none"]},"action":{"type":"string","enum":["none","wait","lifty_review","contact_lift","reconnect","resume_account","resume_sender","turn_on_sender","resume_campaigns","resume_campaign","set_mailbox_use","add_signature"]},"since":{"type":["string","null"],"format":"date-time"},"since_estimated":{"type":["boolean","null"]},"review_by":{"type":["string","null"],"format":"date-time"}},"required":["label","owner","action","since","since_estimated","review_by"]}},"required":["status","cause","category","since"]},"maxItems":20},"next_step":{"type":"object","properties":{"label":{"type":"string","minLength":1,"maxLength":200},"owner":{"type":"string","enum":["member","lifty","none"]},"action":{"type":"string","enum":["none","wait","lifty_review","contact_lift","reconnect","resume_account","resume_sender","turn_on_sender","resume_campaigns","resume_campaign","set_mailbox_use","add_signature"]},"since":{"type":["string","null"],"format":"date-time"},"since_estimated":{"type":["boolean","null"]},"review_by":{"type":["string","null"],"format":"date-time"}},"required":["label","owner","action","since","since_estimated","review_by"]}},"required":["status","cause"]}},"required":["connection_ref","status","observation","checked_at","outreach","participation"],"additionalProperties":false},"providers":{"type":"object","properties":{"sending":{"type":"array","items":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,39}$"},"maxItems":5},"warmup":{"type":"array","items":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,39}$"},"maxItems":5},"placement":{"type":"array","items":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,39}$"},"maxItems":5}},"required":["sending","warmup","placement"],"additionalProperties":false},"status":{"type":"object","properties":{"code":{"type":"string","enum":["retired","paused","placement_failed","blocked_in_campaign","warmup_problem","needs_approval","placement_due","in_campaign","ready_idle","warming","no_known_blocker","not_ready","no_evidence","disconnected","needs_reconnect","on_hold","setup_needed"]},"label":{"type":"string","minLength":1,"maxLength":120},"tone":{"type":"string","enum":["ok","watch","warn","bad","muted"]},"description":{"type":"string","minLength":1,"maxLength":600},"reasons":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,63}$"},"message":{"type":"string","minLength":1,"maxLength":400}},"required":["code","message"],"additionalProperties":false},"maxItems":20}},"required":["code","label","tone","description","reasons"],"additionalProperties":false},"readiness":{"type":"object","properties":{"code":{"type":"string","enum":["ready","partially_ready","blocked","no_known_blocker","unknown"]},"label":{"type":"string","minLength":1,"maxLength":120},"tone":{"type":"string","enum":["ok","watch","warn","bad","muted"]},"description":{"type":"string","minLength":1,"maxLength":600},"reasons":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,63}$"},"message":{"type":"string","minLength":1,"maxLength":400}},"required":["code","message"],"additionalProperties":false},"maxItems":20},"paths":{"type":"array","items":{"type":"object","properties":{"provider":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,39}$"},"connection_ref":{"type":["string","null"],"format":"uuid"},"gate":{"type":"string","enum":["strict_sender_checks","unknown"]},"state":{"type":"object","properties":{"code":{"type":"string","enum":["allowed","blocked","no_known_blocker","unknown"]},"label":{"type":"string","minLength":1,"maxLength":120},"tone":{"type":"string","enum":["ok","watch","warn","bad","muted"]},"description":{"type":"string","minLength":1,"maxLength":600},"reasons":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,63}$"},"message":{"type":"string","minLength":1,"maxLength":400}},"required":["code","message"],"additionalProperties":false},"maxItems":20}},"required":["code","label","tone","description","reasons"],"additionalProperties":false}},"required":["provider","connection_ref","gate","state"],"additionalProperties":false},"maxItems":50}},"required":["code","label","tone","description","reasons","paths"],"additionalProperties":false},"warmup":{"type":"object","properties":{"status":{"type":"object","properties":{"code":{"type":"string","enum":["active","paused","pending","problem","not_running","unknown","none"]},"label":{"type":"string","minLength":1,"maxLength":120},"tone":{"type":"string","enum":["ok","watch","warn","bad","muted"]},"description":{"type":"string","minLength":1,"maxLength":600},"reasons":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,63}$"},"message":{"type":"string","minLength":1,"maxLength":400}},"required":["code","message"],"additionalProperties":false},"maxItems":20}},"required":["code","label","tone","description","reasons"],"additionalProperties":false},"sources":{"type":"array","items":{"type":"object","properties":{"provider":{"type":"string","enum":["mailivery","warmup"]},"connection_ref":{"type":["string","null"],"format":"uuid"},"state":{"type":"object","properties":{"code":{"type":"string","enum":["active","paused","pending","problem","not_running","unknown","none"]},"label":{"type":"string","minLength":1,"maxLength":120},"tone":{"type":"string","enum":["ok","watch","warn","bad","muted"]},"description":{"type":"string","minLength":1,"maxLength":600},"reasons":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,63}$"},"message":{"type":"string","minLength":1,"maxLength":400}},"required":["code","message"],"additionalProperties":false},"maxItems":20}},"required":["code","label","tone","description","reasons"],"additionalProperties":false},"started_at":{"type":["string","null"],"format":"date-time"},"started_at_basis":{"type":["string","null"],"enum":["provider_evidence"]},"active_days":{"type":["integer","null"],"minimum":0,"maximum":100000},"required_days":{"type":["integer","null"],"minimum":1,"maximum":365},"period_complete":{"type":["boolean","null"]},"estimated_completion":{"type":["object","null"],"properties":{"at":{"type":["string","null"],"format":"date-time"},"on":{"type":["string","null"],"format":"date"},"basis":{"type":"string","minLength":1,"maxLength":300}},"required":["at","on","basis"],"additionalProperties":false},"outreach_unlocked":{"type":["boolean","null"]},"last_check":{"type":"object","properties":{"observed_at":{"type":["string","null"],"format":"date-time"},"freshness":{"type":"string","enum":["fresh","stale","unknown","not_applicable"]},"fresh_until":{"type":["string","null"],"format":"date-time"}},"required":["observed_at","freshness","fresh_until"],"additionalProperties":false},"metrics":{"type":"object","properties":{"warmup_emails_today":{"type":["integer","null"],"minimum":0,"maximum":1000000},"ramp_target":{"type":["integer","null"],"minimum":0,"maximum":1000000}},"required":["warmup_emails_today","ramp_target"],"additionalProperties":false},"checks":{"type":["object","null"],"properties":{"spf":{"type":"string","enum":["valid","not_valid","unknown"]},"dmarc":{"type":"string","enum":["valid","not_valid","unknown"]},"mx":{"type":"string","enum":["valid","not_valid","unknown"]}},"required":["spf","dmarc","mx"],"additionalProperties":false},"provider_detail":{"type":["string","null"],"maxLength":1000}},"required":["provider","connection_ref","state","started_at","started_at_basis","active_days","required_days","period_complete","estimated_completion","outreach_unlocked","last_check","metrics","checks","provider_detail"],"additionalProperties":false},"maxItems":50},"current":{"type":["object","null"],"properties":{"provider":{"type":"string","enum":["mailivery","warmup"]},"connection_ref":{"type":["string","null"],"format":"uuid"},"state":{"type":"object","properties":{"code":{"type":"string","enum":["active","paused","pending","problem","not_running","unknown","none"]},"label":{"type":"string","minLength":1,"maxLength":120},"tone":{"type":"string","enum":["ok","watch","warn","bad","muted"]},"description":{"type":"string","minLength":1,"maxLength":600},"reasons":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,63}$"},"message":{"type":"string","minLength":1,"maxLength":400}},"required":["code","message"],"additionalProperties":false},"maxItems":20}},"required":["code","label","tone","description","reasons"],"additionalProperties":false},"started_at":{"type":["string","null"],"format":"date-time"},"started_at_basis":{"type":["string","null"],"enum":["provider_evidence"]},"active_days":{"type":["integer","null"],"minimum":0,"maximum":100000},"required_days":{"type":["integer","null"],"minimum":1,"maximum":365},"period_complete":{"type":["boolean","null"]},"estimated_completion":{"type":["object","null"],"properties":{"at":{"type":["string","null"],"format":"date-time"},"on":{"type":["string","null"],"format":"date"},"basis":{"type":"string","minLength":1,"maxLength":300}},"required":["at","on","basis"],"additionalProperties":false},"outreach_unlocked":{"type":["boolean","null"]},"last_check":{"type":"object","properties":{"observed_at":{"type":["string","null"],"format":"date-time"},"freshness":{"type":"string","enum":["fresh","stale","unknown","not_applicable"]},"fresh_until":{"type":["string","null"],"format":"date-time"}},"required":["observed_at","freshness","fresh_until"],"additionalProperties":false},"metrics":{"type":"object","properties":{"warmup_emails_today":{"type":["integer","null"],"minimum":0,"maximum":1000000},"ramp_target":{"type":["integer","null"],"minimum":0,"maximum":1000000}},"required":["warmup_emails_today","ramp_target"],"additionalProperties":false},"checks":{"type":["object","null"],"properties":{"spf":{"type":"string","enum":["valid","not_valid","unknown"]},"dmarc":{"type":"string","enum":["valid","not_valid","unknown"]},"mx":{"type":"string","enum":["valid","not_valid","unknown"]}},"required":["spf","dmarc","mx"],"additionalProperties":false},"provider_detail":{"type":["string","null"],"maxLength":1000}},"required":["provider","connection_ref","state","started_at","started_at_basis","active_days","required_days","period_complete","estimated_completion","outreach_unlocked","last_check","metrics","checks","provider_detail"],"additionalProperties":false}},"required":["status","sources","current"],"additionalProperties":false},"campaigns":{"type":"object","properties":{"status":{"type":"object","properties":{"code":{"type":"string","enum":["in_campaign_enabled","in_campaign_blocked","campaign_paused","no_campaign","unverified"]},"label":{"type":"string","minLength":1,"maxLength":120},"tone":{"type":"string","enum":["ok","watch","warn","bad","muted"]},"description":{"type":"string","minLength":1,"maxLength":600},"reasons":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,63}$"},"message":{"type":"string","minLength":1,"maxLength":400}},"required":["code","message"],"additionalProperties":false},"maxItems":20}},"required":["code","label","tone","description","reasons"],"additionalProperties":false},"items":{"type":"array","items":{"type":"object","properties":{"source":{"type":"string","enum":["lifty_direct_email"]},"connection_ref":{"type":["string","null"],"format":"uuid"},"provider":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,39}$"},"campaign_count":{"type":"integer","minimum":0,"maximum":1000000},"states":{"type":"object","additionalProperties":{"type":"integer","minimum":0,"maximum":1000000}},"status":{"type":"object","properties":{"code":{"type":"string","enum":["active","paused","draft","closed_to_new_leads","completed","archived","error","unknown"]},"label":{"type":"string","minLength":1,"maxLength":120},"tone":{"type":"string","enum":["ok","watch","warn","bad","muted"]},"description":{"type":"string","minLength":1,"maxLength":600},"reasons":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,63}$"},"message":{"type":"string","minLength":1,"maxLength":400}},"required":["code","message"],"additionalProperties":false},"maxItems":20}},"required":["code","label","tone","description","reasons"],"additionalProperties":false},"sending":{"type":"object","properties":{"code":{"type":"string","enum":["enabled","blocked","not_active","unverified"]},"label":{"type":"string","minLength":1,"maxLength":120},"tone":{"type":"string","enum":["ok","watch","warn","bad","muted"]},"description":{"type":"string","minLength":1,"maxLength":600},"reasons":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,63}$"},"message":{"type":"string","minLength":1,"maxLength":400}},"required":["code","message"],"additionalProperties":false},"maxItems":20}},"required":["code","label","tone","description","reasons"],"additionalProperties":false},"created_at":{"type":["string","null"],"format":"date-time"}},"required":["source","connection_ref","provider","campaign_count","states","status","sending","created_at"],"additionalProperties":false},"maxItems":200}},"required":["status","items"],"additionalProperties":false},"placement":{"type":"object","properties":{"status":{"type":"object","properties":{"code":{"type":"string","enum":["passed","failed","stale","no_result","no_tests"]},"label":{"type":"string","minLength":1,"maxLength":120},"tone":{"type":"string","enum":["ok","watch","warn","bad","muted"]},"description":{"type":"string","minLength":1,"maxLength":600},"reasons":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,63}$"},"message":{"type":"string","minLength":1,"maxLength":400}},"required":["code","message"],"additionalProperties":false},"maxItems":20}},"required":["code","label","tone","description","reasons"],"additionalProperties":false},"evidence":{"type":"object","properties":{"observed_at":{"type":["string","null"],"format":"date-time"},"freshness":{"type":"string","enum":["fresh","stale","unknown","not_applicable"]},"fresh_until":{"type":["string","null"],"format":"date-time"},"max_age_days":{"type":["integer","null"],"minimum":1,"maximum":365},"rule":{"type":"string","minLength":1,"maxLength":300}},"required":["observed_at","freshness","fresh_until","max_age_days","rule"],"additionalProperties":false},"test_count":{"type":"integer","minimum":0,"maximum":1000000},"latest_test_ref":{"type":["string","null"],"maxLength":200},"latest_completed_test_ref":{"type":["string","null"],"maxLength":200},"latest_completed_test":{"type":["object","null"],"properties":{"test_ref":{"type":"string","minLength":1,"maxLength":200},"provider":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,39}$"},"source":{"type":"string","enum":["smartlead_result","placement_test","lifty_request","lifty_evidence"]},"name":{"type":["string","null"],"maxLength":500},"execution_status":{"type":"string","enum":["pending","running","completed","error","unknown"]},"execution_reason":{"type":["object","null"],"properties":{"code":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,63}$"},"message":{"type":"string","minLength":1,"maxLength":400}},"required":["code","message"],"additionalProperties":false},"verdict":{"type":"string","enum":["pass","fail","unknown"]},"label":{"type":"string","minLength":1,"maxLength":160},"tested_at":{"type":"string","format":"date-time"},"completed_at":{"type":["string","null"],"format":"date-time"},"age_days":{"type":"integer","minimum":0,"maximum":100000},"policy_version":{"type":["string","null"],"maxLength":200},"counts":{"type":["object","null"],"properties":{"inbox":{"type":["integer","null"],"minimum":0,"maximum":1000000},"spam":{"type":["integer","null"],"minimum":0,"maximum":1000000},"other":{"type":["integer","null"],"minimum":0,"maximum":1000000},"missing":{"type":["integer","null"],"minimum":0,"maximum":1000000},"total":{"type":["integer","null"],"minimum":0,"maximum":1000000}},"required":["inbox","spam","other","missing","total"],"additionalProperties":false},"families":{"type":["object","null"],"properties":{"gmail":{"type":["object","null"],"properties":{"inbox":{"type":["integer","null"],"minimum":0,"maximum":1000000},"spam":{"type":["integer","null"],"minimum":0,"maximum":1000000},"other":{"type":["integer","null"],"minimum":0,"maximum":1000000},"missing":{"type":["integer","null"],"minimum":0,"maximum":1000000},"total":{"type":["integer","null"],"minimum":0,"maximum":1000000}},"required":["inbox","spam","other","missing","total"],"additionalProperties":false},"outlook":{"type":["object","null"],"properties":{"inbox":{"type":["integer","null"],"minimum":0,"maximum":1000000},"spam":{"type":["integer","null"],"minimum":0,"maximum":1000000},"other":{"type":["integer","null"],"minimum":0,"maximum":1000000},"missing":{"type":["integer","null"],"minimum":0,"maximum":1000000},"total":{"type":["integer","null"],"minimum":0,"maximum":1000000}},"required":["inbox","spam","other","missing","total"],"additionalProperties":false}},"required":["gmail","outlook"],"additionalProperties":false},"detail_available":{"type":"boolean"}},"required":["test_ref","provider","source","name","execution_status","execution_reason","verdict","label","tested_at","completed_at","age_days","policy_version","counts","families","detail_available"],"additionalProperties":false},"recent_tests":{"type":"array","items":{"type":"object","properties":{"test_ref":{"type":"string","minLength":1,"maxLength":200},"provider":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,39}$"},"source":{"type":"string","enum":["smartlead_result","placement_test","lifty_request","lifty_evidence"]},"name":{"type":["string","null"],"maxLength":500},"execution_status":{"type":"string","enum":["pending","running","completed","error","unknown"]},"execution_reason":{"type":["object","null"],"properties":{"code":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,63}$"},"message":{"type":"string","minLength":1,"maxLength":400}},"required":["code","message"],"additionalProperties":false},"verdict":{"type":"string","enum":["pass","fail","unknown"]},"label":{"type":"string","minLength":1,"maxLength":160},"tested_at":{"type":"string","format":"date-time"},"completed_at":{"type":["string","null"],"format":"date-time"},"age_days":{"type":"integer","minimum":0,"maximum":100000},"policy_version":{"type":["string","null"],"maxLength":200},"counts":{"type":["object","null"],"properties":{"inbox":{"type":["integer","null"],"minimum":0,"maximum":1000000},"spam":{"type":["integer","null"],"minimum":0,"maximum":1000000},"other":{"type":["integer","null"],"minimum":0,"maximum":1000000},"missing":{"type":["integer","null"],"minimum":0,"maximum":1000000},"total":{"type":["integer","null"],"minimum":0,"maximum":1000000}},"required":["inbox","spam","other","missing","total"],"additionalProperties":false},"families":{"type":["object","null"],"properties":{"gmail":{"type":["object","null"],"properties":{"inbox":{"type":["integer","null"],"minimum":0,"maximum":1000000},"spam":{"type":["integer","null"],"minimum":0,"maximum":1000000},"other":{"type":["integer","null"],"minimum":0,"maximum":1000000},"missing":{"type":["integer","null"],"minimum":0,"maximum":1000000},"total":{"type":["integer","null"],"minimum":0,"maximum":1000000}},"required":["inbox","spam","other","missing","total"],"additionalProperties":false},"outlook":{"type":["object","null"],"properties":{"inbox":{"type":["integer","null"],"minimum":0,"maximum":1000000},"spam":{"type":["integer","null"],"minimum":0,"maximum":1000000},"other":{"type":["integer","null"],"minimum":0,"maximum":1000000},"missing":{"type":["integer","null"],"minimum":0,"maximum":1000000},"total":{"type":["integer","null"],"minimum":0,"maximum":1000000}},"required":["inbox","spam","other","missing","total"],"additionalProperties":false}},"required":["gmail","outlook"],"additionalProperties":false},"detail_available":{"type":"boolean"}},"required":["test_ref","provider","source","name","execution_status","execution_reason","verdict","label","tested_at","completed_at","age_days","policy_version","counts","families","detail_available"],"additionalProperties":false},"maxItems":8},"detail":{"type":["array","null"],"items":{"type":"object","properties":{"test_ref":{"type":"string","minLength":1,"maxLength":200},"status":{"type":"string","enum":["ok","no_report","not_configured","unavailable"]},"message":{"type":"string","minLength":1,"maxLength":300},"providers":{"type":"array","items":{"type":"object","properties":{"provider":{"type":"string","enum":["gmail","outlook","other"]},"inbox":{"type":["integer","null"],"minimum":0,"maximum":1000000},"spam":{"type":["integer","null"],"minimum":0,"maximum":1000000},"other":{"type":["integer","null"],"minimum":0,"maximum":1000000},"missing":{"type":["integer","null"],"minimum":0,"maximum":1000000},"total":{"type":["integer","null"],"minimum":0,"maximum":1000000}},"required":["provider","inbox","spam","other","missing","total"],"additionalProperties":false},"maxItems":3},"auth":{"type":["object","null"],"properties":{"spf":{"type":"object","properties":{"pass":{"type":"integer","minimum":0,"maximum":1000000},"total":{"type":"integer","minimum":0,"maximum":1000000}},"required":["pass","total"],"additionalProperties":false},"dkim":{"type":"object","properties":{"pass":{"type":"integer","minimum":0,"maximum":1000000},"total":{"type":"integer","minimum":0,"maximum":1000000}},"required":["pass","total"],"additionalProperties":false},"dmarc":{"type":"object","properties":{"pass":{"type":"integer","minimum":0,"maximum":1000000},"total":{"type":"integer","minimum":0,"maximum":1000000}},"required":["pass","total"],"additionalProperties":false}},"required":["spf","dkim","dmarc"],"additionalProperties":false},"blacklisted":{"type":["boolean","null"]}},"required":["test_ref","status","message","providers","auth","blacklisted"],"additionalProperties":false},"maxItems":3}},"required":["status","evidence","test_count","latest_test_ref","latest_completed_test_ref","latest_completed_test","recent_tests","detail"],"additionalProperties":false},"connections":{"type":"array","items":{"type":"object","properties":{"connection_ref":{"type":"string","format":"uuid"},"provider":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,39}$"},"status":{"type":"string","maxLength":40},"sender_ref":{"type":["string","null"],"format":"uuid"},"mailbox_use":{"type":["string","null"],"enum":["personal","outreach",null]},"daily_send_limit":{"type":["integer","null"],"minimum":0,"maximum":1000000},"health_checked_at":{"type":["string","null"],"format":"date-time"},"created_at":{"type":"string","format":"date-time"},"send_gate":{"type":"object","properties":{"code":{"type":"string","enum":["allowed","blocked","no_known_blocker","unknown"]},"label":{"type":"string","minLength":1,"maxLength":120},"tone":{"type":"string","enum":["ok","watch","warn","bad","muted"]},"description":{"type":"string","minLength":1,"maxLength":600},"reasons":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,63}$"},"message":{"type":"string","minLength":1,"maxLength":400}},"required":["code","message"],"additionalProperties":false},"maxItems":20}},"required":["code","label","tone","description","reasons"],"additionalProperties":false},"controls":{"type":"array","items":{"type":"object","properties":{"scope":{"type":"string","enum":["global","workspace","channel","sender","connection","other"]},"send_paused":{"type":"boolean"},"capture_paused":{"type":"boolean"},"updated_at":{"type":["string","null"],"format":"date-time"}},"required":["scope","send_paused","capture_paused","updated_at"],"additionalProperties":false},"maxItems":50},"holds":{"type":"array","items":{"type":"object","properties":{"reason":{"type":"string","maxLength":200},"updated_at":{"type":["string","null"],"format":"date-time"}},"required":["reason","updated_at"],"additionalProperties":false},"maxItems":50}},"required":["connection_ref","provider","status","sender_ref","mailbox_use","daily_send_limit","health_checked_at","created_at","send_gate","controls","holds"],"additionalProperties":false},"maxItems":50},"sending":{"type":"object","properties":{"state":{"type":"object","properties":{"code":{"type":"string","enum":["available","limit_reached","not_set","unknown"]},"label":{"type":"string","minLength":1,"maxLength":120},"tone":{"type":"string","enum":["ok","watch","warn","bad","muted"]},"description":{"type":"string","minLength":1,"maxLength":600},"reasons":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,63}$"},"message":{"type":"string","minLength":1,"maxLength":400}},"required":["code","message"],"additionalProperties":false},"maxItems":20}},"required":["code","label","tone","description","reasons"],"additionalProperties":false},"limit":{"type":["integer","null"],"minimum":0,"maximum":1000000},"used_today":{"type":["integer","null"],"minimum":0,"maximum":1000000},"remaining_today":{"type":["integer","null"],"minimum":0,"maximum":1000000},"timezone":{"type":["string","null"],"maxLength":64},"day_started_at":{"type":["string","null"],"format":"date-time"},"resets_at":{"type":["string","null"],"format":"date-time"}},"required":["state","limit","used_today","remaining_today","timezone","day_started_at","resets_at"],"additionalProperties":false},"availability":{"anyOf":[{"type":"object","properties":{"mailivery_warmup":{"type":"boolean"},"placement_tests":{"type":"boolean"}},"required":["mailivery_warmup","placement_tests"],"additionalProperties":false},{"type":"object","properties":{"warmup":{"type":"boolean"},"placement_tests":{"type":"boolean"}},"required":["warmup","placement_tests"],"additionalProperties":false}]},"next_step":{"type":"object","properties":{"code":{"type":"string","enum":["none","resume_campaign","add_signature","turn_on","reconnect","declare_use","connect_warmup","finish_warmup_setup","fix_dns","wait","lifty_review"]},"owner":{"type":"string","enum":["member","lifty","none"]},"label":{"type":"string","minLength":1,"maxLength":120},"description":{"type":"string","minLength":1,"maxLength":400}},"required":["code","owner","label","description"],"additionalProperties":false}},"required":["mailbox_ref","workspace","email","domain","senders","identity","account","providers","status","readiness","warmup","campaigns","placement","connections","sending","availability","next_step"],"additionalProperties":false},"maxItems":100},"total_count":{"type":"integer","minimum":0,"maximum":1000000},"next_cursor":{"type":["string","null"],"maxLength":1400,"pattern":"^[A-Za-z0-9_-]+$"},"warnings":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,63}$"},"source":{"type":"string","enum":["placement_detail","database"]},"mailbox_ref":{"type":["string","null"],"format":"uuid"},"message":{"type":"string","minLength":1,"maxLength":300}},"required":["code","source","mailbox_ref","message"],"additionalProperties":false},"maxItems":400}},"required":["schema_version","generated_at","scope","query","filters","workspace_health","mailboxes","total_count","next_cursor","warnings"],"additionalProperties":false}}}},"400":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Unsupported client contract; update the installed CLI and skill."},"502":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"503":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/email/placement":{"get":{"operationId":"getEmailPlacement","security":[{"bearerAuth":[]}],"description":"LIF-1063: the latest Mailivery placement test for one warmed mailbox, whether a new one can be requested, and whether its result gates sending. Read-only.","parameters":[{"schema":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[a-zA-Z0-9_-]+$"},"required":true,"name":"workspace","in":"query"},{"schema":{"type":"string","format":"uuid"},"required":false,"name":"connection_ref","in":"query"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"responses":{"200":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"provider":{"type":"string","enum":["mailivery"]},"method":{"type":"string","enum":["connected_mailbox"]},"workspace_ref":{"type":"string","format":"uuid"},"connection_ref":{"type":"string","format":"uuid"},"email":{"type":["string","null"],"format":"email"},"can_request":{"type":"boolean"},"blocked_reason":{"type":["object","null"],"properties":{"code":{"type":"string"},"message":{"type":"string","minLength":1,"maxLength":400}},"required":["code","message"],"additionalProperties":false},"rule":{"type":"string","minLength":1,"maxLength":400},"last_passed_at":{"type":["string","null"],"format":"date-time"},"passing_until":{"type":["string","null"],"format":"date-time"},"test":{"type":["object","null"],"properties":{"placement_ref":{"type":"string","format":"uuid"},"state":{"type":"string","enum":["pending","running","uncertain","passed","failed","did_not_run"]},"automatic":{"type":"boolean"},"label":{"type":"string","minLength":1,"maxLength":300},"test_ref":{"type":["string","null"]},"total_seeds":{"type":["integer","null"],"minimum":0,"maximum":1000000},"requested_at":{"type":"string","format":"date-time"},"completed_at":{"type":["string","null"],"format":"date-time"},"failure":{"type":["object","null"],"properties":{"code":{"type":"string"},"message":{"type":"string","minLength":1,"maxLength":400}},"required":["code","message"],"additionalProperties":false},"counts":{"type":["object","null"],"properties":{"gmail":{"type":"object","properties":{"total":{"type":"integer","minimum":0,"maximum":1000000},"inbox":{"type":"integer","minimum":0,"maximum":1000000},"spam":{"type":"integer","minimum":0,"maximum":1000000},"missing":{"type":"integer","minimum":0,"maximum":1000000}},"required":["total","inbox","spam","missing"],"additionalProperties":false},"microsoft":{"type":"object","properties":{"total":{"type":"integer","minimum":0,"maximum":1000000},"inbox":{"type":"integer","minimum":0,"maximum":1000000},"spam":{"type":"integer","minimum":0,"maximum":1000000},"missing":{"type":"integer","minimum":0,"maximum":1000000}},"required":["total","inbox","spam","missing"],"additionalProperties":false},"overall":{"type":"object","properties":{"total":{"type":"integer","minimum":0,"maximum":1000000},"inbox":{"type":"integer","minimum":0,"maximum":1000000},"spam":{"type":"integer","minimum":0,"maximum":1000000},"missing":{"type":"integer","minimum":0,"maximum":1000000}},"required":["total","inbox","spam","missing"],"additionalProperties":false}},"required":["gmail","microsoft","overall"],"additionalProperties":false}},"required":["placement_ref","state","automatic","label","test_ref","total_seeds","requested_at","completed_at","failure","counts"],"additionalProperties":false}},"required":["provider","method","workspace_ref","connection_ref","email","can_request","blocked_reason","rule","last_passed_at","passing_until","test"],"additionalProperties":false}}}},"400":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"503":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/email/placement/start":{"post":{"operationId":"startEmailPlacement","security":[{"bearerAuth":[]}],"description":"LIF-1063: queue one Mailivery connected-mailbox placement test after explicit consent. Mailivery sends the email from the warmed mailbox to its seed inboxes and uses one test credit. A retried start returns the open test. Never releases a mailbox.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"workspace":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[a-zA-Z0-9_-]+$"},"connection_ref":{"type":"string","format":"uuid"},"subject":{"type":"string","minLength":1,"maxLength":500,"description":"Subject of the test email. Use the first email of the real sequence."},"body":{"type":"string","minLength":10,"maxLength":20000,"description":"Plain-text body of the test email. Use the first email of the real sequence."},"confirm":{"type":"boolean","enum":[true],"description":"Explicit consent: Mailivery sends this email from the mailbox to roughly 20-40 of its seed inboxes and uses one test credit."}},"required":["workspace","subject","body","confirm"],"additionalProperties":false}}}},"responses":{"200":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"provider":{"type":"string","enum":["mailivery"]},"method":{"type":"string","enum":["connected_mailbox"]},"workspace_ref":{"type":"string","format":"uuid"},"connection_ref":{"type":"string","format":"uuid"},"email":{"type":["string","null"],"format":"email"},"can_request":{"type":"boolean"},"blocked_reason":{"type":["object","null"],"properties":{"code":{"type":"string"},"message":{"type":"string","minLength":1,"maxLength":400}},"required":["code","message"],"additionalProperties":false},"rule":{"type":"string","minLength":1,"maxLength":400},"last_passed_at":{"type":["string","null"],"format":"date-time"},"passing_until":{"type":["string","null"],"format":"date-time"},"test":{"type":["object","null"],"properties":{"placement_ref":{"type":"string","format":"uuid"},"state":{"type":"string","enum":["pending","running","uncertain","passed","failed","did_not_run"]},"automatic":{"type":"boolean"},"label":{"type":"string","minLength":1,"maxLength":300},"test_ref":{"type":["string","null"]},"total_seeds":{"type":["integer","null"],"minimum":0,"maximum":1000000},"requested_at":{"type":"string","format":"date-time"},"completed_at":{"type":["string","null"],"format":"date-time"},"failure":{"type":["object","null"],"properties":{"code":{"type":"string"},"message":{"type":"string","minLength":1,"maxLength":400}},"required":["code","message"],"additionalProperties":false},"counts":{"type":["object","null"],"properties":{"gmail":{"type":"object","properties":{"total":{"type":"integer","minimum":0,"maximum":1000000},"inbox":{"type":"integer","minimum":0,"maximum":1000000},"spam":{"type":"integer","minimum":0,"maximum":1000000},"missing":{"type":"integer","minimum":0,"maximum":1000000}},"required":["total","inbox","spam","missing"],"additionalProperties":false},"microsoft":{"type":"object","properties":{"total":{"type":"integer","minimum":0,"maximum":1000000},"inbox":{"type":"integer","minimum":0,"maximum":1000000},"spam":{"type":"integer","minimum":0,"maximum":1000000},"missing":{"type":"integer","minimum":0,"maximum":1000000}},"required":["total","inbox","spam","missing"],"additionalProperties":false},"overall":{"type":"object","properties":{"total":{"type":"integer","minimum":0,"maximum":1000000},"inbox":{"type":"integer","minimum":0,"maximum":1000000},"spam":{"type":"integer","minimum":0,"maximum":1000000},"missing":{"type":"integer","minimum":0,"maximum":1000000}},"required":["total","inbox","spam","missing"],"additionalProperties":false}},"required":["gmail","microsoft","overall"],"additionalProperties":false}},"required":["placement_ref","state","automatic","label","test_ref","total_seeds","requested_at","completed_at","failure","counts"],"additionalProperties":false}},"required":["provider","method","workspace_ref","connection_ref","email","can_request","blocked_reason","rule","last_passed_at","passing_until","test"],"additionalProperties":false}}}},"400":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"503":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}},"parameters":[{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}]}},"/v1/email/warmup/start":{"post":{"operationId":"startEmailWarmup","security":[{"bearerAuth":[]}],"description":"Start warmup setup for one verified mailbox account (connection_ref when the workspace has several). Returns a one-hour Lifty setup link that authorizes the mailbox with Google. An already-bound mailbox receives no new link. Never pauses or resumes campaigns.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"workspace":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[a-zA-Z0-9_-]+$"},"connection_ref":{"type":"string","format":"uuid"}},"required":["workspace"],"additionalProperties":false}}}},"responses":{"200":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"connection_ref":{"type":["string","null"],"format":"uuid"},"email":{"type":["string","null"],"format":"email"},"mailbox_use":{"type":["string","null"],"enum":["personal","outreach",null]},"warmup_required":{"type":"boolean"},"required_active_days":{"type":"integer","minimum":1,"maximum":365},"state":{"type":"string","enum":["not_started","link_issued","pending_consent","warming","paused","problem","removed"]},"user_paused":{"type":"boolean"},"connection_paused":{"type":"boolean"},"state_label":{"type":"string","minLength":1,"maxLength":120},"requested_action":{"type":["string","null"],"enum":["pause","resume","remove",null]},"blocking_reason":{"type":["object","null"],"properties":{"code":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,63}$"},"message":{"type":"string","minLength":1,"maxLength":300}},"required":["code","message"],"additionalProperties":false},"active_days":{"type":"integer","minimum":0,"maximum":100000},"today":{"type":"object","properties":{"warmup_emails":{"type":["integer","null"],"minimum":0,"maximum":1000000},"ramp_target":{"type":["integer","null"],"minimum":0,"maximum":1000000}},"required":["warmup_emails","ramp_target"],"additionalProperties":false},"checks":{"type":"object","properties":{"spf":{"type":"string","enum":["valid","not_valid","unknown"]},"dmarc":{"type":"string","enum":["valid","not_valid","unknown"]},"mx":{"type":"string","enum":["valid","not_valid","unknown"]}},"required":["spf","dmarc","mx"],"additionalProperties":false},"last_checked_at":{"type":["string","null"],"format":"date-time"},"initial_period_complete":{"type":"boolean"},"spam":{"type":["object","null"],"properties":{"spam_count":{"type":"integer","minimum":0,"maximum":1000000},"sent":{"type":"integer","minimum":0,"maximum":1000000},"window_days":{"type":"integer","minimum":1,"maximum":14},"holds_sending":{"type":"boolean"},"warning":{"type":"boolean"},"observed_at":{"type":"string","format":"date-time"}},"required":["spam_count","sent","window_days","holds_sending","warning","observed_at"],"additionalProperties":false},"warmup_ready":{"type":"boolean"},"recommended_go_live":{"type":"object","properties":{"kind":{"type":"string","enum":["connect_email","now","unlocked","awaiting_check","projected","held"]},"date":{"type":["string","null"],"format":"date"},"remaining_active_days":{"type":["integer","null"],"minimum":0,"maximum":365},"message":{"type":"string","minLength":1,"maxLength":600}},"required":["kind","date","remaining_active_days","message"],"additionalProperties":false},"connect_url":{"type":["string","null"],"format":"uri"},"expires_at":{"type":["string","null"],"format":"date-time"}},"required":["workspace_ref","connection_ref","email","mailbox_use","warmup_required","required_active_days","state","user_paused","connection_paused","state_label","requested_action","blocking_reason","active_days","today","checks","last_checked_at","initial_period_complete","spam","warmup_ready","recommended_go_live","connect_url","expires_at"],"additionalProperties":false}}}},"400":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"503":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}},"parameters":[{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}]}},"/v1/email/warmup/pause":{"post":{"operationId":"pauseEmailWarmup","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"workspace":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[a-zA-Z0-9_-]+$"},"connection_ref":{"type":"string","format":"uuid"}},"required":["workspace"],"additionalProperties":false}}}},"responses":{"200":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"connection_ref":{"type":["string","null"],"format":"uuid"},"email":{"type":["string","null"],"format":"email"},"mailbox_use":{"type":["string","null"],"enum":["personal","outreach",null]},"warmup_required":{"type":"boolean"},"required_active_days":{"type":"integer","minimum":1,"maximum":365},"state":{"type":"string","enum":["not_started","link_issued","pending_consent","warming","paused","problem","removed"]},"user_paused":{"type":"boolean"},"connection_paused":{"type":"boolean"},"state_label":{"type":"string","minLength":1,"maxLength":120},"requested_action":{"type":["string","null"],"enum":["pause","resume","remove",null]},"blocking_reason":{"type":["object","null"],"properties":{"code":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,63}$"},"message":{"type":"string","minLength":1,"maxLength":300}},"required":["code","message"],"additionalProperties":false},"active_days":{"type":"integer","minimum":0,"maximum":100000},"today":{"type":"object","properties":{"warmup_emails":{"type":["integer","null"],"minimum":0,"maximum":1000000},"ramp_target":{"type":["integer","null"],"minimum":0,"maximum":1000000}},"required":["warmup_emails","ramp_target"],"additionalProperties":false},"checks":{"type":"object","properties":{"spf":{"type":"string","enum":["valid","not_valid","unknown"]},"dmarc":{"type":"string","enum":["valid","not_valid","unknown"]},"mx":{"type":"string","enum":["valid","not_valid","unknown"]}},"required":["spf","dmarc","mx"],"additionalProperties":false},"last_checked_at":{"type":["string","null"],"format":"date-time"},"initial_period_complete":{"type":"boolean"},"spam":{"type":["object","null"],"properties":{"spam_count":{"type":"integer","minimum":0,"maximum":1000000},"sent":{"type":"integer","minimum":0,"maximum":1000000},"window_days":{"type":"integer","minimum":1,"maximum":14},"holds_sending":{"type":"boolean"},"warning":{"type":"boolean"},"observed_at":{"type":"string","format":"date-time"}},"required":["spam_count","sent","window_days","holds_sending","warning","observed_at"],"additionalProperties":false},"warmup_ready":{"type":"boolean"},"recommended_go_live":{"type":"object","properties":{"kind":{"type":"string","enum":["connect_email","now","unlocked","awaiting_check","projected","held"]},"date":{"type":["string","null"],"format":"date"},"remaining_active_days":{"type":["integer","null"],"minimum":0,"maximum":365},"message":{"type":"string","minLength":1,"maxLength":600}},"required":["kind","date","remaining_active_days","message"],"additionalProperties":false}},"required":["workspace_ref","connection_ref","email","mailbox_use","warmup_required","required_active_days","state","user_paused","connection_paused","state_label","requested_action","blocking_reason","active_days","today","checks","last_checked_at","initial_period_complete","spam","warmup_ready","recommended_go_live"],"additionalProperties":false}}}},"400":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"503":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}},"parameters":[{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}]}},"/v1/email/warmup/resume":{"post":{"operationId":"resumeEmailWarmup","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"workspace":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[a-zA-Z0-9_-]+$"},"connection_ref":{"type":"string","format":"uuid"}},"required":["workspace"],"additionalProperties":false}}}},"responses":{"200":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"connection_ref":{"type":["string","null"],"format":"uuid"},"email":{"type":["string","null"],"format":"email"},"mailbox_use":{"type":["string","null"],"enum":["personal","outreach",null]},"warmup_required":{"type":"boolean"},"required_active_days":{"type":"integer","minimum":1,"maximum":365},"state":{"type":"string","enum":["not_started","link_issued","pending_consent","warming","paused","problem","removed"]},"user_paused":{"type":"boolean"},"connection_paused":{"type":"boolean"},"state_label":{"type":"string","minLength":1,"maxLength":120},"requested_action":{"type":["string","null"],"enum":["pause","resume","remove",null]},"blocking_reason":{"type":["object","null"],"properties":{"code":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,63}$"},"message":{"type":"string","minLength":1,"maxLength":300}},"required":["code","message"],"additionalProperties":false},"active_days":{"type":"integer","minimum":0,"maximum":100000},"today":{"type":"object","properties":{"warmup_emails":{"type":["integer","null"],"minimum":0,"maximum":1000000},"ramp_target":{"type":["integer","null"],"minimum":0,"maximum":1000000}},"required":["warmup_emails","ramp_target"],"additionalProperties":false},"checks":{"type":"object","properties":{"spf":{"type":"string","enum":["valid","not_valid","unknown"]},"dmarc":{"type":"string","enum":["valid","not_valid","unknown"]},"mx":{"type":"string","enum":["valid","not_valid","unknown"]}},"required":["spf","dmarc","mx"],"additionalProperties":false},"last_checked_at":{"type":["string","null"],"format":"date-time"},"initial_period_complete":{"type":"boolean"},"spam":{"type":["object","null"],"properties":{"spam_count":{"type":"integer","minimum":0,"maximum":1000000},"sent":{"type":"integer","minimum":0,"maximum":1000000},"window_days":{"type":"integer","minimum":1,"maximum":14},"holds_sending":{"type":"boolean"},"warning":{"type":"boolean"},"observed_at":{"type":"string","format":"date-time"}},"required":["spam_count","sent","window_days","holds_sending","warning","observed_at"],"additionalProperties":false},"warmup_ready":{"type":"boolean"},"recommended_go_live":{"type":"object","properties":{"kind":{"type":"string","enum":["connect_email","now","unlocked","awaiting_check","projected","held"]},"date":{"type":["string","null"],"format":"date"},"remaining_active_days":{"type":["integer","null"],"minimum":0,"maximum":365},"message":{"type":"string","minLength":1,"maxLength":600}},"required":["kind","date","remaining_active_days","message"],"additionalProperties":false}},"required":["workspace_ref","connection_ref","email","mailbox_use","warmup_required","required_active_days","state","user_paused","connection_paused","state_label","requested_action","blocking_reason","active_days","today","checks","last_checked_at","initial_period_complete","spam","warmup_ready","recommended_go_live"],"additionalProperties":false}}}},"400":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"503":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}},"parameters":[{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}]}},"/v1/email/warmup/remove":{"post":{"operationId":"removeEmailWarmup","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"workspace":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[a-zA-Z0-9_-]+$"},"connection_ref":{"type":"string","format":"uuid"}},"required":["workspace"],"additionalProperties":false}}}},"responses":{"200":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"connection_ref":{"type":["string","null"],"format":"uuid"},"email":{"type":["string","null"],"format":"email"},"mailbox_use":{"type":["string","null"],"enum":["personal","outreach",null]},"warmup_required":{"type":"boolean"},"required_active_days":{"type":"integer","minimum":1,"maximum":365},"state":{"type":"string","enum":["not_started","link_issued","pending_consent","warming","paused","problem","removed"]},"user_paused":{"type":"boolean"},"connection_paused":{"type":"boolean"},"state_label":{"type":"string","minLength":1,"maxLength":120},"requested_action":{"type":["string","null"],"enum":["pause","resume","remove",null]},"blocking_reason":{"type":["object","null"],"properties":{"code":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,63}$"},"message":{"type":"string","minLength":1,"maxLength":300}},"required":["code","message"],"additionalProperties":false},"active_days":{"type":"integer","minimum":0,"maximum":100000},"today":{"type":"object","properties":{"warmup_emails":{"type":["integer","null"],"minimum":0,"maximum":1000000},"ramp_target":{"type":["integer","null"],"minimum":0,"maximum":1000000}},"required":["warmup_emails","ramp_target"],"additionalProperties":false},"checks":{"type":"object","properties":{"spf":{"type":"string","enum":["valid","not_valid","unknown"]},"dmarc":{"type":"string","enum":["valid","not_valid","unknown"]},"mx":{"type":"string","enum":["valid","not_valid","unknown"]}},"required":["spf","dmarc","mx"],"additionalProperties":false},"last_checked_at":{"type":["string","null"],"format":"date-time"},"initial_period_complete":{"type":"boolean"},"spam":{"type":["object","null"],"properties":{"spam_count":{"type":"integer","minimum":0,"maximum":1000000},"sent":{"type":"integer","minimum":0,"maximum":1000000},"window_days":{"type":"integer","minimum":1,"maximum":14},"holds_sending":{"type":"boolean"},"warning":{"type":"boolean"},"observed_at":{"type":"string","format":"date-time"}},"required":["spam_count","sent","window_days","holds_sending","warning","observed_at"],"additionalProperties":false},"warmup_ready":{"type":"boolean"},"recommended_go_live":{"type":"object","properties":{"kind":{"type":"string","enum":["connect_email","now","unlocked","awaiting_check","projected","held"]},"date":{"type":["string","null"],"format":"date"},"remaining_active_days":{"type":["integer","null"],"minimum":0,"maximum":365},"message":{"type":"string","minLength":1,"maxLength":600}},"required":["kind","date","remaining_active_days","message"],"additionalProperties":false}},"required":["workspace_ref","connection_ref","email","mailbox_use","warmup_required","required_active_days","state","user_paused","connection_paused","state_label","requested_action","blocking_reason","active_days","today","checks","last_checked_at","initial_period_complete","spam","warmup_ready","recommended_go_live"],"additionalProperties":false}}}},"400":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"503":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}},"parameters":[{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}]}},"/v1/email/dns":{"get":{"operationId":"getEmailDns","security":[{"bearerAuth":[]}],"description":"DNS diagnostics for one email account, record-specific fixes and the latest recheck. Missing evidence stays unknown. Read-only.","parameters":[{"schema":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[a-zA-Z0-9_-]+$"},"required":true,"name":"workspace","in":"query"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"connection_ref","in":"query"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"responses":{"200":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"connection_ref":{"type":"string","format":"uuid"},"domain":{"type":"string","minLength":1,"maxLength":253},"state":{"type":"string","enum":["clear","failing","passing"]},"checked_at":{"type":["string","null"],"format":"date-time"},"provider":{"type":["string","null"],"enum":["google","microsoft",null]},"failing":{"type":"array","items":{"type":"string","enum":["spf","dkim","dmarc","mx"]}},"recheck":{"type":["object","null"],"properties":{"recheck_ref":{"type":"string","format":"uuid"},"state":{"type":"string","enum":["pending","passed","failing","inconclusive","canceled"]},"requested_at":{"type":"string","format":"date-time"},"deadline_at":{"type":"string","format":"date-time"},"completed_at":{"type":["string","null"],"format":"date-time"},"failing":{"type":"array","items":{"type":"string","enum":["spf","dkim","dmarc","mx"]}}},"required":["recheck_ref","state","requested_at","deadline_at","completed_at","failing"],"additionalProperties":false},"records":{"type":"array","items":{"type":"object","properties":{"record":{"type":"string","enum":["spf","dkim","dmarc","mx"]},"status":{"type":"string","enum":["pass","warn","fail","error","unknown"]},"detail":{"type":"string","minLength":1,"maxLength":2000}},"required":["record","status","detail"]}},"dkim_selector":{"type":["string","null"],"pattern":"^[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?$"},"fixes":{"type":"array","items":{"type":"object","properties":{"record":{"type":"string","enum":["spf","dkim","dmarc","mx"]},"step":{"type":"string","minLength":1,"maxLength":500},"dns":{"type":"object","properties":{"type":{"type":"string","enum":["TXT","MX"]},"name":{"type":"string","minLength":1,"maxLength":255},"value":{"type":"string","minLength":1,"maxLength":255},"priority":{"type":"integer","minimum":0,"maximum":65535}},"required":["type","name","value"]},"admin_url":{"type":"string","format":"uri"},"admin_label":{"type":"string","minLength":1,"maxLength":200}},"required":["record","step"],"additionalProperties":false}}},"required":["workspace_ref","connection_ref","domain","state","checked_at","provider","failing","recheck","fixes"],"additionalProperties":false}}}},"400":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/email/dns/recheck":{"post":{"operationId":"recheckEmailDns","security":[{"bearerAuth":[]}],"description":"Request a fresh DNS check, with or without an incident. Optional dkim_selector selects the Google prefix. The result follows within 30 minutes; repeated calls reuse the pending request.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"workspace":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[a-zA-Z0-9_-]+$"},"connection_ref":{"type":"string","format":"uuid"},"dkim_selector":{"type":"string","pattern":"^[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?$"}},"required":["workspace","connection_ref"],"additionalProperties":false}}}},"responses":{"200":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"connection_ref":{"type":"string","format":"uuid"},"domain":{"type":"string","minLength":1,"maxLength":253},"state":{"type":"string","enum":["clear","failing","passing"]},"checked_at":{"type":["string","null"],"format":"date-time"},"provider":{"type":["string","null"],"enum":["google","microsoft",null]},"failing":{"type":"array","items":{"type":"string","enum":["spf","dkim","dmarc","mx"]}},"recheck":{"type":["object","null"],"properties":{"recheck_ref":{"type":"string","format":"uuid"},"state":{"type":"string","enum":["pending","passed","failing","inconclusive","canceled"]},"requested_at":{"type":"string","format":"date-time"},"deadline_at":{"type":"string","format":"date-time"},"completed_at":{"type":["string","null"],"format":"date-time"},"failing":{"type":"array","items":{"type":"string","enum":["spf","dkim","dmarc","mx"]}}},"required":["recheck_ref","state","requested_at","deadline_at","completed_at","failing"],"additionalProperties":false},"records":{"type":"array","items":{"type":"object","properties":{"record":{"type":"string","enum":["spf","dkim","dmarc","mx"]},"status":{"type":"string","enum":["pass","warn","fail","error","unknown"]},"detail":{"type":"string","minLength":1,"maxLength":2000}},"required":["record","status","detail"]}},"dkim_selector":{"type":["string","null"],"pattern":"^[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?$"},"fixes":{"type":"array","items":{"type":"object","properties":{"record":{"type":"string","enum":["spf","dkim","dmarc","mx"]},"step":{"type":"string","minLength":1,"maxLength":500},"dns":{"type":"object","properties":{"type":{"type":"string","enum":["TXT","MX"]},"name":{"type":"string","minLength":1,"maxLength":255},"value":{"type":"string","minLength":1,"maxLength":255},"priority":{"type":"integer","minimum":0,"maximum":65535}},"required":["type","name","value"]},"admin_url":{"type":"string","format":"uri"},"admin_label":{"type":"string","minLength":1,"maxLength":200}},"required":["record","step"],"additionalProperties":false}}},"required":["workspace_ref","connection_ref","domain","state","checked_at","provider","failing","recheck","fixes"],"additionalProperties":false}}}},"400":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}},"parameters":[{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}]}},"/v1/workspaces/{workspace_ref}/integrations/slack/connect-link":{"post":{"operationId":"createAdminSlackConnectLink","description":"Create a single-use, seven-day client invitation. Requires membership in the selected active workspace.","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"workspace_ref","in":"path"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"responses":{"200":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"provider":{"type":"string","enum":["slack"]},"connect_url":{"type":"string","format":"uri"},"expires_in_seconds":{"type":"integer","exclusiveMinimum":0},"attempt_ref":{"type":"string","format":"uuid"},"expires_at":{"type":"string","format":"date-time"},"workspace_id":{"type":"string","format":"uuid"},"workspace_name":{"type":"string","minLength":1}},"required":["provider","connect_url","expires_in_seconds","workspace_id","workspace_name"],"additionalProperties":false}}}},"400":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"503":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/healthz":{"get":{"operationId":"getHealth","responses":{"200":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["ok"]}},"required":["status"]}}}}}}},"/readyz":{"get":{"operationId":"getReadiness","responses":{"200":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["ready"]}},"required":["status"]}}}},"503":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["unready"]}},"required":["status"]}}}}}}},"/v1/workspace":{"get":{"operationId":"getWorkspaceStatus","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"JSON response","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"state":{"type":"string","enum":["needs_workspace"]},"workspace":{"type":"null"},"next_action":{"type":"string","enum":["provision_workspace"]}},"required":["state","workspace","next_action"]},{"type":"object","properties":{"state":{"type":"string","enum":["ready_for_connections","suspended"]},"workspace":{"type":"object","properties":{"workspace_ref":{"type":"string","minLength":1},"name":{"type":"string","minLength":1}},"required":["workspace_ref","name"]},"next_action":{"type":"null"}},"required":["state","workspace","next_action"]}]}}}},"401":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Unsupported client contract; update the installed CLI and skill."},"502":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}},"parameters":[{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}]}},"/v1/integrations/{provider}/sync":{"post":{"operationId":"startCrmSync","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","enum":["hubspot","attio","slack","teams","discord"]},"required":true,"name":"provider","in":"path"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"responses":{"200":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"state":{"type":"string","enum":["queued","running"]},"run_ref":{"type":"string","minLength":1},"requested_leads":{"type":"integer","exclusiveMinimum":0},"portal_id":{"type":["string","null"],"pattern":"^[0-9]{1,20}$"},"workspace":{"type":"object","properties":{"workspace_ref":{"type":"string","minLength":1},"name":{"type":"string","minLength":1}},"required":["workspace_ref","name"]},"created":{"type":"boolean"}},"required":["state","run_ref","requested_leads","portal_id","workspace","created"]}}}},"400":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"501":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}},"get":{"operationId":"getCrmSyncStatus","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","enum":["hubspot","attio","slack","teams","discord"]},"required":true,"name":"provider","in":"path"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"responses":{"200":{"description":"JSON response","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"state":{"type":"string","enum":["none"]}},"required":["state"]},{"type":"object","properties":{"state":{"type":"string","enum":["queued","running","succeeded","failed"]},"run_ref":{"type":"string","minLength":1},"requested_leads":{"type":"integer","exclusiveMinimum":0},"leads_synced":{"type":["integer","null"],"minimum":0},"error_code":{"type":["string","null"]},"crm_sync_receipt":{"type":["object","null"],"properties":{"version":{"type":"number","enum":[1]},"status":{"type":"string","enum":["pending","complete","partial","failed"]},"contacts":{"type":"object","properties":{"status":{"type":"string","enum":["pending","complete","partial","failed"]},"run_id":{"type":["string","null"],"minLength":1,"maxLength":200},"expected":{"type":"integer","minimum":0,"maximum":2000},"synced":{"type":"integer","minimum":0,"maximum":2000},"selected":{"type":"integer","minimum":0,"maximum":2000},"summary":{"type":["object","null"],"properties":{"successful":{"type":"integer","minimum":0},"failed":{"type":"integer","minimum":0},"quarantined":{"type":"integer","minimum":0},"contacts_created":{"type":"integer","minimum":0},"contacts_updated":{"type":"integer","minimum":0},"companies_created":{"type":"integer","minimum":0},"companies_linked":{"type":"integer","minimum":0},"build_results":{"type":"object","properties":{"pushed":{"type":"integer","minimum":0},"skipped_missing_property":{"type":"integer","minimum":0},"skipped_no_value":{"type":"integer","minimum":0},"skipped_write_rule":{"type":"integer","minimum":0},"fallback_used":{"type":"integer","minimum":0},"sanitize_dropped_missing":{"type":"integer","minimum":0},"sanitize_dropped_invalid_enum":{"type":"integer","minimum":0},"sanitize_remapped_enum":{"type":"integer","minimum":0}},"required":["pushed","skipped_missing_property","skipped_no_value","skipped_write_rule","fallback_used","sanitize_dropped_missing","sanitize_dropped_invalid_enum","sanitize_remapped_enum"]}},"required":["successful","failed","quarantined","contacts_created","contacts_updated","companies_created","companies_linked","build_results"]}},"required":["status","run_id","expected","synced","selected","summary"]},"research":{"type":"object","properties":{"status":{"type":"string","enum":["pending","complete","partial","failed"]},"run_id":{"type":["string","null"],"minLength":1,"maxLength":200},"total":{"type":"integer","minimum":0,"maximum":2000},"summary":{"type":["object","null"],"properties":{"total":{"type":"integer","minimum":0},"pushed":{"type":"integer","minimum":0},"dry_run":{"type":"integer","minimum":0},"no_contact":{"type":"integer","minimum":0},"no_client":{"type":"integer","minimum":0},"no_research":{"type":"integer","minimum":0},"no_payload":{"type":"integer","minimum":0},"errored":{"type":"integer","minimum":0},"skipped_missing_properties":{"type":"integer","minimum":0},"skipped_no_value":{"type":"integer","minimum":0},"skipped_write_rule":{"type":"integer","minimum":0},"fallback_used":{"type":"integer","minimum":0},"sanitize_dropped_missing":{"type":"integer","minimum":0},"sanitize_dropped_invalid_enum":{"type":"integer","minimum":0},"sanitize_remapped_enum":{"type":"integer","minimum":0},"notes_created":{"type":"integer","minimum":0},"notes_updated":{"type":"integer","minimum":0},"notes_failed":{"type":"integer","minimum":0},"notes_skipped":{"type":"integer","minimum":0},"notes_disabled":{"type":"integer","minimum":0}},"required":["total","pushed","dry_run","no_contact","no_client","no_research","no_payload","errored","skipped_missing_properties","skipped_no_value","skipped_write_rule","fallback_used","sanitize_dropped_missing","sanitize_dropped_invalid_enum","sanitize_remapped_enum","notes_created","notes_updated","notes_failed","notes_skipped","notes_disabled"]},"notes":{"type":"string","enum":["pending","complete","partial","disabled"]}},"required":["status","run_id","total","summary","notes"]},"companies":{"type":"object","properties":{"status":{"type":"string","enum":["pending","complete","partial","failed"]},"expected":{"type":"integer","minimum":0,"maximum":2000},"completed":{"type":"integer","minimum":0,"maximum":2000},"results":{"type":"array","items":{"type":"object","properties":{"company_id":{"type":"string","format":"uuid"},"run_id":{"type":"string","minLength":1,"maxLength":200},"status":{"type":"string","enum":["pending","complete","partial","failed"]},"outcome":{"type":"string","enum":["succeeded","already_succeeded","refused","ineligible","dry_run","in_progress","partial","failed","conflict","task_failed"]},"crm_company_id":{"type":["string","null"],"minLength":1,"maxLength":200},"projection_source_research_id":{"type":["string","null"],"format":"uuid"}},"required":["company_id","run_id","status","outcome","crm_company_id","projection_source_research_id"]},"maxItems":2000}},"required":["status","expected","completed","results"]}},"required":["version","status","contacts","research","companies"]},"portal_id":{"type":["string","null"],"pattern":"^[0-9]{1,20}$"},"started_at":{"type":"string","minLength":1},"completed_at":{"type":["string","null"]},"workspace":{"type":"object","properties":{"workspace_ref":{"type":"string","minLength":1},"name":{"type":"string","minLength":1}},"required":["workspace_ref","name"]}},"required":["state","run_ref","requested_leads","leads_synced","error_code","portal_id","started_at","completed_at","workspace"]}]}}}},"400":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Unsupported client contract; update the installed CLI and skill."},"501":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/integrations/{provider}/connect":{"post":{"operationId":"startProviderConnect","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","enum":["hubspot","attio","slack","teams","discord"]},"required":true,"name":"provider","in":"path"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"responses":{"200":{"description":"JSON response","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"provider":{"type":"string","enum":["hubspot"]},"connect_url":{"type":"string","format":"uri"},"expires_in_seconds":{"type":"integer","exclusiveMinimum":0}},"required":["provider","connect_url","expires_in_seconds"],"additionalProperties":false},{"type":"object","properties":{"provider":{"type":"string","enum":["slack"]},"connect_url":{"type":"string","format":"uri"},"expires_in_seconds":{"type":"integer","exclusiveMinimum":0}},"required":["provider","connect_url","expires_in_seconds"],"additionalProperties":false},{"type":"object","properties":{"provider":{"type":"string","enum":["attio"]},"connect_url":{"type":"string","format":"uri"},"expires_in_seconds":{"type":"integer","exclusiveMinimum":0}},"required":["provider","connect_url","expires_in_seconds"],"additionalProperties":false},{"type":"object","properties":{"provider":{"type":"string","enum":["slack","teams","discord"]},"connect_url":{"type":"string","format":"uri"},"expires_in_seconds":{"type":"integer","exclusiveMinimum":0}},"required":["provider","connect_url","expires_in_seconds"],"additionalProperties":false}]}}}},"400":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"501":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/integrations/{provider}":{"get":{"operationId":"getProviderConnection","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","enum":["hubspot","attio","slack","teams","discord"]},"required":true,"name":"provider","in":"path"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"responses":{"200":{"description":"JSON response","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"provider":{"type":"string","enum":["hubspot"]},"status":{"type":"string","enum":["not_connected"]}},"required":["provider","status"]},{"type":"object","properties":{"provider":{"type":"string","enum":["hubspot"]},"status":{"type":"string","enum":["connected"]},"portal_id":{"type":"string","pattern":"^[0-9]{1,20}$"},"hub_domain":{"type":["string","null"]},"granted_scopes":{"type":"array","items":{"type":"string"}},"connected_at":{"type":["string","null"]},"reconnect_required":{"type":"boolean"}},"required":["provider","status","portal_id","hub_domain","granted_scopes","connected_at","reconnect_required"]},{"type":"object","properties":{"provider":{"type":"string","enum":["slack"]},"status":{"type":"string","enum":["not_connected"]}},"required":["provider","status"]},{"type":"object","properties":{"provider":{"type":"string","enum":["slack"]},"status":{"type":"string","enum":["connected"]},"team_id":{"type":"string","minLength":1},"team_name":{"type":"string","minLength":1},"enterprise_id":{"type":["string","null"]},"bot_user_id":{"type":"string","minLength":1},"scopes":{"type":"array","items":{"type":"string"}},"connected_at":{"type":["string","null"]},"reconnect_required":{"type":"boolean"}},"required":["provider","status","team_id","team_name","enterprise_id","bot_user_id","scopes","connected_at","reconnect_required"]},{"type":"object","properties":{"provider":{"type":"string","enum":["attio"]},"status":{"type":"string","enum":["not_connected"]}},"required":["provider","status"]},{"type":"object","properties":{"provider":{"type":"string","enum":["attio"]},"status":{"type":"string","enum":["connected"]},"attio_workspace_id":{"type":["string","null"],"format":"uuid"},"workspace_slug":{"type":["string","null"],"minLength":1,"maxLength":100},"workspace_name":{"type":["string","null"],"minLength":1,"maxLength":255},"granted_scopes":{"type":"array","items":{"type":"string"}},"connected_at":{"type":["string","null"]},"reconnect_required":{"type":"boolean"}},"required":["provider","status","attio_workspace_id","workspace_slug","workspace_name","granted_scopes","connected_at","reconnect_required"]},{"type":"object","properties":{"provider":{"type":"string","enum":["teams"]},"status":{"type":"string","enum":["not_connected"]}},"required":["provider","status"]},{"type":"object","properties":{"provider":{"type":"string","enum":["teams"]},"status":{"type":"string","enum":["connected"]},"tenant_id":{"type":"string","format":"uuid"},"tenant_name":{"type":"string","minLength":1,"maxLength":253},"team_id":{"type":["string","null"],"minLength":1},"team_name":{"type":["string","null"],"minLength":1},"installed":{"type":"boolean"},"reconnect_required":{"type":"boolean"}},"required":["provider","status","tenant_id","tenant_name","team_id","team_name","installed","reconnect_required"]},{"allOf":[{"oneOf":[{"type":"object","properties":{"status":{"type":"string","enum":["not_connected"]}},"required":["status"]},{"type":"object","properties":{"status":{"type":"string","enum":["connected"]},"guild_id":{"type":"string","pattern":"^[1-9][0-9]{16,19}$"},"guild_name":{"type":"string","minLength":1,"maxLength":100}},"required":["status","guild_id","guild_name"]}]},{"type":"object","properties":{"provider":{"type":"string","enum":["discord"]}},"required":["provider"]}]}]}}}},"400":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}},"delete":{"operationId":"disconnectProvider","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","enum":["hubspot","attio","slack","teams","discord"]},"required":true,"name":"provider","in":"path"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"responses":{"200":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"provider":{"type":"string","enum":["hubspot","attio","slack","teams","discord"]},"status":{"type":"string","enum":["disconnected"]},"portal_id":{"type":["string","null"]},"disconnected_at":{"type":"string","minLength":1},"workspace":{"type":"object","properties":{"workspace_ref":{"type":"string","minLength":1},"name":{"type":"string","minLength":1}},"required":["workspace_ref","name"]}},"required":["provider","status","portal_id","disconnected_at","workspace"],"additionalProperties":false}}}},"400":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/notifications":{"get":{"operationId":"getNotificationConfig","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"slack":{"oneOf":[{"type":"object","properties":{"status":{"type":"string","enum":["not_connected"]}},"required":["status"]},{"type":"object","properties":{"status":{"type":"string","enum":["connected"]},"team_id":{"type":"string","minLength":1},"team_name":{"type":"string","minLength":1},"reconnect_required":{"type":"boolean"}},"required":["status","team_id","team_name","reconnect_required"]}]},"channels":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,63}$"},"name":{"type":"string","minLength":1},"interactive":{"type":"boolean"},"capabilities":{"type":"array","items":{"type":"string"}}},"required":["code","name","interactive","capabilities"]}},"connections":{"type":"object","additionalProperties":{"oneOf":[{"type":"object","properties":{"status":{"type":"string","enum":["not_connected"]}},"required":["status"]},{"type":"object","properties":{"status":{"type":"string","enum":["connected"]},"tenant_id":{"type":"string","minLength":1},"tenant_name":{"type":"string","minLength":1},"reconnect_required":{"type":"boolean"}},"required":["status","tenant_id","tenant_name","reconnect_required"]}]}},"types":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100,"pattern":"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)+$"},"name":{"type":"string"},"channels":{"type":"array","items":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,63}$"}},"default_on":{"type":"boolean"},"paused":{"type":"boolean"},"email_fallback":{"type":"boolean"},"email_mode":{"type":"string","enum":["off","always","fallback"]},"delivery":{"type":"object","properties":{"sends":{"type":"boolean"},"reason":{"type":["string","null"],"pattern":"^[a-z][a-z_]{0,63}$"},"destinations":{"type":"array","items":{"type":"object","properties":{"destination_ref":{"type":"string","format":"uuid"},"sends":{"type":"boolean"},"role":{"type":["string","null"],"enum":["primary","fallback",null]},"reason":{"type":["string","null"],"pattern":"^[a-z][a-z_]{0,63}$"}},"required":["destination_ref","sends","role","reason"]}}},"required":["sends","reason","destinations"]}},"required":["code","name","channels","default_on","paused","email_fallback"]}},"destinations":{"type":"array","items":{"type":"object","properties":{"destination_ref":{"type":"string","format":"uuid"},"channel":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,63}$"},"address":{"type":["string","null"]},"name":{"type":["string","null"]},"active":{"type":"boolean"},"types":{"type":"array","items":{"type":"string","maxLength":100,"pattern":"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)+$"}}},"required":["destination_ref","channel","address","name","active","types"]}},"controls":{"type":"object","properties":{"global":{"type":"object","properties":{"enabled":{"type":"boolean"},"sources":{"type":"array","items":{"type":"string","enum":["email","linkedin"]},"minItems":1,"maxItems":2},"channels":{"type":"array","items":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,63}$"},"maxItems":32},"version":{"type":"integer","minimum":0}},"required":["enabled","sources","channels","version"]},"workspace":{"type":"object","properties":{"enabled":{"type":"boolean"},"sources":{"type":"array","items":{"type":"string","enum":["email","linkedin"]},"minItems":1,"maxItems":2},"channels":{"type":"array","items":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,63}$"},"maxItems":32},"version":{"type":"integer","minimum":0}},"required":["enabled","sources","channels","version"]}},"required":["global","workspace"]}},"required":["workspace_ref","slack","types","destinations"]}}}},"401":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}},"parameters":[{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}]}},"/v1/integrations/hubspot/company-mapping/context":{"get":{"operationId":"getCompanyMappingContext","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":false,"name":"workspace_ref","in":"query"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"responses":{"200":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"version":{"type":"number","enum":[1]},"workspace_ref":{"type":"string","format":"uuid"},"workspace_name":{"type":"string"},"portal_id":{"type":"string","pattern":"^\\d+$"},"integration_ref":{"type":"string","format":"uuid"},"mapping_version":{"type":"string","pattern":"^[a-f0-9]{64}$"},"schema_version":{"type":"string","pattern":"^[a-f0-9]{64}$"},"status":{"type":"string","enum":["ready","action_needed"]},"properties":{"type":"array","items":{"type":"object","additionalProperties":{}}},"mappings":{"type":"array","items":{"type":"object","additionalProperties":{}}},"configured_values":{},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":300},"message":{"type":"string","maxLength":600},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"instructions":{"type":"string","maxLength":20000},"input_schema":{"type":"object","additionalProperties":{}}},"required":["version","workspace_ref","workspace_name","portal_id","integration_ref","mapping_version","schema_version","status","properties","mappings","issues","instructions","input_schema"]}}}},"401":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"503":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"504":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/integrations/hubspot/company-mapping":{"post":{"operationId":"applyCompanyMapping","security":[{"bearerAuth":[]}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":{}}}}},"responses":{"200":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["ready"]},"workspace_ref":{"type":"string","format":"uuid"},"portal_id":{"type":"string","pattern":"^\\d+$"},"mapping_count":{"type":"integer","exclusiveMinimum":0},"schema_changes":{"type":"integer","minimum":0},"verified":{"type":"boolean","enum":[true]}},"required":["status","workspace_ref","portal_id","mapping_count","schema_changes","verified"]}}}},"400":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"503":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"504":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}},"parameters":[{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}]}},"/v1/notifications/slack/channels":{"get":{"operationId":"listSlackNotificationChannels","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"channels":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[CG][A-Z0-9]{2,31}$"},"name":{"type":"string","minLength":1,"maxLength":80},"is_private":{"type":"boolean"}},"required":["id","name","is_private"]}}},"required":["channels"]}}}},"401":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}},"parameters":[{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}]}},"/v1/notifications/{provider}/channels":{"get":{"operationId":"listNotificationChannels","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","enum":["slack","teams","discord"]},"required":true,"name":"provider","in":"path"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"responses":{"200":{"description":"JSON response","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"channels":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[CG][A-Z0-9]{2,31}$"},"name":{"type":"string","minLength":1,"maxLength":80},"is_private":{"type":"boolean"}},"required":["id","name","is_private"]}}},"required":["channels"]},{"type":"object","properties":{"channels":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^19:[^\\s;]{1,200}@thread\\.(tacv2|skype)$"},"name":{"type":"string","minLength":1,"maxLength":100}},"required":["id","name"]}}},"required":["channels"]},{"type":"object","properties":{"channels":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[1-9][0-9]{16,19}$"},"name":{"type":"string","minLength":1,"maxLength":100}},"required":["id","name"]}}},"required":["channels"]}]}}}},"400":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/notifications/destinations/{provider}":{"put":{"operationId":"upsertNotificationDestination","description":"Save, rename or reactivate a destination of the selected messaging provider while it is usable. The body's provider must match the path.","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","enum":["slack","teams","discord"]},"required":true,"name":"provider","in":"path"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"provider":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,63}$"},"address":{"type":"string","minLength":1,"maxLength":2048},"name":{"type":"string","minLength":1,"maxLength":100}},"required":["provider","address","name"],"additionalProperties":false}}}},"responses":{"200":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"destination_ref":{"type":"string","format":"uuid"},"channel":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,63}$"},"address":{"type":["string","null"]},"name":{"type":["string","null"]},"active":{"type":"boolean"},"types":{"type":"array","items":{"type":"string","maxLength":100,"pattern":"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)+$"}}},"required":["destination_ref","channel","address","name","active","types"]}}}},"400":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/notifications/destinations/slack":{"put":{"operationId":"upsertSlackNotificationDestination","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"provider":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,63}$"},"address":{"type":"string","minLength":1,"maxLength":2048},"name":{"type":"string","minLength":1,"maxLength":100}},"required":["provider","address","name"],"additionalProperties":false}}}},"responses":{"200":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"destination_ref":{"type":"string","format":"uuid"},"channel":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,63}$"},"address":{"type":["string","null"]},"name":{"type":["string","null"]},"active":{"type":"boolean"},"types":{"type":"array","items":{"type":"string","maxLength":100,"pattern":"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)+$"}}},"required":["destination_ref","channel","address","name","active","types"]}}}},"400":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}},"parameters":[{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}]}},"/v1/notifications/routes":{"put":{"operationId":"setNotificationRoute","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"notification_type":{"type":"string","maxLength":100,"pattern":"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)+$"},"destination_ref":{"type":"string","format":"uuid"},"enabled":{"type":"boolean"}},"required":["notification_type","destination_ref","enabled"],"additionalProperties":false}}}},"responses":{"200":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"destination_ref":{"type":"string","format":"uuid"},"channel":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,63}$"},"address":{"type":["string","null"]},"name":{"type":["string","null"]},"active":{"type":"boolean"},"types":{"type":"array","items":{"type":"string","maxLength":100,"pattern":"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)+$"}}},"required":["destination_ref","channel","address","name","active","types"]}}}},"400":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}},"parameters":[{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}]}},"/v1/notifications/destinations/{destination_ref}/test":{"post":{"operationId":"sendNotificationTest","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"destination_ref","in":"path"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"responses":{"200":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"destination_ref":{"type":"string","format":"uuid"},"request_ref":{"type":"string","format":"uuid"},"status":{"type":"string","enum":["queued"]}},"required":["destination_ref","request_ref","status"],"additionalProperties":false}}}},"400":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/internal/tracecrew/actions":{"post":{"description":"Internal Tracecrew dispatch token only; claim an approved Slack reply and start it once. The outcome is reported to Tracecrew when Integrations finishes.","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"case_id":{"type":"string","format":"uuid"},"proposal_id":{"type":"string","format":"uuid"},"source":{"type":"string","enum":["lifty.support"]},"workspace_id":{"type":"string","format":"uuid"},"ticket_number":{"type":"integer","exclusiveMinimum":0},"action":{"type":"object","properties":{"kind":{"type":"string","enum":["support.reply"]},"body":{"type":"string","minLength":1,"maxLength":8000}},"required":["kind","body"],"additionalProperties":false},"reply_route":{"type":"object","properties":{"channel":{"type":"string","enum":["slack_thread"]},"target":{"type":"object","properties":{"team_id":{"type":"string","pattern":"^T[A-Z0-9]+$"},"channel_id":{"type":"string","pattern":"^[CGD][A-Z0-9]+$"},"thread_ts":{"type":"string","pattern":"^\\d+\\.\\d+$"},"workspace_id":{"type":"string","format":"uuid"}},"required":["team_id","channel_id","thread_ts","workspace_id"],"additionalProperties":false}},"required":["channel","target"],"additionalProperties":false}},"required":["case_id","proposal_id","source","workspace_id","ticket_number","action","reply_route"],"additionalProperties":false}}}},"responses":{"200":{"description":"Accepted for execution, or already claimed"},"400":{"description":"Invalid dispatch"},"401":{"description":"Invalid machine bearer"},"503":{"description":"Not configured"}}}},"/v1/context/{task}":{"get":{"operationId":"getAgentTaskContext","security":[],"parameters":[{"schema":{"type":"string","minLength":1,"maxLength":64},"required":true,"name":"task","in":"path"},{"schema":{"type":"string"},"required":false,"name":"client_contract","in":"query"}],"responses":{"200":{"description":"Public task instructions and input schemas. With a session, campaigns and journeys also carry the caller workspace's writing rules, and commercial-voice, business and research-criteria the member's own connected sources","content":{"application/json":{"schema":{"type":"object","properties":{"format":{"type":"string","enum":["lifty-context.v1"]},"task":{"type":"string","minLength":1},"revision":{"type":"string","pattern":"^sha256:[a-f0-9]{64}$"},"instructions":{"type":"string","minLength":1},"schemas":{"type":"object","additionalProperties":{"type":"object","additionalProperties":{}}},"references":{"type":"object","additionalProperties":{"type":"string"}},"operations":{"type":"object","additionalProperties":{"type":"object","properties":{"method":{"type":"string","enum":["GET","POST","PATCH","DELETE"]},"readOnly":{"type":"boolean"},"route":{"type":"string","pattern":"^\\/v1\\/[A-Za-z0-9_{}\\/-]+$"},"description":{"type":"string","minLength":1},"request":{"type":"object","properties":{"path":{"type":"object","additionalProperties":{}},"query":{"type":"object","additionalProperties":{}},"body":{"type":["object","null"],"additionalProperties":{}}},"required":["path","query","body"]},"responses":{"type":"object","additionalProperties":{"type":"object","additionalProperties":{}}},"cli":{"type":"object","properties":{"operation":{"type":"string","minLength":1}},"required":["operation"],"additionalProperties":false}},"required":["method","readOnly","route","description","request","responses"]}},"drafts":{"type":"array","items":{"type":"object","properties":{"draft_ref":{"type":"string","format":"uuid"},"file":{"type":"string"},"revision":{"type":"integer","exclusiveMinimum":0}},"required":["draft_ref","file","revision"]}}},"required":["format","task","revision","instructions","schemas","references"]}}}},"404":{"description":"Unknown task"},"409":{"description":"Unsupported client contract"}}}},"/v1/workspace/next-step":{"get":{"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Next step observed from Business resources and saved run receipts","content":{"application/json":{"schema":{"type":"object","properties":{"state":{"type":"string","enum":["action_required","pending","blocked","review","complete"]},"step":{"type":"string","enum":["business","interview","configuration","submission","import","sample-review","campaign","linkedin","email"]},"reason":{"type":"string","minLength":1},"section":{"type":"string","enum":["leads","outreach","email","kickoff"],"description":"Roadmap part: 1 leads (interview, search, sample, CRM), 2 outreach (LinkedIn), 3 email (mailbox preparation), 4 kickoff (ready mailbox and email campaign)."},"actions":{"type":"array","items":{"type":"string","minLength":1},"minItems":1,"maxItems":8,"description":"What to do now, in order. Tool names are MCP names."},"gates":{"type":["object","null"],"properties":{"next":{"type":["string","null"],"enum":["motion","market","exclusions","boundaries","persona",null]},"missing":{"type":"array","items":{"type":"string","enum":["motion","market","exclusions","boundaries","persona"]}},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"]},"maxItems":20}},"required":["next","missing","issues"],"description":"Interview decisions still missing, during the interview only."},"workspace_ref":{"type":["string","null"]},"recommended_tools":{"type":"array","items":{"type":"string"},"maxItems":18},"guide":{"type":"object","additionalProperties":{},"description":"The current API-owned guide for this step."},"context_task":{"type":["string","null"],"description":"Stage whose full guide, references and operations summary_context returns for this step."},"related_contexts":{"type":"array","items":{"type":"string"},"maxItems":10,"description":"Other stages this step's actions lead to, such as targeting or research-criteria for calibration during the sample review. Read one with summary_context when the founder asks for it."},"saved":{"type":["object","null"],"additionalProperties":{}},"receipt":{"type":["object","null"],"additionalProperties":{}}},"required":["state","step","reason","section","actions","gates","workspace_ref","recommended_tools","guide","context_task","related_contexts","saved","receipt"],"additionalProperties":false}}}},"409":{"description":"Unsupported client contract; update the installed CLI and skill."}},"parameters":[{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}]}},"/v1/workspace/onboarding":{"get":{"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Each onboarding step's status and the saved resources its dashboard panel shows","content":{"application/json":{"schema":{"type":["object","null"],"properties":{"workspace_ref":{"type":"string","format":"uuid"},"finished_at":{"type":["string","null"],"format":"date-time"},"next":{"type":["string","null"],"enum":["business","target","proposal","sender","alerts","campaign",null]},"steps":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","enum":["business","target","proposal","sender","alerts","campaign"]},"status":{"type":"string","enum":["done","available","waiting","failed","locked","unknown"]},"action":{"type":["string","null"],"enum":["confirm","accept","start_sample","retry_sample","approve","connect","turn_on","continue_in_assistant","ask_lifty",null]},"optional":{"type":"boolean"}},"required":["key","status","action","optional"],"additionalProperties":false}},"profile":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"website_url":{"oneOf":[{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":2048},"provenance":{"type":"string","enum":["confirmed"]}},"required":["text","provenance"]},{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":2048},"provenance":{"type":"string","enum":["inferred"]},"source":{"type":"string","enum":["website","public_research"]}},"required":["text","provenance","source"]},{"type":"null"}]},"one_liner":{"oneOf":[{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":300},"provenance":{"type":"string","enum":["confirmed"]}},"required":["text","provenance"]},{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":300},"provenance":{"type":"string","enum":["inferred"]},"source":{"type":"string","enum":["website","public_research"]}},"required":["text","provenance","source"]},{"type":"null"}]},"description":{"oneOf":[{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":4000},"provenance":{"type":"string","enum":["confirmed"]}},"required":["text","provenance"]},{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":4000},"provenance":{"type":"string","enum":["inferred"]},"source":{"type":"string","enum":["website","public_research"]}},"required":["text","provenance","source"]},{"type":"null"}]},"value_proposition":{"oneOf":[{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":500},"provenance":{"type":"string","enum":["confirmed"]}},"required":["text","provenance"]},{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":500},"provenance":{"type":"string","enum":["inferred"]},"source":{"type":"string","enum":["website","public_research"]}},"required":["text","provenance","source"]},{"type":"null"}]},"offerings":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":200},"provenance":{"type":"string","enum":["confirmed"]}},"required":["text","provenance"]},{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":200},"provenance":{"type":"string","enum":["inferred"]},"source":{"type":"string","enum":["website","public_research"]}},"required":["text","provenance","source"]}]},"maxItems":10},"problems_solved":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":300},"provenance":{"type":"string","enum":["confirmed"]}},"required":["text","provenance"]},{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":300},"provenance":{"type":"string","enum":["inferred"]},"source":{"type":"string","enum":["website","public_research"]}},"required":["text","provenance","source"]}]},"maxItems":10},"version":{"type":"integer","exclusiveMinimum":0},"updated_at":{"type":"string","format":"date-time"},"confirmation":{"type":"object","properties":{"complete":{"type":"boolean"},"missing":{"type":"array","items":{"type":"string","enum":["value_proposition","offerings","problems_solved"]}}},"required":["complete","missing"]}},"required":["name","website_url","one_liner","description","value_proposition","offerings","problems_solved","version","updated_at","confirmation"]},"setup":{"type":"object","properties":{"submitted":{"type":"boolean"},"draft_version":{"type":["integer","null"],"minimum":0},"draft":{"type":["object","null"],"properties":{"targeting":{"type":"object","properties":{"lanes":{"type":"array","items":{"type":"object","properties":{"label":{"type":["string","null"],"description":"The lane's display name; null or absent until one is written. Name the lane to the founder by it, never by its id."},"personas":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"titles":{"type":"array","items":{"type":"string","minLength":1,"maxLength":200},"minItems":1,"maxItems":100},"persona_type":{"type":["string","null"],"minLength":1,"maxLength":100},"email_requirement":{"type":"string","enum":["verified","optional"]}},"required":["name","titles","persona_type"]},"minItems":1,"maxItems":30},"seniorities":{"type":["array","null"],"items":{"type":"string","enum":["owner","founder","c_suite","partner","vp","head","director","manager","senior","entry","intern"]},"maxItems":11},"person_locations":{"type":["array","null"],"items":{"type":"string","minLength":1,"maxLength":200},"maxItems":50},"company":{"type":"object","properties":{"locations":{"type":["array","null"],"items":{"type":"string","minLength":1,"maxLength":200},"maxItems":50},"industries":{"type":["array","null"],"items":{"type":"string","minLength":1,"maxLength":200},"maxItems":50},"industry_codes":{"type":["array","null"],"items":{"type":"string","pattern":"^[0-9]{2,6}$"},"maxItems":100},"excluded_industry_codes":{"type":["array","null"],"items":{"type":"string","pattern":"^[0-9]{2,6}$"},"maxItems":100},"domains":{"type":["array","null"],"items":{"type":"string","maxLength":253,"pattern":"^(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?\\.)+[a-zA-Z]{2,}$"},"maxItems":100},"employees":{"type":["array","null"],"items":{"type":"object","properties":{"min":{"type":"integer","minimum":1,"maximum":10000000},"max":{"type":["integer","null"],"minimum":1,"maximum":10000000}},"required":["min","max"]},"minItems":1,"maxItems":20},"keywords":{"type":["string","null"],"minLength":1,"maxLength":1000}},"required":["locations","industries","industry_codes","excluded_industry_codes","domains","employees","keywords"]}},"required":["personas","seniorities","person_locations","company"]},"minItems":1,"maxItems":20}},"required":["lanes"]},"criteria_inputs":{"type":"object","properties":{"primary_motion":{"type":["object","null"],"properties":{"name":{"type":"string","minLength":1,"maxLength":200}},"required":["name"]},"disqualifiers":{"type":"array","items":{"type":"string","minLength":1,"maxLength":1000},"maxItems":30},"size":{"type":["object","null"],"properties":{"floor":{"type":"number","exclusiveMinimum":0},"unit":{"type":"string","minLength":1,"maxLength":100}},"required":["floor","unit"]},"broad_search_confirmed":{"type":"boolean"},"operating_state":{"type":["string","null"],"minLength":1,"maxLength":1000},"parked_motions":{"type":"array","items":{"type":"string","minLength":1,"maxLength":500},"maxItems":20},"personas":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"role":{"type":"string","enum":["decision_maker","influencer"]},"tell":{"type":"string","minLength":1,"maxLength":1000}},"required":["name","role","tell"]},"maxItems":100}},"required":["primary_motion","disqualifiers","size","broad_search_confirmed","operating_state","parked_motions","personas"]},"evidence":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["website","public_research","founder_statement"]},"text":{"type":"string","minLength":1,"maxLength":4000},"source_url":{"type":"string","maxLength":2048,"format":"uri"}},"required":["kind","text"]},"maxItems":100}},"required":["targeting","criteria_inputs","evidence"]},"criteria_ready":{"type":"boolean"},"criteria_text":{"type":["string","null"]}},"required":["submitted","draft_version","draft","criteria_ready","criteria_text"],"additionalProperties":false},"lifty":{"type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"],"additionalProperties":false},"sample":{"oneOf":[{"type":"object","properties":{"state":{"type":"string","enum":["none"]}},"required":["state"]},{"type":"object","properties":{"state":{"type":"string","enum":["queued","running","succeeded","failed"]},"run_ref":{"type":"string","minLength":1},"requested_leads":{"type":"integer","exclusiveMinimum":0},"leads_discovered":{"type":["integer","null"],"minimum":0},"calibration_policy":{"type":"string","enum":["tier_a_v1","qualified_ab_v1","researched_v1"]},"leads_researched":{"type":["integer","null"],"minimum":0},"error_code":{"type":["string","null"],"enum":["calibration_sample_incomplete","calibration_review_required","research_failed","search_exhausted","targeting_matched_nobody","research_limit_reached",null]},"started_at":{"type":"string","minLength":1},"completed_at":{"type":["string","null"]},"reviewed_at":{"type":["string","null"]},"workspace":{"type":"object","properties":{"workspace_ref":{"type":"string","minLength":1},"name":{"type":"string","minLength":1}},"required":["workspace_ref","name"]},"leads":{"type":["array","null"],"items":{"type":"object","properties":{"name":{"type":"string"},"title":{"type":["string","null"]},"company":{"type":["string","null"]},"linkedin_url":{"type":["string","null"]},"lead_ref":{"type":["string","null"],"format":"uuid"},"research_url":{"type":["string","null"]},"research_available":{"type":"boolean"},"tier":{"type":["string","null"]},"fit_rationale":{"type":["string","null"]},"stage":{"type":["string","null"]}},"required":["name","title","company","linkedin_url","tier","fit_rationale","stage"]}},"lanes":{"type":["array","null"],"items":{"type":"object","properties":{"lane_ref":{"type":"string","minLength":1},"label":{"type":["string","null"],"description":"The lane's current display name (its targeting label); null until it has one. Show it with lane_id."},"matching_people":{"type":"integer","minimum":0},"personas":{"type":"array","items":{"type":"object","properties":{"persona_ref":{"type":"string","minLength":1},"name":{"type":"string"},"matching_people":{"type":"integer","minimum":0}},"required":["persona_ref","name","matching_people"]}}},"required":["lane_ref","matching_people","personas"]}},"research_mode":{"type":"string","enum":["server","local"]},"research_until":{"type":["string","null"]}},"required":["state","run_ref","requested_leads","leads_discovered","leads_researched","error_code","started_at","completed_at","reviewed_at","workspace","leads"]},{"type":"null"}]},"campaigns":{"type":["array","null"],"items":{"type":"object","properties":{"campaign_ref":{"type":"string","minLength":1},"channel":{"type":"string","enum":["email","linkedin"]},"name":{"type":"string","minLength":1},"state":{"type":"string","minLength":1}},"required":["campaign_ref","channel","name","state"],"additionalProperties":false}},"senders":{"type":["array","null"],"items":{"type":"object","properties":{"sender_ref":{"type":"string","minLength":1},"name":{"type":"string","minLength":1},"connected":{"type":"array","items":{"type":"string","enum":["email","linkedin"]}}},"required":["sender_ref","name","connected"],"additionalProperties":false}}},"required":["workspace_ref","finished_at","next","steps","profile","setup","lifty","sample","campaigns","senders"],"additionalProperties":false}}}},"409":{"description":"Unsupported client contract; update the installed CLI and skill."}},"parameters":[{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}]}},"/v1/workspace/lifty":{"get":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"responses":{"200":{"description":"The member's Lifty thread in the dashboard (Setup and Campaigns): whether @lifty is on, the messages, the latest turn's tool activity and the pending confirmation","content":{"application/json":{"schema":{"type":"object","properties":{"enabled":{"type":"boolean"},"thread_id":{"type":["string","null"],"format":"uuid"},"running":{"type":"boolean"},"messages":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"author":{"type":"string","enum":["founder","lifty"]},"text":{"type":"string","maxLength":40000},"kind":{"type":"string","enum":["dm","confirmation","answer"]},"created_at":{"type":"string","format":"date-time"}},"required":["id","author","text","kind","created_at"]},"maxItems":200},"activity":{"type":"array","items":{"type":"object","properties":{"tool":{"type":"string","minLength":1,"maxLength":200},"status":{"type":"string","enum":["ok","error","refused"]},"created_at":{"type":"string","format":"date-time"}},"required":["tool","status","created_at"]},"maxItems":200},"pending_confirmation":{"type":["object","null"],"properties":{"id":{"type":"string","format":"uuid"},"tool":{"type":"string","minLength":1,"maxLength":200},"summary":{"type":"string","maxLength":4000},"created_at":{"type":"string","format":"date-time"},"expires_at":{"type":"string","format":"date-time"}},"required":["id","tool","summary","created_at","expires_at"]},"last_turn":{"type":["object","null"],"properties":{"id":{"type":"string","format":"uuid"},"status":{"type":"string","enum":["running","answered","failed","rate_limited"]},"started_at":{"type":"string","format":"date-time"},"finished_at":{"type":["string","null"],"format":"date-time"},"suggestions":{"type":"array","items":{"type":"string","minLength":1,"maxLength":60},"maxItems":3,"default":[]}},"required":["id","status","started_at","finished_at"]}},"required":["enabled","thread_id","running","messages","activity","pending_confirmation","last_turn"]}}}},"400":{"description":"Typed error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Unsupported client contract; update the installed CLI and skill."},"502":{"description":"Typed error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/workspace/lifty/messages":{"post":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":4000},"step":{"type":"string","enum":["business","target","proposal","sender","alerts","campaign","campaigns","home","workspace"]},"page":{"type":"string","maxLength":500,"pattern":"^\\/\\S*$"},"client_id":{"type":"string","format":"uuid"}},"required":["text","step","client_id"],"additionalProperties":false}}}},"responses":{"202":{"description":"Stored for Lifty, which answers on the thread; the same client_id never stores a second message","content":{"application/json":{"schema":{"type":"object","properties":{"accepted":{"type":"boolean"},"reason":{"type":"string","minLength":1,"maxLength":64},"duplicate":{"type":"boolean","enum":[true]},"thread_id":{"type":"string","format":"uuid"},"message_id":{"type":"string","format":"uuid"}},"required":["accepted"],"additionalProperties":false}}}},"400":{"description":"Typed error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"503":{"description":"Typed error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/workspace/lifty/confirmations/{confirmation_id}":{"post":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"confirmation_id","in":"path"},{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"decision":{"type":"string","enum":["confirm","cancel"]}},"required":["decision"],"additionalProperties":false}}}},"responses":{"200":{"description":"The member's Confirm or Cancel on a pending confirmation of their own thread; a confirm starts Lifty's next turn","content":{"application/json":{"schema":{"type":"object","properties":{"decided":{"type":"boolean"},"status":{"type":["string","null"],"minLength":1,"maxLength":32},"reason":{"type":"string","minLength":1,"maxLength":64}},"required":["decided","status"],"additionalProperties":false}}}},"400":{"description":"Typed error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Unsupported client contract; update the installed CLI and skill."},"413":{"description":"Typed error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"503":{"description":"Typed error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/admin/onboarding":{"get":{"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"The next_step catalog and each workspace's current reason, computed with the admin's session"},"403":{"description":"Caller is not a LIFT admin"},"409":{"description":"Unsupported client contract; update the installed CLI and skill."}},"parameters":[{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}]}},"/v1/admin/onboarding/catalog":{"get":{"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"The next_step catalog, both context maps and the workspace list, with no read of any one workspace"},"403":{"description":"Caller is not a LIFT admin"},"409":{"description":"Unsupported client contract; update the installed CLI and skill."}},"parameters":[{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}]}},"/v1/admin/context":{"get":{"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Every published context file with its SHA-256 and uses, the context drafts and the marked test workspaces"},"403":{"description":"Caller is not a LIFT admin"},"409":{"description":"Unsupported client contract; update the installed CLI and skill."}},"parameters":[{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}]}},"/v1/workspace/business":{"get":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"responses":{"200":{"description":"Read the versioned commercial profile and confirmed-value checkpoint. No workspace returns workspace:null and profile:null.","content":{"application/json":{"schema":{"type":"object","properties":{"workspace":{"type":["object","null"],"properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string","minLength":1,"maxLength":200},"state":{"type":"string","minLength":1}},"required":["workspace_ref","name","state"]},"profile":{"type":["object","null"],"properties":{"name":{"type":"string","minLength":1,"maxLength":200},"website_url":{"oneOf":[{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":2048},"provenance":{"type":"string","enum":["confirmed"]}},"required":["text","provenance"]},{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":2048},"provenance":{"type":"string","enum":["inferred"]},"source":{"type":"string","enum":["website","public_research"]}},"required":["text","provenance","source"]},{"type":"null"}]},"one_liner":{"oneOf":[{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":300},"provenance":{"type":"string","enum":["confirmed"]}},"required":["text","provenance"]},{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":300},"provenance":{"type":"string","enum":["inferred"]},"source":{"type":"string","enum":["website","public_research"]}},"required":["text","provenance","source"]},{"type":"null"}]},"description":{"oneOf":[{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":4000},"provenance":{"type":"string","enum":["confirmed"]}},"required":["text","provenance"]},{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":4000},"provenance":{"type":"string","enum":["inferred"]},"source":{"type":"string","enum":["website","public_research"]}},"required":["text","provenance","source"]},{"type":"null"}]},"value_proposition":{"oneOf":[{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":500},"provenance":{"type":"string","enum":["confirmed"]}},"required":["text","provenance"]},{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":500},"provenance":{"type":"string","enum":["inferred"]},"source":{"type":"string","enum":["website","public_research"]}},"required":["text","provenance","source"]},{"type":"null"}]},"offerings":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":200},"provenance":{"type":"string","enum":["confirmed"]}},"required":["text","provenance"]},{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":200},"provenance":{"type":"string","enum":["inferred"]},"source":{"type":"string","enum":["website","public_research"]}},"required":["text","provenance","source"]}]},"maxItems":10},"problems_solved":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":300},"provenance":{"type":"string","enum":["confirmed"]}},"required":["text","provenance"]},{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":300},"provenance":{"type":"string","enum":["inferred"]},"source":{"type":"string","enum":["website","public_research"]}},"required":["text","provenance","source"]}]},"maxItems":10},"version":{"type":"integer","exclusiveMinimum":0},"updated_at":{"type":"string","format":"date-time"},"confirmation":{"type":"object","properties":{"complete":{"type":"boolean"},"missing":{"type":"array","items":{"type":"string","enum":["value_proposition","offerings","problems_solved"]}}},"required":["complete","missing"]}},"required":["name","website_url","one_liner","description","value_proposition","offerings","problems_solved","version","updated_at","confirmation"]}},"required":["workspace","profile"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}},"post":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"website_url":{"type":["string","null"],"maxLength":2048,"format":"uri"}},"required":["name","website_url"],"additionalProperties":false}}}},"responses":{"200":{"description":"Create a workspace with profile version 1 and empty voice. When you already have a workspace (selected by the workspace rule) it is returned unchanged with created:false. Creates no setup draft and activates no work.","content":{"application/json":{"schema":{"type":"object","properties":{"workspace":{"type":["object","null"],"properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string","minLength":1,"maxLength":200},"state":{"type":"string","minLength":1}},"required":["workspace_ref","name","state"]},"profile":{"type":["object","null"],"properties":{"name":{"type":"string","minLength":1,"maxLength":200},"website_url":{"oneOf":[{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":2048},"provenance":{"type":"string","enum":["confirmed"]}},"required":["text","provenance"]},{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":2048},"provenance":{"type":"string","enum":["inferred"]},"source":{"type":"string","enum":["website","public_research"]}},"required":["text","provenance","source"]},{"type":"null"}]},"one_liner":{"oneOf":[{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":300},"provenance":{"type":"string","enum":["confirmed"]}},"required":["text","provenance"]},{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":300},"provenance":{"type":"string","enum":["inferred"]},"source":{"type":"string","enum":["website","public_research"]}},"required":["text","provenance","source"]},{"type":"null"}]},"description":{"oneOf":[{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":4000},"provenance":{"type":"string","enum":["confirmed"]}},"required":["text","provenance"]},{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":4000},"provenance":{"type":"string","enum":["inferred"]},"source":{"type":"string","enum":["website","public_research"]}},"required":["text","provenance","source"]},{"type":"null"}]},"value_proposition":{"oneOf":[{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":500},"provenance":{"type":"string","enum":["confirmed"]}},"required":["text","provenance"]},{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":500},"provenance":{"type":"string","enum":["inferred"]},"source":{"type":"string","enum":["website","public_research"]}},"required":["text","provenance","source"]},{"type":"null"}]},"offerings":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":200},"provenance":{"type":"string","enum":["confirmed"]}},"required":["text","provenance"]},{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":200},"provenance":{"type":"string","enum":["inferred"]},"source":{"type":"string","enum":["website","public_research"]}},"required":["text","provenance","source"]}]},"maxItems":10},"problems_solved":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":300},"provenance":{"type":"string","enum":["confirmed"]}},"required":["text","provenance"]},{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":300},"provenance":{"type":"string","enum":["inferred"]},"source":{"type":"string","enum":["website","public_research"]}},"required":["text","provenance","source"]}]},"maxItems":10},"version":{"type":"integer","exclusiveMinimum":0},"updated_at":{"type":"string","format":"date-time"},"confirmation":{"type":"object","properties":{"complete":{"type":"boolean"},"missing":{"type":"array","items":{"type":"string","enum":["value_proposition","offerings","problems_solved"]}}},"required":["complete","missing"]}},"required":["name","website_url","one_liner","description","value_proposition","offerings","problems_solved","version","updated_at","confirmation"]},"created":{"type":"boolean"},"voice":{"type":"object","properties":{"version":{"type":"integer","minimum":0}},"required":["version"]}},"required":["workspace","profile","created","voice"]}}}},"201":{"description":"Workspace created","content":{"application/json":{"schema":{"type":"object","properties":{"workspace":{"type":["object","null"],"properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string","minLength":1,"maxLength":200},"state":{"type":"string","minLength":1}},"required":["workspace_ref","name","state"]},"profile":{"type":["object","null"],"properties":{"name":{"type":"string","minLength":1,"maxLength":200},"website_url":{"oneOf":[{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":2048},"provenance":{"type":"string","enum":["confirmed"]}},"required":["text","provenance"]},{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":2048},"provenance":{"type":"string","enum":["inferred"]},"source":{"type":"string","enum":["website","public_research"]}},"required":["text","provenance","source"]},{"type":"null"}]},"one_liner":{"oneOf":[{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":300},"provenance":{"type":"string","enum":["confirmed"]}},"required":["text","provenance"]},{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":300},"provenance":{"type":"string","enum":["inferred"]},"source":{"type":"string","enum":["website","public_research"]}},"required":["text","provenance","source"]},{"type":"null"}]},"description":{"oneOf":[{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":4000},"provenance":{"type":"string","enum":["confirmed"]}},"required":["text","provenance"]},{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":4000},"provenance":{"type":"string","enum":["inferred"]},"source":{"type":"string","enum":["website","public_research"]}},"required":["text","provenance","source"]},{"type":"null"}]},"value_proposition":{"oneOf":[{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":500},"provenance":{"type":"string","enum":["confirmed"]}},"required":["text","provenance"]},{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":500},"provenance":{"type":"string","enum":["inferred"]},"source":{"type":"string","enum":["website","public_research"]}},"required":["text","provenance","source"]},{"type":"null"}]},"offerings":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":200},"provenance":{"type":"string","enum":["confirmed"]}},"required":["text","provenance"]},{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":200},"provenance":{"type":"string","enum":["inferred"]},"source":{"type":"string","enum":["website","public_research"]}},"required":["text","provenance","source"]}]},"maxItems":10},"problems_solved":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":300},"provenance":{"type":"string","enum":["confirmed"]}},"required":["text","provenance"]},{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":300},"provenance":{"type":"string","enum":["inferred"]},"source":{"type":"string","enum":["website","public_research"]}},"required":["text","provenance","source"]}]},"maxItems":10},"version":{"type":"integer","exclusiveMinimum":0},"updated_at":{"type":"string","format":"date-time"},"confirmation":{"type":"object","properties":{"complete":{"type":"boolean"},"missing":{"type":"array","items":{"type":"string","enum":["value_proposition","offerings","problems_solved"]}}},"required":["complete","missing"]}},"required":["name","website_url","one_liner","description","value_proposition","offerings","problems_solved","version","updated_at","confirmation"]},"created":{"type":"boolean"},"voice":{"type":"object","properties":{"version":{"type":"integer","minimum":0}},"required":["version"]}},"required":["workspace","profile","created","voice"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}},"patch":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"expected_version":{"type":"integer","exclusiveMinimum":0},"name":{"type":"string","minLength":1,"maxLength":200},"website_url":{"oneOf":[{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":2048},"provenance":{"type":"string","enum":["confirmed"]}},"required":["text","provenance"],"additionalProperties":false},{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":2048},"provenance":{"type":"string","enum":["inferred"]},"source":{"type":"string","enum":["website","public_research"]}},"required":["text","provenance","source"],"additionalProperties":false},{"type":"null"}]},"one_liner":{"oneOf":[{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":300},"provenance":{"type":"string","enum":["confirmed"]}},"required":["text","provenance"],"additionalProperties":false},{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":300},"provenance":{"type":"string","enum":["inferred"]},"source":{"type":"string","enum":["website","public_research"]}},"required":["text","provenance","source"],"additionalProperties":false},{"type":"null"}]},"description":{"oneOf":[{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":4000},"provenance":{"type":"string","enum":["confirmed"]}},"required":["text","provenance"],"additionalProperties":false},{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":4000},"provenance":{"type":"string","enum":["inferred"]},"source":{"type":"string","enum":["website","public_research"]}},"required":["text","provenance","source"],"additionalProperties":false},{"type":"null"}]},"value_proposition":{"oneOf":[{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":500},"provenance":{"type":"string","enum":["confirmed"]}},"required":["text","provenance"],"additionalProperties":false},{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":500},"provenance":{"type":"string","enum":["inferred"]},"source":{"type":"string","enum":["website","public_research"]}},"required":["text","provenance","source"],"additionalProperties":false},{"type":"null"}]},"offerings":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":200},"provenance":{"type":"string","enum":["confirmed"]}},"required":["text","provenance"],"additionalProperties":false},{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":200},"provenance":{"type":"string","enum":["inferred"]},"source":{"type":"string","enum":["website","public_research"]}},"required":["text","provenance","source"],"additionalProperties":false}]},"maxItems":10},"problems_solved":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":300},"provenance":{"type":"string","enum":["confirmed"]}},"required":["text","provenance"],"additionalProperties":false},{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":300},"provenance":{"type":"string","enum":["inferred"]},"source":{"type":"string","enum":["website","public_research"]}},"required":["text","provenance","source"],"additionalProperties":false}]},"maxItems":10}},"required":["expected_version"],"additionalProperties":false}}}},"responses":{"200":{"description":"Synchronously edit supplied profile fields using expected_version. Omitted fields stay unchanged; null clears optional fields; arrays replace. Append a revision without regenerating criteria or changing approved campaigns.","content":{"application/json":{"schema":{"type":"object","properties":{"workspace":{"type":["object","null"],"properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string","minLength":1,"maxLength":200},"state":{"type":"string","minLength":1}},"required":["workspace_ref","name","state"]},"profile":{"type":["object","null"],"properties":{"name":{"type":"string","minLength":1,"maxLength":200},"website_url":{"oneOf":[{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":2048},"provenance":{"type":"string","enum":["confirmed"]}},"required":["text","provenance"]},{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":2048},"provenance":{"type":"string","enum":["inferred"]},"source":{"type":"string","enum":["website","public_research"]}},"required":["text","provenance","source"]},{"type":"null"}]},"one_liner":{"oneOf":[{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":300},"provenance":{"type":"string","enum":["confirmed"]}},"required":["text","provenance"]},{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":300},"provenance":{"type":"string","enum":["inferred"]},"source":{"type":"string","enum":["website","public_research"]}},"required":["text","provenance","source"]},{"type":"null"}]},"description":{"oneOf":[{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":4000},"provenance":{"type":"string","enum":["confirmed"]}},"required":["text","provenance"]},{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":4000},"provenance":{"type":"string","enum":["inferred"]},"source":{"type":"string","enum":["website","public_research"]}},"required":["text","provenance","source"]},{"type":"null"}]},"value_proposition":{"oneOf":[{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":500},"provenance":{"type":"string","enum":["confirmed"]}},"required":["text","provenance"]},{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":500},"provenance":{"type":"string","enum":["inferred"]},"source":{"type":"string","enum":["website","public_research"]}},"required":["text","provenance","source"]},{"type":"null"}]},"offerings":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":200},"provenance":{"type":"string","enum":["confirmed"]}},"required":["text","provenance"]},{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":200},"provenance":{"type":"string","enum":["inferred"]},"source":{"type":"string","enum":["website","public_research"]}},"required":["text","provenance","source"]}]},"maxItems":10},"problems_solved":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":300},"provenance":{"type":"string","enum":["confirmed"]}},"required":["text","provenance"]},{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":300},"provenance":{"type":"string","enum":["inferred"]},"source":{"type":"string","enum":["website","public_research"]}},"required":["text","provenance","source"]}]},"maxItems":10},"version":{"type":"integer","exclusiveMinimum":0},"updated_at":{"type":"string","format":"date-time"},"confirmation":{"type":"object","properties":{"complete":{"type":"boolean"},"missing":{"type":"array","items":{"type":"string","enum":["value_proposition","offerings","problems_solved"]}}},"required":["complete","missing"]}},"required":["name","website_url","one_liner","description","value_proposition","offerings","problems_solved","version","updated_at","confirmation"]}},"required":["workspace","profile"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/workspace/targeting":{"get":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid","description":"Segment to read or change (segments_get). Required for writes with several segments."},"required":false,"description":"Segment to read or change (segments_get). Required for writes with several segments.","name":"segment_id","in":"query"},{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"responses":{"200":{"description":"Read the versioned neutral targeting resource, including every existing search lane. Search allocation is platform policy. With several segments it lists each segment's lanes, labeled; segment_id reads one.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"segment_id":{"type":"string","format":"uuid"},"segment_name":{"type":"string","minLength":1,"maxLength":120},"targeting":{"type":["object","null"],"properties":{"version":{"type":"integer","exclusiveMinimum":0},"updated_at":{"type":"string","format":"date-time"},"lanes":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"label":{"type":["string","null"],"description":"The lane's display name; null or absent until one is written. Name the lane to the founder by it, never by its id."},"personas":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string","minLength":1,"maxLength":120},"titles":{"type":"array","items":{"type":"string","minLength":1,"maxLength":200},"minItems":1,"maxItems":100},"persona_type":{"type":["string","null"],"minLength":1,"maxLength":100},"email_requirement":{"type":"string","enum":["verified","optional"],"default":"verified"}},"required":["id","name","titles","persona_type"]},"minItems":1,"maxItems":30},"seniorities":{"type":["array","null"],"items":{"type":"string","enum":["owner","founder","c_suite","partner","vp","head","director","manager","senior","entry","intern"]},"maxItems":11},"person_locations":{"type":["array","null"],"items":{"type":"string","minLength":1,"maxLength":200},"maxItems":50},"company":{"type":"object","properties":{"locations":{"type":["array","null"],"items":{"type":"string","minLength":1,"maxLength":200},"maxItems":50},"industries":{"type":["array","null"],"items":{"type":"string","minLength":1,"maxLength":200},"maxItems":50},"industry_codes":{"type":["array","null"],"items":{"type":"string","pattern":"^[0-9]{2,6}$"},"maxItems":100},"excluded_industry_codes":{"type":["array","null"],"items":{"type":"string","pattern":"^[0-9]{2,6}$"},"maxItems":100},"domains":{"type":["array","null"],"items":{"type":"string","maxLength":253,"pattern":"^(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?\\.)+[a-zA-Z]{2,}$"},"maxItems":100},"employees":{"type":["array","null"],"items":{"type":"object","properties":{"min":{"type":"integer","minimum":1,"maximum":10000000},"max":{"type":["integer","null"],"minimum":1,"maximum":10000000}},"required":["min","max"]},"minItems":1,"maxItems":20},"keywords":{"type":["string","null"],"minLength":1,"maxLength":1000}},"required":["locations","industries","industry_codes","excluded_industry_codes","domains","employees","keywords"]},"allocation_weight":{"type":"integer","minimum":0,"maximum":2147483647},"assigned_sender_id":{"type":["string","null"],"format":"uuid"}},"required":["id","personas","seniorities","person_locations","company"]},"minItems":1,"maxItems":20}},"required":["version","updated_at","lanes"]},"filter_warnings":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20}},"required":["workspace_ref","segment_id","segment_name","targeting"]},{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"filter_warnings":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segments":{"type":"array","items":{"type":"object","properties":{"segment_id":{"type":"string","format":"uuid"},"segment_name":{"type":"string","minLength":1,"maxLength":120},"targeting":{"type":["object","null"],"properties":{"version":{"type":"integer","exclusiveMinimum":0},"updated_at":{"type":"string","format":"date-time"},"lanes":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"label":{"type":["string","null"],"description":"The lane's display name; null or absent until one is written. Name the lane to the founder by it, never by its id."},"personas":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string","minLength":1,"maxLength":120},"titles":{"type":"array","items":{"type":"string","minLength":1,"maxLength":200},"minItems":1,"maxItems":100},"persona_type":{"type":["string","null"],"minLength":1,"maxLength":100},"email_requirement":{"type":"string","enum":["verified","optional"],"default":"verified"}},"required":["id","name","titles","persona_type"]},"minItems":1,"maxItems":30},"seniorities":{"type":["array","null"],"items":{"type":"string","enum":["owner","founder","c_suite","partner","vp","head","director","manager","senior","entry","intern"]},"maxItems":11},"person_locations":{"type":["array","null"],"items":{"type":"string","minLength":1,"maxLength":200},"maxItems":50},"company":{"type":"object","properties":{"locations":{"type":["array","null"],"items":{"type":"string","minLength":1,"maxLength":200},"maxItems":50},"industries":{"type":["array","null"],"items":{"type":"string","minLength":1,"maxLength":200},"maxItems":50},"industry_codes":{"type":["array","null"],"items":{"type":"string","pattern":"^[0-9]{2,6}$"},"maxItems":100},"excluded_industry_codes":{"type":["array","null"],"items":{"type":"string","pattern":"^[0-9]{2,6}$"},"maxItems":100},"domains":{"type":["array","null"],"items":{"type":"string","maxLength":253,"pattern":"^(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?\\.)+[a-zA-Z]{2,}$"},"maxItems":100},"employees":{"type":["array","null"],"items":{"type":"object","properties":{"min":{"type":"integer","minimum":1,"maximum":10000000},"max":{"type":["integer","null"],"minimum":1,"maximum":10000000}},"required":["min","max"]},"minItems":1,"maxItems":20},"keywords":{"type":["string","null"],"minLength":1,"maxLength":1000}},"required":["locations","industries","industry_codes","excluded_industry_codes","domains","employees","keywords"]},"allocation_weight":{"type":"integer","minimum":0,"maximum":2147483647},"assigned_sender_id":{"type":["string","null"],"format":"uuid"}},"required":["id","personas","seniorities","person_locations","company"]},"minItems":1,"maxItems":20}},"required":["version","updated_at","lanes"]}},"required":["segment_id","segment_name","targeting"]},"maxItems":100}},"required":["workspace_ref","segments"]},{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"targeting":{"type":["object","null"],"properties":{"version":{"type":"integer","exclusiveMinimum":0},"updated_at":{"type":"string","format":"date-time"},"lanes":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"label":{"type":["string","null"],"description":"The lane's display name; null or absent until one is written. Name the lane to the founder by it, never by its id."},"personas":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string","minLength":1,"maxLength":120},"titles":{"type":"array","items":{"type":"string","minLength":1,"maxLength":200},"minItems":1,"maxItems":100},"persona_type":{"type":["string","null"],"minLength":1,"maxLength":100},"email_requirement":{"type":"string","enum":["verified","optional"],"default":"verified"}},"required":["id","name","titles","persona_type"]},"minItems":1,"maxItems":30},"seniorities":{"type":["array","null"],"items":{"type":"string","enum":["owner","founder","c_suite","partner","vp","head","director","manager","senior","entry","intern"]},"maxItems":11},"person_locations":{"type":["array","null"],"items":{"type":"string","minLength":1,"maxLength":200},"maxItems":50},"company":{"type":"object","properties":{"locations":{"type":["array","null"],"items":{"type":"string","minLength":1,"maxLength":200},"maxItems":50},"industries":{"type":["array","null"],"items":{"type":"string","minLength":1,"maxLength":200},"maxItems":50},"industry_codes":{"type":["array","null"],"items":{"type":"string","pattern":"^[0-9]{2,6}$"},"maxItems":100},"excluded_industry_codes":{"type":["array","null"],"items":{"type":"string","pattern":"^[0-9]{2,6}$"},"maxItems":100},"domains":{"type":["array","null"],"items":{"type":"string","maxLength":253,"pattern":"^(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?\\.)+[a-zA-Z]{2,}$"},"maxItems":100},"employees":{"type":["array","null"],"items":{"type":"object","properties":{"min":{"type":"integer","minimum":1,"maximum":10000000},"max":{"type":["integer","null"],"minimum":1,"maximum":10000000}},"required":["min","max"]},"minItems":1,"maxItems":20},"keywords":{"type":["string","null"],"minLength":1,"maxLength":1000}},"required":["locations","industries","industry_codes","excluded_industry_codes","domains","employees","keywords"]},"allocation_weight":{"type":"integer","minimum":0,"maximum":2147483647},"assigned_sender_id":{"type":["string","null"],"format":"uuid"}},"required":["id","personas","seniorities","person_locations","company"]},"minItems":1,"maxItems":20}},"required":["version","updated_at","lanes"]},"filter_warnings":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20}},"required":["workspace_ref","targeting"]}]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}},"patch":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid","description":"Segment to read or change (segments_get). Required for writes with several segments."},"required":false,"description":"Segment to read or change (segments_get). Required for writes with several segments.","name":"segment_id","in":"query"},{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"expected_version":{"type":"integer","exclusiveMinimum":0},"lanes":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"remove":{"type":"boolean","enum":[true]}},"required":["id","remove"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"label":{"type":"string","minLength":1,"maxLength":120,"description":"The lane's display name, required for a new lane. Write a short name from the lane's company filters and personas, naming the companies first and then the people, for example \"US staffing 50–1000 · Talent leaders\". Keep it to 120 characters and never name a vendor or data provider. Rewrite it when the lane's filters or personas change."},"allocation_weight":{"type":"integer","minimum":0,"maximum":2147483647},"assigned_sender_id":{"type":["string","null"],"format":"uuid"},"personas":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string","minLength":1,"maxLength":120},"titles":{"type":"array","items":{"type":"string","minLength":1,"maxLength":200},"minItems":1,"maxItems":100},"persona_type":{"type":["string","null"],"minLength":1,"maxLength":100},"email_requirement":{"type":"string","enum":["verified","optional"]}},"required":["name","titles","persona_type"],"additionalProperties":false},"minItems":1,"maxItems":30},"seniorities":{"type":["array","null"],"items":{"type":"string","enum":["owner","founder","c_suite","partner","vp","head","director","manager","senior","entry","intern"]},"maxItems":11},"person_locations":{"type":["array","null"],"items":{"type":"string","minLength":1,"maxLength":200},"maxItems":50},"company":{"type":"object","properties":{"locations":{"type":["array","null"],"items":{"type":"string","minLength":1,"maxLength":200},"maxItems":50},"industries":{"type":["array","null"],"items":{"type":"string","minLength":1,"maxLength":200,"enum":["accounting","airlines/aviation","alternative dispute resolution","alternative medicine","animation","apparel & fashion","architecture & planning","arts & crafts","automotive","aviation & aerospace","banking","biotechnology","broadcast media","building materials","business supplies & equipment","capital markets","chemicals","civic & social organization","civil engineering","commercial real estate","computer & network security","computer games","computer hardware","computer networking","computer software","construction","consumer electronics","consumer goods","consumer services","cosmetics","dairy","defense & space","design","e-learning","education management","electrical/electronic manufacturing","entertainment","environmental services","events services","executive office","facilities services","farming","financial services","fine art","fishery","food & beverages","food production","fund-raising","furniture","gambling & casinos","glass, ceramics & concrete","government administration","government relations","graphic design","health, wellness & fitness","higher education","hospital & health care","hospitality","human resources","import & export","individual & family services","industrial automation","information services","information technology & services","insurance","international affairs","international trade & development","internet","investment banking","investment management","judiciary","law enforcement","law practice","legal services","legislative office","leisure, travel & tourism","libraries","logistics & supply chain","luxury goods & jewelry","machinery","management consulting","maritime","market research","marketing & advertising","mechanical or industrial engineering","media production","medical devices","medical practice","mental health care","military","mining & metals","motion pictures & film","museums & institutions","music","nanotechnology","newspapers","nonprofit organization management","oil & energy","online media","outsourcing/offshoring","package/freight delivery","packaging & containers","paper & forest products","performing arts","pharmaceuticals","philanthropy","photography","plastics","political organization","primary/secondary education","printing","professional training & coaching","program development","public policy","public relations & communications","public safety","publishing","railroad manufacture","ranching","real estate","recreational facilities & services","religious institutions","renewables & environment","research","restaurants","retail","security & investigations","semiconductors","shipbuilding","sporting goods","sports","staffing & recruiting","supermarkets","telecommunications","textiles","think tanks","tobacco","translation & localization","transportation/trucking/railroad","utilities","venture capital & private equity","veterinary","warehousing","wholesale","wine & spirits","wireless","writing & editing"]},"maxItems":50},"industry_codes":{"type":["array","null"],"items":{"type":"string","pattern":"^[0-9]{2,6}$","description":"2022 NAICS code; write sector 31-33 as 31, 32 or 33."},"maxItems":100},"excluded_industry_codes":{"type":["array","null"],"items":{"type":"string","pattern":"^[0-9]{2,6}$","description":"2022 NAICS code; write sector 31-33 as 31, 32 or 33."},"maxItems":100},"domains":{"type":["array","null"],"items":{"type":"string","maxLength":253,"pattern":"^(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?\\.)+[a-zA-Z]{2,}$"},"maxItems":100},"employees":{"type":["array","null"],"items":{"type":"object","properties":{"min":{"type":"integer","minimum":1,"maximum":10000000},"max":{"type":["integer","null"],"minimum":1,"maximum":10000000}},"required":["min","max"],"additionalProperties":false},"minItems":1,"maxItems":20},"keywords":{"type":["string","null"],"minLength":1,"maxLength":1000}},"additionalProperties":false}},"required":["id"],"additionalProperties":false},{"type":"object","properties":{"label":{"type":"string","minLength":1,"maxLength":120,"description":"The lane's display name, required for a new lane. Write a short name from the lane's company filters and personas, naming the companies first and then the people, for example \"US staffing 50–1000 · Talent leaders\". Keep it to 120 characters and never name a vendor or data provider. Rewrite it when the lane's filters or personas change."},"personas":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string","minLength":1,"maxLength":120},"titles":{"type":"array","items":{"type":"string","minLength":1,"maxLength":200},"minItems":1,"maxItems":100},"persona_type":{"type":["string","null"],"minLength":1,"maxLength":100},"email_requirement":{"type":"string","enum":["verified","optional"]}},"required":["name","titles","persona_type"],"additionalProperties":false},"minItems":1,"maxItems":30},"seniorities":{"type":["array","null"],"items":{"type":"string","enum":["owner","founder","c_suite","partner","vp","head","director","manager","senior","entry","intern"]},"maxItems":11},"person_locations":{"type":["array","null"],"items":{"type":"string","minLength":1,"maxLength":200},"maxItems":50},"company":{"type":"object","properties":{"locations":{"type":["array","null"],"items":{"type":"string","minLength":1,"maxLength":200},"maxItems":50},"industries":{"type":["array","null"],"items":{"type":"string","minLength":1,"maxLength":200,"enum":["accounting","airlines/aviation","alternative dispute resolution","alternative medicine","animation","apparel & fashion","architecture & planning","arts & crafts","automotive","aviation & aerospace","banking","biotechnology","broadcast media","building materials","business supplies & equipment","capital markets","chemicals","civic & social organization","civil engineering","commercial real estate","computer & network security","computer games","computer hardware","computer networking","computer software","construction","consumer electronics","consumer goods","consumer services","cosmetics","dairy","defense & space","design","e-learning","education management","electrical/electronic manufacturing","entertainment","environmental services","events services","executive office","facilities services","farming","financial services","fine art","fishery","food & beverages","food production","fund-raising","furniture","gambling & casinos","glass, ceramics & concrete","government administration","government relations","graphic design","health, wellness & fitness","higher education","hospital & health care","hospitality","human resources","import & export","individual & family services","industrial automation","information services","information technology & services","insurance","international affairs","international trade & development","internet","investment banking","investment management","judiciary","law enforcement","law practice","legal services","legislative office","leisure, travel & tourism","libraries","logistics & supply chain","luxury goods & jewelry","machinery","management consulting","maritime","market research","marketing & advertising","mechanical or industrial engineering","media production","medical devices","medical practice","mental health care","military","mining & metals","motion pictures & film","museums & institutions","music","nanotechnology","newspapers","nonprofit organization management","oil & energy","online media","outsourcing/offshoring","package/freight delivery","packaging & containers","paper & forest products","performing arts","pharmaceuticals","philanthropy","photography","plastics","political organization","primary/secondary education","printing","professional training & coaching","program development","public policy","public relations & communications","public safety","publishing","railroad manufacture","ranching","real estate","recreational facilities & services","religious institutions","renewables & environment","research","restaurants","retail","security & investigations","semiconductors","shipbuilding","sporting goods","sports","staffing & recruiting","supermarkets","telecommunications","textiles","think tanks","tobacco","translation & localization","transportation/trucking/railroad","utilities","venture capital & private equity","veterinary","warehousing","wholesale","wine & spirits","wireless","writing & editing"]},"maxItems":50},"industry_codes":{"type":["array","null"],"items":{"type":"string","pattern":"^[0-9]{2,6}$","description":"2022 NAICS code; write sector 31-33 as 31, 32 or 33."},"maxItems":100},"excluded_industry_codes":{"type":["array","null"],"items":{"type":"string","pattern":"^[0-9]{2,6}$","description":"2022 NAICS code; write sector 31-33 as 31, 32 or 33."},"maxItems":100},"domains":{"type":["array","null"],"items":{"type":"string","maxLength":253,"pattern":"^(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?\\.)+[a-zA-Z]{2,}$"},"maxItems":100},"employees":{"type":["array","null"],"items":{"type":"object","properties":{"min":{"type":"integer","minimum":1,"maximum":10000000},"max":{"type":["integer","null"],"minimum":1,"maximum":10000000}},"required":["min","max"],"additionalProperties":false},"minItems":1,"maxItems":20},"keywords":{"type":["string","null"],"minLength":1,"maxLength":1000}},"additionalProperties":false},"allocation_weight":{"type":"integer","minimum":0,"maximum":2147483647},"assigned_sender_id":{"type":["string","null"],"format":"uuid"}},"required":["label","personas","seniorities","person_locations","company"],"additionalProperties":false}]},"minItems":1,"maxItems":20}},"required":["expected_version","lanes"],"additionalProperties":false}}}},"responses":{"200":{"description":"Synchronously change lanes: {id,...} patches a lane and keeps omitted filters, {id, remove:true} removes it, a lane without id is added; personas without id are new (the server assigns ids). Filter edits affect the next discovery. Insights Scout automatically updates criteria for new personas and changed titles or types. With several segments, send segment_id.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"segment_id":{"type":"string","format":"uuid"},"segment_name":{"type":"string","minLength":1,"maxLength":120},"targeting":{"type":["object","null"],"properties":{"version":{"type":"integer","exclusiveMinimum":0},"updated_at":{"type":"string","format":"date-time"},"lanes":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"label":{"type":["string","null"],"description":"The lane's display name; null or absent until one is written. Name the lane to the founder by it, never by its id."},"personas":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string","minLength":1,"maxLength":120},"titles":{"type":"array","items":{"type":"string","minLength":1,"maxLength":200},"minItems":1,"maxItems":100},"persona_type":{"type":["string","null"],"minLength":1,"maxLength":100},"email_requirement":{"type":"string","enum":["verified","optional"],"default":"verified"}},"required":["id","name","titles","persona_type"]},"minItems":1,"maxItems":30},"seniorities":{"type":["array","null"],"items":{"type":"string","enum":["owner","founder","c_suite","partner","vp","head","director","manager","senior","entry","intern"]},"maxItems":11},"person_locations":{"type":["array","null"],"items":{"type":"string","minLength":1,"maxLength":200},"maxItems":50},"company":{"type":"object","properties":{"locations":{"type":["array","null"],"items":{"type":"string","minLength":1,"maxLength":200},"maxItems":50},"industries":{"type":["array","null"],"items":{"type":"string","minLength":1,"maxLength":200},"maxItems":50},"industry_codes":{"type":["array","null"],"items":{"type":"string","pattern":"^[0-9]{2,6}$"},"maxItems":100},"excluded_industry_codes":{"type":["array","null"],"items":{"type":"string","pattern":"^[0-9]{2,6}$"},"maxItems":100},"domains":{"type":["array","null"],"items":{"type":"string","maxLength":253,"pattern":"^(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?\\.)+[a-zA-Z]{2,}$"},"maxItems":100},"employees":{"type":["array","null"],"items":{"type":"object","properties":{"min":{"type":"integer","minimum":1,"maximum":10000000},"max":{"type":["integer","null"],"minimum":1,"maximum":10000000}},"required":["min","max"]},"minItems":1,"maxItems":20},"keywords":{"type":["string","null"],"minLength":1,"maxLength":1000}},"required":["locations","industries","industry_codes","excluded_industry_codes","domains","employees","keywords"]},"allocation_weight":{"type":"integer","minimum":0,"maximum":2147483647},"assigned_sender_id":{"type":["string","null"],"format":"uuid"}},"required":["id","personas","seniorities","person_locations","company"]},"minItems":1,"maxItems":20}},"required":["version","updated_at","lanes"]},"filter_warnings":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20}},"required":["workspace_ref","segment_id","segment_name","targeting"]},{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"filter_warnings":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segments":{"type":"array","items":{"type":"object","properties":{"segment_id":{"type":"string","format":"uuid"},"segment_name":{"type":"string","minLength":1,"maxLength":120},"targeting":{"type":["object","null"],"properties":{"version":{"type":"integer","exclusiveMinimum":0},"updated_at":{"type":"string","format":"date-time"},"lanes":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"label":{"type":["string","null"],"description":"The lane's display name; null or absent until one is written. Name the lane to the founder by it, never by its id."},"personas":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string","minLength":1,"maxLength":120},"titles":{"type":"array","items":{"type":"string","minLength":1,"maxLength":200},"minItems":1,"maxItems":100},"persona_type":{"type":["string","null"],"minLength":1,"maxLength":100},"email_requirement":{"type":"string","enum":["verified","optional"],"default":"verified"}},"required":["id","name","titles","persona_type"]},"minItems":1,"maxItems":30},"seniorities":{"type":["array","null"],"items":{"type":"string","enum":["owner","founder","c_suite","partner","vp","head","director","manager","senior","entry","intern"]},"maxItems":11},"person_locations":{"type":["array","null"],"items":{"type":"string","minLength":1,"maxLength":200},"maxItems":50},"company":{"type":"object","properties":{"locations":{"type":["array","null"],"items":{"type":"string","minLength":1,"maxLength":200},"maxItems":50},"industries":{"type":["array","null"],"items":{"type":"string","minLength":1,"maxLength":200},"maxItems":50},"industry_codes":{"type":["array","null"],"items":{"type":"string","pattern":"^[0-9]{2,6}$"},"maxItems":100},"excluded_industry_codes":{"type":["array","null"],"items":{"type":"string","pattern":"^[0-9]{2,6}$"},"maxItems":100},"domains":{"type":["array","null"],"items":{"type":"string","maxLength":253,"pattern":"^(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?\\.)+[a-zA-Z]{2,}$"},"maxItems":100},"employees":{"type":["array","null"],"items":{"type":"object","properties":{"min":{"type":"integer","minimum":1,"maximum":10000000},"max":{"type":["integer","null"],"minimum":1,"maximum":10000000}},"required":["min","max"]},"minItems":1,"maxItems":20},"keywords":{"type":["string","null"],"minLength":1,"maxLength":1000}},"required":["locations","industries","industry_codes","excluded_industry_codes","domains","employees","keywords"]},"allocation_weight":{"type":"integer","minimum":0,"maximum":2147483647},"assigned_sender_id":{"type":["string","null"],"format":"uuid"}},"required":["id","personas","seniorities","person_locations","company"]},"minItems":1,"maxItems":20}},"required":["version","updated_at","lanes"]}},"required":["segment_id","segment_name","targeting"]},"maxItems":100}},"required":["workspace_ref","segments"]},{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"targeting":{"type":["object","null"],"properties":{"version":{"type":"integer","exclusiveMinimum":0},"updated_at":{"type":"string","format":"date-time"},"lanes":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"label":{"type":["string","null"],"description":"The lane's display name; null or absent until one is written. Name the lane to the founder by it, never by its id."},"personas":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string","minLength":1,"maxLength":120},"titles":{"type":"array","items":{"type":"string","minLength":1,"maxLength":200},"minItems":1,"maxItems":100},"persona_type":{"type":["string","null"],"minLength":1,"maxLength":100},"email_requirement":{"type":"string","enum":["verified","optional"],"default":"verified"}},"required":["id","name","titles","persona_type"]},"minItems":1,"maxItems":30},"seniorities":{"type":["array","null"],"items":{"type":"string","enum":["owner","founder","c_suite","partner","vp","head","director","manager","senior","entry","intern"]},"maxItems":11},"person_locations":{"type":["array","null"],"items":{"type":"string","minLength":1,"maxLength":200},"maxItems":50},"company":{"type":"object","properties":{"locations":{"type":["array","null"],"items":{"type":"string","minLength":1,"maxLength":200},"maxItems":50},"industries":{"type":["array","null"],"items":{"type":"string","minLength":1,"maxLength":200},"maxItems":50},"industry_codes":{"type":["array","null"],"items":{"type":"string","pattern":"^[0-9]{2,6}$"},"maxItems":100},"excluded_industry_codes":{"type":["array","null"],"items":{"type":"string","pattern":"^[0-9]{2,6}$"},"maxItems":100},"domains":{"type":["array","null"],"items":{"type":"string","maxLength":253,"pattern":"^(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?\\.)+[a-zA-Z]{2,}$"},"maxItems":100},"employees":{"type":["array","null"],"items":{"type":"object","properties":{"min":{"type":"integer","minimum":1,"maximum":10000000},"max":{"type":["integer","null"],"minimum":1,"maximum":10000000}},"required":["min","max"]},"minItems":1,"maxItems":20},"keywords":{"type":["string","null"],"minLength":1,"maxLength":1000}},"required":["locations","industries","industry_codes","excluded_industry_codes","domains","employees","keywords"]},"allocation_weight":{"type":"integer","minimum":0,"maximum":2147483647},"assigned_sender_id":{"type":["string","null"],"format":"uuid"}},"required":["id","personas","seniorities","person_locations","company"]},"minItems":1,"maxItems":20}},"required":["version","updated_at","lanes"]},"filter_warnings":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20}},"required":["workspace_ref","targeting"]}]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/workspace/research-criteria":{"get":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid","description":"Segment to read or change (segments_get). Required for writes with several segments."},"required":false,"description":"Segment to read or change (segments_get). Required for writes with several segments.","name":"segment_id","in":"query"},{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"responses":{"200":{"description":"Read the current versioned Scout criteria: text, research fields and the source versions the server recorded. With several segments it lists each segment's, labeled; segment_id reads one.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"segment_id":{"type":"string","format":"uuid"},"segment_name":{"type":"string","minLength":1,"maxLength":120},"criteria":{"type":["object","null"],"properties":{"version":{"type":"integer","minimum":0},"updated_at":{"type":"string","format":"date-time"},"text":{"type":["string","null"],"minLength":200,"maxLength":64000},"research_fields":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*){0,4}$"},"description":{"type":"string","minLength":1,"maxLength":2000},"type":{"type":"string","enum":["text","number","boolean","list","object"]}},"required":["key","description","type"]},"maxItems":100},"source_versions":{"type":"object","properties":{"profile_version":{"type":"integer","exclusiveMinimum":0},"targeting_version":{"type":"integer","exclusiveMinimum":0},"draft_version":{"type":"integer","exclusiveMinimum":0},"base_version":{"type":"string","minLength":1,"maxLength":200}},"required":["profile_version","base_version"]}},"required":["version","updated_at","text","research_fields","source_versions"]}},"required":["workspace_ref","segment_id","segment_name","criteria"]},{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"segments":{"type":"array","items":{"type":"object","properties":{"segment_id":{"type":"string","format":"uuid"},"segment_name":{"type":"string","minLength":1,"maxLength":120},"criteria":{"type":["object","null"],"properties":{"version":{"type":"integer","minimum":0},"updated_at":{"type":"string","format":"date-time"},"text":{"type":["string","null"],"minLength":200,"maxLength":64000},"research_fields":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*){0,4}$"},"description":{"type":"string","minLength":1,"maxLength":2000},"type":{"type":"string","enum":["text","number","boolean","list","object"]}},"required":["key","description","type"]},"maxItems":100},"source_versions":{"type":"object","properties":{"profile_version":{"type":"integer","exclusiveMinimum":0},"targeting_version":{"type":"integer","exclusiveMinimum":0},"draft_version":{"type":"integer","exclusiveMinimum":0},"base_version":{"type":"string","minLength":1,"maxLength":200}},"required":["profile_version","base_version"]}},"required":["version","updated_at","text","research_fields","source_versions"]}},"required":["segment_id","segment_name","criteria"]},"maxItems":100}},"required":["workspace_ref","segments"]},{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"criteria":{"type":["object","null"],"properties":{"version":{"type":"integer","minimum":0},"updated_at":{"type":"string","format":"date-time"},"text":{"type":["string","null"],"minLength":200,"maxLength":64000},"research_fields":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*){0,4}$"},"description":{"type":"string","minLength":1,"maxLength":2000},"type":{"type":"string","enum":["text","number","boolean","list","object"]}},"required":["key","description","type"]},"maxItems":100},"source_versions":{"type":"object","properties":{"profile_version":{"type":"integer","exclusiveMinimum":0},"targeting_version":{"type":"integer","exclusiveMinimum":0},"draft_version":{"type":"integer","exclusiveMinimum":0},"base_version":{"type":"string","minLength":1,"maxLength":200}},"required":["profile_version","base_version"]}},"required":["version","updated_at","text","research_fields","source_versions"]}},"required":["workspace_ref","criteria"]}]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}},"patch":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid","description":"Segment to read or change (segments_get). Required for writes with several segments."},"required":false,"description":"Segment to read or change (segments_get). Required for writes with several segments.","name":"segment_id","in":"query"},{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"expected_version":{"type":"integer","exclusiveMinimum":0},"text":{"type":"string","minLength":200,"maxLength":64000},"research_fields":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*){0,4}$"},"description":{"type":"string","minLength":1,"maxLength":2000},"type":{"type":"string","enum":["text","number","boolean","list","object"]}},"required":["key","description","type"],"additionalProperties":false},"maxItems":100}},"required":["expected_version"],"additionalProperties":false}}}},"responses":{"200":{"description":"Synchronously append a criteria revision with expected_version and text and/or research_fields. The server records source versions. New research uses the new version; saved history keeps its version. With several segments segment_id is required.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"segment_id":{"type":"string","format":"uuid"},"segment_name":{"type":"string","minLength":1,"maxLength":120},"criteria":{"type":["object","null"],"properties":{"version":{"type":"integer","minimum":0},"updated_at":{"type":"string","format":"date-time"},"text":{"type":["string","null"],"minLength":200,"maxLength":64000},"research_fields":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*){0,4}$"},"description":{"type":"string","minLength":1,"maxLength":2000},"type":{"type":"string","enum":["text","number","boolean","list","object"]}},"required":["key","description","type"]},"maxItems":100},"source_versions":{"type":"object","properties":{"profile_version":{"type":"integer","exclusiveMinimum":0},"targeting_version":{"type":"integer","exclusiveMinimum":0},"draft_version":{"type":"integer","exclusiveMinimum":0},"base_version":{"type":"string","minLength":1,"maxLength":200}},"required":["profile_version","base_version"]}},"required":["version","updated_at","text","research_fields","source_versions"]}},"required":["workspace_ref","segment_id","segment_name","criteria"]},{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"segments":{"type":"array","items":{"type":"object","properties":{"segment_id":{"type":"string","format":"uuid"},"segment_name":{"type":"string","minLength":1,"maxLength":120},"criteria":{"type":["object","null"],"properties":{"version":{"type":"integer","minimum":0},"updated_at":{"type":"string","format":"date-time"},"text":{"type":["string","null"],"minLength":200,"maxLength":64000},"research_fields":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*){0,4}$"},"description":{"type":"string","minLength":1,"maxLength":2000},"type":{"type":"string","enum":["text","number","boolean","list","object"]}},"required":["key","description","type"]},"maxItems":100},"source_versions":{"type":"object","properties":{"profile_version":{"type":"integer","exclusiveMinimum":0},"targeting_version":{"type":"integer","exclusiveMinimum":0},"draft_version":{"type":"integer","exclusiveMinimum":0},"base_version":{"type":"string","minLength":1,"maxLength":200}},"required":["profile_version","base_version"]}},"required":["version","updated_at","text","research_fields","source_versions"]}},"required":["segment_id","segment_name","criteria"]},"maxItems":100}},"required":["workspace_ref","segments"]},{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"criteria":{"type":["object","null"],"properties":{"version":{"type":"integer","minimum":0},"updated_at":{"type":"string","format":"date-time"},"text":{"type":["string","null"],"minLength":200,"maxLength":64000},"research_fields":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*){0,4}$"},"description":{"type":"string","minLength":1,"maxLength":2000},"type":{"type":"string","enum":["text","number","boolean","list","object"]}},"required":["key","description","type"]},"maxItems":100},"source_versions":{"type":"object","properties":{"profile_version":{"type":"integer","exclusiveMinimum":0},"targeting_version":{"type":"integer","exclusiveMinimum":0},"draft_version":{"type":"integer","exclusiveMinimum":0},"base_version":{"type":"string","minLength":1,"maxLength":200}},"required":["profile_version","base_version"]}},"required":["version","updated_at","text","research_fields","source_versions"]}},"required":["workspace_ref","criteria"]}]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/workspace/commercial-voice":{"get":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid","description":"Segment to read or change (segments_get). Required for writes with several segments."},"required":false,"description":"Segment to read or change (segments_get). Required for writes with several segments.","name":"segment_id","in":"query"},{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"responses":{"200":{"description":"Read general commercial tone, do/avoid rules and writing rules. Empty voice exists at version 0. With several segments it lists each segment's, labeled; segment_id reads one.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"segment_id":{"type":"string","format":"uuid"},"segment_name":{"type":"string","minLength":1,"maxLength":120},"voice":{"type":["object","null"],"properties":{"tone":{"type":["string","null"],"minLength":1,"maxLength":300},"rules":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["do","avoid"]},"text":{"type":"string","minLength":1,"maxLength":200},"source":{"type":"string","enum":["founder","founder_feedback","migration"]}},"required":["kind","text","source"]},"maxItems":20},"writing_rules":{"type":"string"},"version":{"type":"integer","minimum":0},"updated_at":{"type":"string","format":"date-time"}},"required":["tone","rules","version","updated_at"]}},"required":["workspace_ref","segment_id","segment_name","voice"]},{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"segments":{"type":"array","items":{"type":"object","properties":{"segment_id":{"type":"string","format":"uuid"},"segment_name":{"type":"string","minLength":1,"maxLength":120},"voice":{"type":["object","null"],"properties":{"tone":{"type":["string","null"],"minLength":1,"maxLength":300},"rules":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["do","avoid"]},"text":{"type":"string","minLength":1,"maxLength":200},"source":{"type":"string","enum":["founder","founder_feedback","migration"]}},"required":["kind","text","source"]},"maxItems":20},"writing_rules":{"type":"string"},"version":{"type":"integer","minimum":0},"updated_at":{"type":"string","format":"date-time"}},"required":["tone","rules","version","updated_at"]}},"required":["segment_id","segment_name","voice"]},"maxItems":100}},"required":["workspace_ref","segments"]},{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"voice":{"type":"object","properties":{"tone":{"type":["string","null"],"minLength":1,"maxLength":300},"rules":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["do","avoid"]},"text":{"type":"string","minLength":1,"maxLength":200},"source":{"type":"string","enum":["founder","founder_feedback","migration"]}},"required":["kind","text","source"]},"maxItems":20},"writing_rules":{"type":"string"},"version":{"type":"integer","minimum":0},"updated_at":{"type":"string","format":"date-time"}},"required":["tone","rules","version","updated_at"]}},"required":["workspace_ref","voice"]}]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}},"patch":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid","description":"Segment to read or change (segments_get). Required for writes with several segments."},"required":false,"description":"Segment to read or change (segments_get). Required for writes with several segments.","name":"segment_id","in":"query"},{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"expected_version":{"type":"integer","minimum":0},"tone":{"type":["string","null"],"minLength":1,"maxLength":300},"rules":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["do","avoid"]},"text":{"type":"string","minLength":1,"maxLength":200},"source":{"type":"string","enum":["founder","founder_feedback","migration"]}},"required":["kind","text","source"],"additionalProperties":false},"maxItems":20},"writing_rules":{"type":"string","maxLength":20000}},"required":["expected_version"],"additionalProperties":false}}}},"responses":{"200":{"description":"Synchronously edit general voice with expected_version (0 for the first edit). Arrays and writing_rules replace; null clears tone. New drafts use it, approved campaign pins remain, and Scout never receives voice. With several segments segment_id is required.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"segment_id":{"type":"string","format":"uuid"},"segment_name":{"type":"string","minLength":1,"maxLength":120},"voice":{"type":["object","null"],"properties":{"tone":{"type":["string","null"],"minLength":1,"maxLength":300},"rules":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["do","avoid"]},"text":{"type":"string","minLength":1,"maxLength":200},"source":{"type":"string","enum":["founder","founder_feedback","migration"]}},"required":["kind","text","source"]},"maxItems":20},"writing_rules":{"type":"string"},"version":{"type":"integer","minimum":0},"updated_at":{"type":"string","format":"date-time"}},"required":["tone","rules","version","updated_at"]}},"required":["workspace_ref","segment_id","segment_name","voice"]},{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"segments":{"type":"array","items":{"type":"object","properties":{"segment_id":{"type":"string","format":"uuid"},"segment_name":{"type":"string","minLength":1,"maxLength":120},"voice":{"type":["object","null"],"properties":{"tone":{"type":["string","null"],"minLength":1,"maxLength":300},"rules":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["do","avoid"]},"text":{"type":"string","minLength":1,"maxLength":200},"source":{"type":"string","enum":["founder","founder_feedback","migration"]}},"required":["kind","text","source"]},"maxItems":20},"writing_rules":{"type":"string"},"version":{"type":"integer","minimum":0},"updated_at":{"type":"string","format":"date-time"}},"required":["tone","rules","version","updated_at"]}},"required":["segment_id","segment_name","voice"]},"maxItems":100}},"required":["workspace_ref","segments"]},{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"voice":{"type":"object","properties":{"tone":{"type":["string","null"],"minLength":1,"maxLength":300},"rules":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["do","avoid"]},"text":{"type":"string","minLength":1,"maxLength":200},"source":{"type":"string","enum":["founder","founder_feedback","migration"]}},"required":["kind","text","source"]},"maxItems":20},"writing_rules":{"type":"string"},"version":{"type":"integer","minimum":0},"updated_at":{"type":"string","format":"date-time"}},"required":["tone","rules","version","updated_at"]}},"required":["workspace_ref","voice"]}]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/workspace/setup/draft":{"get":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"responses":{"200":{"description":"Read the workspace-owned server draft, generated criteria, gates and immutable submission state. The server draft is the only setup source.","content":{"application/json":{"schema":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"version":{"type":"integer","minimum":0},"draft":{"type":["object","null"],"properties":{"targeting":{"type":"object","properties":{"lanes":{"type":"array","items":{"type":"object","properties":{"label":{"type":["string","null"],"description":"The lane's display name; null or absent until one is written. Name the lane to the founder by it, never by its id."},"personas":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"titles":{"type":"array","items":{"type":"string","minLength":1,"maxLength":200},"minItems":1,"maxItems":100},"persona_type":{"type":["string","null"],"minLength":1,"maxLength":100},"email_requirement":{"type":"string","enum":["verified","optional"]}},"required":["name","titles","persona_type"]},"minItems":1,"maxItems":30},"seniorities":{"type":["array","null"],"items":{"type":"string","enum":["owner","founder","c_suite","partner","vp","head","director","manager","senior","entry","intern"]},"maxItems":11},"person_locations":{"type":["array","null"],"items":{"type":"string","minLength":1,"maxLength":200},"maxItems":50},"company":{"type":"object","properties":{"locations":{"type":["array","null"],"items":{"type":"string","minLength":1,"maxLength":200},"maxItems":50},"industries":{"type":["array","null"],"items":{"type":"string","minLength":1,"maxLength":200},"maxItems":50},"industry_codes":{"type":["array","null"],"items":{"type":"string","pattern":"^[0-9]{2,6}$"},"maxItems":100},"excluded_industry_codes":{"type":["array","null"],"items":{"type":"string","pattern":"^[0-9]{2,6}$"},"maxItems":100},"domains":{"type":["array","null"],"items":{"type":"string","maxLength":253,"pattern":"^(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?\\.)+[a-zA-Z]{2,}$"},"maxItems":100},"employees":{"type":["array","null"],"items":{"type":"object","properties":{"min":{"type":"integer","minimum":1,"maximum":10000000},"max":{"type":["integer","null"],"minimum":1,"maximum":10000000}},"required":["min","max"]},"minItems":1,"maxItems":20},"keywords":{"type":["string","null"],"minLength":1,"maxLength":1000}},"required":["locations","industries","industry_codes","excluded_industry_codes","domains","employees","keywords"]}},"required":["personas","seniorities","person_locations","company"]},"minItems":1,"maxItems":20}},"required":["lanes"]},"criteria_inputs":{"type":"object","properties":{"primary_motion":{"type":["object","null"],"properties":{"name":{"type":"string","minLength":1,"maxLength":200}},"required":["name"]},"disqualifiers":{"type":"array","items":{"type":"string","minLength":1,"maxLength":1000},"maxItems":30},"size":{"type":["object","null"],"properties":{"floor":{"type":"number","exclusiveMinimum":0},"unit":{"type":"string","minLength":1,"maxLength":100}},"required":["floor","unit"]},"broad_search_confirmed":{"type":"boolean"},"operating_state":{"type":["string","null"],"minLength":1,"maxLength":1000},"parked_motions":{"type":"array","items":{"type":"string","minLength":1,"maxLength":500},"maxItems":20},"personas":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"role":{"type":"string","enum":["decision_maker","influencer"]},"tell":{"type":"string","minLength":1,"maxLength":1000}},"required":["name","role","tell"]},"maxItems":100}},"required":["primary_motion","disqualifiers","size","broad_search_confirmed","operating_state","parked_motions","personas"]},"evidence":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["website","public_research","founder_statement"]},"text":{"type":"string","minLength":1,"maxLength":4000},"source_url":{"type":"string","maxLength":2048,"format":"uri"}},"required":["kind","text"]},"maxItems":100}},"required":["targeting","criteria_inputs","evidence"]},"generated_criteria":{"type":["object","null"],"properties":{"text":{"type":"string","minLength":200,"maxLength":64000},"research_fields":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*){0,4}$"},"description":{"type":"string","minLength":1,"maxLength":2000},"type":{"type":"string","enum":["text","number","boolean","list","object"]}},"required":["key","description","type"]},"maxItems":100},"source_versions":{"type":"object","properties":{"profile_version":{"type":"integer","exclusiveMinimum":0},"base_version":{"type":"string","minLength":1,"maxLength":200},"draft_version":{"type":"integer","exclusiveMinimum":0}},"required":["profile_version","base_version","draft_version"]}},"required":["text","research_fields","source_versions"]},"gates":{"type":"object","properties":{"next":{"type":["string","null"],"enum":["motion","market","exclusions","boundaries","persona",null]},"missing":{"type":"array","items":{"type":"string","enum":["motion","market","exclusions","boundaries","persona"]}},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"]},"maxItems":20}},"required":["next","missing","issues"]},"submitted":{"type":"boolean"},"updated_at":{"type":["string","null"],"format":"date-time"}},"required":["workspace_ref","version","draft","generated_criteria","gates","submitted","updated_at"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}},"patch":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"expected_version":{"type":"integer","minimum":0},"draft":{"type":"object","properties":{"targeting":{"type":"object","properties":{"lanes":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string","minLength":1,"maxLength":120,"description":"The lane's display name, required for a new lane. Write a short name from the lane's company filters and personas, naming the companies first and then the people, for example \"US staffing 50–1000 · Talent leaders\". Keep it to 120 characters and never name a vendor or data provider. Rewrite it when the lane's filters or personas change."},"personas":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"titles":{"type":"array","items":{"type":"string","minLength":1,"maxLength":200},"minItems":1,"maxItems":100},"persona_type":{"type":["string","null"],"minLength":1,"maxLength":100},"email_requirement":{"type":"string","enum":["verified","optional"]}},"required":["name","titles","persona_type"],"additionalProperties":false},"minItems":1,"maxItems":30},"seniorities":{"type":["array","null"],"items":{"type":"string","enum":["owner","founder","c_suite","partner","vp","head","director","manager","senior","entry","intern"]},"maxItems":11},"person_locations":{"type":["array","null"],"items":{"type":"string","minLength":1,"maxLength":200},"maxItems":50},"company":{"type":"object","properties":{"locations":{"type":["array","null"],"items":{"type":"string","minLength":1,"maxLength":200},"maxItems":50},"industries":{"type":["array","null"],"items":{"type":"string","minLength":1,"maxLength":200,"enum":["accounting","airlines/aviation","alternative dispute resolution","alternative medicine","animation","apparel & fashion","architecture & planning","arts & crafts","automotive","aviation & aerospace","banking","biotechnology","broadcast media","building materials","business supplies & equipment","capital markets","chemicals","civic & social organization","civil engineering","commercial real estate","computer & network security","computer games","computer hardware","computer networking","computer software","construction","consumer electronics","consumer goods","consumer services","cosmetics","dairy","defense & space","design","e-learning","education management","electrical/electronic manufacturing","entertainment","environmental services","events services","executive office","facilities services","farming","financial services","fine art","fishery","food & beverages","food production","fund-raising","furniture","gambling & casinos","glass, ceramics & concrete","government administration","government relations","graphic design","health, wellness & fitness","higher education","hospital & health care","hospitality","human resources","import & export","individual & family services","industrial automation","information services","information technology & services","insurance","international affairs","international trade & development","internet","investment banking","investment management","judiciary","law enforcement","law practice","legal services","legislative office","leisure, travel & tourism","libraries","logistics & supply chain","luxury goods & jewelry","machinery","management consulting","maritime","market research","marketing & advertising","mechanical or industrial engineering","media production","medical devices","medical practice","mental health care","military","mining & metals","motion pictures & film","museums & institutions","music","nanotechnology","newspapers","nonprofit organization management","oil & energy","online media","outsourcing/offshoring","package/freight delivery","packaging & containers","paper & forest products","performing arts","pharmaceuticals","philanthropy","photography","plastics","political organization","primary/secondary education","printing","professional training & coaching","program development","public policy","public relations & communications","public safety","publishing","railroad manufacture","ranching","real estate","recreational facilities & services","religious institutions","renewables & environment","research","restaurants","retail","security & investigations","semiconductors","shipbuilding","sporting goods","sports","staffing & recruiting","supermarkets","telecommunications","textiles","think tanks","tobacco","translation & localization","transportation/trucking/railroad","utilities","venture capital & private equity","veterinary","warehousing","wholesale","wine & spirits","wireless","writing & editing"]},"maxItems":50},"industry_codes":{"type":["array","null"],"items":{"type":"string","pattern":"^[0-9]{2,6}$","description":"2022 NAICS code; write sector 31-33 as 31, 32 or 33."},"maxItems":100},"excluded_industry_codes":{"type":["array","null"],"items":{"type":"string","pattern":"^[0-9]{2,6}$","description":"2022 NAICS code; write sector 31-33 as 31, 32 or 33."},"maxItems":100},"domains":{"type":["array","null"],"items":{"type":"string","maxLength":253,"pattern":"^(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?\\.)+[a-zA-Z]{2,}$"},"maxItems":100},"employees":{"type":["array","null"],"items":{"type":"object","properties":{"min":{"type":"integer","minimum":1,"maximum":10000000},"max":{"type":["integer","null"],"minimum":1,"maximum":10000000}},"required":["min","max"],"additionalProperties":false},"minItems":1,"maxItems":20},"keywords":{"type":["string","null"],"minLength":1,"maxLength":1000}},"required":["locations","industries","industry_codes","excluded_industry_codes","domains","employees","keywords"],"additionalProperties":false}},"required":["label","personas","seniorities","person_locations","company"],"additionalProperties":false},"minItems":1,"maxItems":20}},"required":["lanes"],"additionalProperties":false},"criteria_inputs":{"type":"object","properties":{"primary_motion":{"type":["object","null"],"properties":{"name":{"type":"string","minLength":1,"maxLength":200}},"required":["name"],"additionalProperties":false},"disqualifiers":{"type":"array","items":{"type":"string","minLength":1,"maxLength":1000},"maxItems":30},"size":{"type":["object","null"],"properties":{"floor":{"type":"number","exclusiveMinimum":0},"unit":{"type":"string","minLength":1,"maxLength":100}},"required":["floor","unit"],"additionalProperties":false},"broad_search_confirmed":{"type":"boolean"},"operating_state":{"type":["string","null"],"minLength":1,"maxLength":1000},"parked_motions":{"type":"array","items":{"type":"string","minLength":1,"maxLength":500},"maxItems":20},"personas":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"role":{"type":"string","enum":["decision_maker","influencer"]},"tell":{"type":"string","minLength":1,"maxLength":1000}},"required":["name","role","tell"],"additionalProperties":false},"maxItems":100}},"required":["primary_motion","disqualifiers","size","broad_search_confirmed","operating_state","parked_motions","personas"],"additionalProperties":false},"evidence":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["website","public_research","founder_statement"]},"text":{"type":"string","minLength":1,"maxLength":4000},"source_url":{"type":"string","maxLength":2048,"format":"uri"}},"required":["kind","text"],"additionalProperties":false},"maxItems":100}},"required":["targeting","criteria_inputs","evidence"],"additionalProperties":false},"generated_criteria":{"type":["object","null"],"properties":{"text":{"type":"string","minLength":200,"maxLength":64000},"research_fields":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*){0,4}$"},"description":{"type":"string","minLength":1,"maxLength":2000},"type":{"type":"string","enum":["text","number","boolean","list","object"]}},"required":["key","description","type"],"additionalProperties":false},"maxItems":100},"source_versions":{"type":"object","properties":{"profile_version":{"type":"integer","exclusiveMinimum":0},"base_version":{"type":"string","minLength":1,"maxLength":200}},"required":["profile_version","base_version"],"additionalProperties":false}},"required":["text","research_fields","source_versions"],"additionalProperties":false}},"required":["expected_version","draft","generated_criteria"],"additionalProperties":false}}}},"responses":{"200":{"description":"Replace the current workspace draft with the supplied complete draft and generated_criteria, or null to clear generated criteria. Uses expected_version and retains prior revisions. The server binds generated criteria to the draft version this save creates. Submitted drafts are immutable. Does not submit or activate work.","content":{"application/json":{"schema":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"version":{"type":"integer","minimum":0},"draft":{"type":["object","null"],"properties":{"targeting":{"type":"object","properties":{"lanes":{"type":"array","items":{"type":"object","properties":{"label":{"type":["string","null"],"description":"The lane's display name; null or absent until one is written. Name the lane to the founder by it, never by its id."},"personas":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"titles":{"type":"array","items":{"type":"string","minLength":1,"maxLength":200},"minItems":1,"maxItems":100},"persona_type":{"type":["string","null"],"minLength":1,"maxLength":100},"email_requirement":{"type":"string","enum":["verified","optional"]}},"required":["name","titles","persona_type"]},"minItems":1,"maxItems":30},"seniorities":{"type":["array","null"],"items":{"type":"string","enum":["owner","founder","c_suite","partner","vp","head","director","manager","senior","entry","intern"]},"maxItems":11},"person_locations":{"type":["array","null"],"items":{"type":"string","minLength":1,"maxLength":200},"maxItems":50},"company":{"type":"object","properties":{"locations":{"type":["array","null"],"items":{"type":"string","minLength":1,"maxLength":200},"maxItems":50},"industries":{"type":["array","null"],"items":{"type":"string","minLength":1,"maxLength":200},"maxItems":50},"industry_codes":{"type":["array","null"],"items":{"type":"string","pattern":"^[0-9]{2,6}$"},"maxItems":100},"excluded_industry_codes":{"type":["array","null"],"items":{"type":"string","pattern":"^[0-9]{2,6}$"},"maxItems":100},"domains":{"type":["array","null"],"items":{"type":"string","maxLength":253,"pattern":"^(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?\\.)+[a-zA-Z]{2,}$"},"maxItems":100},"employees":{"type":["array","null"],"items":{"type":"object","properties":{"min":{"type":"integer","minimum":1,"maximum":10000000},"max":{"type":["integer","null"],"minimum":1,"maximum":10000000}},"required":["min","max"]},"minItems":1,"maxItems":20},"keywords":{"type":["string","null"],"minLength":1,"maxLength":1000}},"required":["locations","industries","industry_codes","excluded_industry_codes","domains","employees","keywords"]}},"required":["personas","seniorities","person_locations","company"]},"minItems":1,"maxItems":20}},"required":["lanes"]},"criteria_inputs":{"type":"object","properties":{"primary_motion":{"type":["object","null"],"properties":{"name":{"type":"string","minLength":1,"maxLength":200}},"required":["name"]},"disqualifiers":{"type":"array","items":{"type":"string","minLength":1,"maxLength":1000},"maxItems":30},"size":{"type":["object","null"],"properties":{"floor":{"type":"number","exclusiveMinimum":0},"unit":{"type":"string","minLength":1,"maxLength":100}},"required":["floor","unit"]},"broad_search_confirmed":{"type":"boolean"},"operating_state":{"type":["string","null"],"minLength":1,"maxLength":1000},"parked_motions":{"type":"array","items":{"type":"string","minLength":1,"maxLength":500},"maxItems":20},"personas":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"role":{"type":"string","enum":["decision_maker","influencer"]},"tell":{"type":"string","minLength":1,"maxLength":1000}},"required":["name","role","tell"]},"maxItems":100}},"required":["primary_motion","disqualifiers","size","broad_search_confirmed","operating_state","parked_motions","personas"]},"evidence":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["website","public_research","founder_statement"]},"text":{"type":"string","minLength":1,"maxLength":4000},"source_url":{"type":"string","maxLength":2048,"format":"uri"}},"required":["kind","text"]},"maxItems":100}},"required":["targeting","criteria_inputs","evidence"]},"generated_criteria":{"type":["object","null"],"properties":{"text":{"type":"string","minLength":200,"maxLength":64000},"research_fields":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*){0,4}$"},"description":{"type":"string","minLength":1,"maxLength":2000},"type":{"type":"string","enum":["text","number","boolean","list","object"]}},"required":["key","description","type"]},"maxItems":100},"source_versions":{"type":"object","properties":{"profile_version":{"type":"integer","exclusiveMinimum":0},"base_version":{"type":"string","minLength":1,"maxLength":200},"draft_version":{"type":"integer","exclusiveMinimum":0}},"required":["profile_version","base_version","draft_version"]}},"required":["text","research_fields","source_versions"]},"gates":{"type":"object","properties":{"next":{"type":["string","null"],"enum":["motion","market","exclusions","boundaries","persona",null]},"missing":{"type":"array","items":{"type":"string","enum":["motion","market","exclusions","boundaries","persona"]}},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"]},"maxItems":20}},"required":["next","missing","issues"]},"submitted":{"type":"boolean"},"updated_at":{"type":["string","null"],"format":"date-time"}},"required":["workspace_ref","version","draft","generated_criteria","gates","submitted","updated_at"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}},"delete":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"responses":{"200":{"description":"Discard setup only before submission. The database refuses discarding a submitted draft. Does not delete Business resources or history.","content":{"application/json":{"schema":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"discarded":{"type":"boolean","enum":[true]}},"required":["workspace_ref","discarded"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/workspace/setup/context":{"get":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"responses":{"200":{"description":"Read the confirmed profile, saved server draft, current Scout base text/version and API-owned generation guidance. Generate only Scout criteria.","content":{"application/json":{"schema":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"profile":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"website_url":{"oneOf":[{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":2048},"provenance":{"type":"string","enum":["confirmed"]}},"required":["text","provenance"]},{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":2048},"provenance":{"type":"string","enum":["inferred"]},"source":{"type":"string","enum":["website","public_research"]}},"required":["text","provenance","source"]},{"type":"null"}]},"one_liner":{"oneOf":[{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":300},"provenance":{"type":"string","enum":["confirmed"]}},"required":["text","provenance"]},{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":300},"provenance":{"type":"string","enum":["inferred"]},"source":{"type":"string","enum":["website","public_research"]}},"required":["text","provenance","source"]},{"type":"null"}]},"description":{"oneOf":[{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":4000},"provenance":{"type":"string","enum":["confirmed"]}},"required":["text","provenance"]},{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":4000},"provenance":{"type":"string","enum":["inferred"]},"source":{"type":"string","enum":["website","public_research"]}},"required":["text","provenance","source"]},{"type":"null"}]},"value_proposition":{"oneOf":[{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":500},"provenance":{"type":"string","enum":["confirmed"]}},"required":["text","provenance"]},{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":500},"provenance":{"type":"string","enum":["inferred"]},"source":{"type":"string","enum":["website","public_research"]}},"required":["text","provenance","source"]},{"type":"null"}]},"offerings":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":200},"provenance":{"type":"string","enum":["confirmed"]}},"required":["text","provenance"]},{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":200},"provenance":{"type":"string","enum":["inferred"]},"source":{"type":"string","enum":["website","public_research"]}},"required":["text","provenance","source"]}]},"maxItems":10},"problems_solved":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":300},"provenance":{"type":"string","enum":["confirmed"]}},"required":["text","provenance"]},{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":300},"provenance":{"type":"string","enum":["inferred"]},"source":{"type":"string","enum":["website","public_research"]}},"required":["text","provenance","source"]}]},"maxItems":10},"version":{"type":"integer","exclusiveMinimum":0},"updated_at":{"type":"string","format":"date-time"},"confirmation":{"type":"object","properties":{"complete":{"type":"boolean"},"missing":{"type":"array","items":{"type":"string","enum":["value_proposition","offerings","problems_solved"]}}},"required":["complete","missing"]}},"required":["name","website_url","one_liner","description","value_proposition","offerings","problems_solved","version","updated_at","confirmation"]},"draft":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"version":{"type":"integer","minimum":0},"draft":{"type":["object","null"],"properties":{"targeting":{"type":"object","properties":{"lanes":{"type":"array","items":{"type":"object","properties":{"label":{"type":["string","null"],"description":"The lane's display name; null or absent until one is written. Name the lane to the founder by it, never by its id."},"personas":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"titles":{"type":"array","items":{"type":"string","minLength":1,"maxLength":200},"minItems":1,"maxItems":100},"persona_type":{"type":["string","null"],"minLength":1,"maxLength":100},"email_requirement":{"type":"string","enum":["verified","optional"]}},"required":["name","titles","persona_type"]},"minItems":1,"maxItems":30},"seniorities":{"type":["array","null"],"items":{"type":"string","enum":["owner","founder","c_suite","partner","vp","head","director","manager","senior","entry","intern"]},"maxItems":11},"person_locations":{"type":["array","null"],"items":{"type":"string","minLength":1,"maxLength":200},"maxItems":50},"company":{"type":"object","properties":{"locations":{"type":["array","null"],"items":{"type":"string","minLength":1,"maxLength":200},"maxItems":50},"industries":{"type":["array","null"],"items":{"type":"string","minLength":1,"maxLength":200},"maxItems":50},"industry_codes":{"type":["array","null"],"items":{"type":"string","pattern":"^[0-9]{2,6}$"},"maxItems":100},"excluded_industry_codes":{"type":["array","null"],"items":{"type":"string","pattern":"^[0-9]{2,6}$"},"maxItems":100},"domains":{"type":["array","null"],"items":{"type":"string","maxLength":253,"pattern":"^(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?\\.)+[a-zA-Z]{2,}$"},"maxItems":100},"employees":{"type":["array","null"],"items":{"type":"object","properties":{"min":{"type":"integer","minimum":1,"maximum":10000000},"max":{"type":["integer","null"],"minimum":1,"maximum":10000000}},"required":["min","max"]},"minItems":1,"maxItems":20},"keywords":{"type":["string","null"],"minLength":1,"maxLength":1000}},"required":["locations","industries","industry_codes","excluded_industry_codes","domains","employees","keywords"]}},"required":["personas","seniorities","person_locations","company"]},"minItems":1,"maxItems":20}},"required":["lanes"]},"criteria_inputs":{"type":"object","properties":{"primary_motion":{"type":["object","null"],"properties":{"name":{"type":"string","minLength":1,"maxLength":200}},"required":["name"]},"disqualifiers":{"type":"array","items":{"type":"string","minLength":1,"maxLength":1000},"maxItems":30},"size":{"type":["object","null"],"properties":{"floor":{"type":"number","exclusiveMinimum":0},"unit":{"type":"string","minLength":1,"maxLength":100}},"required":["floor","unit"]},"broad_search_confirmed":{"type":"boolean"},"operating_state":{"type":["string","null"],"minLength":1,"maxLength":1000},"parked_motions":{"type":"array","items":{"type":"string","minLength":1,"maxLength":500},"maxItems":20},"personas":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"role":{"type":"string","enum":["decision_maker","influencer"]},"tell":{"type":"string","minLength":1,"maxLength":1000}},"required":["name","role","tell"]},"maxItems":100}},"required":["primary_motion","disqualifiers","size","broad_search_confirmed","operating_state","parked_motions","personas"]},"evidence":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["website","public_research","founder_statement"]},"text":{"type":"string","minLength":1,"maxLength":4000},"source_url":{"type":"string","maxLength":2048,"format":"uri"}},"required":["kind","text"]},"maxItems":100}},"required":["targeting","criteria_inputs","evidence"]},"generated_criteria":{"type":["object","null"],"properties":{"text":{"type":"string","minLength":200,"maxLength":64000},"research_fields":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*){0,4}$"},"description":{"type":"string","minLength":1,"maxLength":2000},"type":{"type":"string","enum":["text","number","boolean","list","object"]}},"required":["key","description","type"]},"maxItems":100},"source_versions":{"type":"object","properties":{"profile_version":{"type":"integer","exclusiveMinimum":0},"base_version":{"type":"string","minLength":1,"maxLength":200},"draft_version":{"type":"integer","exclusiveMinimum":0}},"required":["profile_version","base_version","draft_version"]}},"required":["text","research_fields","source_versions"]},"gates":{"type":"object","properties":{"next":{"type":["string","null"],"enum":["motion","market","exclusions","boundaries","persona",null]},"missing":{"type":"array","items":{"type":"string","enum":["motion","market","exclusions","boundaries","persona"]}},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"]},"maxItems":20}},"required":["next","missing","issues"]},"submitted":{"type":"boolean"},"updated_at":{"type":["string","null"],"format":"date-time"}},"required":["workspace_ref","version","draft","generated_criteria","gates","submitted","updated_at"]},"base":{"type":"object","properties":{"version":{"type":"string","minLength":1,"maxLength":200},"text":{"type":"string","minLength":1,"maxLength":200000}},"required":["version","text"]},"generation_rules":{"type":"array","items":{"type":"string"}},"criteria_schema":{"type":"object","additionalProperties":{}},"draft_schema":{"type":"object","additionalProperties":{}}},"required":["workspace_ref","profile","draft","base","generation_rules","criteria_schema","draft_schema"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/workspace/setup":{"post":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"expected_draft_version":{"type":"integer","exclusiveMinimum":0}},"required":["expected_draft_version"],"additionalProperties":false}}}},"responses":{"200":{"description":"Submit expected_draft_version once: atomically create targeting and criteria at version 1. The same version replays the exact receipt. Changed profile, draft or base returns a conflict; an existing different setup cannot be replaced. Never activates research or outreach.","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"state":{"type":"string","enum":["none"]}},"required":["workspace_ref","state"]},{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"state":{"type":"string","enum":["imported"]},"setup_ref":{"type":"string","format":"uuid"},"draft_version":{"type":"integer","exclusiveMinimum":0},"profile_version":{"type":"integer","exclusiveMinimum":0},"targeting_version":{"type":"integer","exclusiveMinimum":0},"criteria_version":{"type":"integer","exclusiveMinimum":0},"submitted_at":{"type":"string","format":"date-time"}},"required":["workspace_ref","state","setup_ref","draft_version","profile_version","targeting_version","criteria_version","submitted_at"]}]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/workspace/setup/status":{"get":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"responses":{"200":{"description":"Read the persisted setup_ref and exact source/resource versions. Imported confirms both resources exist; a lost submit response is resolved by this read.","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"state":{"type":"string","enum":["none"]}},"required":["workspace_ref","state"]},{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"state":{"type":"string","enum":["imported"]},"setup_ref":{"type":"string","format":"uuid"},"draft_version":{"type":"integer","exclusiveMinimum":0},"profile_version":{"type":"integer","exclusiveMinimum":0},"targeting_version":{"type":"integer","exclusiveMinimum":0},"criteria_version":{"type":"integer","exclusiveMinimum":0},"submitted_at":{"type":"string","format":"date-time"}},"required":["workspace_ref","state","setup_ref","draft_version","profile_version","targeting_version","criteria_version","submitted_at"]}]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/workspace/research-schedule":{"get":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"responses":{"200":{"description":"Read the weekly research schedule: active or paused, weekly_target, this workspace's plan with its weekly research limit and, when the plan has one, its total and what is left of it, and the effective target (the weekly target capped by the limit and by what was left of the total when the week began). Until the founder sets a number, weekly_target follows the plan and reads as its limit. Every workspace has one from creation, paused at version 0.","content":{"application/json":{"schema":{"type":"object","properties":{"version":{"type":"integer","minimum":0},"state":{"type":"string","enum":["active","paused"]},"weekly_target":{"type":"integer","exclusiveMinimum":0},"limit":{"type":"object","properties":{"weekly_research_limit":{"type":"integer","exclusiveMinimum":0},"total_research_limit":{"type":["integer","null"],"exclusiveMinimum":0},"total_remaining":{"type":["integer","null"],"minimum":0},"plan_name":{"type":"string","minLength":1},"source":{"type":"string","enum":["free","paid"]},"effective_from":{"type":"string","format":"date-time"}},"required":["weekly_research_limit","source","effective_from"]},"effective_target":{"type":"integer","minimum":0},"updated_at":{"type":"string","format":"date-time"},"updated_by":{"type":["string","null"],"format":"uuid"}},"required":["version","state","weekly_target","limit","effective_target","updated_at","updated_by"]}}}},"400":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}},"patch":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"expected_version":{"type":"integer","minimum":0},"weekly_target":{"type":["integer","null"],"minimum":1,"maximum":999999999,"description":"People per week, from 1 up to the limit, or null to follow the plan's full limit."}},"required":["expected_version","weekly_target"],"additionalProperties":false}}}},"responses":{"200":{"description":"Synchronously change weekly_target with expected_version: a number from 1 up to the limit, or null to follow the plan's full limit again, including later plan changes. It applies to the current week; people already completed or reserved stay counted. A target above the weekly research limit returns TARGET_ABOVE_LIMIT with the limit. Does not activate research.","content":{"application/json":{"schema":{"type":"object","properties":{"version":{"type":"integer","minimum":0},"state":{"type":"string","enum":["active","paused"]},"weekly_target":{"type":"integer","exclusiveMinimum":0},"limit":{"type":"object","properties":{"weekly_research_limit":{"type":"integer","exclusiveMinimum":0},"total_research_limit":{"type":["integer","null"],"exclusiveMinimum":0},"total_remaining":{"type":["integer","null"],"minimum":0},"plan_name":{"type":"string","minLength":1},"source":{"type":"string","enum":["free","paid"]},"effective_from":{"type":"string","format":"date-time"}},"required":["weekly_research_limit","source","effective_from"]},"effective_target":{"type":"integer","minimum":0},"updated_at":{"type":"string","format":"date-time"},"updated_by":{"type":["string","null"],"format":"uuid"}},"required":["version","state","weekly_target","limit","effective_target","updated_at","updated_by"]}}}},"400":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/workspace/research-schedule/activate":{"post":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"expected_version":{"type":"integer","minimum":0}},"required":["expected_version"],"additionalProperties":false}}}},"responses":{"200":{"description":"Activate weekly research with expected_version. Requires saved targeting and research criteria; does not require a sample, CRM or outreach. Research starts from the next platform cycle within the remaining weekly volume. Repeating the current state returns it unchanged. Never activates outreach.","content":{"application/json":{"schema":{"type":"object","properties":{"version":{"type":"integer","minimum":0},"state":{"type":"string","enum":["active","paused"]},"weekly_target":{"type":"integer","exclusiveMinimum":0},"limit":{"type":"object","properties":{"weekly_research_limit":{"type":"integer","exclusiveMinimum":0},"total_research_limit":{"type":["integer","null"],"exclusiveMinimum":0},"total_remaining":{"type":["integer","null"],"minimum":0},"plan_name":{"type":"string","minLength":1},"source":{"type":"string","enum":["free","paid"]},"effective_from":{"type":"string","format":"date-time"}},"required":["weekly_research_limit","source","effective_from"]},"effective_target":{"type":"integer","minimum":0},"updated_at":{"type":"string","format":"date-time"},"updated_by":{"type":["string","null"],"format":"uuid"}},"required":["version","state","weekly_target","limit","effective_target","updated_at","updated_by"]}}}},"400":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/workspace/research-schedule/pause":{"post":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"expected_version":{"type":"integer","minimum":0}},"required":["expected_version"],"additionalProperties":false}}}},"responses":{"200":{"description":"Pause weekly research with expected_version. No new people are admitted; research already in progress finishes and its results stay. Repeating the current state returns it unchanged. Does not change outreach, CRM or the sample.","content":{"application/json":{"schema":{"type":"object","properties":{"version":{"type":"integer","minimum":0},"state":{"type":"string","enum":["active","paused"]},"weekly_target":{"type":"integer","exclusiveMinimum":0},"limit":{"type":"object","properties":{"weekly_research_limit":{"type":"integer","exclusiveMinimum":0},"total_research_limit":{"type":["integer","null"],"exclusiveMinimum":0},"total_remaining":{"type":["integer","null"],"minimum":0},"plan_name":{"type":"string","minLength":1},"source":{"type":"string","enum":["free","paid"]},"effective_from":{"type":"string","format":"date-time"}},"required":["weekly_research_limit","source","effective_from"]},"effective_target":{"type":"integer","minimum":0},"updated_at":{"type":"string","format":"date-time"},"updated_by":{"type":["string","null"],"format":"uuid"}},"required":["version","state","weekly_target","limit","effective_target","updated_at","updated_by"]}}}},"400":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/workspace/research-schedule/status":{"get":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"date","description":"The Monday (UTC) that starts the week, YYYY-MM-DD."},"required":false,"description":"The Monday (UTC) that starts the week, YYYY-MM-DD.","name":"week","in":"query"},{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"responses":{"200":{"description":"Read one Monday-to-Monday UTC week (default: the current week): completed and qualified people, reservations, remaining volume, a per-day breakdown that adds up to completed, the reset time and, for a closed week under target that the workspace existed for in full, the shortfall reason (paused when the schedule was paused at any time in the week).","content":{"application/json":{"schema":{"type":"object","properties":{"week_start":{"type":"string","format":"date"},"resets_at":{"type":"string","format":"date-time"},"state":{"type":"string","enum":["active","paused"]},"policy_version":{"type":["integer","null"],"minimum":0},"limit":{"type":"object","properties":{"weekly_research_limit":{"type":"integer","exclusiveMinimum":0},"total_research_limit":{"type":["integer","null"],"exclusiveMinimum":0},"total_remaining":{"type":["integer","null"],"minimum":0},"plan_name":{"type":"string","minLength":1},"source":{"type":"string","enum":["free","paid"]},"effective_from":{"type":"string","format":"date-time"}},"required":["weekly_research_limit","source","effective_from"]},"effective_target":{"type":"integer","minimum":0},"completed":{"type":"integer","minimum":0},"qualified":{"type":"integer","minimum":0},"reserved":{"type":"integer","minimum":0},"remaining":{"type":"integer","minimum":0},"daily":{"type":"array","items":{"type":"object","properties":{"date":{"type":"string","format":"date"},"completed":{"type":"integer","minimum":0}},"required":["date","completed"]},"minItems":1,"maxItems":7},"shortfall":{"type":["object","null"],"properties":{"count":{"type":"integer","exclusiveMinimum":0},"reason":{"type":"string","enum":["search_exhausted","research_failed","paused"]}},"required":["count","reason"]}},"required":["week_start","resets_at","state","policy_version","limit","effective_target","completed","qualified","reserved","remaining","daily","shortfall"]}}}},"400":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/workspace/leads":{"get":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":100,"default":25},"required":false,"name":"limit","in":"query"},{"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$"},"required":false,"name":"cursor","in":"query"},{"schema":{"type":"array","items":{"type":"string","enum":["A","B","C"]},"minItems":1,"maxItems":3},"required":false,"name":"grade","in":"query"},{"schema":{"type":"string","format":"date","description":"The Monday (UTC) that starts the week, YYYY-MM-DD."},"required":false,"description":"The Monday (UTC) that starts the week, YYYY-MM-DD.","name":"week","in":"query"},{"schema":{"type":"string","format":"uuid","description":"Only this segment's members, graded by it."},"required":false,"description":"Only this segment's members, graded by it.","name":"segment_id","in":"query"},{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"responses":{"200":{"description":"List researched people, newest first: grade, fit rationale, research time and a dashboard link. Filter by grade and by the Monday of the week their first research completed; page with next_cursor. With several segments each person lists every segment's grade; segment_id keeps one segment's members, and a page may then hold fewer than limit. Read-only; detail and feedback live in the dashboard.","content":{"application/json":{"schema":{"type":"object","properties":{"segment_id":{"type":"string","format":"uuid"},"segment_name":{"type":"string"},"items":{"type":"array","items":{"type":"object","properties":{"lead_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"title":{"type":["string","null"]},"company":{"type":["string","null"]},"linkedin_url":{"type":["string","null"]},"grade":{"type":["string","null"],"enum":["A","B","C",null]},"fit_rationale":{"type":["string","null"]},"researched_at":{"type":"string","format":"date-time"},"graded_at":{"type":["string","null"],"format":"date-time"},"criteria_version":{"type":["integer","null"],"minimum":0},"research_url":{"type":"string","format":"uri"},"segments":{"type":"array","items":{"type":"object","properties":{"segment_id":{"type":"string","format":"uuid"},"segment_name":{"type":"string"},"grade":{"type":["string","null"],"enum":["A","B","C",null]},"qualified":{"type":["boolean","null"]},"graded_at":{"type":["string","null"],"format":"date-time"}},"required":["segment_id","segment_name","grade","qualified","graded_at"]},"maxItems":100}},"required":["lead_ref","name","title","company","linkedin_url","grade","fit_rationale","researched_at","research_url"]},"maxItems":100},"next_cursor":{"type":["string","null"]}},"required":["items","next_cursor"]}}}},"400":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/workspace/senders":{"get":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"responses":{"200":{"description":"Read the selected workspace's senders (named people) with their name, signature, booking link, version and every account they own, including disconnected history. Find a known person here and use the returned id; names are not identifiers. Deleted senders are not listed. Read-only.","content":{"application/json":{"schema":{"type":"object","properties":{"workspace":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string","minLength":1,"maxLength":200},"state":{"type":"string","minLength":1}},"required":["workspace_ref","name","state"]},"senders":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"version":{"type":"integer","exclusiveMinimum":0},"name":{"type":"string","minLength":1,"maxLength":200},"signature":{"type":["string","null"],"minLength":1},"booking_url":{"type":["string","null"],"maxLength":2048},"accounts":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"sender_id":{"type":"string","format":"uuid"},"channel":{"type":"string","enum":["email","linkedin"]},"identity":{"type":["string","null"],"minLength":1,"maxLength":2048},"status":{"type":"string","enum":["connected","needs_reconnect","disconnected"]},"state":{"type":"string","enum":["active","paused"]},"sending":{"type":"object","properties":{"allowed":{"type":"boolean"},"reason":{"type":["string","null"],"enum":["paused_by_member","paused_by_lift","channel_paused","workspace_suspended","disconnected","needs_reconnect","status_unconfirmed","connection_unavailable","sender_deleted","mailbox_not_ready","previous_automation_active","blocked",null]},"scope":{"type":["string","null"],"enum":["account","sender","channel","workspace","all_workspaces",null]}},"required":["allowed","reason","scope"]},"limits":{"anyOf":[{"type":"object","properties":{"emails_per_day":{"type":"integer","minimum":0}},"required":["emails_per_day"]},{"type":"object","properties":{"invitations_per_day":{"type":"integer","minimum":0},"messages_per_day":{"type":"integer","minimum":0},"invitations_per_7_days":{"type":"integer","minimum":0}},"required":["invitations_per_day","messages_per_day","invitations_per_7_days"]},{"type":"null"}]},"disconnect_pause":{"type":"object","properties":{"count":{"type":"integer","minimum":0},"can_resume":{"type":"boolean"}},"required":["count","can_resume"]},"checked_at":{"type":["string","null"],"format":"date-time"},"observation":{"type":"object","properties":{"state":{"type":"string","enum":["verified","unverified"]}},"required":["state"]},"connected_at":{"type":["string","null"],"format":"date-time"},"disconnected_at":{"type":["string","null"],"format":"date-time"},"access_revoked_at":{"type":["string","null"],"format":"date-time"},"access_removal":{"type":["string","null"],"enum":["pending","confirmed","not_applicable",null]},"declaration":{"anyOf":[{"type":"object","properties":{"mailbox_use":{"type":"string","enum":["habitual","dedicated"]},"declared_by":{"type":["string","null"],"format":"uuid"},"declared_at":{"type":"string","format":"date-time"}},"required":["mailbox_use","declared_by","declared_at"]},{"type":"object","properties":{"habitual_personal_account":{"type":"boolean","enum":[true]},"no_other_automation":{"type":"boolean","enum":[true]},"declared_by":{"type":["string","null"],"format":"uuid"},"declared_at":{"type":"string","format":"date-time"}},"required":["habitual_personal_account","no_other_automation","declared_by","declared_at"]},{"type":"null"}]},"sends":{"type":["object","null"],"properties":{"today":{"type":"integer","minimum":0},"last_7_days":{"type":"integer","minimum":0}},"required":["today","last_7_days"]},"participation":{"type":"object","properties":{"status":{"type":"string","enum":["sending","no_active_campaign","waiting_for_first_lead","paused","not_connected","email_not_ready"]},"cause":{"type":"string","enum":["active_journeys","no_active_campaign_on_channel","no_lead_yet","paused_by_member","paused_by_disconnect","campaign_paused","workspace_suspended","sender_off","sender_paused","paused_by_lift","disconnected","needs_reconnect","unverified","warming","placement_required","declaration_required","signature_missing","mailbox_not_ready","health_hold","retired"]},"category":{"type":["string","null"],"enum":["transient","fixable_by_client","long","intentional",null]},"since":{"type":["string","null"],"format":"date-time"},"since_estimated":{"type":"boolean"},"waiting_journeys":{"type":"integer","minimum":0},"stop":{"type":"object","properties":{"scope":{"type":"string","enum":["account","sender","channel","workspace","all_workspaces"]},"origin":{"type":"string","enum":["person","system"]},"reason":{"type":"string","enum":["deliverability_review","account_safety","setup","client_request","maintenance","other","cutover","not_executed_by_lifty","ambiguous_send","provider_risk","recipient_restricted","recorded_before_lif1710","unspecified"]},"review_by":{"type":"string","format":"date-time"}},"required":["scope","origin","reason","review_by"]},"health":{"type":"object","properties":{"reason":{"type":"string","enum":["complaint","bounce_rate","provider_health","placement_failed","safety_check_failed"]}},"required":["reason"]},"also":{"type":"array","items":{"type":"object","properties":{"status":{"type":"string","enum":["sending","no_active_campaign","waiting_for_first_lead","paused","not_connected","email_not_ready"]},"cause":{"type":"string","enum":["active_journeys","no_active_campaign_on_channel","no_lead_yet","paused_by_member","paused_by_disconnect","campaign_paused","workspace_suspended","sender_off","sender_paused","paused_by_lift","disconnected","needs_reconnect","unverified","warming","placement_required","declaration_required","signature_missing","mailbox_not_ready","health_hold","retired"]},"category":{"type":["string","null"],"enum":["transient","fixable_by_client","long","intentional",null]},"since":{"type":["string","null"],"format":"date-time"},"next_step":{"type":"object","properties":{"label":{"type":"string","minLength":1,"maxLength":200},"owner":{"type":"string","enum":["member","lifty","none"]},"action":{"type":"string","enum":["none","wait","lifty_review","contact_lift","reconnect","resume_account","resume_sender","turn_on_sender","resume_campaigns","resume_campaign","set_mailbox_use","add_signature"]},"since":{"type":["string","null"],"format":"date-time"},"since_estimated":{"type":["boolean","null"]},"review_by":{"type":["string","null"],"format":"date-time"}},"required":["label","owner","action","since","since_estimated","review_by"]}},"required":["status","cause","category","since"]},"maxItems":20},"next_step":{"type":"object","properties":{"label":{"type":"string","minLength":1,"maxLength":200},"owner":{"type":"string","enum":["member","lifty","none"]},"action":{"type":"string","enum":["none","wait","lifty_review","contact_lift","reconnect","resume_account","resume_sender","turn_on_sender","resume_campaigns","resume_campaign","set_mailbox_use","add_signature"]},"since":{"type":["string","null"],"format":"date-time"},"since_estimated":{"type":["boolean","null"]},"review_by":{"type":["string","null"],"format":"date-time"}},"required":["label","owner","action","since","since_estimated","review_by"]}},"required":["status","cause"]}},"required":["id","sender_id","channel","identity","status","state","sending","limits","checked_at","observation","connected_at","disconnected_at","access_revoked_at","access_removal","declaration","sends","participation"]},"maxItems":1000},"sending":{"oneOf":[{"type":"object","properties":{"state":{"type":"string","enum":["off"]},"off_at":{"type":"string","format":"date-time"},"reason":{"type":"string","minLength":1},"drain_to_sender_id":{"type":"string","format":"uuid"},"drain_mode":{"type":"string","enum":["unused_channels","continue"]},"leads_remaining":{"type":"integer","minimum":0},"pending_transfer":{"type":"object","properties":{"retired_at":{"type":"string","format":"date-time"},"leads_awaiting_transfer":{"type":"integer","minimum":0},"target_sender_id":{"type":"string","format":"uuid"},"handoff_ref":{"type":["string","null"],"pattern":"^[0-9]{1,20}$"}},"required":["retired_at","leads_awaiting_transfer","target_sender_id","handoff_ref"]},"accounts_retire_at":{"type":["string","null"],"format":"date-time"},"accounts_retired_at":{"type":["string","null"],"format":"date-time"}},"required":["state","off_at","reason","drain_to_sender_id","drain_mode","leads_remaining"]},{"type":"object","properties":{"state":{"type":"string","enum":["paused"]},"paused_at":{"type":"string","format":"date-time"},"reason":{"type":["string","null"],"minLength":1}},"required":["state","paused_at","reason"]}]}},"required":["id","version","name","signature","booking_url","accounts"]},"maxItems":1000}},"required":["workspace","senders"]}}}},"400":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"503":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}},"post":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200,"pattern":"^[^\\u0000-\\u001f\\u007f@]+$"},"signature":{"type":"string","description":"Plain text; 1–500 characters after line-ending and surrounding-whitespace normalization. Links must use https."},"booking_url":{"type":"string","maxLength":2048,"format":"uri"}},"required":["name"],"additionalProperties":false}}}},"responses":{"201":{"description":"Create a new person at version 1 with no accounts. Only for someone absent from the senders roster: it never looks up or reuses a person by name, and two people may share a name. Signature is the founder's own words (plain text, at most 500 characters, links only with https). Ask for the optional booking_url: replies that earn a meeting offer it. Never connects, activates or sends. After a lost response read the roster before retrying.","content":{"application/json":{"schema":{"type":"object","properties":{"workspace":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string","minLength":1,"maxLength":200},"state":{"type":"string","minLength":1}},"required":["workspace_ref","name","state"]},"sender":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"version":{"type":"integer","exclusiveMinimum":0},"name":{"type":"string","minLength":1,"maxLength":200},"signature":{"type":["string","null"],"minLength":1},"booking_url":{"type":["string","null"],"maxLength":2048},"accounts":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"sender_id":{"type":"string","format":"uuid"},"channel":{"type":"string","enum":["email","linkedin"]},"identity":{"type":["string","null"],"minLength":1,"maxLength":2048},"status":{"type":"string","enum":["connected","needs_reconnect","disconnected"]},"state":{"type":"string","enum":["active","paused"]},"sending":{"type":"object","properties":{"allowed":{"type":"boolean"},"reason":{"type":["string","null"],"enum":["paused_by_member","paused_by_lift","channel_paused","workspace_suspended","disconnected","needs_reconnect","status_unconfirmed","connection_unavailable","sender_deleted","mailbox_not_ready","previous_automation_active","blocked",null]},"scope":{"type":["string","null"],"enum":["account","sender","channel","workspace","all_workspaces",null]}},"required":["allowed","reason","scope"]},"limits":{"anyOf":[{"type":"object","properties":{"emails_per_day":{"type":"integer","minimum":0}},"required":["emails_per_day"]},{"type":"object","properties":{"invitations_per_day":{"type":"integer","minimum":0},"messages_per_day":{"type":"integer","minimum":0},"invitations_per_7_days":{"type":"integer","minimum":0}},"required":["invitations_per_day","messages_per_day","invitations_per_7_days"]},{"type":"null"}]},"disconnect_pause":{"type":"object","properties":{"count":{"type":"integer","minimum":0},"can_resume":{"type":"boolean"}},"required":["count","can_resume"]},"checked_at":{"type":["string","null"],"format":"date-time"},"observation":{"type":"object","properties":{"state":{"type":"string","enum":["verified","unverified"]}},"required":["state"]},"connected_at":{"type":["string","null"],"format":"date-time"},"disconnected_at":{"type":["string","null"],"format":"date-time"},"access_revoked_at":{"type":["string","null"],"format":"date-time"},"access_removal":{"type":["string","null"],"enum":["pending","confirmed","not_applicable",null]},"declaration":{"anyOf":[{"type":"object","properties":{"mailbox_use":{"type":"string","enum":["habitual","dedicated"]},"declared_by":{"type":["string","null"],"format":"uuid"},"declared_at":{"type":"string","format":"date-time"}},"required":["mailbox_use","declared_by","declared_at"]},{"type":"object","properties":{"habitual_personal_account":{"type":"boolean","enum":[true]},"no_other_automation":{"type":"boolean","enum":[true]},"declared_by":{"type":["string","null"],"format":"uuid"},"declared_at":{"type":"string","format":"date-time"}},"required":["habitual_personal_account","no_other_automation","declared_by","declared_at"]},{"type":"null"}]},"sends":{"type":["object","null"],"properties":{"today":{"type":"integer","minimum":0},"last_7_days":{"type":"integer","minimum":0}},"required":["today","last_7_days"]},"participation":{"type":"object","properties":{"status":{"type":"string","enum":["sending","no_active_campaign","waiting_for_first_lead","paused","not_connected","email_not_ready"]},"cause":{"type":"string","enum":["active_journeys","no_active_campaign_on_channel","no_lead_yet","paused_by_member","paused_by_disconnect","campaign_paused","workspace_suspended","sender_off","sender_paused","paused_by_lift","disconnected","needs_reconnect","unverified","warming","placement_required","declaration_required","signature_missing","mailbox_not_ready","health_hold","retired"]},"category":{"type":["string","null"],"enum":["transient","fixable_by_client","long","intentional",null]},"since":{"type":["string","null"],"format":"date-time"},"since_estimated":{"type":"boolean"},"waiting_journeys":{"type":"integer","minimum":0},"stop":{"type":"object","properties":{"scope":{"type":"string","enum":["account","sender","channel","workspace","all_workspaces"]},"origin":{"type":"string","enum":["person","system"]},"reason":{"type":"string","enum":["deliverability_review","account_safety","setup","client_request","maintenance","other","cutover","not_executed_by_lifty","ambiguous_send","provider_risk","recipient_restricted","recorded_before_lif1710","unspecified"]},"review_by":{"type":"string","format":"date-time"}},"required":["scope","origin","reason","review_by"]},"health":{"type":"object","properties":{"reason":{"type":"string","enum":["complaint","bounce_rate","provider_health","placement_failed","safety_check_failed"]}},"required":["reason"]},"also":{"type":"array","items":{"type":"object","properties":{"status":{"type":"string","enum":["sending","no_active_campaign","waiting_for_first_lead","paused","not_connected","email_not_ready"]},"cause":{"type":"string","enum":["active_journeys","no_active_campaign_on_channel","no_lead_yet","paused_by_member","paused_by_disconnect","campaign_paused","workspace_suspended","sender_off","sender_paused","paused_by_lift","disconnected","needs_reconnect","unverified","warming","placement_required","declaration_required","signature_missing","mailbox_not_ready","health_hold","retired"]},"category":{"type":["string","null"],"enum":["transient","fixable_by_client","long","intentional",null]},"since":{"type":["string","null"],"format":"date-time"},"next_step":{"type":"object","properties":{"label":{"type":"string","minLength":1,"maxLength":200},"owner":{"type":"string","enum":["member","lifty","none"]},"action":{"type":"string","enum":["none","wait","lifty_review","contact_lift","reconnect","resume_account","resume_sender","turn_on_sender","resume_campaigns","resume_campaign","set_mailbox_use","add_signature"]},"since":{"type":["string","null"],"format":"date-time"},"since_estimated":{"type":["boolean","null"]},"review_by":{"type":["string","null"],"format":"date-time"}},"required":["label","owner","action","since","since_estimated","review_by"]}},"required":["status","cause","category","since"]},"maxItems":20},"next_step":{"type":"object","properties":{"label":{"type":"string","minLength":1,"maxLength":200},"owner":{"type":"string","enum":["member","lifty","none"]},"action":{"type":"string","enum":["none","wait","lifty_review","contact_lift","reconnect","resume_account","resume_sender","turn_on_sender","resume_campaigns","resume_campaign","set_mailbox_use","add_signature"]},"since":{"type":["string","null"],"format":"date-time"},"since_estimated":{"type":["boolean","null"]},"review_by":{"type":["string","null"],"format":"date-time"}},"required":["label","owner","action","since","since_estimated","review_by"]}},"required":["status","cause"]}},"required":["id","sender_id","channel","identity","status","state","sending","limits","checked_at","observation","connected_at","disconnected_at","access_revoked_at","access_removal","declaration","sends","participation"]},"maxItems":1000},"sending":{"oneOf":[{"type":"object","properties":{"state":{"type":"string","enum":["off"]},"off_at":{"type":"string","format":"date-time"},"reason":{"type":"string","minLength":1},"drain_to_sender_id":{"type":"string","format":"uuid"},"drain_mode":{"type":"string","enum":["unused_channels","continue"]},"leads_remaining":{"type":"integer","minimum":0},"pending_transfer":{"type":"object","properties":{"retired_at":{"type":"string","format":"date-time"},"leads_awaiting_transfer":{"type":"integer","minimum":0},"target_sender_id":{"type":"string","format":"uuid"},"handoff_ref":{"type":["string","null"],"pattern":"^[0-9]{1,20}$"}},"required":["retired_at","leads_awaiting_transfer","target_sender_id","handoff_ref"]},"accounts_retire_at":{"type":["string","null"],"format":"date-time"},"accounts_retired_at":{"type":["string","null"],"format":"date-time"}},"required":["state","off_at","reason","drain_to_sender_id","drain_mode","leads_remaining"]},{"type":"object","properties":{"state":{"type":"string","enum":["paused"]},"paused_at":{"type":"string","format":"date-time"},"reason":{"type":["string","null"],"minLength":1}},"required":["state","paused_at","reason"]}]}},"required":["id","version","name","signature","booking_url","accounts"]}},"required":["workspace","sender"]}}}},"400":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"503":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/workspace/senders/{id}":{"patch":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"id","in":"path"},{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"expected_version":{"type":"integer","exclusiveMinimum":0},"name":{"type":"string","minLength":1,"maxLength":200,"pattern":"^[^\\u0000-\\u001f\\u007f@]+$"},"signature":{"type":["string","null"],"description":"Plain text; 1–500 characters after line-ending and surrounding-whitespace normalization. Links must use https."},"booking_url":{"type":["string","null"],"maxLength":2048,"format":"uri"}},"required":["expected_version"],"additionalProperties":false}}}},"responses":{"200":{"description":"Change name, signature and/or booking_url with expected_version. Omitted fields stay; null clears signature or booking_url. A lead's signature is fixed when its Journey starts: a new signature signs Journeys that start afterwards and redoes previews of leads not started yet (recomposing counts them); started Journeys and approved emails keep theirs, and no Campaign needs re-approval. Never sends.","content":{"application/json":{"schema":{"type":"object","properties":{"workspace":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string","minLength":1,"maxLength":200},"state":{"type":"string","minLength":1}},"required":["workspace_ref","name","state"]},"sender":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"version":{"type":"integer","exclusiveMinimum":0},"name":{"type":"string","minLength":1,"maxLength":200},"signature":{"type":["string","null"],"minLength":1},"booking_url":{"type":["string","null"],"maxLength":2048},"accounts":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"sender_id":{"type":"string","format":"uuid"},"channel":{"type":"string","enum":["email","linkedin"]},"identity":{"type":["string","null"],"minLength":1,"maxLength":2048},"status":{"type":"string","enum":["connected","needs_reconnect","disconnected"]},"state":{"type":"string","enum":["active","paused"]},"sending":{"type":"object","properties":{"allowed":{"type":"boolean"},"reason":{"type":["string","null"],"enum":["paused_by_member","paused_by_lift","channel_paused","workspace_suspended","disconnected","needs_reconnect","status_unconfirmed","connection_unavailable","sender_deleted","mailbox_not_ready","previous_automation_active","blocked",null]},"scope":{"type":["string","null"],"enum":["account","sender","channel","workspace","all_workspaces",null]}},"required":["allowed","reason","scope"]},"limits":{"anyOf":[{"type":"object","properties":{"emails_per_day":{"type":"integer","minimum":0}},"required":["emails_per_day"]},{"type":"object","properties":{"invitations_per_day":{"type":"integer","minimum":0},"messages_per_day":{"type":"integer","minimum":0},"invitations_per_7_days":{"type":"integer","minimum":0}},"required":["invitations_per_day","messages_per_day","invitations_per_7_days"]},{"type":"null"}]},"disconnect_pause":{"type":"object","properties":{"count":{"type":"integer","minimum":0},"can_resume":{"type":"boolean"}},"required":["count","can_resume"]},"checked_at":{"type":["string","null"],"format":"date-time"},"observation":{"type":"object","properties":{"state":{"type":"string","enum":["verified","unverified"]}},"required":["state"]},"connected_at":{"type":["string","null"],"format":"date-time"},"disconnected_at":{"type":["string","null"],"format":"date-time"},"access_revoked_at":{"type":["string","null"],"format":"date-time"},"access_removal":{"type":["string","null"],"enum":["pending","confirmed","not_applicable",null]},"declaration":{"anyOf":[{"type":"object","properties":{"mailbox_use":{"type":"string","enum":["habitual","dedicated"]},"declared_by":{"type":["string","null"],"format":"uuid"},"declared_at":{"type":"string","format":"date-time"}},"required":["mailbox_use","declared_by","declared_at"]},{"type":"object","properties":{"habitual_personal_account":{"type":"boolean","enum":[true]},"no_other_automation":{"type":"boolean","enum":[true]},"declared_by":{"type":["string","null"],"format":"uuid"},"declared_at":{"type":"string","format":"date-time"}},"required":["habitual_personal_account","no_other_automation","declared_by","declared_at"]},{"type":"null"}]},"sends":{"type":["object","null"],"properties":{"today":{"type":"integer","minimum":0},"last_7_days":{"type":"integer","minimum":0}},"required":["today","last_7_days"]},"participation":{"type":"object","properties":{"status":{"type":"string","enum":["sending","no_active_campaign","waiting_for_first_lead","paused","not_connected","email_not_ready"]},"cause":{"type":"string","enum":["active_journeys","no_active_campaign_on_channel","no_lead_yet","paused_by_member","paused_by_disconnect","campaign_paused","workspace_suspended","sender_off","sender_paused","paused_by_lift","disconnected","needs_reconnect","unverified","warming","placement_required","declaration_required","signature_missing","mailbox_not_ready","health_hold","retired"]},"category":{"type":["string","null"],"enum":["transient","fixable_by_client","long","intentional",null]},"since":{"type":["string","null"],"format":"date-time"},"since_estimated":{"type":"boolean"},"waiting_journeys":{"type":"integer","minimum":0},"stop":{"type":"object","properties":{"scope":{"type":"string","enum":["account","sender","channel","workspace","all_workspaces"]},"origin":{"type":"string","enum":["person","system"]},"reason":{"type":"string","enum":["deliverability_review","account_safety","setup","client_request","maintenance","other","cutover","not_executed_by_lifty","ambiguous_send","provider_risk","recipient_restricted","recorded_before_lif1710","unspecified"]},"review_by":{"type":"string","format":"date-time"}},"required":["scope","origin","reason","review_by"]},"health":{"type":"object","properties":{"reason":{"type":"string","enum":["complaint","bounce_rate","provider_health","placement_failed","safety_check_failed"]}},"required":["reason"]},"also":{"type":"array","items":{"type":"object","properties":{"status":{"type":"string","enum":["sending","no_active_campaign","waiting_for_first_lead","paused","not_connected","email_not_ready"]},"cause":{"type":"string","enum":["active_journeys","no_active_campaign_on_channel","no_lead_yet","paused_by_member","paused_by_disconnect","campaign_paused","workspace_suspended","sender_off","sender_paused","paused_by_lift","disconnected","needs_reconnect","unverified","warming","placement_required","declaration_required","signature_missing","mailbox_not_ready","health_hold","retired"]},"category":{"type":["string","null"],"enum":["transient","fixable_by_client","long","intentional",null]},"since":{"type":["string","null"],"format":"date-time"},"next_step":{"type":"object","properties":{"label":{"type":"string","minLength":1,"maxLength":200},"owner":{"type":"string","enum":["member","lifty","none"]},"action":{"type":"string","enum":["none","wait","lifty_review","contact_lift","reconnect","resume_account","resume_sender","turn_on_sender","resume_campaigns","resume_campaign","set_mailbox_use","add_signature"]},"since":{"type":["string","null"],"format":"date-time"},"since_estimated":{"type":["boolean","null"]},"review_by":{"type":["string","null"],"format":"date-time"}},"required":["label","owner","action","since","since_estimated","review_by"]}},"required":["status","cause","category","since"]},"maxItems":20},"next_step":{"type":"object","properties":{"label":{"type":"string","minLength":1,"maxLength":200},"owner":{"type":"string","enum":["member","lifty","none"]},"action":{"type":"string","enum":["none","wait","lifty_review","contact_lift","reconnect","resume_account","resume_sender","turn_on_sender","resume_campaigns","resume_campaign","set_mailbox_use","add_signature"]},"since":{"type":["string","null"],"format":"date-time"},"since_estimated":{"type":["boolean","null"]},"review_by":{"type":["string","null"],"format":"date-time"}},"required":["label","owner","action","since","since_estimated","review_by"]}},"required":["status","cause"]}},"required":["id","sender_id","channel","identity","status","state","sending","limits","checked_at","observation","connected_at","disconnected_at","access_revoked_at","access_removal","declaration","sends","participation"]},"maxItems":1000},"sending":{"oneOf":[{"type":"object","properties":{"state":{"type":"string","enum":["off"]},"off_at":{"type":"string","format":"date-time"},"reason":{"type":"string","minLength":1},"drain_to_sender_id":{"type":"string","format":"uuid"},"drain_mode":{"type":"string","enum":["unused_channels","continue"]},"leads_remaining":{"type":"integer","minimum":0},"pending_transfer":{"type":"object","properties":{"retired_at":{"type":"string","format":"date-time"},"leads_awaiting_transfer":{"type":"integer","minimum":0},"target_sender_id":{"type":"string","format":"uuid"},"handoff_ref":{"type":["string","null"],"pattern":"^[0-9]{1,20}$"}},"required":["retired_at","leads_awaiting_transfer","target_sender_id","handoff_ref"]},"accounts_retire_at":{"type":["string","null"],"format":"date-time"},"accounts_retired_at":{"type":["string","null"],"format":"date-time"}},"required":["state","off_at","reason","drain_to_sender_id","drain_mode","leads_remaining"]},{"type":"object","properties":{"state":{"type":"string","enum":["paused"]},"paused_at":{"type":"string","format":"date-time"},"reason":{"type":["string","null"],"minLength":1}},"required":["state","paused_at","reason"]}]}},"required":["id","version","name","signature","booking_url","accounts"]},"recomposing":{"type":"integer","minimum":0}},"required":["workspace","sender"]}}}},"400":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"503":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/workspace/senders/{id}/delete":{"post":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"id","in":"path"},{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"expected_version":{"type":"integer","exclusiveMinimum":0},"confirm":{"type":"boolean","enum":[true]}},"required":["expected_version","confirm"],"additionalProperties":false}}}},"responses":{"200":{"description":"Soft-delete a person with expected_version and confirm:true. The person leaves the roster and every account they own is disconnected exactly as sending-accounts disconnect; history stays. 200 when Lifty's access was confirmed removed for every account (or not applicable), 202 when the accounts are blocked and removal at the provider continues on its own: do not repeat the request. Not reversible.","content":{"application/json":{"schema":{"type":"object","properties":{"workspace":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string","minLength":1,"maxLength":200},"state":{"type":"string","minLength":1}},"required":["workspace_ref","name","state"]},"sender":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"version":{"type":"integer","exclusiveMinimum":0},"deleted_at":{"type":"string","format":"date-time"}},"required":["id","version","deleted_at"]},"accounts":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"sender_id":{"type":"string","format":"uuid"},"channel":{"type":"string","enum":["email","linkedin"]},"identity":{"type":["string","null"],"minLength":1,"maxLength":2048},"status":{"type":"string","enum":["connected","needs_reconnect","disconnected"]},"state":{"type":"string","enum":["active","paused"]},"sending":{"type":"object","properties":{"allowed":{"type":"boolean"},"reason":{"type":["string","null"],"enum":["paused_by_member","paused_by_lift","channel_paused","workspace_suspended","disconnected","needs_reconnect","status_unconfirmed","connection_unavailable","sender_deleted","mailbox_not_ready","previous_automation_active","blocked",null]},"scope":{"type":["string","null"],"enum":["account","sender","channel","workspace","all_workspaces",null]}},"required":["allowed","reason","scope"]},"limits":{"anyOf":[{"type":"object","properties":{"emails_per_day":{"type":"integer","minimum":0}},"required":["emails_per_day"]},{"type":"object","properties":{"invitations_per_day":{"type":"integer","minimum":0},"messages_per_day":{"type":"integer","minimum":0},"invitations_per_7_days":{"type":"integer","minimum":0}},"required":["invitations_per_day","messages_per_day","invitations_per_7_days"]},{"type":"null"}]},"disconnect_pause":{"type":"object","properties":{"count":{"type":"integer","minimum":0},"can_resume":{"type":"boolean"}},"required":["count","can_resume"]},"checked_at":{"type":["string","null"],"format":"date-time"},"observation":{"type":"object","properties":{"state":{"type":"string","enum":["verified","unverified"]}},"required":["state"]},"connected_at":{"type":["string","null"],"format":"date-time"},"disconnected_at":{"type":["string","null"],"format":"date-time"},"access_revoked_at":{"type":["string","null"],"format":"date-time"},"access_removal":{"type":["string","null"],"enum":["pending","confirmed","not_applicable",null]},"declaration":{"anyOf":[{"type":"object","properties":{"mailbox_use":{"type":"string","enum":["habitual","dedicated"]},"declared_by":{"type":["string","null"],"format":"uuid"},"declared_at":{"type":"string","format":"date-time"}},"required":["mailbox_use","declared_by","declared_at"]},{"type":"object","properties":{"habitual_personal_account":{"type":"boolean","enum":[true]},"no_other_automation":{"type":"boolean","enum":[true]},"declared_by":{"type":["string","null"],"format":"uuid"},"declared_at":{"type":"string","format":"date-time"}},"required":["habitual_personal_account","no_other_automation","declared_by","declared_at"]},{"type":"null"}]},"sends":{"type":["object","null"],"properties":{"today":{"type":"integer","minimum":0},"last_7_days":{"type":"integer","minimum":0}},"required":["today","last_7_days"]},"participation":{"type":"object","properties":{"status":{"type":"string","enum":["sending","no_active_campaign","waiting_for_first_lead","paused","not_connected","email_not_ready"]},"cause":{"type":"string","enum":["active_journeys","no_active_campaign_on_channel","no_lead_yet","paused_by_member","paused_by_disconnect","campaign_paused","workspace_suspended","sender_off","sender_paused","paused_by_lift","disconnected","needs_reconnect","unverified","warming","placement_required","declaration_required","signature_missing","mailbox_not_ready","health_hold","retired"]},"category":{"type":["string","null"],"enum":["transient","fixable_by_client","long","intentional",null]},"since":{"type":["string","null"],"format":"date-time"},"since_estimated":{"type":"boolean"},"waiting_journeys":{"type":"integer","minimum":0},"stop":{"type":"object","properties":{"scope":{"type":"string","enum":["account","sender","channel","workspace","all_workspaces"]},"origin":{"type":"string","enum":["person","system"]},"reason":{"type":"string","enum":["deliverability_review","account_safety","setup","client_request","maintenance","other","cutover","not_executed_by_lifty","ambiguous_send","provider_risk","recipient_restricted","recorded_before_lif1710","unspecified"]},"review_by":{"type":"string","format":"date-time"}},"required":["scope","origin","reason","review_by"]},"health":{"type":"object","properties":{"reason":{"type":"string","enum":["complaint","bounce_rate","provider_health","placement_failed","safety_check_failed"]}},"required":["reason"]},"also":{"type":"array","items":{"type":"object","properties":{"status":{"type":"string","enum":["sending","no_active_campaign","waiting_for_first_lead","paused","not_connected","email_not_ready"]},"cause":{"type":"string","enum":["active_journeys","no_active_campaign_on_channel","no_lead_yet","paused_by_member","paused_by_disconnect","campaign_paused","workspace_suspended","sender_off","sender_paused","paused_by_lift","disconnected","needs_reconnect","unverified","warming","placement_required","declaration_required","signature_missing","mailbox_not_ready","health_hold","retired"]},"category":{"type":["string","null"],"enum":["transient","fixable_by_client","long","intentional",null]},"since":{"type":["string","null"],"format":"date-time"},"next_step":{"type":"object","properties":{"label":{"type":"string","minLength":1,"maxLength":200},"owner":{"type":"string","enum":["member","lifty","none"]},"action":{"type":"string","enum":["none","wait","lifty_review","contact_lift","reconnect","resume_account","resume_sender","turn_on_sender","resume_campaigns","resume_campaign","set_mailbox_use","add_signature"]},"since":{"type":["string","null"],"format":"date-time"},"since_estimated":{"type":["boolean","null"]},"review_by":{"type":["string","null"],"format":"date-time"}},"required":["label","owner","action","since","since_estimated","review_by"]}},"required":["status","cause","category","since"]},"maxItems":20},"next_step":{"type":"object","properties":{"label":{"type":"string","minLength":1,"maxLength":200},"owner":{"type":"string","enum":["member","lifty","none"]},"action":{"type":"string","enum":["none","wait","lifty_review","contact_lift","reconnect","resume_account","resume_sender","turn_on_sender","resume_campaigns","resume_campaign","set_mailbox_use","add_signature"]},"since":{"type":["string","null"],"format":"date-time"},"since_estimated":{"type":["boolean","null"]},"review_by":{"type":["string","null"],"format":"date-time"}},"required":["label","owner","action","since","since_estimated","review_by"]}},"required":["status","cause"]}},"required":["id","sender_id","channel","identity","status","state","sending","limits","checked_at","observation","connected_at","disconnected_at","access_revoked_at","access_removal","declaration","sends","participation"]},"maxItems":1000}},"required":["workspace","sender","accounts"]}}}},"202":{"description":"Accounts blocked; access removal at the provider is not yet confirmed and continues on its own.","content":{"application/json":{"schema":{"type":"object","properties":{"workspace":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string","minLength":1,"maxLength":200},"state":{"type":"string","minLength":1}},"required":["workspace_ref","name","state"]},"sender":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"version":{"type":"integer","exclusiveMinimum":0},"deleted_at":{"type":"string","format":"date-time"}},"required":["id","version","deleted_at"]},"accounts":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"sender_id":{"type":"string","format":"uuid"},"channel":{"type":"string","enum":["email","linkedin"]},"identity":{"type":["string","null"],"minLength":1,"maxLength":2048},"status":{"type":"string","enum":["connected","needs_reconnect","disconnected"]},"state":{"type":"string","enum":["active","paused"]},"sending":{"type":"object","properties":{"allowed":{"type":"boolean"},"reason":{"type":["string","null"],"enum":["paused_by_member","paused_by_lift","channel_paused","workspace_suspended","disconnected","needs_reconnect","status_unconfirmed","connection_unavailable","sender_deleted","mailbox_not_ready","previous_automation_active","blocked",null]},"scope":{"type":["string","null"],"enum":["account","sender","channel","workspace","all_workspaces",null]}},"required":["allowed","reason","scope"]},"limits":{"anyOf":[{"type":"object","properties":{"emails_per_day":{"type":"integer","minimum":0}},"required":["emails_per_day"]},{"type":"object","properties":{"invitations_per_day":{"type":"integer","minimum":0},"messages_per_day":{"type":"integer","minimum":0},"invitations_per_7_days":{"type":"integer","minimum":0}},"required":["invitations_per_day","messages_per_day","invitations_per_7_days"]},{"type":"null"}]},"disconnect_pause":{"type":"object","properties":{"count":{"type":"integer","minimum":0},"can_resume":{"type":"boolean"}},"required":["count","can_resume"]},"checked_at":{"type":["string","null"],"format":"date-time"},"observation":{"type":"object","properties":{"state":{"type":"string","enum":["verified","unverified"]}},"required":["state"]},"connected_at":{"type":["string","null"],"format":"date-time"},"disconnected_at":{"type":["string","null"],"format":"date-time"},"access_revoked_at":{"type":["string","null"],"format":"date-time"},"access_removal":{"type":["string","null"],"enum":["pending","confirmed","not_applicable",null]},"declaration":{"anyOf":[{"type":"object","properties":{"mailbox_use":{"type":"string","enum":["habitual","dedicated"]},"declared_by":{"type":["string","null"],"format":"uuid"},"declared_at":{"type":"string","format":"date-time"}},"required":["mailbox_use","declared_by","declared_at"]},{"type":"object","properties":{"habitual_personal_account":{"type":"boolean","enum":[true]},"no_other_automation":{"type":"boolean","enum":[true]},"declared_by":{"type":["string","null"],"format":"uuid"},"declared_at":{"type":"string","format":"date-time"}},"required":["habitual_personal_account","no_other_automation","declared_by","declared_at"]},{"type":"null"}]},"sends":{"type":["object","null"],"properties":{"today":{"type":"integer","minimum":0},"last_7_days":{"type":"integer","minimum":0}},"required":["today","last_7_days"]},"participation":{"type":"object","properties":{"status":{"type":"string","enum":["sending","no_active_campaign","waiting_for_first_lead","paused","not_connected","email_not_ready"]},"cause":{"type":"string","enum":["active_journeys","no_active_campaign_on_channel","no_lead_yet","paused_by_member","paused_by_disconnect","campaign_paused","workspace_suspended","sender_off","sender_paused","paused_by_lift","disconnected","needs_reconnect","unverified","warming","placement_required","declaration_required","signature_missing","mailbox_not_ready","health_hold","retired"]},"category":{"type":["string","null"],"enum":["transient","fixable_by_client","long","intentional",null]},"since":{"type":["string","null"],"format":"date-time"},"since_estimated":{"type":"boolean"},"waiting_journeys":{"type":"integer","minimum":0},"stop":{"type":"object","properties":{"scope":{"type":"string","enum":["account","sender","channel","workspace","all_workspaces"]},"origin":{"type":"string","enum":["person","system"]},"reason":{"type":"string","enum":["deliverability_review","account_safety","setup","client_request","maintenance","other","cutover","not_executed_by_lifty","ambiguous_send","provider_risk","recipient_restricted","recorded_before_lif1710","unspecified"]},"review_by":{"type":"string","format":"date-time"}},"required":["scope","origin","reason","review_by"]},"health":{"type":"object","properties":{"reason":{"type":"string","enum":["complaint","bounce_rate","provider_health","placement_failed","safety_check_failed"]}},"required":["reason"]},"also":{"type":"array","items":{"type":"object","properties":{"status":{"type":"string","enum":["sending","no_active_campaign","waiting_for_first_lead","paused","not_connected","email_not_ready"]},"cause":{"type":"string","enum":["active_journeys","no_active_campaign_on_channel","no_lead_yet","paused_by_member","paused_by_disconnect","campaign_paused","workspace_suspended","sender_off","sender_paused","paused_by_lift","disconnected","needs_reconnect","unverified","warming","placement_required","declaration_required","signature_missing","mailbox_not_ready","health_hold","retired"]},"category":{"type":["string","null"],"enum":["transient","fixable_by_client","long","intentional",null]},"since":{"type":["string","null"],"format":"date-time"},"next_step":{"type":"object","properties":{"label":{"type":"string","minLength":1,"maxLength":200},"owner":{"type":"string","enum":["member","lifty","none"]},"action":{"type":"string","enum":["none","wait","lifty_review","contact_lift","reconnect","resume_account","resume_sender","turn_on_sender","resume_campaigns","resume_campaign","set_mailbox_use","add_signature"]},"since":{"type":["string","null"],"format":"date-time"},"since_estimated":{"type":["boolean","null"]},"review_by":{"type":["string","null"],"format":"date-time"}},"required":["label","owner","action","since","since_estimated","review_by"]}},"required":["status","cause","category","since"]},"maxItems":20},"next_step":{"type":"object","properties":{"label":{"type":"string","minLength":1,"maxLength":200},"owner":{"type":"string","enum":["member","lifty","none"]},"action":{"type":"string","enum":["none","wait","lifty_review","contact_lift","reconnect","resume_account","resume_sender","turn_on_sender","resume_campaigns","resume_campaign","set_mailbox_use","add_signature"]},"since":{"type":["string","null"],"format":"date-time"},"since_estimated":{"type":["boolean","null"]},"review_by":{"type":["string","null"],"format":"date-time"}},"required":["label","owner","action","since","since_estimated","review_by"]}},"required":["status","cause"]}},"required":["id","sender_id","channel","identity","status","state","sending","limits","checked_at","observation","connected_at","disconnected_at","access_revoked_at","access_removal","declaration","sends","participation"]},"maxItems":1000}},"required":["workspace","sender","accounts"]}}}},"400":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"503":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/workspace/senders/{id}/pause":{"post":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"id","in":"path"},{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"expected_version":{"type":"integer","exclusiveMinimum":0},"confirm":{"type":"boolean","enum":[true]},"reason":{"type":"string"}},"required":["expected_version","confirm"],"additionalProperties":false}}}},"responses":{"200":{"description":"Pause a person with expected_version and confirm:true, and optionally a reason. They keep every lead and account, take no new leads and nothing automatic sends on either channel, including automatic replies. Inbound replies are still captured and a person can still answer by hand. Needs no replacement, and it never turns into a retirement. Idempotent. Refused with SENDER_OFF while the person is retired. After an uncertain response read senders: sending.state paused means it is saved.","content":{"application/json":{"schema":{"type":"object","properties":{"workspace":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string","minLength":1,"maxLength":200},"state":{"type":"string","minLength":1}},"required":["workspace_ref","name","state"]},"sender":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"version":{"type":"integer","exclusiveMinimum":0},"name":{"type":"string","minLength":1,"maxLength":200},"signature":{"type":["string","null"],"minLength":1},"booking_url":{"type":["string","null"],"maxLength":2048},"accounts":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"sender_id":{"type":"string","format":"uuid"},"channel":{"type":"string","enum":["email","linkedin"]},"identity":{"type":["string","null"],"minLength":1,"maxLength":2048},"status":{"type":"string","enum":["connected","needs_reconnect","disconnected"]},"state":{"type":"string","enum":["active","paused"]},"sending":{"type":"object","properties":{"allowed":{"type":"boolean"},"reason":{"type":["string","null"],"enum":["paused_by_member","paused_by_lift","channel_paused","workspace_suspended","disconnected","needs_reconnect","status_unconfirmed","connection_unavailable","sender_deleted","mailbox_not_ready","previous_automation_active","blocked",null]},"scope":{"type":["string","null"],"enum":["account","sender","channel","workspace","all_workspaces",null]}},"required":["allowed","reason","scope"]},"limits":{"anyOf":[{"type":"object","properties":{"emails_per_day":{"type":"integer","minimum":0}},"required":["emails_per_day"]},{"type":"object","properties":{"invitations_per_day":{"type":"integer","minimum":0},"messages_per_day":{"type":"integer","minimum":0},"invitations_per_7_days":{"type":"integer","minimum":0}},"required":["invitations_per_day","messages_per_day","invitations_per_7_days"]},{"type":"null"}]},"disconnect_pause":{"type":"object","properties":{"count":{"type":"integer","minimum":0},"can_resume":{"type":"boolean"}},"required":["count","can_resume"]},"checked_at":{"type":["string","null"],"format":"date-time"},"observation":{"type":"object","properties":{"state":{"type":"string","enum":["verified","unverified"]}},"required":["state"]},"connected_at":{"type":["string","null"],"format":"date-time"},"disconnected_at":{"type":["string","null"],"format":"date-time"},"access_revoked_at":{"type":["string","null"],"format":"date-time"},"access_removal":{"type":["string","null"],"enum":["pending","confirmed","not_applicable",null]},"declaration":{"anyOf":[{"type":"object","properties":{"mailbox_use":{"type":"string","enum":["habitual","dedicated"]},"declared_by":{"type":["string","null"],"format":"uuid"},"declared_at":{"type":"string","format":"date-time"}},"required":["mailbox_use","declared_by","declared_at"]},{"type":"object","properties":{"habitual_personal_account":{"type":"boolean","enum":[true]},"no_other_automation":{"type":"boolean","enum":[true]},"declared_by":{"type":["string","null"],"format":"uuid"},"declared_at":{"type":"string","format":"date-time"}},"required":["habitual_personal_account","no_other_automation","declared_by","declared_at"]},{"type":"null"}]},"sends":{"type":["object","null"],"properties":{"today":{"type":"integer","minimum":0},"last_7_days":{"type":"integer","minimum":0}},"required":["today","last_7_days"]},"participation":{"type":"object","properties":{"status":{"type":"string","enum":["sending","no_active_campaign","waiting_for_first_lead","paused","not_connected","email_not_ready"]},"cause":{"type":"string","enum":["active_journeys","no_active_campaign_on_channel","no_lead_yet","paused_by_member","paused_by_disconnect","campaign_paused","workspace_suspended","sender_off","sender_paused","paused_by_lift","disconnected","needs_reconnect","unverified","warming","placement_required","declaration_required","signature_missing","mailbox_not_ready","health_hold","retired"]},"category":{"type":["string","null"],"enum":["transient","fixable_by_client","long","intentional",null]},"since":{"type":["string","null"],"format":"date-time"},"since_estimated":{"type":"boolean"},"waiting_journeys":{"type":"integer","minimum":0},"stop":{"type":"object","properties":{"scope":{"type":"string","enum":["account","sender","channel","workspace","all_workspaces"]},"origin":{"type":"string","enum":["person","system"]},"reason":{"type":"string","enum":["deliverability_review","account_safety","setup","client_request","maintenance","other","cutover","not_executed_by_lifty","ambiguous_send","provider_risk","recipient_restricted","recorded_before_lif1710","unspecified"]},"review_by":{"type":"string","format":"date-time"}},"required":["scope","origin","reason","review_by"]},"health":{"type":"object","properties":{"reason":{"type":"string","enum":["complaint","bounce_rate","provider_health","placement_failed","safety_check_failed"]}},"required":["reason"]},"also":{"type":"array","items":{"type":"object","properties":{"status":{"type":"string","enum":["sending","no_active_campaign","waiting_for_first_lead","paused","not_connected","email_not_ready"]},"cause":{"type":"string","enum":["active_journeys","no_active_campaign_on_channel","no_lead_yet","paused_by_member","paused_by_disconnect","campaign_paused","workspace_suspended","sender_off","sender_paused","paused_by_lift","disconnected","needs_reconnect","unverified","warming","placement_required","declaration_required","signature_missing","mailbox_not_ready","health_hold","retired"]},"category":{"type":["string","null"],"enum":["transient","fixable_by_client","long","intentional",null]},"since":{"type":["string","null"],"format":"date-time"},"next_step":{"type":"object","properties":{"label":{"type":"string","minLength":1,"maxLength":200},"owner":{"type":"string","enum":["member","lifty","none"]},"action":{"type":"string","enum":["none","wait","lifty_review","contact_lift","reconnect","resume_account","resume_sender","turn_on_sender","resume_campaigns","resume_campaign","set_mailbox_use","add_signature"]},"since":{"type":["string","null"],"format":"date-time"},"since_estimated":{"type":["boolean","null"]},"review_by":{"type":["string","null"],"format":"date-time"}},"required":["label","owner","action","since","since_estimated","review_by"]}},"required":["status","cause","category","since"]},"maxItems":20},"next_step":{"type":"object","properties":{"label":{"type":"string","minLength":1,"maxLength":200},"owner":{"type":"string","enum":["member","lifty","none"]},"action":{"type":"string","enum":["none","wait","lifty_review","contact_lift","reconnect","resume_account","resume_sender","turn_on_sender","resume_campaigns","resume_campaign","set_mailbox_use","add_signature"]},"since":{"type":["string","null"],"format":"date-time"},"since_estimated":{"type":["boolean","null"]},"review_by":{"type":["string","null"],"format":"date-time"}},"required":["label","owner","action","since","since_estimated","review_by"]}},"required":["status","cause"]}},"required":["id","sender_id","channel","identity","status","state","sending","limits","checked_at","observation","connected_at","disconnected_at","access_revoked_at","access_removal","declaration","sends","participation"]},"maxItems":1000},"sending":{"oneOf":[{"type":"object","properties":{"state":{"type":"string","enum":["off"]},"off_at":{"type":"string","format":"date-time"},"reason":{"type":"string","minLength":1},"drain_to_sender_id":{"type":"string","format":"uuid"},"drain_mode":{"type":"string","enum":["unused_channels","continue"]},"leads_remaining":{"type":"integer","minimum":0},"pending_transfer":{"type":"object","properties":{"retired_at":{"type":"string","format":"date-time"},"leads_awaiting_transfer":{"type":"integer","minimum":0},"target_sender_id":{"type":"string","format":"uuid"},"handoff_ref":{"type":["string","null"],"pattern":"^[0-9]{1,20}$"}},"required":["retired_at","leads_awaiting_transfer","target_sender_id","handoff_ref"]},"accounts_retire_at":{"type":["string","null"],"format":"date-time"},"accounts_retired_at":{"type":["string","null"],"format":"date-time"}},"required":["state","off_at","reason","drain_to_sender_id","drain_mode","leads_remaining"]},{"type":"object","properties":{"state":{"type":"string","enum":["paused"]},"paused_at":{"type":"string","format":"date-time"},"reason":{"type":["string","null"],"minLength":1}},"required":["state","paused_at","reason"]}]}},"required":["id","version","name","signature","booking_url","accounts"]}},"required":["workspace","sender"]}}}},"400":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"503":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/workspace/senders/{id}/resume":{"post":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"id","in":"path"},{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"expected_version":{"type":"integer","exclusiveMinimum":0},"confirm":{"type":"boolean","enum":[true]}},"required":["expected_version","confirm"],"additionalProperties":false}}}},"responses":{"200":{"description":"Resume a paused person with expected_version and confirm:true. They take new leads again and their automatic work continues under its usual limits. Clears the person's pause and nothing else: every other stop, account pause, campaign pause and hold stays as it is, so a resumed person can still be stopped. Idempotent. Never sends by itself. After an uncertain response read senders: no sending object means the person sends normally.","content":{"application/json":{"schema":{"type":"object","properties":{"workspace":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string","minLength":1,"maxLength":200},"state":{"type":"string","minLength":1}},"required":["workspace_ref","name","state"]},"sender":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"version":{"type":"integer","exclusiveMinimum":0},"name":{"type":"string","minLength":1,"maxLength":200},"signature":{"type":["string","null"],"minLength":1},"booking_url":{"type":["string","null"],"maxLength":2048},"accounts":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"sender_id":{"type":"string","format":"uuid"},"channel":{"type":"string","enum":["email","linkedin"]},"identity":{"type":["string","null"],"minLength":1,"maxLength":2048},"status":{"type":"string","enum":["connected","needs_reconnect","disconnected"]},"state":{"type":"string","enum":["active","paused"]},"sending":{"type":"object","properties":{"allowed":{"type":"boolean"},"reason":{"type":["string","null"],"enum":["paused_by_member","paused_by_lift","channel_paused","workspace_suspended","disconnected","needs_reconnect","status_unconfirmed","connection_unavailable","sender_deleted","mailbox_not_ready","previous_automation_active","blocked",null]},"scope":{"type":["string","null"],"enum":["account","sender","channel","workspace","all_workspaces",null]}},"required":["allowed","reason","scope"]},"limits":{"anyOf":[{"type":"object","properties":{"emails_per_day":{"type":"integer","minimum":0}},"required":["emails_per_day"]},{"type":"object","properties":{"invitations_per_day":{"type":"integer","minimum":0},"messages_per_day":{"type":"integer","minimum":0},"invitations_per_7_days":{"type":"integer","minimum":0}},"required":["invitations_per_day","messages_per_day","invitations_per_7_days"]},{"type":"null"}]},"disconnect_pause":{"type":"object","properties":{"count":{"type":"integer","minimum":0},"can_resume":{"type":"boolean"}},"required":["count","can_resume"]},"checked_at":{"type":["string","null"],"format":"date-time"},"observation":{"type":"object","properties":{"state":{"type":"string","enum":["verified","unverified"]}},"required":["state"]},"connected_at":{"type":["string","null"],"format":"date-time"},"disconnected_at":{"type":["string","null"],"format":"date-time"},"access_revoked_at":{"type":["string","null"],"format":"date-time"},"access_removal":{"type":["string","null"],"enum":["pending","confirmed","not_applicable",null]},"declaration":{"anyOf":[{"type":"object","properties":{"mailbox_use":{"type":"string","enum":["habitual","dedicated"]},"declared_by":{"type":["string","null"],"format":"uuid"},"declared_at":{"type":"string","format":"date-time"}},"required":["mailbox_use","declared_by","declared_at"]},{"type":"object","properties":{"habitual_personal_account":{"type":"boolean","enum":[true]},"no_other_automation":{"type":"boolean","enum":[true]},"declared_by":{"type":["string","null"],"format":"uuid"},"declared_at":{"type":"string","format":"date-time"}},"required":["habitual_personal_account","no_other_automation","declared_by","declared_at"]},{"type":"null"}]},"sends":{"type":["object","null"],"properties":{"today":{"type":"integer","minimum":0},"last_7_days":{"type":"integer","minimum":0}},"required":["today","last_7_days"]},"participation":{"type":"object","properties":{"status":{"type":"string","enum":["sending","no_active_campaign","waiting_for_first_lead","paused","not_connected","email_not_ready"]},"cause":{"type":"string","enum":["active_journeys","no_active_campaign_on_channel","no_lead_yet","paused_by_member","paused_by_disconnect","campaign_paused","workspace_suspended","sender_off","sender_paused","paused_by_lift","disconnected","needs_reconnect","unverified","warming","placement_required","declaration_required","signature_missing","mailbox_not_ready","health_hold","retired"]},"category":{"type":["string","null"],"enum":["transient","fixable_by_client","long","intentional",null]},"since":{"type":["string","null"],"format":"date-time"},"since_estimated":{"type":"boolean"},"waiting_journeys":{"type":"integer","minimum":0},"stop":{"type":"object","properties":{"scope":{"type":"string","enum":["account","sender","channel","workspace","all_workspaces"]},"origin":{"type":"string","enum":["person","system"]},"reason":{"type":"string","enum":["deliverability_review","account_safety","setup","client_request","maintenance","other","cutover","not_executed_by_lifty","ambiguous_send","provider_risk","recipient_restricted","recorded_before_lif1710","unspecified"]},"review_by":{"type":"string","format":"date-time"}},"required":["scope","origin","reason","review_by"]},"health":{"type":"object","properties":{"reason":{"type":"string","enum":["complaint","bounce_rate","provider_health","placement_failed","safety_check_failed"]}},"required":["reason"]},"also":{"type":"array","items":{"type":"object","properties":{"status":{"type":"string","enum":["sending","no_active_campaign","waiting_for_first_lead","paused","not_connected","email_not_ready"]},"cause":{"type":"string","enum":["active_journeys","no_active_campaign_on_channel","no_lead_yet","paused_by_member","paused_by_disconnect","campaign_paused","workspace_suspended","sender_off","sender_paused","paused_by_lift","disconnected","needs_reconnect","unverified","warming","placement_required","declaration_required","signature_missing","mailbox_not_ready","health_hold","retired"]},"category":{"type":["string","null"],"enum":["transient","fixable_by_client","long","intentional",null]},"since":{"type":["string","null"],"format":"date-time"},"next_step":{"type":"object","properties":{"label":{"type":"string","minLength":1,"maxLength":200},"owner":{"type":"string","enum":["member","lifty","none"]},"action":{"type":"string","enum":["none","wait","lifty_review","contact_lift","reconnect","resume_account","resume_sender","turn_on_sender","resume_campaigns","resume_campaign","set_mailbox_use","add_signature"]},"since":{"type":["string","null"],"format":"date-time"},"since_estimated":{"type":["boolean","null"]},"review_by":{"type":["string","null"],"format":"date-time"}},"required":["label","owner","action","since","since_estimated","review_by"]}},"required":["status","cause","category","since"]},"maxItems":20},"next_step":{"type":"object","properties":{"label":{"type":"string","minLength":1,"maxLength":200},"owner":{"type":"string","enum":["member","lifty","none"]},"action":{"type":"string","enum":["none","wait","lifty_review","contact_lift","reconnect","resume_account","resume_sender","turn_on_sender","resume_campaigns","resume_campaign","set_mailbox_use","add_signature"]},"since":{"type":["string","null"],"format":"date-time"},"since_estimated":{"type":["boolean","null"]},"review_by":{"type":["string","null"],"format":"date-time"}},"required":["label","owner","action","since","since_estimated","review_by"]}},"required":["status","cause"]}},"required":["id","sender_id","channel","identity","status","state","sending","limits","checked_at","observation","connected_at","disconnected_at","access_revoked_at","access_removal","declaration","sends","participation"]},"maxItems":1000},"sending":{"oneOf":[{"type":"object","properties":{"state":{"type":"string","enum":["off"]},"off_at":{"type":"string","format":"date-time"},"reason":{"type":"string","minLength":1},"drain_to_sender_id":{"type":"string","format":"uuid"},"drain_mode":{"type":"string","enum":["unused_channels","continue"]},"leads_remaining":{"type":"integer","minimum":0},"pending_transfer":{"type":"object","properties":{"retired_at":{"type":"string","format":"date-time"},"leads_awaiting_transfer":{"type":"integer","minimum":0},"target_sender_id":{"type":"string","format":"uuid"},"handoff_ref":{"type":["string","null"],"pattern":"^[0-9]{1,20}$"}},"required":["retired_at","leads_awaiting_transfer","target_sender_id","handoff_ref"]},"accounts_retire_at":{"type":["string","null"],"format":"date-time"},"accounts_retired_at":{"type":["string","null"],"format":"date-time"}},"required":["state","off_at","reason","drain_to_sender_id","drain_mode","leads_remaining"]},{"type":"object","properties":{"state":{"type":"string","enum":["paused"]},"paused_at":{"type":"string","format":"date-time"},"reason":{"type":["string","null"],"minLength":1}},"required":["state","paused_at","reason"]}]}},"required":["id","version","name","signature","booking_url","accounts"]}},"required":["workspace","sender"]}}}},"400":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"503":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/workspace/senders/{id}/turn-off":{"post":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"id","in":"path"},{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"expected_version":{"type":"integer","exclusiveMinimum":0},"confirm":{"type":"boolean","enum":[true]},"reason":{"type":"string"},"drain_to_sender_id":{"type":"string","format":"uuid"},"drain_mode":{"type":"string","enum":["unused_channels","continue"]}},"required":["expected_version","confirm","reason","drain_to_sender_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Retire a person with expected_version, confirm:true, a reason and drain_to_sender_id (another person in this workspace who is on, not paused and not deleted; a person with no replacement is paused instead). They stop at once: their accounts stay connected so replies keep arriving until at least sending.accounts_retire_at, then disconnect; they take part in no new Journey and send no outreach. Untouched leads move to the target under ordinary rules. With drain_mode continue, contacted conversations and current replies stay with this person until a sample is approved: drain.handoff_ref names that handoff, so read it with handoff_get and approve it with handoff_approve; approved is not sent. With drain_mode unused_channels the target sends only channels each prospect never received. An omitted drain_mode means continue. drain reports the first batch; Lifty drains the remaining leads on its own. Refused with DRAIN_TARGET_INVALID when the target is missing, foreign, off or paused; nothing changes. Never deletes or sends by itself. After an uncertain response read senders: sending.state off means it is saved.","content":{"application/json":{"schema":{"type":"object","properties":{"workspace":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string","minLength":1,"maxLength":200},"state":{"type":"string","minLength":1}},"required":["workspace_ref","name","state"]},"sender":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"version":{"type":"integer","exclusiveMinimum":0},"name":{"type":"string","minLength":1,"maxLength":200},"signature":{"type":["string","null"],"minLength":1},"booking_url":{"type":["string","null"],"maxLength":2048},"accounts":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"sender_id":{"type":"string","format":"uuid"},"channel":{"type":"string","enum":["email","linkedin"]},"identity":{"type":["string","null"],"minLength":1,"maxLength":2048},"status":{"type":"string","enum":["connected","needs_reconnect","disconnected"]},"state":{"type":"string","enum":["active","paused"]},"sending":{"type":"object","properties":{"allowed":{"type":"boolean"},"reason":{"type":["string","null"],"enum":["paused_by_member","paused_by_lift","channel_paused","workspace_suspended","disconnected","needs_reconnect","status_unconfirmed","connection_unavailable","sender_deleted","mailbox_not_ready","previous_automation_active","blocked",null]},"scope":{"type":["string","null"],"enum":["account","sender","channel","workspace","all_workspaces",null]}},"required":["allowed","reason","scope"]},"limits":{"anyOf":[{"type":"object","properties":{"emails_per_day":{"type":"integer","minimum":0}},"required":["emails_per_day"]},{"type":"object","properties":{"invitations_per_day":{"type":"integer","minimum":0},"messages_per_day":{"type":"integer","minimum":0},"invitations_per_7_days":{"type":"integer","minimum":0}},"required":["invitations_per_day","messages_per_day","invitations_per_7_days"]},{"type":"null"}]},"disconnect_pause":{"type":"object","properties":{"count":{"type":"integer","minimum":0},"can_resume":{"type":"boolean"}},"required":["count","can_resume"]},"checked_at":{"type":["string","null"],"format":"date-time"},"observation":{"type":"object","properties":{"state":{"type":"string","enum":["verified","unverified"]}},"required":["state"]},"connected_at":{"type":["string","null"],"format":"date-time"},"disconnected_at":{"type":["string","null"],"format":"date-time"},"access_revoked_at":{"type":["string","null"],"format":"date-time"},"access_removal":{"type":["string","null"],"enum":["pending","confirmed","not_applicable",null]},"declaration":{"anyOf":[{"type":"object","properties":{"mailbox_use":{"type":"string","enum":["habitual","dedicated"]},"declared_by":{"type":["string","null"],"format":"uuid"},"declared_at":{"type":"string","format":"date-time"}},"required":["mailbox_use","declared_by","declared_at"]},{"type":"object","properties":{"habitual_personal_account":{"type":"boolean","enum":[true]},"no_other_automation":{"type":"boolean","enum":[true]},"declared_by":{"type":["string","null"],"format":"uuid"},"declared_at":{"type":"string","format":"date-time"}},"required":["habitual_personal_account","no_other_automation","declared_by","declared_at"]},{"type":"null"}]},"sends":{"type":["object","null"],"properties":{"today":{"type":"integer","minimum":0},"last_7_days":{"type":"integer","minimum":0}},"required":["today","last_7_days"]},"participation":{"type":"object","properties":{"status":{"type":"string","enum":["sending","no_active_campaign","waiting_for_first_lead","paused","not_connected","email_not_ready"]},"cause":{"type":"string","enum":["active_journeys","no_active_campaign_on_channel","no_lead_yet","paused_by_member","paused_by_disconnect","campaign_paused","workspace_suspended","sender_off","sender_paused","paused_by_lift","disconnected","needs_reconnect","unverified","warming","placement_required","declaration_required","signature_missing","mailbox_not_ready","health_hold","retired"]},"category":{"type":["string","null"],"enum":["transient","fixable_by_client","long","intentional",null]},"since":{"type":["string","null"],"format":"date-time"},"since_estimated":{"type":"boolean"},"waiting_journeys":{"type":"integer","minimum":0},"stop":{"type":"object","properties":{"scope":{"type":"string","enum":["account","sender","channel","workspace","all_workspaces"]},"origin":{"type":"string","enum":["person","system"]},"reason":{"type":"string","enum":["deliverability_review","account_safety","setup","client_request","maintenance","other","cutover","not_executed_by_lifty","ambiguous_send","provider_risk","recipient_restricted","recorded_before_lif1710","unspecified"]},"review_by":{"type":"string","format":"date-time"}},"required":["scope","origin","reason","review_by"]},"health":{"type":"object","properties":{"reason":{"type":"string","enum":["complaint","bounce_rate","provider_health","placement_failed","safety_check_failed"]}},"required":["reason"]},"also":{"type":"array","items":{"type":"object","properties":{"status":{"type":"string","enum":["sending","no_active_campaign","waiting_for_first_lead","paused","not_connected","email_not_ready"]},"cause":{"type":"string","enum":["active_journeys","no_active_campaign_on_channel","no_lead_yet","paused_by_member","paused_by_disconnect","campaign_paused","workspace_suspended","sender_off","sender_paused","paused_by_lift","disconnected","needs_reconnect","unverified","warming","placement_required","declaration_required","signature_missing","mailbox_not_ready","health_hold","retired"]},"category":{"type":["string","null"],"enum":["transient","fixable_by_client","long","intentional",null]},"since":{"type":["string","null"],"format":"date-time"},"next_step":{"type":"object","properties":{"label":{"type":"string","minLength":1,"maxLength":200},"owner":{"type":"string","enum":["member","lifty","none"]},"action":{"type":"string","enum":["none","wait","lifty_review","contact_lift","reconnect","resume_account","resume_sender","turn_on_sender","resume_campaigns","resume_campaign","set_mailbox_use","add_signature"]},"since":{"type":["string","null"],"format":"date-time"},"since_estimated":{"type":["boolean","null"]},"review_by":{"type":["string","null"],"format":"date-time"}},"required":["label","owner","action","since","since_estimated","review_by"]}},"required":["status","cause","category","since"]},"maxItems":20},"next_step":{"type":"object","properties":{"label":{"type":"string","minLength":1,"maxLength":200},"owner":{"type":"string","enum":["member","lifty","none"]},"action":{"type":"string","enum":["none","wait","lifty_review","contact_lift","reconnect","resume_account","resume_sender","turn_on_sender","resume_campaigns","resume_campaign","set_mailbox_use","add_signature"]},"since":{"type":["string","null"],"format":"date-time"},"since_estimated":{"type":["boolean","null"]},"review_by":{"type":["string","null"],"format":"date-time"}},"required":["label","owner","action","since","since_estimated","review_by"]}},"required":["status","cause"]}},"required":["id","sender_id","channel","identity","status","state","sending","limits","checked_at","observation","connected_at","disconnected_at","access_revoked_at","access_removal","declaration","sends","participation"]},"maxItems":1000},"sending":{"oneOf":[{"type":"object","properties":{"state":{"type":"string","enum":["off"]},"off_at":{"type":"string","format":"date-time"},"reason":{"type":"string","minLength":1},"drain_to_sender_id":{"type":"string","format":"uuid"},"drain_mode":{"type":"string","enum":["unused_channels","continue"]},"leads_remaining":{"type":"integer","minimum":0},"pending_transfer":{"type":"object","properties":{"retired_at":{"type":"string","format":"date-time"},"leads_awaiting_transfer":{"type":"integer","minimum":0},"target_sender_id":{"type":"string","format":"uuid"},"handoff_ref":{"type":["string","null"],"pattern":"^[0-9]{1,20}$"}},"required":["retired_at","leads_awaiting_transfer","target_sender_id","handoff_ref"]},"accounts_retire_at":{"type":["string","null"],"format":"date-time"},"accounts_retired_at":{"type":["string","null"],"format":"date-time"}},"required":["state","off_at","reason","drain_to_sender_id","drain_mode","leads_remaining"]},{"type":"object","properties":{"state":{"type":"string","enum":["paused"]},"paused_at":{"type":"string","format":"date-time"},"reason":{"type":["string","null"],"minLength":1}},"required":["state","paused_at","reason"]}]}},"required":["id","version","name","signature","booking_url","accounts"]},"drain":{"anyOf":[{"type":"object","properties":{"sender_id":{"type":"string","format":"uuid"},"drain_to_sender_id":{"type":"string","format":"uuid"},"mode":{"type":"string","enum":["unused_channels","continue"]},"outcomes":{"type":"object","properties":{"moved":{"type":"integer","exclusiveMinimum":0},"closed":{"type":"integer","exclusiveMinimum":0},"skipped":{"type":"integer","exclusiveMinimum":0},"waiting_send":{"type":"integer","exclusiveMinimum":0},"waiting_customer_list":{"type":"integer","exclusiveMinimum":0},"error":{"type":"integer","exclusiveMinimum":0},"waiting_sample_approval":{"type":"integer","exclusiveMinimum":0},"handoff_canceled":{"type":"integer","exclusiveMinimum":0},"handoff_context_changed":{"type":"integer","exclusiveMinimum":0}}},"errors":{"type":"array","items":{"type":"object","properties":{"lead_ref":{"type":"string","format":"uuid"},"sqlstate":{"type":"string","pattern":"^[0-9A-Z]{5}$"}},"required":["lead_ref","sqlstate"]},"maxItems":10},"remaining":{"type":"integer","minimum":0},"handoff_ref":{"type":["string","null"],"pattern":"^[0-9]{1,20}$"}},"required":["sender_id","drain_to_sender_id","mode","outcomes","errors","remaining"]},{"type":"object","properties":{"sender_id":{"type":"string","format":"uuid"},"drain_to_sender_id":{"type":"string","format":"uuid"},"mode":{"type":"string","enum":["unused_channels","continue"]},"state":{"type":"string","enum":["target_unavailable","waiting_customer_list"]}},"required":["sender_id","drain_to_sender_id","mode","state"]}]}},"required":["workspace","sender","drain"]}}}},"400":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"503":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/workspace/senders/{id}/turn-on":{"post":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"id","in":"path"},{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"expected_version":{"type":"integer","exclusiveMinimum":0},"confirm":{"type":"boolean","enum":[true]}},"required":["expected_version","confirm"],"additionalProperties":false}}}},"responses":{"200":{"description":"Turn a person who is off back on with expected_version and confirm:true: they take part in new Journeys again; drained leads stay with the person they moved to. Never connects or sends by itself. After an uncertain response read senders: no sending object means the person is on.","content":{"application/json":{"schema":{"type":"object","properties":{"workspace":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string","minLength":1,"maxLength":200},"state":{"type":"string","minLength":1}},"required":["workspace_ref","name","state"]},"sender":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"version":{"type":"integer","exclusiveMinimum":0},"name":{"type":"string","minLength":1,"maxLength":200},"signature":{"type":["string","null"],"minLength":1},"booking_url":{"type":["string","null"],"maxLength":2048},"accounts":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"sender_id":{"type":"string","format":"uuid"},"channel":{"type":"string","enum":["email","linkedin"]},"identity":{"type":["string","null"],"minLength":1,"maxLength":2048},"status":{"type":"string","enum":["connected","needs_reconnect","disconnected"]},"state":{"type":"string","enum":["active","paused"]},"sending":{"type":"object","properties":{"allowed":{"type":"boolean"},"reason":{"type":["string","null"],"enum":["paused_by_member","paused_by_lift","channel_paused","workspace_suspended","disconnected","needs_reconnect","status_unconfirmed","connection_unavailable","sender_deleted","mailbox_not_ready","previous_automation_active","blocked",null]},"scope":{"type":["string","null"],"enum":["account","sender","channel","workspace","all_workspaces",null]}},"required":["allowed","reason","scope"]},"limits":{"anyOf":[{"type":"object","properties":{"emails_per_day":{"type":"integer","minimum":0}},"required":["emails_per_day"]},{"type":"object","properties":{"invitations_per_day":{"type":"integer","minimum":0},"messages_per_day":{"type":"integer","minimum":0},"invitations_per_7_days":{"type":"integer","minimum":0}},"required":["invitations_per_day","messages_per_day","invitations_per_7_days"]},{"type":"null"}]},"disconnect_pause":{"type":"object","properties":{"count":{"type":"integer","minimum":0},"can_resume":{"type":"boolean"}},"required":["count","can_resume"]},"checked_at":{"type":["string","null"],"format":"date-time"},"observation":{"type":"object","properties":{"state":{"type":"string","enum":["verified","unverified"]}},"required":["state"]},"connected_at":{"type":["string","null"],"format":"date-time"},"disconnected_at":{"type":["string","null"],"format":"date-time"},"access_revoked_at":{"type":["string","null"],"format":"date-time"},"access_removal":{"type":["string","null"],"enum":["pending","confirmed","not_applicable",null]},"declaration":{"anyOf":[{"type":"object","properties":{"mailbox_use":{"type":"string","enum":["habitual","dedicated"]},"declared_by":{"type":["string","null"],"format":"uuid"},"declared_at":{"type":"string","format":"date-time"}},"required":["mailbox_use","declared_by","declared_at"]},{"type":"object","properties":{"habitual_personal_account":{"type":"boolean","enum":[true]},"no_other_automation":{"type":"boolean","enum":[true]},"declared_by":{"type":["string","null"],"format":"uuid"},"declared_at":{"type":"string","format":"date-time"}},"required":["habitual_personal_account","no_other_automation","declared_by","declared_at"]},{"type":"null"}]},"sends":{"type":["object","null"],"properties":{"today":{"type":"integer","minimum":0},"last_7_days":{"type":"integer","minimum":0}},"required":["today","last_7_days"]},"participation":{"type":"object","properties":{"status":{"type":"string","enum":["sending","no_active_campaign","waiting_for_first_lead","paused","not_connected","email_not_ready"]},"cause":{"type":"string","enum":["active_journeys","no_active_campaign_on_channel","no_lead_yet","paused_by_member","paused_by_disconnect","campaign_paused","workspace_suspended","sender_off","sender_paused","paused_by_lift","disconnected","needs_reconnect","unverified","warming","placement_required","declaration_required","signature_missing","mailbox_not_ready","health_hold","retired"]},"category":{"type":["string","null"],"enum":["transient","fixable_by_client","long","intentional",null]},"since":{"type":["string","null"],"format":"date-time"},"since_estimated":{"type":"boolean"},"waiting_journeys":{"type":"integer","minimum":0},"stop":{"type":"object","properties":{"scope":{"type":"string","enum":["account","sender","channel","workspace","all_workspaces"]},"origin":{"type":"string","enum":["person","system"]},"reason":{"type":"string","enum":["deliverability_review","account_safety","setup","client_request","maintenance","other","cutover","not_executed_by_lifty","ambiguous_send","provider_risk","recipient_restricted","recorded_before_lif1710","unspecified"]},"review_by":{"type":"string","format":"date-time"}},"required":["scope","origin","reason","review_by"]},"health":{"type":"object","properties":{"reason":{"type":"string","enum":["complaint","bounce_rate","provider_health","placement_failed","safety_check_failed"]}},"required":["reason"]},"also":{"type":"array","items":{"type":"object","properties":{"status":{"type":"string","enum":["sending","no_active_campaign","waiting_for_first_lead","paused","not_connected","email_not_ready"]},"cause":{"type":"string","enum":["active_journeys","no_active_campaign_on_channel","no_lead_yet","paused_by_member","paused_by_disconnect","campaign_paused","workspace_suspended","sender_off","sender_paused","paused_by_lift","disconnected","needs_reconnect","unverified","warming","placement_required","declaration_required","signature_missing","mailbox_not_ready","health_hold","retired"]},"category":{"type":["string","null"],"enum":["transient","fixable_by_client","long","intentional",null]},"since":{"type":["string","null"],"format":"date-time"},"next_step":{"type":"object","properties":{"label":{"type":"string","minLength":1,"maxLength":200},"owner":{"type":"string","enum":["member","lifty","none"]},"action":{"type":"string","enum":["none","wait","lifty_review","contact_lift","reconnect","resume_account","resume_sender","turn_on_sender","resume_campaigns","resume_campaign","set_mailbox_use","add_signature"]},"since":{"type":["string","null"],"format":"date-time"},"since_estimated":{"type":["boolean","null"]},"review_by":{"type":["string","null"],"format":"date-time"}},"required":["label","owner","action","since","since_estimated","review_by"]}},"required":["status","cause","category","since"]},"maxItems":20},"next_step":{"type":"object","properties":{"label":{"type":"string","minLength":1,"maxLength":200},"owner":{"type":"string","enum":["member","lifty","none"]},"action":{"type":"string","enum":["none","wait","lifty_review","contact_lift","reconnect","resume_account","resume_sender","turn_on_sender","resume_campaigns","resume_campaign","set_mailbox_use","add_signature"]},"since":{"type":["string","null"],"format":"date-time"},"since_estimated":{"type":["boolean","null"]},"review_by":{"type":["string","null"],"format":"date-time"}},"required":["label","owner","action","since","since_estimated","review_by"]}},"required":["status","cause"]}},"required":["id","sender_id","channel","identity","status","state","sending","limits","checked_at","observation","connected_at","disconnected_at","access_revoked_at","access_removal","declaration","sends","participation"]},"maxItems":1000},"sending":{"oneOf":[{"type":"object","properties":{"state":{"type":"string","enum":["off"]},"off_at":{"type":"string","format":"date-time"},"reason":{"type":"string","minLength":1},"drain_to_sender_id":{"type":"string","format":"uuid"},"drain_mode":{"type":"string","enum":["unused_channels","continue"]},"leads_remaining":{"type":"integer","minimum":0},"pending_transfer":{"type":"object","properties":{"retired_at":{"type":"string","format":"date-time"},"leads_awaiting_transfer":{"type":"integer","minimum":0},"target_sender_id":{"type":"string","format":"uuid"},"handoff_ref":{"type":["string","null"],"pattern":"^[0-9]{1,20}$"}},"required":["retired_at","leads_awaiting_transfer","target_sender_id","handoff_ref"]},"accounts_retire_at":{"type":["string","null"],"format":"date-time"},"accounts_retired_at":{"type":["string","null"],"format":"date-time"}},"required":["state","off_at","reason","drain_to_sender_id","drain_mode","leads_remaining"]},{"type":"object","properties":{"state":{"type":"string","enum":["paused"]},"paused_at":{"type":"string","format":"date-time"},"reason":{"type":["string","null"],"minLength":1}},"required":["state","paused_at","reason"]}]}},"required":["id","version","name","signature","booking_url","accounts"]}},"required":["workspace","sender"]}}}},"400":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"503":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/workspace/outreach-settings":{"get":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"responses":{"200":{"description":"Read how this workspace assigns new leads (equal, founder_weight or tier_a_founder, and its founder), the handoff sample size and the review policy, with their versions. Read-only.","content":{"application/json":{"schema":{"type":"object","properties":{"workspace":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string","minLength":1,"maxLength":200},"state":{"type":"string","minLength":1}},"required":["workspace_ref","name","state"]},"settings":{"type":"object","properties":{"version":{"type":"integer","minimum":0},"assignment":{"type":"object","properties":{"mode":{"type":"string","enum":["equal","founder_weight","tier_a_founder"]},"founder_sender_id":{"type":["string","null"],"format":"uuid"}},"required":["mode","founder_sender_id"]},"handoff":{"type":"object","properties":{"sample_size":{"type":"integer","minimum":1,"maximum":100}},"required":["sample_size"]},"review":{"type":"object","properties":{"version":{"type":"integer","exclusiveMinimum":0},"linkedin":{"type":"object","properties":{"mode":{"type":"string","enum":["approve_each","send_and_sample"]},"sample_rate":{"anyOf":[{"type":"number","enum":[0]},{"type":"number","enum":[10]},{"type":"number","enum":[20]},{"type":"number","enum":[50]}]}},"required":["mode","sample_rate"]},"email":{"type":"object","properties":{"mode":{"type":"string","enum":["approve_each","send_and_sample"]},"sample_rate":{"anyOf":[{"type":"number","enum":[0]},{"type":"number","enum":[10]},{"type":"number","enum":[20]},{"type":"number","enum":[50]}]}},"required":["mode","sample_rate"]}},"required":["version","linkedin","email"]}},"required":["version","assignment","handoff","review"]}},"required":["workspace","settings"]}}}},"400":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"503":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}},"patch":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"expected_version":{"type":"integer","minimum":0},"assignment":{"type":"object","properties":{"mode":{"type":"string","enum":["equal","founder_weight","tier_a_founder"]},"founder_sender_id":{"type":["string","null"],"format":"uuid"}},"required":["mode"],"additionalProperties":false},"handoff":{"type":"object","properties":{"sample_size":{"type":"integer","minimum":1,"maximum":100}},"required":["sample_size"],"additionalProperties":false}},"required":["expected_version"],"additionalProperties":false}}}},"responses":{"200":{"description":"Change assignment and/or handoff sample size with expected_version (0 until the first save). Both commit or refuse together. Review policy is not changed here: use campaigns review_settings_patch. founder_weight and tier_a_founder need a founder_sender_id who is on. Applies to new leads and new handoffs; leads already assigned stay put. Never sends.","content":{"application/json":{"schema":{"type":"object","properties":{"workspace":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string","minLength":1,"maxLength":200},"state":{"type":"string","minLength":1}},"required":["workspace_ref","name","state"]},"settings":{"type":"object","properties":{"version":{"type":"integer","minimum":0},"assignment":{"type":"object","properties":{"mode":{"type":"string","enum":["equal","founder_weight","tier_a_founder"]},"founder_sender_id":{"type":["string","null"],"format":"uuid"}},"required":["mode","founder_sender_id"]},"handoff":{"type":"object","properties":{"sample_size":{"type":"integer","minimum":1,"maximum":100}},"required":["sample_size"]},"review":{"type":"object","properties":{"version":{"type":"integer","exclusiveMinimum":0},"linkedin":{"type":"object","properties":{"mode":{"type":"string","enum":["approve_each","send_and_sample"]},"sample_rate":{"anyOf":[{"type":"number","enum":[0]},{"type":"number","enum":[10]},{"type":"number","enum":[20]},{"type":"number","enum":[50]}]}},"required":["mode","sample_rate"]},"email":{"type":"object","properties":{"mode":{"type":"string","enum":["approve_each","send_and_sample"]},"sample_rate":{"anyOf":[{"type":"number","enum":[0]},{"type":"number","enum":[10]},{"type":"number","enum":[20]},{"type":"number","enum":[50]}]}},"required":["mode","sample_rate"]}},"required":["version","linkedin","email"]}},"required":["version","assignment","handoff","review"]}},"required":["workspace","settings"]}}}},"400":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"503":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/workspace/senders/{id}/transfer-scope":{"get":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"id","in":"path"},{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"responses":{"200":{"description":"Before a retire, read how it is expected to divide this person's leads: not_contacted would move to the replacement, and conversations would wait for a sample; replies are already inside conversations. Never add the groups or call them all of the person's leads: a contacted lead with nothing to continue is in neither. It is an estimate made before a target is chosen, and it assumes the replacement can send email, so show it as what to expect. What a retire actually did is in its receipt. Read-only.","content":{"application/json":{"schema":{"type":"object","properties":{"workspace":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string","minLength":1,"maxLength":200},"state":{"type":"string","minLength":1}},"required":["workspace_ref","name","state"]},"sender_id":{"type":"string","format":"uuid"},"not_contacted":{"type":"integer","minimum":0},"conversations":{"type":"integer","minimum":0},"replies":{"type":"integer","minimum":0}},"required":["workspace","sender_id","not_contacted","conversations","replies"]}}}},"400":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"503":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/workspace/sender-handoffs/{handoff_ref}":{"get":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","pattern":"^[0-9]{1,20}$"},"required":true,"name":"handoff_ref","in":"path"},{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"responses":{"200":{"description":"Read one handoff by the handoff_ref from retire or recovery: source and replacement, sample with real drafts, cohort and remainder, what is held for a person (held_for_human), and each member's dispatch_reason. sample_complete says whether it can be approved. Approved and queued are not sent. Read-only.","content":{"application/json":{"schema":{"type":"object","properties":{"contract":{"type":"string","enum":["sender-handoff-approval.v2"]},"drain_ref":{"type":"string","pattern":"^[0-9]{1,20}$"},"workspace_id":{"type":"string","format":"uuid"},"state":{"type":"string","pattern":"^[a-z][a-z0-9_:]{0,99}$"},"source_sender_id":{"type":"string","format":"uuid"},"replacement":{"type":"object","properties":{"available":{"type":"boolean"},"sender_id":{"type":"string","format":"uuid"},"display_name":{"type":["string","null"]},"signature":{"type":["string","null"]},"pinned_signature":{"type":["string","null"]},"version":{"type":["integer","null"]},"pinned_version":{"type":["integer","null"]}},"required":["available","sender_id","display_name","signature","pinned_signature","version","pinned_version"]},"authorization":{"type":"object","properties":{"state":{"type":"string","enum":["waiting_sample_approval","authorized","canceled"]},"actor_id":{"type":"string","format":"uuid"},"approved_at":{"type":"string","format":"date-time"},"revision":{"type":"string","pattern":"^[a-f0-9]{64}$"}},"required":["state"]},"confirmation_action":{"type":"string","enum":["approve_sample_and_transfer"]},"revision":{"type":"string","pattern":"^[a-f0-9]{64}$"},"scope_sha256":{"type":"string","pattern":"^[a-f0-9]{64}$"},"settings_sha256":{"type":"string","pattern":"^[a-f0-9]{64}$"},"context_sha256":{"type":"string","pattern":"^[a-f0-9]{64}$"},"settings_revision":{"type":"integer","exclusiveMinimum":0},"generation_settings":{"type":"object","properties":{"instructions":{"type":"string"}},"required":["instructions"]},"sample_complete":{"type":"boolean"},"configured_sample_size":{"type":"integer","minimum":0},"cohort_count":{"type":"integer","minimum":0},"sample_count":{"type":"integer","minimum":0},"remainder_count":{"type":"integer","minimum":0},"current_reply_count":{"type":"integer","minimum":0},"prepared_count":{"type":"integer","minimum":0},"preparing_count":{"type":"integer","minimum":0},"held_for_human":{"type":"integer","minimum":0},"transferred_count":{"type":"integer","minimum":0},"untouched_transferred_count":{"type":"integer","minimum":0},"queued_count":{"type":"integer","minimum":0},"waiting_count":{"type":"integer","minimum":0},"samples":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","pattern":"^[a-z][a-z0-9_:]{0,99}$"},"lead_ref":{"type":"string","format":"uuid"},"prepared":{"type":"boolean"},"subject":{"type":["string","null"]},"body":{"type":["string","null"]},"answering_route":{"type":["object","null"],"properties":{"sender_id":{"type":"string","format":"uuid"},"channel":{"type":"string","enum":["email","linkedin"]},"connection_ref":{"type":["string","null"],"format":"uuid"},"mailbox_email":{"type":["string","null"]},"turn_id":{"type":"string","format":"uuid"},"inbound_event_id":{"type":["string","null"],"format":"uuid"},"handoff_from":{"type":["object","null"],"properties":{"sender_id":{"type":"string","format":"uuid"},"display_name":{"type":["string","null"]}},"required":["sender_id","display_name"]},"route":{"type":"object","properties":{"channel":{"type":"string","enum":["email","linkedin"]},"connection_ref":{"type":["string","null"],"format":"uuid"},"inbound_channel":{"type":["string","null"],"enum":["email","linkedin",null]},"recipient_email":{"type":["string","null"]},"rerouted":{"type":"boolean"},"subject":{"type":["string","null"]}},"required":["channel"]}},"required":["sender_id"]},"context":{"type":"object","properties":{"handoff_from":{"type":["object","null"],"properties":{"sender_id":{"type":"string","format":"uuid"},"display_name":{"type":["string","null"]}},"required":["sender_id","display_name"]},"inbound_event_ref":{"type":"string","format":"uuid"},"kind":{"type":"string","pattern":"^[a-z][a-z0-9_:]{0,99}$"},"first_due_at":{"type":["string","null"],"format":"date-time"},"history":{"type":"array","items":{"type":"object","properties":{"position":{"type":"integer","exclusiveMinimum":0},"original_position":{"type":"integer","exclusiveMinimum":0},"subject":{"type":["string","null"]},"text":{"type":"string"},"accepted_at":{"type":"string","format":"date-time"}},"required":["subject","text","accepted_at"]},"maxItems":100},"last_accepted_email":{"type":["object","null"],"properties":{"position":{"type":"integer","exclusiveMinimum":0},"original_position":{"type":"integer","exclusiveMinimum":0},"subject":{"type":["string","null"]},"text":{"type":"string"},"accepted_at":{"type":"string","format":"date-time"}},"required":["subject","text","accepted_at"]},"last_proactive_touch_at":{"type":["string","null"],"format":"date-time"},"original_next_position":{"type":["integer","null"],"exclusiveMinimum":0},"original_positions":{"type":"array","items":{"type":"integer","exclusiveMinimum":0},"maxItems":100},"original_total_steps":{"type":"integer","exclusiveMinimum":0}}},"run_ref":{"type":["string","null"],"format":"uuid"},"source_run_ref":{"type":["string","null"],"format":"uuid"},"message_ref":{"type":["string","null"],"format":"uuid"},"email_version_ref":{"type":["string","null"],"format":"uuid"},"turn_ref":{"type":["string","null"],"format":"uuid"},"turn_version":{"type":["integer","null"],"minimum":0},"draft_event_ref":{"type":["string","null"],"format":"uuid"}},"required":["kind","lead_ref","prepared","subject","body","answering_route","context"]},"maxItems":100},"members":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["proactive","current_reply"]},"lead_ref":{"type":"string","format":"uuid"},"owner":{"type":["string","null"],"format":"uuid"},"prepared":{"type":"boolean"},"reason":{"type":["string","null"],"pattern":"^[a-z][a-z0-9_:]{0,99}$"},"dispatch_reason":{"type":["string","null"],"minLength":1,"maxLength":500},"run_ref":{"type":["string","null"],"format":"uuid"},"turn_ref":{"type":["string","null"],"format":"uuid"},"turn_version":{"type":["integer","null"],"minimum":0},"route":{"type":["object","null"],"properties":{"sender_id":{"type":"string","format":"uuid"},"channel":{"type":"string","enum":["email","linkedin"]},"connection_ref":{"type":["string","null"],"format":"uuid"},"mailbox_email":{"type":["string","null"]},"turn_id":{"type":"string","format":"uuid"},"inbound_event_id":{"type":["string","null"],"format":"uuid"},"handoff_from":{"type":["object","null"],"properties":{"sender_id":{"type":"string","format":"uuid"},"display_name":{"type":["string","null"]}},"required":["sender_id","display_name"]},"route":{"type":"object","properties":{"channel":{"type":"string","enum":["email","linkedin"]},"connection_ref":{"type":["string","null"],"format":"uuid"},"inbound_channel":{"type":["string","null"],"enum":["email","linkedin",null]},"recipient_email":{"type":["string","null"]},"rerouted":{"type":"boolean"},"subject":{"type":["string","null"]}},"required":["channel"]}},"required":["sender_id"]}},"required":["kind","lead_ref","owner","prepared","reason","dispatch_reason","run_ref","turn_ref","turn_version","route"]},"maxItems":20000}},"required":["contract","drain_ref","workspace_id","state","source_sender_id","replacement","authorization","confirmation_action","revision","scope_sha256","settings_sha256","context_sha256","settings_revision","generation_settings","sample_complete","configured_sample_size","cohort_count","sample_count","remainder_count","current_reply_count","prepared_count","preparing_count","held_for_human","transferred_count","untouched_transferred_count","queued_count","waiting_count","samples","members"]}}}},"400":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"503":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/workspace/sender-handoffs/{handoff_ref}/prepare":{"post":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","pattern":"^[0-9]{1,20}$"},"required":true,"name":"handoff_ref","in":"path"},{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"responses":{"200":{"description":"Ask Lifty to finish preparing this handoff's sample and remaining members. Prepares drafts only: it approves nothing, moves no contacted lead and sends nothing. Repeat freely; drafts arrive on their own, so read handoff_get.","content":{"application/json":{"schema":{"type":"object","properties":{"contract":{"type":"string","enum":["sender-handoff-approval.v2"]},"drain_ref":{"type":"string","pattern":"^[0-9]{1,20}$"},"workspace_id":{"type":"string","format":"uuid"},"state":{"type":"string","pattern":"^[a-z][a-z0-9_:]{0,99}$"},"source_sender_id":{"type":"string","format":"uuid"},"replacement":{"type":"object","properties":{"available":{"type":"boolean"},"sender_id":{"type":"string","format":"uuid"},"display_name":{"type":["string","null"]},"signature":{"type":["string","null"]},"pinned_signature":{"type":["string","null"]},"version":{"type":["integer","null"]},"pinned_version":{"type":["integer","null"]}},"required":["available","sender_id","display_name","signature","pinned_signature","version","pinned_version"]},"authorization":{"type":"object","properties":{"state":{"type":"string","enum":["waiting_sample_approval","authorized","canceled"]},"actor_id":{"type":"string","format":"uuid"},"approved_at":{"type":"string","format":"date-time"},"revision":{"type":"string","pattern":"^[a-f0-9]{64}$"}},"required":["state"]},"confirmation_action":{"type":"string","enum":["approve_sample_and_transfer"]},"revision":{"type":"string","pattern":"^[a-f0-9]{64}$"},"scope_sha256":{"type":"string","pattern":"^[a-f0-9]{64}$"},"settings_sha256":{"type":"string","pattern":"^[a-f0-9]{64}$"},"context_sha256":{"type":"string","pattern":"^[a-f0-9]{64}$"},"settings_revision":{"type":"integer","exclusiveMinimum":0},"generation_settings":{"type":"object","properties":{"instructions":{"type":"string"}},"required":["instructions"]},"sample_complete":{"type":"boolean"},"configured_sample_size":{"type":"integer","minimum":0},"cohort_count":{"type":"integer","minimum":0},"sample_count":{"type":"integer","minimum":0},"remainder_count":{"type":"integer","minimum":0},"current_reply_count":{"type":"integer","minimum":0},"prepared_count":{"type":"integer","minimum":0},"preparing_count":{"type":"integer","minimum":0},"held_for_human":{"type":"integer","minimum":0},"transferred_count":{"type":"integer","minimum":0},"untouched_transferred_count":{"type":"integer","minimum":0},"queued_count":{"type":"integer","minimum":0},"waiting_count":{"type":"integer","minimum":0},"samples":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","pattern":"^[a-z][a-z0-9_:]{0,99}$"},"lead_ref":{"type":"string","format":"uuid"},"prepared":{"type":"boolean"},"subject":{"type":["string","null"]},"body":{"type":["string","null"]},"answering_route":{"type":["object","null"],"properties":{"sender_id":{"type":"string","format":"uuid"},"channel":{"type":"string","enum":["email","linkedin"]},"connection_ref":{"type":["string","null"],"format":"uuid"},"mailbox_email":{"type":["string","null"]},"turn_id":{"type":"string","format":"uuid"},"inbound_event_id":{"type":["string","null"],"format":"uuid"},"handoff_from":{"type":["object","null"],"properties":{"sender_id":{"type":"string","format":"uuid"},"display_name":{"type":["string","null"]}},"required":["sender_id","display_name"]},"route":{"type":"object","properties":{"channel":{"type":"string","enum":["email","linkedin"]},"connection_ref":{"type":["string","null"],"format":"uuid"},"inbound_channel":{"type":["string","null"],"enum":["email","linkedin",null]},"recipient_email":{"type":["string","null"]},"rerouted":{"type":"boolean"},"subject":{"type":["string","null"]}},"required":["channel"]}},"required":["sender_id"]},"context":{"type":"object","properties":{"handoff_from":{"type":["object","null"],"properties":{"sender_id":{"type":"string","format":"uuid"},"display_name":{"type":["string","null"]}},"required":["sender_id","display_name"]},"inbound_event_ref":{"type":"string","format":"uuid"},"kind":{"type":"string","pattern":"^[a-z][a-z0-9_:]{0,99}$"},"first_due_at":{"type":["string","null"],"format":"date-time"},"history":{"type":"array","items":{"type":"object","properties":{"position":{"type":"integer","exclusiveMinimum":0},"original_position":{"type":"integer","exclusiveMinimum":0},"subject":{"type":["string","null"]},"text":{"type":"string"},"accepted_at":{"type":"string","format":"date-time"}},"required":["subject","text","accepted_at"]},"maxItems":100},"last_accepted_email":{"type":["object","null"],"properties":{"position":{"type":"integer","exclusiveMinimum":0},"original_position":{"type":"integer","exclusiveMinimum":0},"subject":{"type":["string","null"]},"text":{"type":"string"},"accepted_at":{"type":"string","format":"date-time"}},"required":["subject","text","accepted_at"]},"last_proactive_touch_at":{"type":["string","null"],"format":"date-time"},"original_next_position":{"type":["integer","null"],"exclusiveMinimum":0},"original_positions":{"type":"array","items":{"type":"integer","exclusiveMinimum":0},"maxItems":100},"original_total_steps":{"type":"integer","exclusiveMinimum":0}}},"run_ref":{"type":["string","null"],"format":"uuid"},"source_run_ref":{"type":["string","null"],"format":"uuid"},"message_ref":{"type":["string","null"],"format":"uuid"},"email_version_ref":{"type":["string","null"],"format":"uuid"},"turn_ref":{"type":["string","null"],"format":"uuid"},"turn_version":{"type":["integer","null"],"minimum":0},"draft_event_ref":{"type":["string","null"],"format":"uuid"}},"required":["kind","lead_ref","prepared","subject","body","answering_route","context"]},"maxItems":100},"members":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["proactive","current_reply"]},"lead_ref":{"type":"string","format":"uuid"},"owner":{"type":["string","null"],"format":"uuid"},"prepared":{"type":"boolean"},"reason":{"type":["string","null"],"pattern":"^[a-z][a-z0-9_:]{0,99}$"},"dispatch_reason":{"type":["string","null"],"minLength":1,"maxLength":500},"run_ref":{"type":["string","null"],"format":"uuid"},"turn_ref":{"type":["string","null"],"format":"uuid"},"turn_version":{"type":["integer","null"],"minimum":0},"route":{"type":["object","null"],"properties":{"sender_id":{"type":"string","format":"uuid"},"channel":{"type":"string","enum":["email","linkedin"]},"connection_ref":{"type":["string","null"],"format":"uuid"},"mailbox_email":{"type":["string","null"]},"turn_id":{"type":"string","format":"uuid"},"inbound_event_id":{"type":["string","null"],"format":"uuid"},"handoff_from":{"type":["object","null"],"properties":{"sender_id":{"type":"string","format":"uuid"},"display_name":{"type":["string","null"]}},"required":["sender_id","display_name"]},"route":{"type":"object","properties":{"channel":{"type":"string","enum":["email","linkedin"]},"connection_ref":{"type":["string","null"],"format":"uuid"},"inbound_channel":{"type":["string","null"],"enum":["email","linkedin",null]},"recipient_email":{"type":["string","null"]},"rerouted":{"type":"boolean"},"subject":{"type":["string","null"]}},"required":["channel"]}},"required":["sender_id"]}},"required":["kind","lead_ref","owner","prepared","reason","dispatch_reason","run_ref","turn_ref","turn_version","route"]},"maxItems":20000}},"required":["contract","drain_ref","workspace_id","state","source_sender_id","replacement","authorization","confirmation_action","revision","scope_sha256","settings_sha256","context_sha256","settings_revision","generation_settings","sample_complete","configured_sample_size","cohort_count","sample_count","remainder_count","current_reply_count","prepared_count","preparing_count","held_for_human","transferred_count","untouched_transferred_count","queued_count","waiting_count","samples","members"]}}}},"400":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"503":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/workspace/sender-handoffs/{handoff_ref}/approve":{"post":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","pattern":"^[0-9]{1,20}$"},"required":true,"name":"handoff_ref","in":"path"},{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"action":{"type":"string","enum":["approve_sample_and_transfer"]},"confirm":{"type":"boolean","enum":[true]},"source_sender_id":{"type":"string","format":"uuid"},"replacement_sender_id":{"type":"string","format":"uuid"},"scope_sha256":{"type":"string","pattern":"^[a-f0-9]{64}$"},"settings_sha256":{"type":"string","pattern":"^[a-f0-9]{64}$"},"context_sha256":{"type":"string","pattern":"^[a-f0-9]{64}$"},"revision":{"type":"string","pattern":"^[a-f0-9]{64}$"}},"required":["action","confirm","source_sender_id","replacement_sender_id","scope_sha256","settings_sha256","context_sha256","revision"],"additionalProperties":false}}}},"responses":{"200":{"description":"With the user's explicit yes, approve this exact sample and transfer the contacted conversations to the replacement, using the current revision and hashes from handoff_get and confirm:true. One approval covers the sample and each remaining first message, never a future reply. Refused when the sample is incomplete or anything changed; read handoff_get again. Only authorization.state authorized means approved. Approved is not sent: messages go out on their schedule under ordinary checks.","content":{"application/json":{"schema":{"type":"object","properties":{"contract":{"type":"string","enum":["sender-handoff-approval.v2"]},"drain_ref":{"type":"string","pattern":"^[0-9]{1,20}$"},"workspace_id":{"type":"string","format":"uuid"},"state":{"type":"string","pattern":"^[a-z][a-z0-9_:]{0,99}$"},"source_sender_id":{"type":"string","format":"uuid"},"replacement":{"type":"object","properties":{"available":{"type":"boolean"},"sender_id":{"type":"string","format":"uuid"},"display_name":{"type":["string","null"]},"signature":{"type":["string","null"]},"pinned_signature":{"type":["string","null"]},"version":{"type":["integer","null"]},"pinned_version":{"type":["integer","null"]}},"required":["available","sender_id","display_name","signature","pinned_signature","version","pinned_version"]},"authorization":{"type":"object","properties":{"state":{"type":"string","enum":["waiting_sample_approval","authorized","canceled"]},"actor_id":{"type":"string","format":"uuid"},"approved_at":{"type":"string","format":"date-time"},"revision":{"type":"string","pattern":"^[a-f0-9]{64}$"}},"required":["state"]},"confirmation_action":{"type":"string","enum":["approve_sample_and_transfer"]},"revision":{"type":"string","pattern":"^[a-f0-9]{64}$"},"scope_sha256":{"type":"string","pattern":"^[a-f0-9]{64}$"},"settings_sha256":{"type":"string","pattern":"^[a-f0-9]{64}$"},"context_sha256":{"type":"string","pattern":"^[a-f0-9]{64}$"},"settings_revision":{"type":"integer","exclusiveMinimum":0},"generation_settings":{"type":"object","properties":{"instructions":{"type":"string"}},"required":["instructions"]},"sample_complete":{"type":"boolean"},"configured_sample_size":{"type":"integer","minimum":0},"cohort_count":{"type":"integer","minimum":0},"sample_count":{"type":"integer","minimum":0},"remainder_count":{"type":"integer","minimum":0},"current_reply_count":{"type":"integer","minimum":0},"prepared_count":{"type":"integer","minimum":0},"preparing_count":{"type":"integer","minimum":0},"held_for_human":{"type":"integer","minimum":0},"transferred_count":{"type":"integer","minimum":0},"untouched_transferred_count":{"type":"integer","minimum":0},"queued_count":{"type":"integer","minimum":0},"waiting_count":{"type":"integer","minimum":0},"samples":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","pattern":"^[a-z][a-z0-9_:]{0,99}$"},"lead_ref":{"type":"string","format":"uuid"},"prepared":{"type":"boolean"},"subject":{"type":["string","null"]},"body":{"type":["string","null"]},"answering_route":{"type":["object","null"],"properties":{"sender_id":{"type":"string","format":"uuid"},"channel":{"type":"string","enum":["email","linkedin"]},"connection_ref":{"type":["string","null"],"format":"uuid"},"mailbox_email":{"type":["string","null"]},"turn_id":{"type":"string","format":"uuid"},"inbound_event_id":{"type":["string","null"],"format":"uuid"},"handoff_from":{"type":["object","null"],"properties":{"sender_id":{"type":"string","format":"uuid"},"display_name":{"type":["string","null"]}},"required":["sender_id","display_name"]},"route":{"type":"object","properties":{"channel":{"type":"string","enum":["email","linkedin"]},"connection_ref":{"type":["string","null"],"format":"uuid"},"inbound_channel":{"type":["string","null"],"enum":["email","linkedin",null]},"recipient_email":{"type":["string","null"]},"rerouted":{"type":"boolean"},"subject":{"type":["string","null"]}},"required":["channel"]}},"required":["sender_id"]},"context":{"type":"object","properties":{"handoff_from":{"type":["object","null"],"properties":{"sender_id":{"type":"string","format":"uuid"},"display_name":{"type":["string","null"]}},"required":["sender_id","display_name"]},"inbound_event_ref":{"type":"string","format":"uuid"},"kind":{"type":"string","pattern":"^[a-z][a-z0-9_:]{0,99}$"},"first_due_at":{"type":["string","null"],"format":"date-time"},"history":{"type":"array","items":{"type":"object","properties":{"position":{"type":"integer","exclusiveMinimum":0},"original_position":{"type":"integer","exclusiveMinimum":0},"subject":{"type":["string","null"]},"text":{"type":"string"},"accepted_at":{"type":"string","format":"date-time"}},"required":["subject","text","accepted_at"]},"maxItems":100},"last_accepted_email":{"type":["object","null"],"properties":{"position":{"type":"integer","exclusiveMinimum":0},"original_position":{"type":"integer","exclusiveMinimum":0},"subject":{"type":["string","null"]},"text":{"type":"string"},"accepted_at":{"type":"string","format":"date-time"}},"required":["subject","text","accepted_at"]},"last_proactive_touch_at":{"type":["string","null"],"format":"date-time"},"original_next_position":{"type":["integer","null"],"exclusiveMinimum":0},"original_positions":{"type":"array","items":{"type":"integer","exclusiveMinimum":0},"maxItems":100},"original_total_steps":{"type":"integer","exclusiveMinimum":0}}},"run_ref":{"type":["string","null"],"format":"uuid"},"source_run_ref":{"type":["string","null"],"format":"uuid"},"message_ref":{"type":["string","null"],"format":"uuid"},"email_version_ref":{"type":["string","null"],"format":"uuid"},"turn_ref":{"type":["string","null"],"format":"uuid"},"turn_version":{"type":["integer","null"],"minimum":0},"draft_event_ref":{"type":["string","null"],"format":"uuid"}},"required":["kind","lead_ref","prepared","subject","body","answering_route","context"]},"maxItems":100},"members":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["proactive","current_reply"]},"lead_ref":{"type":"string","format":"uuid"},"owner":{"type":["string","null"],"format":"uuid"},"prepared":{"type":"boolean"},"reason":{"type":["string","null"],"pattern":"^[a-z][a-z0-9_:]{0,99}$"},"dispatch_reason":{"type":["string","null"],"minLength":1,"maxLength":500},"run_ref":{"type":["string","null"],"format":"uuid"},"turn_ref":{"type":["string","null"],"format":"uuid"},"turn_version":{"type":["integer","null"],"minimum":0},"route":{"type":["object","null"],"properties":{"sender_id":{"type":"string","format":"uuid"},"channel":{"type":"string","enum":["email","linkedin"]},"connection_ref":{"type":["string","null"],"format":"uuid"},"mailbox_email":{"type":["string","null"]},"turn_id":{"type":"string","format":"uuid"},"inbound_event_id":{"type":["string","null"],"format":"uuid"},"handoff_from":{"type":["object","null"],"properties":{"sender_id":{"type":"string","format":"uuid"},"display_name":{"type":["string","null"]}},"required":["sender_id","display_name"]},"route":{"type":"object","properties":{"channel":{"type":"string","enum":["email","linkedin"]},"connection_ref":{"type":["string","null"],"format":"uuid"},"inbound_channel":{"type":["string","null"],"enum":["email","linkedin",null]},"recipient_email":{"type":["string","null"]},"rerouted":{"type":"boolean"},"subject":{"type":["string","null"]}},"required":["channel"]}},"required":["sender_id"]}},"required":["kind","lead_ref","owner","prepared","reason","dispatch_reason","run_ref","turn_ref","turn_version","route"]},"maxItems":20000}},"required":["contract","drain_ref","workspace_id","state","source_sender_id","replacement","authorization","confirmation_action","revision","scope_sha256","settings_sha256","context_sha256","settings_revision","generation_settings","sample_complete","configured_sample_size","cohort_count","sample_count","remainder_count","current_reply_count","prepared_count","preparing_count","held_for_human","transferred_count","untouched_transferred_count","queued_count","waiting_count","samples","members"]}}}},"400":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"503":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/workspace/sender-handoffs/{handoff_ref}/cancel":{"post":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","pattern":"^[0-9]{1,20}$"},"required":true,"name":"handoff_ref","in":"path"},{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"confirm":{"type":"boolean","enum":[true]},"revision":{"type":"string","pattern":"^[a-f0-9]{64}$"}},"required":["confirm","revision"],"additionalProperties":false}}}},"responses":{"200":{"description":"Cancel a handoff that is waiting, with its revision and confirm:true. An approved handoff cannot be canceled: 409 HANDOFF_ALREADY_APPROVED, and nothing changes. Untouched leads that already moved stay moved, and the person stays retired. Idempotent.","content":{"application/json":{"schema":{"type":"object","properties":{"contract":{"type":"string","enum":["sender-handoff-approval.v2"]},"drain_ref":{"type":"string","pattern":"^[0-9]{1,20}$"},"workspace_id":{"type":"string","format":"uuid"},"state":{"type":"string","pattern":"^[a-z][a-z0-9_:]{0,99}$"},"source_sender_id":{"type":"string","format":"uuid"},"replacement":{"type":"object","properties":{"available":{"type":"boolean"},"sender_id":{"type":"string","format":"uuid"},"display_name":{"type":["string","null"]},"signature":{"type":["string","null"]},"pinned_signature":{"type":["string","null"]},"version":{"type":["integer","null"]},"pinned_version":{"type":["integer","null"]}},"required":["available","sender_id","display_name","signature","pinned_signature","version","pinned_version"]},"authorization":{"type":"object","properties":{"state":{"type":"string","enum":["waiting_sample_approval","authorized","canceled"]},"actor_id":{"type":"string","format":"uuid"},"approved_at":{"type":"string","format":"date-time"},"revision":{"type":"string","pattern":"^[a-f0-9]{64}$"}},"required":["state"]},"confirmation_action":{"type":"string","enum":["approve_sample_and_transfer"]},"revision":{"type":"string","pattern":"^[a-f0-9]{64}$"},"scope_sha256":{"type":"string","pattern":"^[a-f0-9]{64}$"},"settings_sha256":{"type":"string","pattern":"^[a-f0-9]{64}$"},"context_sha256":{"type":"string","pattern":"^[a-f0-9]{64}$"},"settings_revision":{"type":"integer","exclusiveMinimum":0},"generation_settings":{"type":"object","properties":{"instructions":{"type":"string"}},"required":["instructions"]},"sample_complete":{"type":"boolean"},"configured_sample_size":{"type":"integer","minimum":0},"cohort_count":{"type":"integer","minimum":0},"sample_count":{"type":"integer","minimum":0},"remainder_count":{"type":"integer","minimum":0},"current_reply_count":{"type":"integer","minimum":0},"prepared_count":{"type":"integer","minimum":0},"preparing_count":{"type":"integer","minimum":0},"held_for_human":{"type":"integer","minimum":0},"transferred_count":{"type":"integer","minimum":0},"untouched_transferred_count":{"type":"integer","minimum":0},"queued_count":{"type":"integer","minimum":0},"waiting_count":{"type":"integer","minimum":0},"samples":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","pattern":"^[a-z][a-z0-9_:]{0,99}$"},"lead_ref":{"type":"string","format":"uuid"},"prepared":{"type":"boolean"},"subject":{"type":["string","null"]},"body":{"type":["string","null"]},"answering_route":{"type":["object","null"],"properties":{"sender_id":{"type":"string","format":"uuid"},"channel":{"type":"string","enum":["email","linkedin"]},"connection_ref":{"type":["string","null"],"format":"uuid"},"mailbox_email":{"type":["string","null"]},"turn_id":{"type":"string","format":"uuid"},"inbound_event_id":{"type":["string","null"],"format":"uuid"},"handoff_from":{"type":["object","null"],"properties":{"sender_id":{"type":"string","format":"uuid"},"display_name":{"type":["string","null"]}},"required":["sender_id","display_name"]},"route":{"type":"object","properties":{"channel":{"type":"string","enum":["email","linkedin"]},"connection_ref":{"type":["string","null"],"format":"uuid"},"inbound_channel":{"type":["string","null"],"enum":["email","linkedin",null]},"recipient_email":{"type":["string","null"]},"rerouted":{"type":"boolean"},"subject":{"type":["string","null"]}},"required":["channel"]}},"required":["sender_id"]},"context":{"type":"object","properties":{"handoff_from":{"type":["object","null"],"properties":{"sender_id":{"type":"string","format":"uuid"},"display_name":{"type":["string","null"]}},"required":["sender_id","display_name"]},"inbound_event_ref":{"type":"string","format":"uuid"},"kind":{"type":"string","pattern":"^[a-z][a-z0-9_:]{0,99}$"},"first_due_at":{"type":["string","null"],"format":"date-time"},"history":{"type":"array","items":{"type":"object","properties":{"position":{"type":"integer","exclusiveMinimum":0},"original_position":{"type":"integer","exclusiveMinimum":0},"subject":{"type":["string","null"]},"text":{"type":"string"},"accepted_at":{"type":"string","format":"date-time"}},"required":["subject","text","accepted_at"]},"maxItems":100},"last_accepted_email":{"type":["object","null"],"properties":{"position":{"type":"integer","exclusiveMinimum":0},"original_position":{"type":"integer","exclusiveMinimum":0},"subject":{"type":["string","null"]},"text":{"type":"string"},"accepted_at":{"type":"string","format":"date-time"}},"required":["subject","text","accepted_at"]},"last_proactive_touch_at":{"type":["string","null"],"format":"date-time"},"original_next_position":{"type":["integer","null"],"exclusiveMinimum":0},"original_positions":{"type":"array","items":{"type":"integer","exclusiveMinimum":0},"maxItems":100},"original_total_steps":{"type":"integer","exclusiveMinimum":0}}},"run_ref":{"type":["string","null"],"format":"uuid"},"source_run_ref":{"type":["string","null"],"format":"uuid"},"message_ref":{"type":["string","null"],"format":"uuid"},"email_version_ref":{"type":["string","null"],"format":"uuid"},"turn_ref":{"type":["string","null"],"format":"uuid"},"turn_version":{"type":["integer","null"],"minimum":0},"draft_event_ref":{"type":["string","null"],"format":"uuid"}},"required":["kind","lead_ref","prepared","subject","body","answering_route","context"]},"maxItems":100},"members":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["proactive","current_reply"]},"lead_ref":{"type":"string","format":"uuid"},"owner":{"type":["string","null"],"format":"uuid"},"prepared":{"type":"boolean"},"reason":{"type":["string","null"],"pattern":"^[a-z][a-z0-9_:]{0,99}$"},"dispatch_reason":{"type":["string","null"],"minLength":1,"maxLength":500},"run_ref":{"type":["string","null"],"format":"uuid"},"turn_ref":{"type":["string","null"],"format":"uuid"},"turn_version":{"type":["integer","null"],"minimum":0},"route":{"type":["object","null"],"properties":{"sender_id":{"type":"string","format":"uuid"},"channel":{"type":"string","enum":["email","linkedin"]},"connection_ref":{"type":["string","null"],"format":"uuid"},"mailbox_email":{"type":["string","null"]},"turn_id":{"type":"string","format":"uuid"},"inbound_event_id":{"type":["string","null"],"format":"uuid"},"handoff_from":{"type":["object","null"],"properties":{"sender_id":{"type":"string","format":"uuid"},"display_name":{"type":["string","null"]}},"required":["sender_id","display_name"]},"route":{"type":"object","properties":{"channel":{"type":"string","enum":["email","linkedin"]},"connection_ref":{"type":["string","null"],"format":"uuid"},"inbound_channel":{"type":["string","null"],"enum":["email","linkedin",null]},"recipient_email":{"type":["string","null"]},"rerouted":{"type":"boolean"},"subject":{"type":["string","null"]}},"required":["channel"]}},"required":["sender_id"]}},"required":["kind","lead_ref","owner","prepared","reason","dispatch_reason","run_ref","turn_ref","turn_version","route"]},"maxItems":20000}},"required":["contract","drain_ref","workspace_id","state","source_sender_id","replacement","authorization","confirmation_action","revision","scope_sha256","settings_sha256","context_sha256","settings_revision","generation_settings","sample_complete","configured_sample_size","cohort_count","sample_count","remainder_count","current_reply_count","prepared_count","preparing_count","held_for_human","transferred_count","untouched_transferred_count","queued_count","waiting_count","samples","members"]}}}},"400":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"503":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/workspace/sender-handoffs/{handoff_ref}/settings":{"post":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","pattern":"^[0-9]{1,20}$"},"required":true,"name":"handoff_ref","in":"path"},{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"revision":{"type":"string","pattern":"^[a-f0-9]{64}$"},"generation_settings":{"type":"object","properties":{"instructions":{"type":"string","maxLength":6000}},"required":["instructions"],"additionalProperties":false}},"required":["revision","generation_settings"],"additionalProperties":false}}}},"responses":{"200":{"description":"Change the instructions Lifty writes this handoff's first messages with, using its current revision. Every draft is written again, and approval is needed again. Never sends.","content":{"application/json":{"schema":{"type":"object","properties":{"contract":{"type":"string","enum":["sender-handoff-approval.v2"]},"drain_ref":{"type":"string","pattern":"^[0-9]{1,20}$"},"workspace_id":{"type":"string","format":"uuid"},"state":{"type":"string","pattern":"^[a-z][a-z0-9_:]{0,99}$"},"source_sender_id":{"type":"string","format":"uuid"},"replacement":{"type":"object","properties":{"available":{"type":"boolean"},"sender_id":{"type":"string","format":"uuid"},"display_name":{"type":["string","null"]},"signature":{"type":["string","null"]},"pinned_signature":{"type":["string","null"]},"version":{"type":["integer","null"]},"pinned_version":{"type":["integer","null"]}},"required":["available","sender_id","display_name","signature","pinned_signature","version","pinned_version"]},"authorization":{"type":"object","properties":{"state":{"type":"string","enum":["waiting_sample_approval","authorized","canceled"]},"actor_id":{"type":"string","format":"uuid"},"approved_at":{"type":"string","format":"date-time"},"revision":{"type":"string","pattern":"^[a-f0-9]{64}$"}},"required":["state"]},"confirmation_action":{"type":"string","enum":["approve_sample_and_transfer"]},"revision":{"type":"string","pattern":"^[a-f0-9]{64}$"},"scope_sha256":{"type":"string","pattern":"^[a-f0-9]{64}$"},"settings_sha256":{"type":"string","pattern":"^[a-f0-9]{64}$"},"context_sha256":{"type":"string","pattern":"^[a-f0-9]{64}$"},"settings_revision":{"type":"integer","exclusiveMinimum":0},"generation_settings":{"type":"object","properties":{"instructions":{"type":"string"}},"required":["instructions"]},"sample_complete":{"type":"boolean"},"configured_sample_size":{"type":"integer","minimum":0},"cohort_count":{"type":"integer","minimum":0},"sample_count":{"type":"integer","minimum":0},"remainder_count":{"type":"integer","minimum":0},"current_reply_count":{"type":"integer","minimum":0},"prepared_count":{"type":"integer","minimum":0},"preparing_count":{"type":"integer","minimum":0},"held_for_human":{"type":"integer","minimum":0},"transferred_count":{"type":"integer","minimum":0},"untouched_transferred_count":{"type":"integer","minimum":0},"queued_count":{"type":"integer","minimum":0},"waiting_count":{"type":"integer","minimum":0},"samples":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","pattern":"^[a-z][a-z0-9_:]{0,99}$"},"lead_ref":{"type":"string","format":"uuid"},"prepared":{"type":"boolean"},"subject":{"type":["string","null"]},"body":{"type":["string","null"]},"answering_route":{"type":["object","null"],"properties":{"sender_id":{"type":"string","format":"uuid"},"channel":{"type":"string","enum":["email","linkedin"]},"connection_ref":{"type":["string","null"],"format":"uuid"},"mailbox_email":{"type":["string","null"]},"turn_id":{"type":"string","format":"uuid"},"inbound_event_id":{"type":["string","null"],"format":"uuid"},"handoff_from":{"type":["object","null"],"properties":{"sender_id":{"type":"string","format":"uuid"},"display_name":{"type":["string","null"]}},"required":["sender_id","display_name"]},"route":{"type":"object","properties":{"channel":{"type":"string","enum":["email","linkedin"]},"connection_ref":{"type":["string","null"],"format":"uuid"},"inbound_channel":{"type":["string","null"],"enum":["email","linkedin",null]},"recipient_email":{"type":["string","null"]},"rerouted":{"type":"boolean"},"subject":{"type":["string","null"]}},"required":["channel"]}},"required":["sender_id"]},"context":{"type":"object","properties":{"handoff_from":{"type":["object","null"],"properties":{"sender_id":{"type":"string","format":"uuid"},"display_name":{"type":["string","null"]}},"required":["sender_id","display_name"]},"inbound_event_ref":{"type":"string","format":"uuid"},"kind":{"type":"string","pattern":"^[a-z][a-z0-9_:]{0,99}$"},"first_due_at":{"type":["string","null"],"format":"date-time"},"history":{"type":"array","items":{"type":"object","properties":{"position":{"type":"integer","exclusiveMinimum":0},"original_position":{"type":"integer","exclusiveMinimum":0},"subject":{"type":["string","null"]},"text":{"type":"string"},"accepted_at":{"type":"string","format":"date-time"}},"required":["subject","text","accepted_at"]},"maxItems":100},"last_accepted_email":{"type":["object","null"],"properties":{"position":{"type":"integer","exclusiveMinimum":0},"original_position":{"type":"integer","exclusiveMinimum":0},"subject":{"type":["string","null"]},"text":{"type":"string"},"accepted_at":{"type":"string","format":"date-time"}},"required":["subject","text","accepted_at"]},"last_proactive_touch_at":{"type":["string","null"],"format":"date-time"},"original_next_position":{"type":["integer","null"],"exclusiveMinimum":0},"original_positions":{"type":"array","items":{"type":"integer","exclusiveMinimum":0},"maxItems":100},"original_total_steps":{"type":"integer","exclusiveMinimum":0}}},"run_ref":{"type":["string","null"],"format":"uuid"},"source_run_ref":{"type":["string","null"],"format":"uuid"},"message_ref":{"type":["string","null"],"format":"uuid"},"email_version_ref":{"type":["string","null"],"format":"uuid"},"turn_ref":{"type":["string","null"],"format":"uuid"},"turn_version":{"type":["integer","null"],"minimum":0},"draft_event_ref":{"type":["string","null"],"format":"uuid"}},"required":["kind","lead_ref","prepared","subject","body","answering_route","context"]},"maxItems":100},"members":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["proactive","current_reply"]},"lead_ref":{"type":"string","format":"uuid"},"owner":{"type":["string","null"],"format":"uuid"},"prepared":{"type":"boolean"},"reason":{"type":["string","null"],"pattern":"^[a-z][a-z0-9_:]{0,99}$"},"dispatch_reason":{"type":["string","null"],"minLength":1,"maxLength":500},"run_ref":{"type":["string","null"],"format":"uuid"},"turn_ref":{"type":["string","null"],"format":"uuid"},"turn_version":{"type":["integer","null"],"minimum":0},"route":{"type":["object","null"],"properties":{"sender_id":{"type":"string","format":"uuid"},"channel":{"type":"string","enum":["email","linkedin"]},"connection_ref":{"type":["string","null"],"format":"uuid"},"mailbox_email":{"type":["string","null"]},"turn_id":{"type":"string","format":"uuid"},"inbound_event_id":{"type":["string","null"],"format":"uuid"},"handoff_from":{"type":["object","null"],"properties":{"sender_id":{"type":"string","format":"uuid"},"display_name":{"type":["string","null"]}},"required":["sender_id","display_name"]},"route":{"type":"object","properties":{"channel":{"type":"string","enum":["email","linkedin"]},"connection_ref":{"type":["string","null"],"format":"uuid"},"inbound_channel":{"type":["string","null"],"enum":["email","linkedin",null]},"recipient_email":{"type":["string","null"]},"rerouted":{"type":"boolean"},"subject":{"type":["string","null"]}},"required":["channel"]}},"required":["sender_id"]}},"required":["kind","lead_ref","owner","prepared","reason","dispatch_reason","run_ref","turn_ref","turn_version","route"]},"maxItems":20000}},"required":["contract","drain_ref","workspace_id","state","source_sender_id","replacement","authorization","confirmation_action","revision","scope_sha256","settings_sha256","context_sha256","settings_revision","generation_settings","sample_complete","configured_sample_size","cohort_count","sample_count","remainder_count","current_reply_count","prepared_count","preparing_count","held_for_human","transferred_count","untouched_transferred_count","queued_count","waiting_count","samples","members"]}}}},"400":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"503":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/workspace/sender-handoffs/{handoff_ref}/replies/{turn_ref}":{"post":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","pattern":"^[0-9]{1,20}$"},"required":true,"name":"handoff_ref","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"turn_ref","in":"path"},{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"turn_version":{"type":"integer","minimum":0},"draft_event_ref":{"type":"string","format":"uuid"},"text":{"type":"string"}},"required":["turn_version","draft_event_ref","text"],"additionalProperties":false}}}},"responses":{"200":{"description":"Edit one current-reply draft in the sample, with its turn_version and draft_event_ref from handoff_get. Text is the unsigned body; Lifty adds the replacement's signature. Approval is needed again. Never sends.","content":{"application/json":{"schema":{"type":"object","properties":{"contract":{"type":"string","enum":["sender-handoff-approval.v2"]},"drain_ref":{"type":"string","pattern":"^[0-9]{1,20}$"},"workspace_id":{"type":"string","format":"uuid"},"state":{"type":"string","pattern":"^[a-z][a-z0-9_:]{0,99}$"},"source_sender_id":{"type":"string","format":"uuid"},"replacement":{"type":"object","properties":{"available":{"type":"boolean"},"sender_id":{"type":"string","format":"uuid"},"display_name":{"type":["string","null"]},"signature":{"type":["string","null"]},"pinned_signature":{"type":["string","null"]},"version":{"type":["integer","null"]},"pinned_version":{"type":["integer","null"]}},"required":["available","sender_id","display_name","signature","pinned_signature","version","pinned_version"]},"authorization":{"type":"object","properties":{"state":{"type":"string","enum":["waiting_sample_approval","authorized","canceled"]},"actor_id":{"type":"string","format":"uuid"},"approved_at":{"type":"string","format":"date-time"},"revision":{"type":"string","pattern":"^[a-f0-9]{64}$"}},"required":["state"]},"confirmation_action":{"type":"string","enum":["approve_sample_and_transfer"]},"revision":{"type":"string","pattern":"^[a-f0-9]{64}$"},"scope_sha256":{"type":"string","pattern":"^[a-f0-9]{64}$"},"settings_sha256":{"type":"string","pattern":"^[a-f0-9]{64}$"},"context_sha256":{"type":"string","pattern":"^[a-f0-9]{64}$"},"settings_revision":{"type":"integer","exclusiveMinimum":0},"generation_settings":{"type":"object","properties":{"instructions":{"type":"string"}},"required":["instructions"]},"sample_complete":{"type":"boolean"},"configured_sample_size":{"type":"integer","minimum":0},"cohort_count":{"type":"integer","minimum":0},"sample_count":{"type":"integer","minimum":0},"remainder_count":{"type":"integer","minimum":0},"current_reply_count":{"type":"integer","minimum":0},"prepared_count":{"type":"integer","minimum":0},"preparing_count":{"type":"integer","minimum":0},"held_for_human":{"type":"integer","minimum":0},"transferred_count":{"type":"integer","minimum":0},"untouched_transferred_count":{"type":"integer","minimum":0},"queued_count":{"type":"integer","minimum":0},"waiting_count":{"type":"integer","minimum":0},"samples":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","pattern":"^[a-z][a-z0-9_:]{0,99}$"},"lead_ref":{"type":"string","format":"uuid"},"prepared":{"type":"boolean"},"subject":{"type":["string","null"]},"body":{"type":["string","null"]},"answering_route":{"type":["object","null"],"properties":{"sender_id":{"type":"string","format":"uuid"},"channel":{"type":"string","enum":["email","linkedin"]},"connection_ref":{"type":["string","null"],"format":"uuid"},"mailbox_email":{"type":["string","null"]},"turn_id":{"type":"string","format":"uuid"},"inbound_event_id":{"type":["string","null"],"format":"uuid"},"handoff_from":{"type":["object","null"],"properties":{"sender_id":{"type":"string","format":"uuid"},"display_name":{"type":["string","null"]}},"required":["sender_id","display_name"]},"route":{"type":"object","properties":{"channel":{"type":"string","enum":["email","linkedin"]},"connection_ref":{"type":["string","null"],"format":"uuid"},"inbound_channel":{"type":["string","null"],"enum":["email","linkedin",null]},"recipient_email":{"type":["string","null"]},"rerouted":{"type":"boolean"},"subject":{"type":["string","null"]}},"required":["channel"]}},"required":["sender_id"]},"context":{"type":"object","properties":{"handoff_from":{"type":["object","null"],"properties":{"sender_id":{"type":"string","format":"uuid"},"display_name":{"type":["string","null"]}},"required":["sender_id","display_name"]},"inbound_event_ref":{"type":"string","format":"uuid"},"kind":{"type":"string","pattern":"^[a-z][a-z0-9_:]{0,99}$"},"first_due_at":{"type":["string","null"],"format":"date-time"},"history":{"type":"array","items":{"type":"object","properties":{"position":{"type":"integer","exclusiveMinimum":0},"original_position":{"type":"integer","exclusiveMinimum":0},"subject":{"type":["string","null"]},"text":{"type":"string"},"accepted_at":{"type":"string","format":"date-time"}},"required":["subject","text","accepted_at"]},"maxItems":100},"last_accepted_email":{"type":["object","null"],"properties":{"position":{"type":"integer","exclusiveMinimum":0},"original_position":{"type":"integer","exclusiveMinimum":0},"subject":{"type":["string","null"]},"text":{"type":"string"},"accepted_at":{"type":"string","format":"date-time"}},"required":["subject","text","accepted_at"]},"last_proactive_touch_at":{"type":["string","null"],"format":"date-time"},"original_next_position":{"type":["integer","null"],"exclusiveMinimum":0},"original_positions":{"type":"array","items":{"type":"integer","exclusiveMinimum":0},"maxItems":100},"original_total_steps":{"type":"integer","exclusiveMinimum":0}}},"run_ref":{"type":["string","null"],"format":"uuid"},"source_run_ref":{"type":["string","null"],"format":"uuid"},"message_ref":{"type":["string","null"],"format":"uuid"},"email_version_ref":{"type":["string","null"],"format":"uuid"},"turn_ref":{"type":["string","null"],"format":"uuid"},"turn_version":{"type":["integer","null"],"minimum":0},"draft_event_ref":{"type":["string","null"],"format":"uuid"}},"required":["kind","lead_ref","prepared","subject","body","answering_route","context"]},"maxItems":100},"members":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["proactive","current_reply"]},"lead_ref":{"type":"string","format":"uuid"},"owner":{"type":["string","null"],"format":"uuid"},"prepared":{"type":"boolean"},"reason":{"type":["string","null"],"pattern":"^[a-z][a-z0-9_:]{0,99}$"},"dispatch_reason":{"type":["string","null"],"minLength":1,"maxLength":500},"run_ref":{"type":["string","null"],"format":"uuid"},"turn_ref":{"type":["string","null"],"format":"uuid"},"turn_version":{"type":["integer","null"],"minimum":0},"route":{"type":["object","null"],"properties":{"sender_id":{"type":"string","format":"uuid"},"channel":{"type":"string","enum":["email","linkedin"]},"connection_ref":{"type":["string","null"],"format":"uuid"},"mailbox_email":{"type":["string","null"]},"turn_id":{"type":"string","format":"uuid"},"inbound_event_id":{"type":["string","null"],"format":"uuid"},"handoff_from":{"type":["object","null"],"properties":{"sender_id":{"type":"string","format":"uuid"},"display_name":{"type":["string","null"]}},"required":["sender_id","display_name"]},"route":{"type":"object","properties":{"channel":{"type":"string","enum":["email","linkedin"]},"connection_ref":{"type":["string","null"],"format":"uuid"},"inbound_channel":{"type":["string","null"],"enum":["email","linkedin",null]},"recipient_email":{"type":["string","null"]},"rerouted":{"type":"boolean"},"subject":{"type":["string","null"]}},"required":["channel"]}},"required":["sender_id"]}},"required":["kind","lead_ref","owner","prepared","reason","dispatch_reason","run_ref","turn_ref","turn_version","route"]},"maxItems":20000}},"required":["contract","drain_ref","workspace_id","state","source_sender_id","replacement","authorization","confirmation_action","revision","scope_sha256","settings_sha256","context_sha256","settings_revision","generation_settings","sample_complete","configured_sample_size","cohort_count","sample_count","remainder_count","current_reply_count","prepared_count","preparing_count","held_for_human","transferred_count","untouched_transferred_count","queued_count","waiting_count","samples","members"]}}}},"400":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"503":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/workspace/stops":{"get":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":false,"name":"workspace_id","in":"query"},{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"responses":{"200":{"description":"LIFT admins only; members get 403 ADMIN_REQUIRED. List active Lifty stops with who set each one and its note. workspace_id names a workspace you are not a member of. Read-only.","content":{"application/json":{"schema":{"type":"object","properties":{"workspace":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string","minLength":1,"maxLength":200},"state":{"type":"string","minLength":1}},"required":["workspace_ref","name","state"]},"stops":{"type":"array","items":{"type":"object","properties":{"scope":{"type":"string","enum":["account","sender","channel","workspace","all_workspaces"]},"scope_key":{"type":["string","null"],"minLength":1},"account_id":{"type":["string","null"],"format":"uuid"},"sender_id":{"type":["string","null"],"format":"uuid"},"channel":{"type":["string","null"],"enum":["email","linkedin",null]},"origin":{"type":"string","enum":["person","system"]},"reason":{"type":"string","enum":["deliverability_review","account_safety","setup","client_request","maintenance","other","cutover","not_executed_by_lifty","ambiguous_send","provider_risk","recipient_restricted","recorded_before_lif1710","unspecified"]},"since":{"type":"string","format":"date-time"},"since_estimated":{"type":"boolean"},"review_by":{"type":"string","format":"date-time"},"set_by":{"type":["string","null"],"maxLength":200},"note":{"type":["string","null"]}},"required":["scope","scope_key","account_id","sender_id","channel","origin","reason","since","since_estimated","review_by","set_by","note"]},"maxItems":5000}},"required":["workspace","stops"]}}}},"400":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"503":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}},"post":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"scope":{"type":"string","enum":["account","sender","channel","workspace"]},"account_id":{"type":"string"},"sender_id":{"type":"string"},"channel":{"type":"string","enum":["email","linkedin"]},"reason":{"type":"string","enum":["deliverability_review","account_safety","setup","client_request","maintenance","other"]},"note":{"type":"string"},"review_by":{"type":"string","maxLength":40}},"required":["scope","reason"],"additionalProperties":false}}}},"responses":{"200":{"description":"LIFT admins only; members get 403 ADMIN_REQUIRED. Stop sends at one scope with a reason. review_by defaults to seven days from the stop. A later write keeps its original since.","content":{"application/json":{"schema":{"type":"object","properties":{"workspace":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string","minLength":1,"maxLength":200},"state":{"type":"string","minLength":1}},"required":["workspace_ref","name","state"]},"stop":{"type":"object","properties":{"scope":{"type":"string","enum":["account","sender","channel","workspace","all_workspaces"]},"scope_key":{"type":["string","null"],"minLength":1},"account_id":{"type":["string","null"],"format":"uuid"},"sender_id":{"type":["string","null"],"format":"uuid"},"channel":{"type":["string","null"],"enum":["email","linkedin",null]},"origin":{"type":"string","enum":["person","system"]},"reason":{"type":"string","enum":["deliverability_review","account_safety","setup","client_request","maintenance","other","cutover","not_executed_by_lifty","ambiguous_send","provider_risk","recipient_restricted","recorded_before_lif1710","unspecified"]},"since":{"type":"string","format":"date-time"},"since_estimated":{"type":"boolean"},"review_by":{"type":"string","format":"date-time"},"set_by":{"type":["string","null"],"maxLength":200},"note":{"type":["string","null"]}},"required":["scope","scope_key","account_id","sender_id","channel","origin","reason","since","since_estimated","review_by","set_by","note"]}},"required":["workspace","stop"]}}}},"400":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"503":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/workspace/stops/release":{"post":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"scope":{"type":"string","enum":["account","sender","channel","workspace"]},"account_id":{"type":"string"},"sender_id":{"type":"string"},"channel":{"type":"string","enum":["email","linkedin"]},"note":{"type":"string"}},"required":["scope"],"additionalProperties":false}}}},"responses":{"200":{"description":"LIFT admins only; members get 403 ADMIN_REQUIRED. Release a stop at this exact scope. Repeating it changes nothing (released false). Other stops and pauses stay.","content":{"application/json":{"schema":{"type":"object","properties":{"workspace":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string","minLength":1,"maxLength":200},"state":{"type":"string","minLength":1}},"required":["workspace_ref","name","state"]},"stop":{"type":["object","null"],"properties":{"scope":{"type":"string","enum":["account","sender","channel","workspace","all_workspaces"]},"scope_key":{"type":["string","null"],"minLength":1},"account_id":{"type":["string","null"],"format":"uuid"},"sender_id":{"type":["string","null"],"format":"uuid"},"channel":{"type":["string","null"],"enum":["email","linkedin",null]},"origin":{"type":"string","enum":["person","system"]},"reason":{"type":"string","enum":["deliverability_review","account_safety","setup","client_request","maintenance","other","cutover","not_executed_by_lifty","ambiguous_send","provider_risk","recipient_restricted","recorded_before_lif1710","unspecified"]},"since":{"type":"string","format":"date-time"},"since_estimated":{"type":"boolean"},"review_by":{"type":"string","format":"date-time"},"set_by":{"type":["string","null"],"maxLength":200},"note":{"type":["string","null"]}},"required":["scope","scope_key","account_id","sender_id","channel","origin","reason","since","since_estimated","review_by","set_by","note"]},"released":{"type":"boolean"}},"required":["workspace","stop","released"]}}}},"400":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"503":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/workspace/stops/review":{"post":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"scope":{"type":"string","enum":["account","sender","channel","workspace"]},"account_id":{"type":"string"},"sender_id":{"type":"string"},"channel":{"type":"string","enum":["email","linkedin"]},"review_by":{"type":"string","maxLength":40},"note":{"type":"string"}},"required":["scope","review_by"],"additionalProperties":false}}}},"responses":{"200":{"description":"LIFT admins only; members get 403 ADMIN_REQUIRED. Move a stop's review date to a future date. 404 STOP_NOT_FOUND when nothing is stopped there.","content":{"application/json":{"schema":{"type":"object","properties":{"workspace":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string","minLength":1,"maxLength":200},"state":{"type":"string","minLength":1}},"required":["workspace_ref","name","state"]},"stop":{"type":"object","properties":{"scope":{"type":"string","enum":["account","sender","channel","workspace","all_workspaces"]},"scope_key":{"type":["string","null"],"minLength":1},"account_id":{"type":["string","null"],"format":"uuid"},"sender_id":{"type":["string","null"],"format":"uuid"},"channel":{"type":["string","null"],"enum":["email","linkedin",null]},"origin":{"type":"string","enum":["person","system"]},"reason":{"type":"string","enum":["deliverability_review","account_safety","setup","client_request","maintenance","other","cutover","not_executed_by_lifty","ambiguous_send","provider_risk","recipient_restricted","recorded_before_lif1710","unspecified"]},"since":{"type":"string","format":"date-time"},"since_estimated":{"type":"boolean"},"review_by":{"type":"string","format":"date-time"},"set_by":{"type":["string","null"],"maxLength":200},"note":{"type":["string","null"]}},"required":["scope","scope_key","account_id","sender_id","channel","origin","reason","since","since_estimated","review_by","set_by","note"]}},"required":["workspace","stop"]}}}},"400":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"503":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/workspace/sending-accounts":{"get":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":false,"name":"sender_id","in":"query"},{"schema":{"type":"string","enum":["email","linkedin"]},"required":false,"name":"channel","in":"query"},{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"responses":{"200":{"description":"Read sending accounts, optionally filtered by sender_id and channel, including disconnected history: connection status, usage state (active/paused), sending (allowed now, else reason), daily limits, last verified check, observation (verified/unverified), access removal, declaration, sends and participation (next_step holds the words to show, who acts and what to do). Read-only; never checks or changes a provider. Unverified means the last known facts are older than the freshness window, not a disconnection.","content":{"application/json":{"schema":{"type":"object","properties":{"workspace":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string","minLength":1,"maxLength":200},"state":{"type":"string","minLength":1}},"required":["workspace_ref","name","state"]},"accounts":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"sender_id":{"type":"string","format":"uuid"},"channel":{"type":"string","enum":["email","linkedin"]},"identity":{"type":["string","null"],"minLength":1,"maxLength":2048},"status":{"type":"string","enum":["connected","needs_reconnect","disconnected"]},"state":{"type":"string","enum":["active","paused"]},"sending":{"type":"object","properties":{"allowed":{"type":"boolean"},"reason":{"type":["string","null"],"enum":["paused_by_member","paused_by_lift","channel_paused","workspace_suspended","disconnected","needs_reconnect","status_unconfirmed","connection_unavailable","sender_deleted","mailbox_not_ready","previous_automation_active","blocked",null]},"scope":{"type":["string","null"],"enum":["account","sender","channel","workspace","all_workspaces",null]}},"required":["allowed","reason","scope"]},"limits":{"anyOf":[{"type":"object","properties":{"emails_per_day":{"type":"integer","minimum":0}},"required":["emails_per_day"]},{"type":"object","properties":{"invitations_per_day":{"type":"integer","minimum":0},"messages_per_day":{"type":"integer","minimum":0},"invitations_per_7_days":{"type":"integer","minimum":0}},"required":["invitations_per_day","messages_per_day","invitations_per_7_days"]},{"type":"null"}]},"disconnect_pause":{"type":"object","properties":{"count":{"type":"integer","minimum":0},"can_resume":{"type":"boolean"}},"required":["count","can_resume"]},"checked_at":{"type":["string","null"],"format":"date-time"},"observation":{"type":"object","properties":{"state":{"type":"string","enum":["verified","unverified"]}},"required":["state"]},"connected_at":{"type":["string","null"],"format":"date-time"},"disconnected_at":{"type":["string","null"],"format":"date-time"},"access_revoked_at":{"type":["string","null"],"format":"date-time"},"access_removal":{"type":["string","null"],"enum":["pending","confirmed","not_applicable",null]},"declaration":{"anyOf":[{"type":"object","properties":{"mailbox_use":{"type":"string","enum":["habitual","dedicated"]},"declared_by":{"type":["string","null"],"format":"uuid"},"declared_at":{"type":"string","format":"date-time"}},"required":["mailbox_use","declared_by","declared_at"]},{"type":"object","properties":{"habitual_personal_account":{"type":"boolean","enum":[true]},"no_other_automation":{"type":"boolean","enum":[true]},"declared_by":{"type":["string","null"],"format":"uuid"},"declared_at":{"type":"string","format":"date-time"}},"required":["habitual_personal_account","no_other_automation","declared_by","declared_at"]},{"type":"null"}]},"sends":{"type":["object","null"],"properties":{"today":{"type":"integer","minimum":0},"last_7_days":{"type":"integer","minimum":0}},"required":["today","last_7_days"]},"participation":{"type":"object","properties":{"status":{"type":"string","enum":["sending","no_active_campaign","waiting_for_first_lead","paused","not_connected","email_not_ready"]},"cause":{"type":"string","enum":["active_journeys","no_active_campaign_on_channel","no_lead_yet","paused_by_member","paused_by_disconnect","campaign_paused","workspace_suspended","sender_off","sender_paused","paused_by_lift","disconnected","needs_reconnect","unverified","warming","placement_required","declaration_required","signature_missing","mailbox_not_ready","health_hold","retired"]},"category":{"type":["string","null"],"enum":["transient","fixable_by_client","long","intentional",null]},"since":{"type":["string","null"],"format":"date-time"},"since_estimated":{"type":"boolean"},"waiting_journeys":{"type":"integer","minimum":0},"stop":{"type":"object","properties":{"scope":{"type":"string","enum":["account","sender","channel","workspace","all_workspaces"]},"origin":{"type":"string","enum":["person","system"]},"reason":{"type":"string","enum":["deliverability_review","account_safety","setup","client_request","maintenance","other","cutover","not_executed_by_lifty","ambiguous_send","provider_risk","recipient_restricted","recorded_before_lif1710","unspecified"]},"review_by":{"type":"string","format":"date-time"}},"required":["scope","origin","reason","review_by"]},"health":{"type":"object","properties":{"reason":{"type":"string","enum":["complaint","bounce_rate","provider_health","placement_failed","safety_check_failed"]}},"required":["reason"]},"also":{"type":"array","items":{"type":"object","properties":{"status":{"type":"string","enum":["sending","no_active_campaign","waiting_for_first_lead","paused","not_connected","email_not_ready"]},"cause":{"type":"string","enum":["active_journeys","no_active_campaign_on_channel","no_lead_yet","paused_by_member","paused_by_disconnect","campaign_paused","workspace_suspended","sender_off","sender_paused","paused_by_lift","disconnected","needs_reconnect","unverified","warming","placement_required","declaration_required","signature_missing","mailbox_not_ready","health_hold","retired"]},"category":{"type":["string","null"],"enum":["transient","fixable_by_client","long","intentional",null]},"since":{"type":["string","null"],"format":"date-time"},"next_step":{"type":"object","properties":{"label":{"type":"string","minLength":1,"maxLength":200},"owner":{"type":"string","enum":["member","lifty","none"]},"action":{"type":"string","enum":["none","wait","lifty_review","contact_lift","reconnect","resume_account","resume_sender","turn_on_sender","resume_campaigns","resume_campaign","set_mailbox_use","add_signature"]},"since":{"type":["string","null"],"format":"date-time"},"since_estimated":{"type":["boolean","null"]},"review_by":{"type":["string","null"],"format":"date-time"}},"required":["label","owner","action","since","since_estimated","review_by"]}},"required":["status","cause","category","since"]},"maxItems":20},"next_step":{"type":"object","properties":{"label":{"type":"string","minLength":1,"maxLength":200},"owner":{"type":"string","enum":["member","lifty","none"]},"action":{"type":"string","enum":["none","wait","lifty_review","contact_lift","reconnect","resume_account","resume_sender","turn_on_sender","resume_campaigns","resume_campaign","set_mailbox_use","add_signature"]},"since":{"type":["string","null"],"format":"date-time"},"since_estimated":{"type":["boolean","null"]},"review_by":{"type":["string","null"],"format":"date-time"}},"required":["label","owner","action","since","since_estimated","review_by"]}},"required":["status","cause"]}},"required":["id","sender_id","channel","identity","status","state","sending","limits","checked_at","observation","connected_at","disconnected_at","access_revoked_at","access_removal","declaration","sends","participation"]},"maxItems":5000}},"required":["workspace","accounts"]}}}},"400":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"503":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/workspace/sending-accounts/connect":{"post":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"sender_id":{"type":"string","format":"uuid"},"channel":{"type":"string","enum":["email","linkedin"]}},"required":["sender_id","channel"],"additionalProperties":false}}}},"responses":{"200":{"description":"Start connecting a LinkedIn account or mailbox for an existing sender_id (from the senders roster). Returns connection_url and durable progress: declaration_required, preparing, sign_in_required, verifying or complete. Until verifying, show connection_url: the connect page asks the declaration and opens the sign-in. A live attempt for the same sender and channel is reused (created:false), even when its link text changes; an expired one never blocks a new connect. The account exists only after verified authorization. Connecting never activates a campaign or sends.","content":{"application/json":{"schema":{"type":"object","properties":{"workspace":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string","minLength":1,"maxLength":200},"state":{"type":"string","minLength":1}},"required":["workspace_ref","name","state"]},"id":{"type":"string","format":"uuid"},"expires_at":{"type":"string","format":"date-time"},"created":{"type":"boolean"},"connection_url":{"type":"string","format":"uri"},"progress":{"type":"object","properties":{"stage":{"type":"string","enum":["declaration_required","preparing","sign_in_required","verifying","complete"]}},"required":["stage"]}},"required":["workspace","id","expires_at","created","connection_url","progress"]}}}},"400":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"503":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/workspace/sending-accounts/attempts/{id}":{"get":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"id","in":"path"},{"schema":{"type":["integer","null"],"minimum":0,"maximum":25,"description":"Wait up to this many seconds while the attempt still waits on someone and has not changed."},"required":false,"description":"Wait up to this many seconds while the attempt still waits on someone and has not changed.","name":"wait_seconds","in":"query"},{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"responses":{"200":{"description":"Read one connection attempt with who acts next (action_owner), what is permitted (actions) and next_step. state: pending, connected (account_id), failed (reason) or expired. While the account owner still has to sign in, connection_url is the link to show. verifying means Lifty received the sign-in and finishes the connection/reconnection the user already requested on its own, even with every page closed; nobody signs in again. With wait_seconds (up to 25) the read returns as soon as the attempt changes. A failed or timed-out read is unknown, not a failed connection. Never creates a link or starts outreach. A connected mailbox's next_step is its warmup setup, a second sign-in by its owner; a connected LinkedIn account's is next_step.","content":{"application/json":{"schema":{"type":"object","properties":{"workspace":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string","minLength":1,"maxLength":200},"state":{"type":"string","minLength":1}},"required":["workspace_ref","name","state"]},"id":{"type":"string","format":"uuid"},"sender_id":{"type":"string","format":"uuid"},"channel":{"type":"string","enum":["email","linkedin"]},"state":{"type":"string","enum":["pending","connected","failed","expired"]},"reason":{"type":["string","null"],"enum":["canceled","account_in_use","identity_mismatch","provider_rejected","closed","replaced","unverified",null]},"account_id":{"type":["string","null"],"format":"uuid"},"declaration":{"anyOf":[{"type":"object","properties":{"mailbox_use":{"type":"string","enum":["habitual","dedicated"]},"declared_by":{"type":["string","null"],"format":"uuid"},"declared_at":{"type":"string","format":"date-time"}},"required":["mailbox_use","declared_by","declared_at"]},{"type":"object","properties":{"habitual_personal_account":{"type":"boolean","enum":[true]},"no_other_automation":{"type":"boolean","enum":[true]},"declared_by":{"type":["string","null"],"format":"uuid"},"declared_at":{"type":"string","format":"date-time"}},"required":["habitual_personal_account","no_other_automation","declared_by","declared_at"]},{"type":"null"}]},"expires_at":{"type":"string","format":"date-time"},"progress":{"type":"object","properties":{"stage":{"type":"string","enum":["declaration_required","preparing","sign_in_required","verifying","complete"]}},"required":["stage"]},"recovery":{"type":["object","null"],"properties":{"state":{"type":"string","enum":["active","exhausted"]},"attempts":{"type":"integer","minimum":0},"checked_at":{"type":["string","null"],"format":"date-time"},"next_at":{"type":["string","null"],"format":"date-time"}},"required":["state","attempts","checked_at","next_at"]},"replaced_by":{"type":["string","null"],"format":"uuid"},"provider_hint":{"type":["object","null"],"properties":{"code":{"type":"string","enum":["canceled","account_exists","provider_rejected"]},"at":{"type":"string","format":"date-time"}},"required":["code","at"]},"connection_url":{"type":"string","format":"uri"},"action_owner":{"type":"string","enum":["account_owner","agent","lifty","none"]},"actions":{"type":"array","items":{"type":"string","enum":["open_link","wait","close","replace"]}},"next_step":{"anyOf":[{"type":"object","properties":{"operation":{"type":"string","enum":["sending_accounts_warmup_start"]},"body":{"type":"object","properties":{"workspace":{"type":"string","format":"uuid"},"connection_ref":{"type":"string","format":"uuid"}},"required":["workspace","connection_ref"]},"message":{"type":"string"}},"required":["operation","body","message"]},{"type":"object","properties":{"operation":{"type":"string","enum":["sending_accounts_attempt","sending_accounts_replace_attempt"]},"path":{"type":"object","properties":{"id":{"type":"string","format":"uuid"}},"required":["id"]},"query":{"type":"object","properties":{"wait_seconds":{"type":"integer","minimum":1,"maximum":25}},"required":["wait_seconds"]},"message":{"type":"string"}},"required":["operation","path","message"]},{"type":"object","properties":{"operation":{"type":"string","enum":["next_step"]},"message":{"type":"string"}},"required":["operation","message"]}]}},"required":["workspace","id","sender_id","channel","state","reason","account_id","declaration","expires_at","progress","recovery","replaced_by","provider_hint","action_owner","actions"]}}}},"400":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"503":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/workspace/sending-accounts/attempts/{id}/close":{"post":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"id","in":"path"},{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"responses":{"200":{"description":"Close a connection attempt the person no longer wants: its link stops working at once. Idempotent. Never disconnects an account: a connected attempt stays connected (disposition connected). A sign-in Lifty already received is verified first; while Lifty can still verify it the attempt stays open (disposition recovering, retry_after). No confirmation needed.","content":{"application/json":{"schema":{"type":"object","properties":{"workspace":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string","minLength":1,"maxLength":200},"state":{"type":"string","minLength":1}},"required":["workspace_ref","name","state"]},"disposition":{"type":"string","enum":["connected","recovering","closed","replaced","ended"]},"retry_after":{"type":["string","null"],"format":"date-time"},"attempt":{"type":"object","properties":{"workspace":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string","minLength":1,"maxLength":200},"state":{"type":"string","minLength":1}},"required":["workspace_ref","name","state"]},"id":{"type":"string","format":"uuid"},"sender_id":{"type":"string","format":"uuid"},"channel":{"type":"string","enum":["email","linkedin"]},"state":{"type":"string","enum":["pending","connected","failed","expired"]},"reason":{"type":["string","null"],"enum":["canceled","account_in_use","identity_mismatch","provider_rejected","closed","replaced","unverified",null]},"account_id":{"type":["string","null"],"format":"uuid"},"declaration":{"anyOf":[{"type":"object","properties":{"mailbox_use":{"type":"string","enum":["habitual","dedicated"]},"declared_by":{"type":["string","null"],"format":"uuid"},"declared_at":{"type":"string","format":"date-time"}},"required":["mailbox_use","declared_by","declared_at"]},{"type":"object","properties":{"habitual_personal_account":{"type":"boolean","enum":[true]},"no_other_automation":{"type":"boolean","enum":[true]},"declared_by":{"type":["string","null"],"format":"uuid"},"declared_at":{"type":"string","format":"date-time"}},"required":["habitual_personal_account","no_other_automation","declared_by","declared_at"]},{"type":"null"}]},"expires_at":{"type":"string","format":"date-time"},"progress":{"type":"object","properties":{"stage":{"type":"string","enum":["declaration_required","preparing","sign_in_required","verifying","complete"]}},"required":["stage"]},"recovery":{"type":["object","null"],"properties":{"state":{"type":"string","enum":["active","exhausted"]},"attempts":{"type":"integer","minimum":0},"checked_at":{"type":["string","null"],"format":"date-time"},"next_at":{"type":["string","null"],"format":"date-time"}},"required":["state","attempts","checked_at","next_at"]},"replaced_by":{"type":["string","null"],"format":"uuid"},"provider_hint":{"type":["object","null"],"properties":{"code":{"type":"string","enum":["canceled","account_exists","provider_rejected"]},"at":{"type":"string","format":"date-time"}},"required":["code","at"]},"connection_url":{"type":"string","format":"uri"},"action_owner":{"type":"string","enum":["account_owner","agent","lifty","none"]},"actions":{"type":"array","items":{"type":"string","enum":["open_link","wait","close","replace"]}},"next_step":{"anyOf":[{"type":"object","properties":{"operation":{"type":"string","enum":["sending_accounts_warmup_start"]},"body":{"type":"object","properties":{"workspace":{"type":"string","format":"uuid"},"connection_ref":{"type":"string","format":"uuid"}},"required":["workspace","connection_ref"]},"message":{"type":"string"}},"required":["operation","body","message"]},{"type":"object","properties":{"operation":{"type":"string","enum":["sending_accounts_attempt","sending_accounts_replace_attempt"]},"path":{"type":"object","properties":{"id":{"type":"string","format":"uuid"}},"required":["id"]},"query":{"type":"object","properties":{"wait_seconds":{"type":"integer","minimum":1,"maximum":25}},"required":["wait_seconds"]},"message":{"type":"string"}},"required":["operation","path","message"]},{"type":"object","properties":{"operation":{"type":"string","enum":["next_step"]},"message":{"type":"string"}},"required":["operation","message"]}]}},"required":["workspace","id","sender_id","channel","state","reason","account_id","declaration","expires_at","progress","recovery","replaced_by","provider_hint","action_owner","actions"]},"successor":{"type":["object","null"],"properties":{"workspace":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string","minLength":1,"maxLength":200},"state":{"type":"string","minLength":1}},"required":["workspace_ref","name","state"]},"id":{"type":"string","format":"uuid"},"expires_at":{"type":"string","format":"date-time"},"created":{"type":"boolean"},"connection_url":{"type":"string","format":"uri"},"progress":{"type":"object","properties":{"stage":{"type":"string","enum":["declaration_required","preparing","sign_in_required","verifying","complete"]}},"required":["stage"]}},"required":["workspace","id","expires_at","created","connection_url","progress"]}},"required":["workspace","disposition","retry_after","attempt","successor"]}}}},"400":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"503":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/workspace/sending-accounts/attempts/{id}/replace":{"post":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"id","in":"path"},{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"responses":{"200":{"description":"Close a stuck, failed or expired connection attempt and open one fresh attempt for the same person, channel and account: show successor.connection_url instead of the old link. Repeating it returns the same successor. A connected attempt or a sign-in Lifty can still verify gets no successor (disposition connected or recovering). Never disconnects an account or starts outreach. No confirmation needed.","content":{"application/json":{"schema":{"type":"object","properties":{"workspace":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string","minLength":1,"maxLength":200},"state":{"type":"string","minLength":1}},"required":["workspace_ref","name","state"]},"disposition":{"type":"string","enum":["connected","recovering","closed","replaced","ended"]},"retry_after":{"type":["string","null"],"format":"date-time"},"attempt":{"type":"object","properties":{"workspace":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string","minLength":1,"maxLength":200},"state":{"type":"string","minLength":1}},"required":["workspace_ref","name","state"]},"id":{"type":"string","format":"uuid"},"sender_id":{"type":"string","format":"uuid"},"channel":{"type":"string","enum":["email","linkedin"]},"state":{"type":"string","enum":["pending","connected","failed","expired"]},"reason":{"type":["string","null"],"enum":["canceled","account_in_use","identity_mismatch","provider_rejected","closed","replaced","unverified",null]},"account_id":{"type":["string","null"],"format":"uuid"},"declaration":{"anyOf":[{"type":"object","properties":{"mailbox_use":{"type":"string","enum":["habitual","dedicated"]},"declared_by":{"type":["string","null"],"format":"uuid"},"declared_at":{"type":"string","format":"date-time"}},"required":["mailbox_use","declared_by","declared_at"]},{"type":"object","properties":{"habitual_personal_account":{"type":"boolean","enum":[true]},"no_other_automation":{"type":"boolean","enum":[true]},"declared_by":{"type":["string","null"],"format":"uuid"},"declared_at":{"type":"string","format":"date-time"}},"required":["habitual_personal_account","no_other_automation","declared_by","declared_at"]},{"type":"null"}]},"expires_at":{"type":"string","format":"date-time"},"progress":{"type":"object","properties":{"stage":{"type":"string","enum":["declaration_required","preparing","sign_in_required","verifying","complete"]}},"required":["stage"]},"recovery":{"type":["object","null"],"properties":{"state":{"type":"string","enum":["active","exhausted"]},"attempts":{"type":"integer","minimum":0},"checked_at":{"type":["string","null"],"format":"date-time"},"next_at":{"type":["string","null"],"format":"date-time"}},"required":["state","attempts","checked_at","next_at"]},"replaced_by":{"type":["string","null"],"format":"uuid"},"provider_hint":{"type":["object","null"],"properties":{"code":{"type":"string","enum":["canceled","account_exists","provider_rejected"]},"at":{"type":"string","format":"date-time"}},"required":["code","at"]},"connection_url":{"type":"string","format":"uri"},"action_owner":{"type":"string","enum":["account_owner","agent","lifty","none"]},"actions":{"type":"array","items":{"type":"string","enum":["open_link","wait","close","replace"]}},"next_step":{"anyOf":[{"type":"object","properties":{"operation":{"type":"string","enum":["sending_accounts_warmup_start"]},"body":{"type":"object","properties":{"workspace":{"type":"string","format":"uuid"},"connection_ref":{"type":"string","format":"uuid"}},"required":["workspace","connection_ref"]},"message":{"type":"string"}},"required":["operation","body","message"]},{"type":"object","properties":{"operation":{"type":"string","enum":["sending_accounts_attempt","sending_accounts_replace_attempt"]},"path":{"type":"object","properties":{"id":{"type":"string","format":"uuid"}},"required":["id"]},"query":{"type":"object","properties":{"wait_seconds":{"type":"integer","minimum":1,"maximum":25}},"required":["wait_seconds"]},"message":{"type":"string"}},"required":["operation","path","message"]},{"type":"object","properties":{"operation":{"type":"string","enum":["next_step"]},"message":{"type":"string"}},"required":["operation","message"]}]}},"required":["workspace","id","sender_id","channel","state","reason","account_id","declaration","expires_at","progress","recovery","replaced_by","provider_hint","action_owner","actions"]},"successor":{"type":["object","null"],"properties":{"workspace":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string","minLength":1,"maxLength":200},"state":{"type":"string","minLength":1}},"required":["workspace_ref","name","state"]},"id":{"type":"string","format":"uuid"},"expires_at":{"type":"string","format":"date-time"},"created":{"type":"boolean"},"connection_url":{"type":"string","format":"uri"},"progress":{"type":"object","properties":{"stage":{"type":"string","enum":["declaration_required","preparing","sign_in_required","verifying","complete"]}},"required":["stage"]}},"required":["workspace","id","expires_at","created","connection_url","progress"]}},"required":["workspace","disposition","retry_after","attempt","successor"]}}}},"400":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"503":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/workspace/sending-accounts/{id}/reconnect":{"post":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"id","in":"path"},{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"responses":{"200":{"description":"Start a new authorization of this same account (same mailbox or LinkedIn profile); returns connection_url like connect and reuses its open reconnect attempt. Another identity fails with identity_mismatch. After needs_reconnect the usage state is kept; after disconnect the account returns paused until resumed. Never activates a campaign.","content":{"application/json":{"schema":{"type":"object","properties":{"workspace":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string","minLength":1,"maxLength":200},"state":{"type":"string","minLength":1}},"required":["workspace_ref","name","state"]},"id":{"type":"string","format":"uuid"},"expires_at":{"type":"string","format":"date-time"},"created":{"type":"boolean"},"connection_url":{"type":"string","format":"uri"},"progress":{"type":"object","properties":{"stage":{"type":"string","enum":["declaration_required","preparing","sign_in_required","verifying","complete"]}},"required":["stage"]}},"required":["workspace","id","expires_at","created","connection_url","progress"]}}}},"400":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"503":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/workspace/sending-accounts/{id}/pause":{"post":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"id","in":"path"},{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"responses":{"200":{"description":"Pause this account: nothing new is done with it until resumed; in-flight sends settle and its connection stays. Idempotent. Other accounts and campaigns are unchanged.","content":{"application/json":{"schema":{"type":"object","properties":{"workspace":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string","minLength":1,"maxLength":200},"state":{"type":"string","minLength":1}},"required":["workspace_ref","name","state"]},"account":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"sender_id":{"type":"string","format":"uuid"},"channel":{"type":"string","enum":["email","linkedin"]},"identity":{"type":["string","null"],"minLength":1,"maxLength":2048},"status":{"type":"string","enum":["connected","needs_reconnect","disconnected"]},"state":{"type":"string","enum":["active","paused"]},"sending":{"type":"object","properties":{"allowed":{"type":"boolean"},"reason":{"type":["string","null"],"enum":["paused_by_member","paused_by_lift","channel_paused","workspace_suspended","disconnected","needs_reconnect","status_unconfirmed","connection_unavailable","sender_deleted","mailbox_not_ready","previous_automation_active","blocked",null]},"scope":{"type":["string","null"],"enum":["account","sender","channel","workspace","all_workspaces",null]}},"required":["allowed","reason","scope"]},"limits":{"anyOf":[{"type":"object","properties":{"emails_per_day":{"type":"integer","minimum":0}},"required":["emails_per_day"]},{"type":"object","properties":{"invitations_per_day":{"type":"integer","minimum":0},"messages_per_day":{"type":"integer","minimum":0},"invitations_per_7_days":{"type":"integer","minimum":0}},"required":["invitations_per_day","messages_per_day","invitations_per_7_days"]},{"type":"null"}]},"disconnect_pause":{"type":"object","properties":{"count":{"type":"integer","minimum":0},"can_resume":{"type":"boolean"}},"required":["count","can_resume"]},"checked_at":{"type":["string","null"],"format":"date-time"},"observation":{"type":"object","properties":{"state":{"type":"string","enum":["verified","unverified"]}},"required":["state"]},"connected_at":{"type":["string","null"],"format":"date-time"},"disconnected_at":{"type":["string","null"],"format":"date-time"},"access_revoked_at":{"type":["string","null"],"format":"date-time"},"access_removal":{"type":["string","null"],"enum":["pending","confirmed","not_applicable",null]},"declaration":{"anyOf":[{"type":"object","properties":{"mailbox_use":{"type":"string","enum":["habitual","dedicated"]},"declared_by":{"type":["string","null"],"format":"uuid"},"declared_at":{"type":"string","format":"date-time"}},"required":["mailbox_use","declared_by","declared_at"]},{"type":"object","properties":{"habitual_personal_account":{"type":"boolean","enum":[true]},"no_other_automation":{"type":"boolean","enum":[true]},"declared_by":{"type":["string","null"],"format":"uuid"},"declared_at":{"type":"string","format":"date-time"}},"required":["habitual_personal_account","no_other_automation","declared_by","declared_at"]},{"type":"null"}]},"sends":{"type":["object","null"],"properties":{"today":{"type":"integer","minimum":0},"last_7_days":{"type":"integer","minimum":0}},"required":["today","last_7_days"]},"participation":{"type":"object","properties":{"status":{"type":"string","enum":["sending","no_active_campaign","waiting_for_first_lead","paused","not_connected","email_not_ready"]},"cause":{"type":"string","enum":["active_journeys","no_active_campaign_on_channel","no_lead_yet","paused_by_member","paused_by_disconnect","campaign_paused","workspace_suspended","sender_off","sender_paused","paused_by_lift","disconnected","needs_reconnect","unverified","warming","placement_required","declaration_required","signature_missing","mailbox_not_ready","health_hold","retired"]},"category":{"type":["string","null"],"enum":["transient","fixable_by_client","long","intentional",null]},"since":{"type":["string","null"],"format":"date-time"},"since_estimated":{"type":"boolean"},"waiting_journeys":{"type":"integer","minimum":0},"stop":{"type":"object","properties":{"scope":{"type":"string","enum":["account","sender","channel","workspace","all_workspaces"]},"origin":{"type":"string","enum":["person","system"]},"reason":{"type":"string","enum":["deliverability_review","account_safety","setup","client_request","maintenance","other","cutover","not_executed_by_lifty","ambiguous_send","provider_risk","recipient_restricted","recorded_before_lif1710","unspecified"]},"review_by":{"type":"string","format":"date-time"}},"required":["scope","origin","reason","review_by"]},"health":{"type":"object","properties":{"reason":{"type":"string","enum":["complaint","bounce_rate","provider_health","placement_failed","safety_check_failed"]}},"required":["reason"]},"also":{"type":"array","items":{"type":"object","properties":{"status":{"type":"string","enum":["sending","no_active_campaign","waiting_for_first_lead","paused","not_connected","email_not_ready"]},"cause":{"type":"string","enum":["active_journeys","no_active_campaign_on_channel","no_lead_yet","paused_by_member","paused_by_disconnect","campaign_paused","workspace_suspended","sender_off","sender_paused","paused_by_lift","disconnected","needs_reconnect","unverified","warming","placement_required","declaration_required","signature_missing","mailbox_not_ready","health_hold","retired"]},"category":{"type":["string","null"],"enum":["transient","fixable_by_client","long","intentional",null]},"since":{"type":["string","null"],"format":"date-time"},"next_step":{"type":"object","properties":{"label":{"type":"string","minLength":1,"maxLength":200},"owner":{"type":"string","enum":["member","lifty","none"]},"action":{"type":"string","enum":["none","wait","lifty_review","contact_lift","reconnect","resume_account","resume_sender","turn_on_sender","resume_campaigns","resume_campaign","set_mailbox_use","add_signature"]},"since":{"type":["string","null"],"format":"date-time"},"since_estimated":{"type":["boolean","null"]},"review_by":{"type":["string","null"],"format":"date-time"}},"required":["label","owner","action","since","since_estimated","review_by"]}},"required":["status","cause","category","since"]},"maxItems":20},"next_step":{"type":"object","properties":{"label":{"type":"string","minLength":1,"maxLength":200},"owner":{"type":"string","enum":["member","lifty","none"]},"action":{"type":"string","enum":["none","wait","lifty_review","contact_lift","reconnect","resume_account","resume_sender","turn_on_sender","resume_campaigns","resume_campaign","set_mailbox_use","add_signature"]},"since":{"type":["string","null"],"format":"date-time"},"since_estimated":{"type":["boolean","null"]},"review_by":{"type":["string","null"],"format":"date-time"}},"required":["label","owner","action","since","since_estimated","review_by"]}},"required":["status","cause"]}},"required":["id","sender_id","channel","identity","status","state","sending","limits","checked_at","observation","connected_at","disconnected_at","access_revoked_at","access_removal","declaration","sends","participation"]}},"required":["workspace","account"]}}}},"400":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"503":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/workspace/sending-accounts/{id}/resume":{"post":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"id","in":"path"},{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"responses":{"200":{"description":"Resume this account (state active). An already active approved campaign may automatically send to external recipients through it, including pending work, when its connection and all existing readiness, schedule and incident gates allow. Does not approve or activate a campaign or release separate sending holds. Refused with ACCOUNT_DISCONNECTED when disconnected: reconnect first. Idempotent.","content":{"application/json":{"schema":{"type":"object","properties":{"workspace":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string","minLength":1,"maxLength":200},"state":{"type":"string","minLength":1}},"required":["workspace_ref","name","state"]},"account":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"sender_id":{"type":"string","format":"uuid"},"channel":{"type":"string","enum":["email","linkedin"]},"identity":{"type":["string","null"],"minLength":1,"maxLength":2048},"status":{"type":"string","enum":["connected","needs_reconnect","disconnected"]},"state":{"type":"string","enum":["active","paused"]},"sending":{"type":"object","properties":{"allowed":{"type":"boolean"},"reason":{"type":["string","null"],"enum":["paused_by_member","paused_by_lift","channel_paused","workspace_suspended","disconnected","needs_reconnect","status_unconfirmed","connection_unavailable","sender_deleted","mailbox_not_ready","previous_automation_active","blocked",null]},"scope":{"type":["string","null"],"enum":["account","sender","channel","workspace","all_workspaces",null]}},"required":["allowed","reason","scope"]},"limits":{"anyOf":[{"type":"object","properties":{"emails_per_day":{"type":"integer","minimum":0}},"required":["emails_per_day"]},{"type":"object","properties":{"invitations_per_day":{"type":"integer","minimum":0},"messages_per_day":{"type":"integer","minimum":0},"invitations_per_7_days":{"type":"integer","minimum":0}},"required":["invitations_per_day","messages_per_day","invitations_per_7_days"]},{"type":"null"}]},"disconnect_pause":{"type":"object","properties":{"count":{"type":"integer","minimum":0},"can_resume":{"type":"boolean"}},"required":["count","can_resume"]},"checked_at":{"type":["string","null"],"format":"date-time"},"observation":{"type":"object","properties":{"state":{"type":"string","enum":["verified","unverified"]}},"required":["state"]},"connected_at":{"type":["string","null"],"format":"date-time"},"disconnected_at":{"type":["string","null"],"format":"date-time"},"access_revoked_at":{"type":["string","null"],"format":"date-time"},"access_removal":{"type":["string","null"],"enum":["pending","confirmed","not_applicable",null]},"declaration":{"anyOf":[{"type":"object","properties":{"mailbox_use":{"type":"string","enum":["habitual","dedicated"]},"declared_by":{"type":["string","null"],"format":"uuid"},"declared_at":{"type":"string","format":"date-time"}},"required":["mailbox_use","declared_by","declared_at"]},{"type":"object","properties":{"habitual_personal_account":{"type":"boolean","enum":[true]},"no_other_automation":{"type":"boolean","enum":[true]},"declared_by":{"type":["string","null"],"format":"uuid"},"declared_at":{"type":"string","format":"date-time"}},"required":["habitual_personal_account","no_other_automation","declared_by","declared_at"]},{"type":"null"}]},"sends":{"type":["object","null"],"properties":{"today":{"type":"integer","minimum":0},"last_7_days":{"type":"integer","minimum":0}},"required":["today","last_7_days"]},"participation":{"type":"object","properties":{"status":{"type":"string","enum":["sending","no_active_campaign","waiting_for_first_lead","paused","not_connected","email_not_ready"]},"cause":{"type":"string","enum":["active_journeys","no_active_campaign_on_channel","no_lead_yet","paused_by_member","paused_by_disconnect","campaign_paused","workspace_suspended","sender_off","sender_paused","paused_by_lift","disconnected","needs_reconnect","unverified","warming","placement_required","declaration_required","signature_missing","mailbox_not_ready","health_hold","retired"]},"category":{"type":["string","null"],"enum":["transient","fixable_by_client","long","intentional",null]},"since":{"type":["string","null"],"format":"date-time"},"since_estimated":{"type":"boolean"},"waiting_journeys":{"type":"integer","minimum":0},"stop":{"type":"object","properties":{"scope":{"type":"string","enum":["account","sender","channel","workspace","all_workspaces"]},"origin":{"type":"string","enum":["person","system"]},"reason":{"type":"string","enum":["deliverability_review","account_safety","setup","client_request","maintenance","other","cutover","not_executed_by_lifty","ambiguous_send","provider_risk","recipient_restricted","recorded_before_lif1710","unspecified"]},"review_by":{"type":"string","format":"date-time"}},"required":["scope","origin","reason","review_by"]},"health":{"type":"object","properties":{"reason":{"type":"string","enum":["complaint","bounce_rate","provider_health","placement_failed","safety_check_failed"]}},"required":["reason"]},"also":{"type":"array","items":{"type":"object","properties":{"status":{"type":"string","enum":["sending","no_active_campaign","waiting_for_first_lead","paused","not_connected","email_not_ready"]},"cause":{"type":"string","enum":["active_journeys","no_active_campaign_on_channel","no_lead_yet","paused_by_member","paused_by_disconnect","campaign_paused","workspace_suspended","sender_off","sender_paused","paused_by_lift","disconnected","needs_reconnect","unverified","warming","placement_required","declaration_required","signature_missing","mailbox_not_ready","health_hold","retired"]},"category":{"type":["string","null"],"enum":["transient","fixable_by_client","long","intentional",null]},"since":{"type":["string","null"],"format":"date-time"},"next_step":{"type":"object","properties":{"label":{"type":"string","minLength":1,"maxLength":200},"owner":{"type":"string","enum":["member","lifty","none"]},"action":{"type":"string","enum":["none","wait","lifty_review","contact_lift","reconnect","resume_account","resume_sender","turn_on_sender","resume_campaigns","resume_campaign","set_mailbox_use","add_signature"]},"since":{"type":["string","null"],"format":"date-time"},"since_estimated":{"type":["boolean","null"]},"review_by":{"type":["string","null"],"format":"date-time"}},"required":["label","owner","action","since","since_estimated","review_by"]}},"required":["status","cause","category","since"]},"maxItems":20},"next_step":{"type":"object","properties":{"label":{"type":"string","minLength":1,"maxLength":200},"owner":{"type":"string","enum":["member","lifty","none"]},"action":{"type":"string","enum":["none","wait","lifty_review","contact_lift","reconnect","resume_account","resume_sender","turn_on_sender","resume_campaigns","resume_campaign","set_mailbox_use","add_signature"]},"since":{"type":["string","null"],"format":"date-time"},"since_estimated":{"type":["boolean","null"]},"review_by":{"type":["string","null"],"format":"date-time"}},"required":["label","owner","action","since","since_estimated","review_by"]}},"required":["status","cause"]}},"required":["id","sender_id","channel","identity","status","state","sending","limits","checked_at","observation","connected_at","disconnected_at","access_revoked_at","access_removal","declaration","sends","participation"]}},"required":["workspace","account"]}}}},"400":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"503":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/workspace/sending-accounts/{id}/resume-campaigns":{"post":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"id","in":"path"},{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"confirm":{"type":"boolean","enum":[true]}},"required":["confirm"],"additionalProperties":false}}}},"responses":{"200":{"description":"Explicitly resume LinkedIn campaigns recorded as paused by disconnect, with confirm:true. Requires the same verified identity, active account and no hold. Rechecks approval and safety per campaign; returns resumed/blocked results. Other pauses stay. Retries reuse actions. First pending steps become due now; follow-ups keep receipt-relative timing. Read disconnect_pause first. This permits sends.","content":{"application/json":{"schema":{"type":"object","properties":{"workspace":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string","minLength":1,"maxLength":200},"state":{"type":"string","minLength":1}},"required":["workspace_ref","name","state"]},"account":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"sender_id":{"type":"string","format":"uuid"},"channel":{"type":"string","enum":["email","linkedin"]},"identity":{"type":["string","null"],"minLength":1,"maxLength":2048},"status":{"type":"string","enum":["connected","needs_reconnect","disconnected"]},"state":{"type":"string","enum":["active","paused"]},"sending":{"type":"object","properties":{"allowed":{"type":"boolean"},"reason":{"type":["string","null"],"enum":["paused_by_member","paused_by_lift","channel_paused","workspace_suspended","disconnected","needs_reconnect","status_unconfirmed","connection_unavailable","sender_deleted","mailbox_not_ready","previous_automation_active","blocked",null]},"scope":{"type":["string","null"],"enum":["account","sender","channel","workspace","all_workspaces",null]}},"required":["allowed","reason","scope"]},"limits":{"anyOf":[{"type":"object","properties":{"emails_per_day":{"type":"integer","minimum":0}},"required":["emails_per_day"]},{"type":"object","properties":{"invitations_per_day":{"type":"integer","minimum":0},"messages_per_day":{"type":"integer","minimum":0},"invitations_per_7_days":{"type":"integer","minimum":0}},"required":["invitations_per_day","messages_per_day","invitations_per_7_days"]},{"type":"null"}]},"disconnect_pause":{"type":"object","properties":{"count":{"type":"integer","minimum":0},"can_resume":{"type":"boolean"}},"required":["count","can_resume"]},"checked_at":{"type":["string","null"],"format":"date-time"},"observation":{"type":"object","properties":{"state":{"type":"string","enum":["verified","unverified"]}},"required":["state"]},"connected_at":{"type":["string","null"],"format":"date-time"},"disconnected_at":{"type":["string","null"],"format":"date-time"},"access_revoked_at":{"type":["string","null"],"format":"date-time"},"access_removal":{"type":["string","null"],"enum":["pending","confirmed","not_applicable",null]},"declaration":{"anyOf":[{"type":"object","properties":{"mailbox_use":{"type":"string","enum":["habitual","dedicated"]},"declared_by":{"type":["string","null"],"format":"uuid"},"declared_at":{"type":"string","format":"date-time"}},"required":["mailbox_use","declared_by","declared_at"]},{"type":"object","properties":{"habitual_personal_account":{"type":"boolean","enum":[true]},"no_other_automation":{"type":"boolean","enum":[true]},"declared_by":{"type":["string","null"],"format":"uuid"},"declared_at":{"type":"string","format":"date-time"}},"required":["habitual_personal_account","no_other_automation","declared_by","declared_at"]},{"type":"null"}]},"sends":{"type":["object","null"],"properties":{"today":{"type":"integer","minimum":0},"last_7_days":{"type":"integer","minimum":0}},"required":["today","last_7_days"]},"participation":{"type":"object","properties":{"status":{"type":"string","enum":["sending","no_active_campaign","waiting_for_first_lead","paused","not_connected","email_not_ready"]},"cause":{"type":"string","enum":["active_journeys","no_active_campaign_on_channel","no_lead_yet","paused_by_member","paused_by_disconnect","campaign_paused","workspace_suspended","sender_off","sender_paused","paused_by_lift","disconnected","needs_reconnect","unverified","warming","placement_required","declaration_required","signature_missing","mailbox_not_ready","health_hold","retired"]},"category":{"type":["string","null"],"enum":["transient","fixable_by_client","long","intentional",null]},"since":{"type":["string","null"],"format":"date-time"},"since_estimated":{"type":"boolean"},"waiting_journeys":{"type":"integer","minimum":0},"stop":{"type":"object","properties":{"scope":{"type":"string","enum":["account","sender","channel","workspace","all_workspaces"]},"origin":{"type":"string","enum":["person","system"]},"reason":{"type":"string","enum":["deliverability_review","account_safety","setup","client_request","maintenance","other","cutover","not_executed_by_lifty","ambiguous_send","provider_risk","recipient_restricted","recorded_before_lif1710","unspecified"]},"review_by":{"type":"string","format":"date-time"}},"required":["scope","origin","reason","review_by"]},"health":{"type":"object","properties":{"reason":{"type":"string","enum":["complaint","bounce_rate","provider_health","placement_failed","safety_check_failed"]}},"required":["reason"]},"also":{"type":"array","items":{"type":"object","properties":{"status":{"type":"string","enum":["sending","no_active_campaign","waiting_for_first_lead","paused","not_connected","email_not_ready"]},"cause":{"type":"string","enum":["active_journeys","no_active_campaign_on_channel","no_lead_yet","paused_by_member","paused_by_disconnect","campaign_paused","workspace_suspended","sender_off","sender_paused","paused_by_lift","disconnected","needs_reconnect","unverified","warming","placement_required","declaration_required","signature_missing","mailbox_not_ready","health_hold","retired"]},"category":{"type":["string","null"],"enum":["transient","fixable_by_client","long","intentional",null]},"since":{"type":["string","null"],"format":"date-time"},"next_step":{"type":"object","properties":{"label":{"type":"string","minLength":1,"maxLength":200},"owner":{"type":"string","enum":["member","lifty","none"]},"action":{"type":"string","enum":["none","wait","lifty_review","contact_lift","reconnect","resume_account","resume_sender","turn_on_sender","resume_campaigns","resume_campaign","set_mailbox_use","add_signature"]},"since":{"type":["string","null"],"format":"date-time"},"since_estimated":{"type":["boolean","null"]},"review_by":{"type":["string","null"],"format":"date-time"}},"required":["label","owner","action","since","since_estimated","review_by"]}},"required":["status","cause","category","since"]},"maxItems":20},"next_step":{"type":"object","properties":{"label":{"type":"string","minLength":1,"maxLength":200},"owner":{"type":"string","enum":["member","lifty","none"]},"action":{"type":"string","enum":["none","wait","lifty_review","contact_lift","reconnect","resume_account","resume_sender","turn_on_sender","resume_campaigns","resume_campaign","set_mailbox_use","add_signature"]},"since":{"type":["string","null"],"format":"date-time"},"since_estimated":{"type":["boolean","null"]},"review_by":{"type":["string","null"],"format":"date-time"}},"required":["label","owner","action","since","since_estimated","review_by"]}},"required":["status","cause"]}},"required":["id","sender_id","channel","identity","status","state","sending","limits","checked_at","observation","connected_at","disconnected_at","access_revoked_at","access_removal","declaration","sends","participation"]},"resumed":{"type":"integer","minimum":0},"results":{"type":"array","items":{"type":"object","properties":{"campaign_ref":{"type":"string","format":"uuid"},"outcome":{"type":"string","enum":["resumed","blocked"]},"reason":{"type":["string","null"]}},"required":["campaign_ref","outcome","reason"]}}},"required":["workspace","account","resumed","results"]}}}},"400":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"503":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/workspace/sending-accounts/{id}/declare":{"post":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"id","in":"path"},{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"mailbox_use":{"type":"string","enum":["habitual","dedicated"]},"confirm":{"type":"boolean","enum":[true]}},"required":["mailbox_use","confirm"],"additionalProperties":false}}}},"responses":{"200":{"description":"With the user's yes, switch a mailbox between habitual and dedicated. Dedicated waits for 21 active warmup days.","content":{"application/json":{"schema":{"type":"object","properties":{"workspace":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string","minLength":1,"maxLength":200},"state":{"type":"string","minLength":1}},"required":["workspace_ref","name","state"]},"account":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"sender_id":{"type":"string","format":"uuid"},"channel":{"type":"string","enum":["email","linkedin"]},"identity":{"type":["string","null"],"minLength":1,"maxLength":2048},"status":{"type":"string","enum":["connected","needs_reconnect","disconnected"]},"state":{"type":"string","enum":["active","paused"]},"sending":{"type":"object","properties":{"allowed":{"type":"boolean"},"reason":{"type":["string","null"],"enum":["paused_by_member","paused_by_lift","channel_paused","workspace_suspended","disconnected","needs_reconnect","status_unconfirmed","connection_unavailable","sender_deleted","mailbox_not_ready","previous_automation_active","blocked",null]},"scope":{"type":["string","null"],"enum":["account","sender","channel","workspace","all_workspaces",null]}},"required":["allowed","reason","scope"]},"limits":{"anyOf":[{"type":"object","properties":{"emails_per_day":{"type":"integer","minimum":0}},"required":["emails_per_day"]},{"type":"object","properties":{"invitations_per_day":{"type":"integer","minimum":0},"messages_per_day":{"type":"integer","minimum":0},"invitations_per_7_days":{"type":"integer","minimum":0}},"required":["invitations_per_day","messages_per_day","invitations_per_7_days"]},{"type":"null"}]},"disconnect_pause":{"type":"object","properties":{"count":{"type":"integer","minimum":0},"can_resume":{"type":"boolean"}},"required":["count","can_resume"]},"checked_at":{"type":["string","null"],"format":"date-time"},"observation":{"type":"object","properties":{"state":{"type":"string","enum":["verified","unverified"]}},"required":["state"]},"connected_at":{"type":["string","null"],"format":"date-time"},"disconnected_at":{"type":["string","null"],"format":"date-time"},"access_revoked_at":{"type":["string","null"],"format":"date-time"},"access_removal":{"type":["string","null"],"enum":["pending","confirmed","not_applicable",null]},"declaration":{"anyOf":[{"type":"object","properties":{"mailbox_use":{"type":"string","enum":["habitual","dedicated"]},"declared_by":{"type":["string","null"],"format":"uuid"},"declared_at":{"type":"string","format":"date-time"}},"required":["mailbox_use","declared_by","declared_at"]},{"type":"object","properties":{"habitual_personal_account":{"type":"boolean","enum":[true]},"no_other_automation":{"type":"boolean","enum":[true]},"declared_by":{"type":["string","null"],"format":"uuid"},"declared_at":{"type":"string","format":"date-time"}},"required":["habitual_personal_account","no_other_automation","declared_by","declared_at"]},{"type":"null"}]},"sends":{"type":["object","null"],"properties":{"today":{"type":"integer","minimum":0},"last_7_days":{"type":"integer","minimum":0}},"required":["today","last_7_days"]},"participation":{"type":"object","properties":{"status":{"type":"string","enum":["sending","no_active_campaign","waiting_for_first_lead","paused","not_connected","email_not_ready"]},"cause":{"type":"string","enum":["active_journeys","no_active_campaign_on_channel","no_lead_yet","paused_by_member","paused_by_disconnect","campaign_paused","workspace_suspended","sender_off","sender_paused","paused_by_lift","disconnected","needs_reconnect","unverified","warming","placement_required","declaration_required","signature_missing","mailbox_not_ready","health_hold","retired"]},"category":{"type":["string","null"],"enum":["transient","fixable_by_client","long","intentional",null]},"since":{"type":["string","null"],"format":"date-time"},"since_estimated":{"type":"boolean"},"waiting_journeys":{"type":"integer","minimum":0},"stop":{"type":"object","properties":{"scope":{"type":"string","enum":["account","sender","channel","workspace","all_workspaces"]},"origin":{"type":"string","enum":["person","system"]},"reason":{"type":"string","enum":["deliverability_review","account_safety","setup","client_request","maintenance","other","cutover","not_executed_by_lifty","ambiguous_send","provider_risk","recipient_restricted","recorded_before_lif1710","unspecified"]},"review_by":{"type":"string","format":"date-time"}},"required":["scope","origin","reason","review_by"]},"health":{"type":"object","properties":{"reason":{"type":"string","enum":["complaint","bounce_rate","provider_health","placement_failed","safety_check_failed"]}},"required":["reason"]},"also":{"type":"array","items":{"type":"object","properties":{"status":{"type":"string","enum":["sending","no_active_campaign","waiting_for_first_lead","paused","not_connected","email_not_ready"]},"cause":{"type":"string","enum":["active_journeys","no_active_campaign_on_channel","no_lead_yet","paused_by_member","paused_by_disconnect","campaign_paused","workspace_suspended","sender_off","sender_paused","paused_by_lift","disconnected","needs_reconnect","unverified","warming","placement_required","declaration_required","signature_missing","mailbox_not_ready","health_hold","retired"]},"category":{"type":["string","null"],"enum":["transient","fixable_by_client","long","intentional",null]},"since":{"type":["string","null"],"format":"date-time"},"next_step":{"type":"object","properties":{"label":{"type":"string","minLength":1,"maxLength":200},"owner":{"type":"string","enum":["member","lifty","none"]},"action":{"type":"string","enum":["none","wait","lifty_review","contact_lift","reconnect","resume_account","resume_sender","turn_on_sender","resume_campaigns","resume_campaign","set_mailbox_use","add_signature"]},"since":{"type":["string","null"],"format":"date-time"},"since_estimated":{"type":["boolean","null"]},"review_by":{"type":["string","null"],"format":"date-time"}},"required":["label","owner","action","since","since_estimated","review_by"]}},"required":["status","cause","category","since"]},"maxItems":20},"next_step":{"type":"object","properties":{"label":{"type":"string","minLength":1,"maxLength":200},"owner":{"type":"string","enum":["member","lifty","none"]},"action":{"type":"string","enum":["none","wait","lifty_review","contact_lift","reconnect","resume_account","resume_sender","turn_on_sender","resume_campaigns","resume_campaign","set_mailbox_use","add_signature"]},"since":{"type":["string","null"],"format":"date-time"},"since_estimated":{"type":["boolean","null"]},"review_by":{"type":["string","null"],"format":"date-time"}},"required":["label","owner","action","since","since_estimated","review_by"]}},"required":["status","cause"]}},"required":["id","sender_id","channel","identity","status","state","sending","limits","checked_at","observation","connected_at","disconnected_at","access_revoked_at","access_removal","declaration","sends","participation"]}},"required":["workspace","account"]}}}},"400":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"503":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/workspace/sending-accounts/{id}/disconnect":{"post":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"id","in":"path"},{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"confirm":{"type":"boolean","enum":[true]}},"required":["confirm"],"additionalProperties":false}}}},"responses":{"200":{"description":"Disconnect this account with confirm:true: it is paused and disconnected at once (new sends stop; submitted sends keep their history), then Lifty requests removal of its access at the provider. 200 when removal is confirmed (access_revoked_at set) or not applicable, 202 when it is still unconfirmed: Lifty keeps removing it on its own, so do not repeat the request. Other accounts are unaffected.","content":{"application/json":{"schema":{"type":"object","properties":{"workspace":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string","minLength":1,"maxLength":200},"state":{"type":"string","minLength":1}},"required":["workspace_ref","name","state"]},"account":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"sender_id":{"type":"string","format":"uuid"},"channel":{"type":"string","enum":["email","linkedin"]},"identity":{"type":["string","null"],"minLength":1,"maxLength":2048},"status":{"type":"string","enum":["connected","needs_reconnect","disconnected"]},"state":{"type":"string","enum":["active","paused"]},"sending":{"type":"object","properties":{"allowed":{"type":"boolean"},"reason":{"type":["string","null"],"enum":["paused_by_member","paused_by_lift","channel_paused","workspace_suspended","disconnected","needs_reconnect","status_unconfirmed","connection_unavailable","sender_deleted","mailbox_not_ready","previous_automation_active","blocked",null]},"scope":{"type":["string","null"],"enum":["account","sender","channel","workspace","all_workspaces",null]}},"required":["allowed","reason","scope"]},"limits":{"anyOf":[{"type":"object","properties":{"emails_per_day":{"type":"integer","minimum":0}},"required":["emails_per_day"]},{"type":"object","properties":{"invitations_per_day":{"type":"integer","minimum":0},"messages_per_day":{"type":"integer","minimum":0},"invitations_per_7_days":{"type":"integer","minimum":0}},"required":["invitations_per_day","messages_per_day","invitations_per_7_days"]},{"type":"null"}]},"disconnect_pause":{"type":"object","properties":{"count":{"type":"integer","minimum":0},"can_resume":{"type":"boolean"}},"required":["count","can_resume"]},"checked_at":{"type":["string","null"],"format":"date-time"},"observation":{"type":"object","properties":{"state":{"type":"string","enum":["verified","unverified"]}},"required":["state"]},"connected_at":{"type":["string","null"],"format":"date-time"},"disconnected_at":{"type":["string","null"],"format":"date-time"},"access_revoked_at":{"type":["string","null"],"format":"date-time"},"access_removal":{"type":["string","null"],"enum":["pending","confirmed","not_applicable",null]},"declaration":{"anyOf":[{"type":"object","properties":{"mailbox_use":{"type":"string","enum":["habitual","dedicated"]},"declared_by":{"type":["string","null"],"format":"uuid"},"declared_at":{"type":"string","format":"date-time"}},"required":["mailbox_use","declared_by","declared_at"]},{"type":"object","properties":{"habitual_personal_account":{"type":"boolean","enum":[true]},"no_other_automation":{"type":"boolean","enum":[true]},"declared_by":{"type":["string","null"],"format":"uuid"},"declared_at":{"type":"string","format":"date-time"}},"required":["habitual_personal_account","no_other_automation","declared_by","declared_at"]},{"type":"null"}]},"sends":{"type":["object","null"],"properties":{"today":{"type":"integer","minimum":0},"last_7_days":{"type":"integer","minimum":0}},"required":["today","last_7_days"]},"participation":{"type":"object","properties":{"status":{"type":"string","enum":["sending","no_active_campaign","waiting_for_first_lead","paused","not_connected","email_not_ready"]},"cause":{"type":"string","enum":["active_journeys","no_active_campaign_on_channel","no_lead_yet","paused_by_member","paused_by_disconnect","campaign_paused","workspace_suspended","sender_off","sender_paused","paused_by_lift","disconnected","needs_reconnect","unverified","warming","placement_required","declaration_required","signature_missing","mailbox_not_ready","health_hold","retired"]},"category":{"type":["string","null"],"enum":["transient","fixable_by_client","long","intentional",null]},"since":{"type":["string","null"],"format":"date-time"},"since_estimated":{"type":"boolean"},"waiting_journeys":{"type":"integer","minimum":0},"stop":{"type":"object","properties":{"scope":{"type":"string","enum":["account","sender","channel","workspace","all_workspaces"]},"origin":{"type":"string","enum":["person","system"]},"reason":{"type":"string","enum":["deliverability_review","account_safety","setup","client_request","maintenance","other","cutover","not_executed_by_lifty","ambiguous_send","provider_risk","recipient_restricted","recorded_before_lif1710","unspecified"]},"review_by":{"type":"string","format":"date-time"}},"required":["scope","origin","reason","review_by"]},"health":{"type":"object","properties":{"reason":{"type":"string","enum":["complaint","bounce_rate","provider_health","placement_failed","safety_check_failed"]}},"required":["reason"]},"also":{"type":"array","items":{"type":"object","properties":{"status":{"type":"string","enum":["sending","no_active_campaign","waiting_for_first_lead","paused","not_connected","email_not_ready"]},"cause":{"type":"string","enum":["active_journeys","no_active_campaign_on_channel","no_lead_yet","paused_by_member","paused_by_disconnect","campaign_paused","workspace_suspended","sender_off","sender_paused","paused_by_lift","disconnected","needs_reconnect","unverified","warming","placement_required","declaration_required","signature_missing","mailbox_not_ready","health_hold","retired"]},"category":{"type":["string","null"],"enum":["transient","fixable_by_client","long","intentional",null]},"since":{"type":["string","null"],"format":"date-time"},"next_step":{"type":"object","properties":{"label":{"type":"string","minLength":1,"maxLength":200},"owner":{"type":"string","enum":["member","lifty","none"]},"action":{"type":"string","enum":["none","wait","lifty_review","contact_lift","reconnect","resume_account","resume_sender","turn_on_sender","resume_campaigns","resume_campaign","set_mailbox_use","add_signature"]},"since":{"type":["string","null"],"format":"date-time"},"since_estimated":{"type":["boolean","null"]},"review_by":{"type":["string","null"],"format":"date-time"}},"required":["label","owner","action","since","since_estimated","review_by"]}},"required":["status","cause","category","since"]},"maxItems":20},"next_step":{"type":"object","properties":{"label":{"type":"string","minLength":1,"maxLength":200},"owner":{"type":"string","enum":["member","lifty","none"]},"action":{"type":"string","enum":["none","wait","lifty_review","contact_lift","reconnect","resume_account","resume_sender","turn_on_sender","resume_campaigns","resume_campaign","set_mailbox_use","add_signature"]},"since":{"type":["string","null"],"format":"date-time"},"since_estimated":{"type":["boolean","null"]},"review_by":{"type":["string","null"],"format":"date-time"}},"required":["label","owner","action","since","since_estimated","review_by"]}},"required":["status","cause"]}},"required":["id","sender_id","channel","identity","status","state","sending","limits","checked_at","observation","connected_at","disconnected_at","access_revoked_at","access_removal","declaration","sends","participation"]}},"required":["workspace","account"]}}}},"202":{"description":"Accounts blocked; access removal at the provider is not yet confirmed and continues on its own.","content":{"application/json":{"schema":{"type":"object","properties":{"workspace":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string","minLength":1,"maxLength":200},"state":{"type":"string","minLength":1}},"required":["workspace_ref","name","state"]},"account":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"sender_id":{"type":"string","format":"uuid"},"channel":{"type":"string","enum":["email","linkedin"]},"identity":{"type":["string","null"],"minLength":1,"maxLength":2048},"status":{"type":"string","enum":["connected","needs_reconnect","disconnected"]},"state":{"type":"string","enum":["active","paused"]},"sending":{"type":"object","properties":{"allowed":{"type":"boolean"},"reason":{"type":["string","null"],"enum":["paused_by_member","paused_by_lift","channel_paused","workspace_suspended","disconnected","needs_reconnect","status_unconfirmed","connection_unavailable","sender_deleted","mailbox_not_ready","previous_automation_active","blocked",null]},"scope":{"type":["string","null"],"enum":["account","sender","channel","workspace","all_workspaces",null]}},"required":["allowed","reason","scope"]},"limits":{"anyOf":[{"type":"object","properties":{"emails_per_day":{"type":"integer","minimum":0}},"required":["emails_per_day"]},{"type":"object","properties":{"invitations_per_day":{"type":"integer","minimum":0},"messages_per_day":{"type":"integer","minimum":0},"invitations_per_7_days":{"type":"integer","minimum":0}},"required":["invitations_per_day","messages_per_day","invitations_per_7_days"]},{"type":"null"}]},"disconnect_pause":{"type":"object","properties":{"count":{"type":"integer","minimum":0},"can_resume":{"type":"boolean"}},"required":["count","can_resume"]},"checked_at":{"type":["string","null"],"format":"date-time"},"observation":{"type":"object","properties":{"state":{"type":"string","enum":["verified","unverified"]}},"required":["state"]},"connected_at":{"type":["string","null"],"format":"date-time"},"disconnected_at":{"type":["string","null"],"format":"date-time"},"access_revoked_at":{"type":["string","null"],"format":"date-time"},"access_removal":{"type":["string","null"],"enum":["pending","confirmed","not_applicable",null]},"declaration":{"anyOf":[{"type":"object","properties":{"mailbox_use":{"type":"string","enum":["habitual","dedicated"]},"declared_by":{"type":["string","null"],"format":"uuid"},"declared_at":{"type":"string","format":"date-time"}},"required":["mailbox_use","declared_by","declared_at"]},{"type":"object","properties":{"habitual_personal_account":{"type":"boolean","enum":[true]},"no_other_automation":{"type":"boolean","enum":[true]},"declared_by":{"type":["string","null"],"format":"uuid"},"declared_at":{"type":"string","format":"date-time"}},"required":["habitual_personal_account","no_other_automation","declared_by","declared_at"]},{"type":"null"}]},"sends":{"type":["object","null"],"properties":{"today":{"type":"integer","minimum":0},"last_7_days":{"type":"integer","minimum":0}},"required":["today","last_7_days"]},"participation":{"type":"object","properties":{"status":{"type":"string","enum":["sending","no_active_campaign","waiting_for_first_lead","paused","not_connected","email_not_ready"]},"cause":{"type":"string","enum":["active_journeys","no_active_campaign_on_channel","no_lead_yet","paused_by_member","paused_by_disconnect","campaign_paused","workspace_suspended","sender_off","sender_paused","paused_by_lift","disconnected","needs_reconnect","unverified","warming","placement_required","declaration_required","signature_missing","mailbox_not_ready","health_hold","retired"]},"category":{"type":["string","null"],"enum":["transient","fixable_by_client","long","intentional",null]},"since":{"type":["string","null"],"format":"date-time"},"since_estimated":{"type":"boolean"},"waiting_journeys":{"type":"integer","minimum":0},"stop":{"type":"object","properties":{"scope":{"type":"string","enum":["account","sender","channel","workspace","all_workspaces"]},"origin":{"type":"string","enum":["person","system"]},"reason":{"type":"string","enum":["deliverability_review","account_safety","setup","client_request","maintenance","other","cutover","not_executed_by_lifty","ambiguous_send","provider_risk","recipient_restricted","recorded_before_lif1710","unspecified"]},"review_by":{"type":"string","format":"date-time"}},"required":["scope","origin","reason","review_by"]},"health":{"type":"object","properties":{"reason":{"type":"string","enum":["complaint","bounce_rate","provider_health","placement_failed","safety_check_failed"]}},"required":["reason"]},"also":{"type":"array","items":{"type":"object","properties":{"status":{"type":"string","enum":["sending","no_active_campaign","waiting_for_first_lead","paused","not_connected","email_not_ready"]},"cause":{"type":"string","enum":["active_journeys","no_active_campaign_on_channel","no_lead_yet","paused_by_member","paused_by_disconnect","campaign_paused","workspace_suspended","sender_off","sender_paused","paused_by_lift","disconnected","needs_reconnect","unverified","warming","placement_required","declaration_required","signature_missing","mailbox_not_ready","health_hold","retired"]},"category":{"type":["string","null"],"enum":["transient","fixable_by_client","long","intentional",null]},"since":{"type":["string","null"],"format":"date-time"},"next_step":{"type":"object","properties":{"label":{"type":"string","minLength":1,"maxLength":200},"owner":{"type":"string","enum":["member","lifty","none"]},"action":{"type":"string","enum":["none","wait","lifty_review","contact_lift","reconnect","resume_account","resume_sender","turn_on_sender","resume_campaigns","resume_campaign","set_mailbox_use","add_signature"]},"since":{"type":["string","null"],"format":"date-time"},"since_estimated":{"type":["boolean","null"]},"review_by":{"type":["string","null"],"format":"date-time"}},"required":["label","owner","action","since","since_estimated","review_by"]}},"required":["status","cause","category","since"]},"maxItems":20},"next_step":{"type":"object","properties":{"label":{"type":"string","minLength":1,"maxLength":200},"owner":{"type":"string","enum":["member","lifty","none"]},"action":{"type":"string","enum":["none","wait","lifty_review","contact_lift","reconnect","resume_account","resume_sender","turn_on_sender","resume_campaigns","resume_campaign","set_mailbox_use","add_signature"]},"since":{"type":["string","null"],"format":"date-time"},"since_estimated":{"type":["boolean","null"]},"review_by":{"type":["string","null"],"format":"date-time"}},"required":["label","owner","action","since","since_estimated","review_by"]}},"required":["status","cause"]}},"required":["id","sender_id","channel","identity","status","state","sending","limits","checked_at","observation","connected_at","disconnected_at","access_revoked_at","access_removal","declaration","sends","participation"]}},"required":["workspace","account"]}}}},"400":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"503":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/workspace/recovery-incidents":{"get":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"responses":{"200":{"description":"Read open and applied inbox recovery incidents: the account, cause, severity, since, due_at (the earliest Lifty may act), next_step (the words to show), and handoff_ref with handoff_pending when a sample waits, even after the inbox recovered. counts is a plan and may be null; only moved says work moved. Never promise that work will move. Read-only.","content":{"application/json":{"schema":{"type":"object","properties":{"workspace":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string","minLength":1,"maxLength":200},"state":{"type":"string","minLength":1}},"required":["workspace_ref","name","state"]},"incidents":{"type":"array","items":{"type":"object","properties":{"incident_ref":{"type":"string","format":"uuid"},"account_id":{"type":"string","format":"uuid"},"sender_id":{"type":"string","format":"uuid"},"channel":{"type":"string","enum":["email","linkedin"]},"cause":{"type":"string","enum":["disconnected","needs_reconnect","paused_by_lift","health_hold","placement_failed"]},"severity":{"type":"string","enum":["severe","recoverable"]},"since":{"type":"string","format":"date-time"},"due_at":{"type":"string","format":"date-time"},"state":{"type":"string","enum":["open","applied","recovered"]},"handoff_ref":{"type":["string","null"],"pattern":"^[0-9]{1,20}$"},"handoff_pending":{"type":"boolean"},"counts":{"type":["object","null"],"additionalProperties":{"type":"integer","minimum":0}},"moved":{"type":["integer","null"],"minimum":0},"next_step":{"type":"object","properties":{"label":{"type":"string","minLength":1,"maxLength":200},"owner":{"type":"string","enum":["member","lifty","none"]},"action":{"type":"string","enum":["none","wait","lifty_review","contact_lift","reconnect","resume_account","resume_sender","turn_on_sender","resume_campaigns","resume_campaign","set_mailbox_use","add_signature"]},"since":{"type":["string","null"],"format":"date-time"},"since_estimated":{"type":["boolean","null"]},"review_by":{"type":["string","null"],"format":"date-time"}},"required":["label","owner","action","since","since_estimated","review_by"]}},"required":["incident_ref","account_id","sender_id","channel","cause","severity","since","due_at","state","handoff_ref","counts","moved"]},"maxItems":5000}},"required":["workspace","incidents"]}}}},"400":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"503":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/workspace/sending-accounts/{id}/action":{"get":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"id","in":"path"},{"schema":{"type":"string","enum":["reconnect","warmup"]},"required":true,"name":"action","in":"query"},{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"responses":{"200":{"description":"Resolve a notification's link to this account: whether the reconnect or warmup action still applies, and the operation that performs it. Opening it changes nothing. An account outside the selected workspace is 404. Read-only.","content":{"application/json":{"schema":{"type":"object","properties":{"workspace":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string","minLength":1,"maxLength":200},"state":{"type":"string","minLength":1}},"required":["workspace_ref","name","state"]},"account_id":{"type":"string","format":"uuid"},"sender_id":{"type":"string","format":"uuid"},"channel":{"type":"string","enum":["email","linkedin"]},"action":{"type":"string","enum":["reconnect","warmup"]},"available":{"type":"boolean"},"operation":{"type":"string","enum":["sending_accounts_reconnect","sending_accounts_warmup_start"]},"next_step":{"type":"object","properties":{"label":{"type":"string","minLength":1,"maxLength":200},"owner":{"type":"string","enum":["member","lifty","none"]},"action":{"type":"string","enum":["none","wait","lifty_review","contact_lift","reconnect","resume_account","resume_sender","turn_on_sender","resume_campaigns","resume_campaign","set_mailbox_use","add_signature"]},"since":{"type":["string","null"],"format":"date-time"},"since_estimated":{"type":["boolean","null"]},"review_by":{"type":["string","null"],"format":"date-time"}},"required":["label","owner","action","since","since_estimated","review_by"]}},"required":["workspace","account_id","sender_id","channel","action","available","operation","next_step"]}}}},"400":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"503":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/workspace/segments":{"get":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"responses":{"200":{"description":"List the workspace's segments in priority order (1 first): id, name, priority, share of the weekly leads and the current criteria and voice versions. Each segment owns its targeting lanes, research criteria and commercial voice; a lead's outreach goes to the highest-priority segment that qualifies it. Every workspace has at least one.","content":{"application/json":{"schema":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"segments":{"type":"array","items":{"type":"object","properties":{"segment_id":{"type":"string","format":"uuid"},"name":{"type":"string","minLength":1,"maxLength":120},"priority":{"type":"integer","exclusiveMinimum":0},"share":{"type":"integer","minimum":0,"maximum":100,"description":"Whole percent of the weekly leads."},"acquisition_mode":{"type":"string","enum":["discovery","finite"]},"criteria_version":{"type":["integer","null"],"minimum":0},"voice_version":{"type":["integer","null"],"minimum":0},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"}},"required":["segment_id","name","priority","criteria_version","created_at","updated_at"]},"maxItems":100}},"required":["workspace_ref","segments"]}}}},"400":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}},"post":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120,"description":"1 to 120 characters, unique in the workspace ignoring case."},"source_segment_id":{"type":"string","format":"uuid","description":"The segment whose lanes, criteria and voice the new segment copies."}},"required":["name","source_segment_id"],"additionalProperties":false}}}},"responses":{"201":{"description":"Create a segment by copying source_segment_id's current lanes, criteria and voice. The copy goes last in priority; edit it through targeting, research-criteria and commercial-voice with its segment_id. Starts at share 0; other shares stay. Starts no research or outreach.","content":{"application/json":{"schema":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"segment":{"type":"object","properties":{"segment_id":{"type":"string","format":"uuid"},"name":{"type":"string","minLength":1,"maxLength":120},"priority":{"type":"integer","exclusiveMinimum":0},"share":{"type":"integer","minimum":0,"maximum":100,"description":"Whole percent of the weekly leads."},"acquisition_mode":{"type":"string","enum":["discovery","finite"]},"criteria_version":{"type":["integer","null"],"minimum":0},"voice_version":{"type":["integer","null"],"minimum":0},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"}},"required":["segment_id","name","priority","criteria_version","created_at","updated_at"]}},"required":["workspace_ref","segment"]}}}},"400":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/workspace/segments/finite":{"post":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120,"description":"1 to 120 characters, unique in the workspace ignoring case."},"source_segment_id":{"type":"string","format":"uuid","description":"Explicit source of criteria and voice only; no discovery lanes or senders are copied."}},"required":["name","source_segment_id"],"additionalProperties":false}}}},"responses":{"201":{"description":"Create a finite segment from explicit source criteria and voice, without discovery lanes or senders. Starts with share 0 and preserves other shares. Conference research is outside weekly segment shares. Starts no research or outreach.","content":{"application/json":{"schema":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"segment":{"type":"object","properties":{"segment_id":{"type":"string","format":"uuid"},"name":{"type":"string","minLength":1,"maxLength":120},"priority":{"type":"integer","exclusiveMinimum":0},"share":{"type":"integer","minimum":0,"maximum":100,"description":"Whole percent of the weekly leads."},"acquisition_mode":{"type":"string","enum":["discovery","finite"]},"criteria_version":{"type":["integer","null"],"minimum":0},"voice_version":{"type":["integer","null"],"minimum":0},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"}},"required":["segment_id","name","priority","criteria_version","created_at","updated_at"]}},"required":["workspace_ref","segment"]}}}},"400":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/workspace/segments/{segment_id}":{"patch":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"segment_id","in":"path"},{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120,"description":"1 to 120 characters, unique in the workspace ignoring case."}},"required":["name"],"additionalProperties":false}}}},"responses":{"200":{"description":"Rename one segment. Its configuration, priority and leads stay as they are.","content":{"application/json":{"schema":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"segment":{"type":"object","properties":{"segment_id":{"type":"string","format":"uuid"},"name":{"type":"string","minLength":1,"maxLength":120},"priority":{"type":"integer","exclusiveMinimum":0},"share":{"type":"integer","minimum":0,"maximum":100,"description":"Whole percent of the weekly leads."},"acquisition_mode":{"type":"string","enum":["discovery","finite"]},"criteria_version":{"type":["integer","null"],"minimum":0},"voice_version":{"type":["integer","null"],"minimum":0},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"}},"required":["segment_id","name","priority","criteria_version","created_at","updated_at"]}},"required":["workspace_ref","segment"]}}}},"400":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/workspace/segments/order":{"post":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"},"minItems":1,"maxItems":100,"description":"Every segment id of the workspace once, highest priority first."}},"required":["segment_ids"],"additionalProperties":false}}}},"responses":{"200":{"description":"Set the priority of every segment at once: segment_ids lists each of the workspace's segments once, highest priority first. Priority decides which qualifying segment receives a lead's outreach. A list that is not exactly the current segments returns SEGMENT_ORDER_STALE and changes nothing.","content":{"application/json":{"schema":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"segments":{"type":"array","items":{"type":"object","properties":{"segment_id":{"type":"string","format":"uuid"},"name":{"type":"string","minLength":1,"maxLength":120},"priority":{"type":"integer","exclusiveMinimum":0},"share":{"type":"integer","minimum":0,"maximum":100,"description":"Whole percent of the weekly leads."},"acquisition_mode":{"type":"string","enum":["discovery","finite"]},"criteria_version":{"type":["integer","null"],"minimum":0},"voice_version":{"type":["integer","null"],"minimum":0},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"}},"required":["segment_id","name","priority","criteria_version","created_at","updated_at"]},"maxItems":100}},"required":["workspace_ref","segments"]}}}},"400":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}},"put":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"},"minItems":1,"maxItems":100,"description":"Every segment id of the workspace once, highest priority first."}},"required":["segment_ids"],"additionalProperties":false}}}},"responses":{"200":{"description":"Set the priority of every segment at once: segment_ids lists each of the workspace's segments once, highest priority first. Priority decides which qualifying segment receives a lead's outreach. A list that is not exactly the current segments returns SEGMENT_ORDER_STALE and changes nothing.","content":{"application/json":{"schema":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"segments":{"type":"array","items":{"type":"object","properties":{"segment_id":{"type":"string","format":"uuid"},"name":{"type":"string","minLength":1,"maxLength":120},"priority":{"type":"integer","exclusiveMinimum":0},"share":{"type":"integer","minimum":0,"maximum":100,"description":"Whole percent of the weekly leads."},"acquisition_mode":{"type":"string","enum":["discovery","finite"]},"criteria_version":{"type":["integer","null"],"minimum":0},"voice_version":{"type":["integer","null"],"minimum":0},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"}},"required":["segment_id","name","priority","criteria_version","created_at","updated_at"]},"maxItems":100}},"required":["workspace_ref","segments"]}}}},"400":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/workspace/segments/shares":{"post":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"shares":{"type":"array","items":{"type":"object","properties":{"segment_id":{"type":"string","format":"uuid"},"share":{"type":"integer","minimum":0,"maximum":100,"description":"Whole percent of the weekly leads."}},"required":["segment_id","share"],"additionalProperties":false},"minItems":1,"maxItems":100,"description":"Each segment once; shares add up to 100."}},"required":["shares"],"additionalProperties":false}}}},"responses":{"200":{"description":"Set every segment's share of the weekly leads at once; discovery and research follow it until a sender or started-channel change splits by senders again. Otherwise SEGMENT_SHARES_INVALID.","content":{"application/json":{"schema":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"segments":{"type":"array","items":{"type":"object","properties":{"segment_id":{"type":"string","format":"uuid"},"name":{"type":"string","minLength":1,"maxLength":120},"priority":{"type":"integer","exclusiveMinimum":0},"share":{"type":"integer","minimum":0,"maximum":100,"description":"Whole percent of the weekly leads."},"acquisition_mode":{"type":"string","enum":["discovery","finite"]},"criteria_version":{"type":["integer","null"],"minimum":0},"voice_version":{"type":["integer","null"],"minimum":0},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"}},"required":["segment_id","name","priority","criteria_version","created_at","updated_at"]},"maxItems":100}},"required":["workspace_ref","segments"]}}}},"400":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}},"put":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"shares":{"type":"array","items":{"type":"object","properties":{"segment_id":{"type":"string","format":"uuid"},"share":{"type":"integer","minimum":0,"maximum":100,"description":"Whole percent of the weekly leads."}},"required":["segment_id","share"],"additionalProperties":false},"minItems":1,"maxItems":100,"description":"Each segment once; shares add up to 100."}},"required":["shares"],"additionalProperties":false}}}},"responses":{"200":{"description":"Set every segment's share of the weekly leads at once; discovery and research follow it until a sender or started-channel change splits by senders again. Otherwise SEGMENT_SHARES_INVALID.","content":{"application/json":{"schema":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"segments":{"type":"array","items":{"type":"object","properties":{"segment_id":{"type":"string","format":"uuid"},"name":{"type":"string","minLength":1,"maxLength":120},"priority":{"type":"integer","exclusiveMinimum":0},"share":{"type":"integer","minimum":0,"maximum":100,"description":"Whole percent of the weekly leads."},"acquisition_mode":{"type":"string","enum":["discovery","finite"]},"criteria_version":{"type":["integer","null"],"minimum":0},"voice_version":{"type":["integer","null"],"minimum":0},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"}},"required":["segment_id","name","priority","criteria_version","created_at","updated_at"]},"maxItems":100}},"required":["workspace_ref","segments"]}}}},"400":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/workspace/segments/senders":{"get":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"responses":{"200":{"description":"Read who serves each segment, in priority order: sender_ids from the senders roster, waiting_cause (its new leads wait: no_senders, senders_unavailable, paused or pinned_sender_outside_segment) and passing_cause (they go to the next qualifying segment: retired or no_journey), both null when it can start people, and weekly_leads against weekly_capacity (capacity_short when below). A segment's Journeys assign leads only to its senders. Read-only.","content":{"application/json":{"schema":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"segments":{"type":"array","items":{"type":"object","properties":{"segment_id":{"type":"string","format":"uuid"},"segment_name":{"type":"string","minLength":1,"maxLength":120},"priority":{"type":"integer","exclusiveMinimum":0},"sender_ids":{"type":"array","items":{"type":"string","format":"uuid"},"maxItems":1000,"description":"Ids from the senders roster, oldest first."},"waiting_cause":{"type":["string","null"],"enum":["no_senders","senders_unavailable","paused","pinned_sender_outside_segment",null],"description":"Why this segment's new leads wait in it: no_senders (nobody serves it), senders_unavailable (an operating Journey has nobody ready among its senders), paused (its Journey is paused) or pinned_sender_outside_segment (a search lane of the segment is assigned to a person who does not serve it, so that lane's leads wait). Null when nothing holds them."},"passing_cause":{"type":["string","null"],"enum":["retired","no_journey",null],"description":"Why this segment takes no new leads, so they go to the next qualifying segment: retired (its Journeys are retired) or no_journey (it has no active Journey). Null when it takes them."},"share":{"type":"integer","minimum":0,"maximum":100,"description":"Whole percent of the weekly leads."},"weekly_leads":{"type":"integer","minimum":0,"description":"The segment's share of the week's research target."},"weekly_capacity":{"type":"integer","minimum":0,"description":"New leads a week its senders can start, from outreach capacity; a sender serving several segments counts toward each by share."},"sender_capacity":{"type":"array","items":{"type":"object","properties":{"sender_id":{"type":"string","format":"uuid"},"weekly_capacity":{"type":"integer","minimum":0}},"required":["sender_id","weekly_capacity"]},"description":"Each assigned sender’s contribution to the segment’s weekly capacity."},"capacity_short":{"type":"boolean","description":"True when weekly_capacity is below weekly_leads: add senders to this segment or lower its share."}},"required":["segment_id","segment_name","priority","sender_ids","waiting_cause","passing_cause"]},"maxItems":100}},"required":["workspace_ref","segments"]}}}},"400":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/workspace/segments/{segment_id}/senders":{"post":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"segment_id","in":"path"},{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"sender_id":{"type":"string","format":"uuid","description":"A person from the senders roster."}},"required":["sender_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Add one person from the senders roster to a segment, so its Journeys may assign them new leads on their connected accounts. Idempotent; re-splits by senders. Returns the segment's senders and causes. Never connects an account, activates a Campaign or sends by itself.","content":{"application/json":{"schema":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"segment":{"type":"object","properties":{"segment_id":{"type":"string","format":"uuid"},"segment_name":{"type":"string","minLength":1,"maxLength":120},"priority":{"type":"integer","exclusiveMinimum":0},"sender_ids":{"type":"array","items":{"type":"string","format":"uuid"},"maxItems":1000,"description":"Ids from the senders roster, oldest first."},"waiting_cause":{"type":["string","null"],"enum":["no_senders","senders_unavailable","paused","pinned_sender_outside_segment",null],"description":"Why this segment's new leads wait in it: no_senders (nobody serves it), senders_unavailable (an operating Journey has nobody ready among its senders), paused (its Journey is paused) or pinned_sender_outside_segment (a search lane of the segment is assigned to a person who does not serve it, so that lane's leads wait). Null when nothing holds them."},"passing_cause":{"type":["string","null"],"enum":["retired","no_journey",null],"description":"Why this segment takes no new leads, so they go to the next qualifying segment: retired (its Journeys are retired) or no_journey (it has no active Journey). Null when it takes them."}},"required":["segment_id","segment_name","priority","sender_ids","waiting_cause","passing_cause"]}},"required":["workspace_ref","segment"]}}}},"400":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/workspace/segments/{segment_id}/senders/{sender_id}":{"delete":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"segment_id","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"sender_id","in":"path"},{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"responses":{"200":{"description":"Remove one person from a segment: its Journeys stop assigning them new leads, and the segment's search lanes assigned to them become unassigned. Leads already assigned keep their person, and the person stays in the roster and in other segments. Idempotent; re-splits by senders. Returns the segment's senders and causes; a segment left with nobody waits (no_senders).","content":{"application/json":{"schema":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"segment":{"type":"object","properties":{"segment_id":{"type":"string","format":"uuid"},"segment_name":{"type":"string","minLength":1,"maxLength":120},"priority":{"type":"integer","exclusiveMinimum":0},"sender_ids":{"type":"array","items":{"type":"string","format":"uuid"},"maxItems":1000,"description":"Ids from the senders roster, oldest first."},"waiting_cause":{"type":["string","null"],"enum":["no_senders","senders_unavailable","paused","pinned_sender_outside_segment",null],"description":"Why this segment's new leads wait in it: no_senders (nobody serves it), senders_unavailable (an operating Journey has nobody ready among its senders), paused (its Journey is paused) or pinned_sender_outside_segment (a search lane of the segment is assigned to a person who does not serve it, so that lane's leads wait). Null when nothing holds them."},"passing_cause":{"type":["string","null"],"enum":["retired","no_journey",null],"description":"Why this segment takes no new leads, so they go to the next qualifying segment: retired (its Journeys are retired) or no_journey (it has no active Journey). Null when it takes them."}},"required":["segment_id","segment_name","priority","sender_ids","waiting_cause","passing_cause"]}},"required":["workspace_ref","segment"]}}}},"400":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/workspace/linkedin":{"get":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":false,"name":"sender_id","in":"query"},{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"responses":{"200":{"description":"Read LinkedIn activity today (since 00:00 UTC) and over the last 7 days, the same periods as the Senders page: invitations sent and accepted, messages sent and replies received, as confirmed events (not people), for the workspace and each LinkedIn account. With sender_id, totals and accounts cover only that sender's account; a sender without a LinkedIn account has no accounts and true zero counts. Each account also shows its connection status, usage state and why its due work waits. Read-only; never contacts LinkedIn or changes work.","content":{"application/json":{"schema":{"type":"object","properties":{"workspace":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string","minLength":1,"maxLength":200},"state":{"type":"string","minLength":1}},"required":["workspace_ref","name","state"]},"observed_at":{"type":"string","format":"date-time"},"today":{"type":"object","properties":{"invitations_sent":{"type":"integer","minimum":0},"invitations_accepted":{"type":"integer","minimum":0},"messages_sent":{"type":"integer","minimum":0},"replies_received":{"type":"integer","minimum":0}},"required":["invitations_sent","invitations_accepted","messages_sent","replies_received"]},"last_7_days":{"type":"object","properties":{"invitations_sent":{"type":"integer","minimum":0},"invitations_accepted":{"type":"integer","minimum":0},"messages_sent":{"type":"integer","minimum":0},"replies_received":{"type":"integer","minimum":0}},"required":["invitations_sent","invitations_accepted","messages_sent","replies_received"]},"accounts":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"sender_id":{"type":"string","format":"uuid"},"status":{"type":"string","enum":["connected","needs_reconnect","disconnected"]},"state":{"type":"string","enum":["active","paused"]},"today":{"type":"object","properties":{"invitations_sent":{"type":"integer","minimum":0},"invitations_accepted":{"type":"integer","minimum":0},"messages_sent":{"type":"integer","minimum":0},"replies_received":{"type":"integer","minimum":0}},"required":["invitations_sent","invitations_accepted","messages_sent","replies_received"]},"last_7_days":{"type":"object","properties":{"invitations_sent":{"type":"integer","minimum":0},"invitations_accepted":{"type":"integer","minimum":0},"messages_sent":{"type":"integer","minimum":0},"replies_received":{"type":"integer","minimum":0}},"required":["invitations_sent","invitations_accepted","messages_sent","replies_received"]},"waiting_reason":{"type":["string","null"],"enum":["awaiting_review","outside_schedule","daily_limit_reached","campaign_paused","account_paused","sender_paused","paused_by_lift","account_needs_attention","on_hold",null]}},"required":["id","sender_id","status","state","today","last_7_days","waiting_reason"]},"maxItems":5000}},"required":["workspace","observed_at","today","last_7_days","accounts"]}}}},"400":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/workspace/insights/previews":{"post":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"request_id":{"type":"string","format":"uuid"},"start":{"type":"string","format":"date"},"end":{"type":"string","format":"date"}},"required":["request_id","start","end"],"additionalProperties":false}}}},"responses":{"200":{"description":"Generate a founder draft for a period of up to 56 days. Never sends or applies. Reuse request_id, dates and workspace after an uncertain response (30-day retry window). A new request_id requests a new analysis.","content":{"application/json":{"schema":{"type":"object","properties":{"preview":{"type":"boolean","enum":[true]},"run_id":{"type":"string","maxLength":100,"pattern":"^run_[a-zA-Z0-9]+$"},"status":{"type":"string","enum":["pending"]}},"required":["preview","run_id","status"],"additionalProperties":false}}}},"400":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/workspace/insights/previews/{id}":{"get":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","maxLength":100,"pattern":"^run_[a-zA-Z0-9]+$"},"required":true,"name":"id","in":"path"},{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"responses":{"200":{"description":"Read your founder preview in the selected workspace. Pending means read this same run again; never start another run just to wait. Completed drafts are unapproved and have no effects.","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"preview":{"type":"boolean","enum":[true]},"run_id":{"type":"string","maxLength":100,"pattern":"^run_[a-zA-Z0-9]+$"},"status":{"type":"string","enum":["pending"]}},"required":["preview","run_id","status"],"additionalProperties":false},{"type":"object","properties":{"preview":{"type":"boolean","enum":[true]},"run_id":{"type":"string","maxLength":100,"pattern":"^run_[a-zA-Z0-9]+$"},"status":{"type":"string","enum":["completed"]},"result":{"type":"object","properties":{"schema_version":{"type":"number","enum":[1]},"preview":{"type":"boolean","enum":[true]},"workspace_id":{"type":"string","format":"uuid"},"status":{"type":"string","enum":["ready","unavailable"]},"explanation":{"type":"string"},"period":{"type":["object","null"],"properties":{"start":{"type":"string","format":"date-time"},"end":{"type":"string","format":"date-time"}},"required":["start","end"]},"findings":{"type":"array","items":{"type":"object","properties":{"area":{"type":"string","pattern":"^[a-z][a-z_]*$"},"outcome":{"type":"string","enum":["recommended","no_change","unavailable"]},"explanation":{"type":"string"},"cause":{"type":["string","null"],"pattern":"^[a-z][a-z0-9_.]*$"},"external_recommendation":{"type":"object","properties":{"asset_type":{"type":"string","enum":["website_hero","linkedin_headline","linkedin_about","sender_profile","deliverability","capacity"]},"versions":{"type":"array","prefixItems":[{"type":"string","minLength":1,"maxLength":30000},{"type":"string","minLength":1,"maxLength":30000}]}},"required":["asset_type","versions"]},"options":{"type":"array","items":{"type":"object","properties":{"position":{"type":"integer","minimum":1,"maximum":2},"summary":{"type":"string","minLength":1,"maxLength":30000}},"required":["position","summary"]},"maxItems":2}},"required":["area","outcome","explanation","cause","options"]}}},"required":["schema_version","preview","workspace_id","status","explanation","period","findings"]}},"required":["preview","run_id","status","result"],"additionalProperties":false},{"type":"object","properties":{"preview":{"type":"boolean","enum":[true]},"run_id":{"type":"string","maxLength":100,"pattern":"^run_[a-zA-Z0-9]+$"},"status":{"type":"string","enum":["failed"]},"message":{"type":"string"}},"required":["preview","run_id","status","message"],"additionalProperties":false}]}}}},"400":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/workspace/insights/recommendations":{"get":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":["integer","null"],"minimum":0,"maximum":2147483647,"default":0},"required":false,"name":"offset","in":"query"},{"schema":{"type":"integer","minimum":1,"maximum":100,"default":50},"required":false,"name":"limit","in":"query"},{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"responses":{"200":{"description":"Read workspace findings and pending decisions. Page through next_offset; only public recommendation fields are returned.","content":{"application/json":{"schema":{"type":"object","properties":{"workspace_id":{"type":"string","format":"uuid"},"recommendations":{"type":"array","items":{"type":"object","properties":{"proposal_id":{"type":"string","format":"uuid"},"revision":{"type":"integer","exclusiveMinimum":0},"created_at":{"type":"string","format":"date-time"},"expires_at":{"type":"string","format":"date-time"},"status":{"type":"string","enum":["proposed","approved","applied","rejected","expired"]},"status_reason":{"type":["string","null"]},"lever":{"type":"string"},"question":{"type":["string","null"]},"target":{"type":["object","null"],"properties":{"kind":{"type":"string"},"name":{"type":"string"},"url":{"type":["string","null"]}},"required":["kind","name","url"]},"tag":{"type":"string","enum":["audience","messaging","replies","linkedin_profile","booking_link","mailbox","strategy"]},"decided_at":{"type":["string","null"],"format":"date-time"},"selected_option_id":{"type":["string","null"],"format":"uuid"},"sender_setup":{"type":["object","null"],"properties":{"role_description":{"type":"string"},"lane_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"option_id":{"type":"string","format":"uuid"},"bound_sender_id":{"type":["string","null"],"format":"uuid"},"lanes":{"type":"array","items":{"type":"object","properties":{"lane_id":{"type":"string","format":"uuid"},"label":{"type":["string","null"]}},"required":["lane_id","label"]},"description":"Each targeting lane this entry names, with its current label (null until it has one). Show the label with lane_id."}},"required":["role_description","lane_ids","option_id","bound_sender_id"]},"setup_url":{"type":["string","null"]},"options":{"type":"array","items":{"type":"object","properties":{"option_id":{"type":"string","format":"uuid"},"position":{"anyOf":[{"type":"number","enum":[1]},{"type":"number","enum":[2]}]},"summary":{"type":"string"},"before":{"anyOf":[{"type":"null"},{"type":"boolean"},{"type":"number"},{"type":"string"},{"type":"array","items":{}},{"type":"object","additionalProperties":{}}]},"after":{"anyOf":[{"type":"null"},{"type":"boolean"},{"type":"number"},{"type":"string"},{"type":"array","items":{}},{"type":"object","additionalProperties":{}}]},"metric":{"type":["string","null"]},"metric_context":{"type":["object","null"],"properties":{"metric":{"type":"string"},"label":{"type":"string"},"availability":{"type":"string","enum":["complete","partial","collecting","unavailable","not_applicable"]},"value":{"type":["number","null"]},"numerator":{"type":["number","null"],"minimum":0},"denominator":{"type":["number","null"],"minimum":0},"unit":{"type":"string","enum":["ratio","people","messages","entities","deals","meetings","unknown"]},"periodStart":{"type":"string","format":"date-time"},"periodEnd":{"type":"string","format":"date-time"}},"required":["metric","label","availability","value","numerator","denominator","unit","periodStart","periodEnd"]},"sender_setup":{"type":["object","null"],"properties":{"role_description":{"type":"string"},"lane_ids":{"type":"array","items":{"type":"string","format":"uuid"}}},"required":["role_description","lane_ids"]},"lanes":{"type":"array","items":{"type":"object","properties":{"lane_id":{"type":"string","format":"uuid"},"label":{"type":["string","null"]}},"required":["lane_id","label"]},"description":"Each targeting lane this entry names, with its current label (null until it has one). Show the label with lane_id."}},"required":["option_id","position","summary","before","after","metric","metric_context"]},"maxItems":2},"external_recommendation":{"type":["object","null"],"properties":{"asset_type":{"type":"string"},"versions":{"type":"array","prefixItems":[{"type":"string"},{"type":"string"}]},"observed_status":{"type":"string","enum":["unknown","changed","unchanged"]}},"required":["asset_type","versions","observed_status"]},"latest_request":{"type":["object","null"],"properties":{"request_id":{"type":"string","format":"uuid"},"action":{"type":"string","enum":["approve","adjust","dismiss","bind_sender"]},"status":{"type":"string","enum":["pending","completed","failed"]},"error":{"type":["string","null"]}},"required":["request_id","action","status","error"]},"pending_request":{"type":["object","null"],"properties":{"request_id":{"type":"string","format":"uuid"},"action":{"type":"string","enum":["approve","adjust","dismiss","bind_sender"]},"status":{"type":"string","enum":["pending"]}},"required":["request_id","action","status"]}},"required":["proposal_id","revision","created_at","expires_at","status","status_reason","lever","options","external_recommendation","latest_request","pending_request"]},"maxItems":100},"pagination":{"type":"object","properties":{"offset":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"total":{"type":"integer","minimum":0},"next_offset":{"type":["integer","null"],"minimum":0}},"required":["offset","limit","total","next_offset"]}},"required":["workspace_id","recommendations","pagination"]}}}},"400":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/workspace/insights/requests":{"get":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"responses":{"200":{"description":"Read what Insights asks the founder to do in this workspace, from each agent's latest analysis. Read-only.","content":{"application/json":{"schema":{"type":"object","properties":{"workspace_id":{"type":"string","format":"uuid"},"requests":{"type":"array","items":{"type":"object","properties":{"request_id":{"type":"string","format":"uuid"},"agent":{"type":"string"},"area":{"type":"string"},"headline":{"type":"string"},"why":{"type":"string"},"action":{"type":"string"},"versions":{"type":"array","items":{"type":"string"},"maxItems":2},"created_at":{"type":"string","format":"date-time"},"period_start":{"type":"string","format":"date"},"period_end":{"type":"string","format":"date"},"segment_id":{"type":["string","null"],"format":"uuid"},"tag":{"type":"string","enum":["audience","messaging","replies","linkedin_profile","booking_link","mailbox","strategy"]},"status":{"type":"string","enum":["open","done","ignored"]},"responded_at":{"type":["string","null"],"format":"date-time"},"ignore_reason":{"type":["string","null"]},"target":{"type":["object","null"],"properties":{"kind":{"type":"string"},"name":{"type":"string"},"url":{"type":["string","null"]}},"required":["kind","name","url"]}},"required":["request_id","agent","area","headline","why","action","versions","created_at","period_start","period_end","segment_id"]},"maxItems":100}},"required":["workspace_id","requests"]}}}},"400":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/workspace/insights/recommendations/{id}":{"get":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"id","in":"path"},{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"responses":{"200":{"description":"Read the current recommendation revision, options, expiry and pending request.","content":{"application/json":{"schema":{"type":"object","properties":{"workspace_id":{"type":"string","format":"uuid"},"recommendations":{"type":"array","items":{"type":"object","properties":{"proposal_id":{"type":"string","format":"uuid"},"revision":{"type":"integer","exclusiveMinimum":0},"created_at":{"type":"string","format":"date-time"},"expires_at":{"type":"string","format":"date-time"},"status":{"type":"string","enum":["proposed","approved","applied","rejected","expired"]},"status_reason":{"type":["string","null"]},"lever":{"type":"string"},"question":{"type":["string","null"]},"target":{"type":["object","null"],"properties":{"kind":{"type":"string"},"name":{"type":"string"},"url":{"type":["string","null"]}},"required":["kind","name","url"]},"tag":{"type":"string","enum":["audience","messaging","replies","linkedin_profile","booking_link","mailbox","strategy"]},"decided_at":{"type":["string","null"],"format":"date-time"},"selected_option_id":{"type":["string","null"],"format":"uuid"},"sender_setup":{"type":["object","null"],"properties":{"role_description":{"type":"string"},"lane_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"option_id":{"type":"string","format":"uuid"},"bound_sender_id":{"type":["string","null"],"format":"uuid"},"lanes":{"type":"array","items":{"type":"object","properties":{"lane_id":{"type":"string","format":"uuid"},"label":{"type":["string","null"]}},"required":["lane_id","label"]},"description":"Each targeting lane this entry names, with its current label (null until it has one). Show the label with lane_id."}},"required":["role_description","lane_ids","option_id","bound_sender_id"]},"setup_url":{"type":["string","null"]},"options":{"type":"array","items":{"type":"object","properties":{"option_id":{"type":"string","format":"uuid"},"position":{"anyOf":[{"type":"number","enum":[1]},{"type":"number","enum":[2]}]},"summary":{"type":"string"},"before":{"anyOf":[{"type":"null"},{"type":"boolean"},{"type":"number"},{"type":"string"},{"type":"array","items":{}},{"type":"object","additionalProperties":{}}]},"after":{"anyOf":[{"type":"null"},{"type":"boolean"},{"type":"number"},{"type":"string"},{"type":"array","items":{}},{"type":"object","additionalProperties":{}}]},"metric":{"type":["string","null"]},"metric_context":{"type":["object","null"],"properties":{"metric":{"type":"string"},"label":{"type":"string"},"availability":{"type":"string","enum":["complete","partial","collecting","unavailable","not_applicable"]},"value":{"type":["number","null"]},"numerator":{"type":["number","null"],"minimum":0},"denominator":{"type":["number","null"],"minimum":0},"unit":{"type":"string","enum":["ratio","people","messages","entities","deals","meetings","unknown"]},"periodStart":{"type":"string","format":"date-time"},"periodEnd":{"type":"string","format":"date-time"}},"required":["metric","label","availability","value","numerator","denominator","unit","periodStart","periodEnd"]},"sender_setup":{"type":["object","null"],"properties":{"role_description":{"type":"string"},"lane_ids":{"type":"array","items":{"type":"string","format":"uuid"}}},"required":["role_description","lane_ids"]},"lanes":{"type":"array","items":{"type":"object","properties":{"lane_id":{"type":"string","format":"uuid"},"label":{"type":["string","null"]}},"required":["lane_id","label"]},"description":"Each targeting lane this entry names, with its current label (null until it has one). Show the label with lane_id."}},"required":["option_id","position","summary","before","after","metric","metric_context"]},"maxItems":2},"external_recommendation":{"type":["object","null"],"properties":{"asset_type":{"type":"string"},"versions":{"type":"array","prefixItems":[{"type":"string"},{"type":"string"}]},"observed_status":{"type":"string","enum":["unknown","changed","unchanged"]}},"required":["asset_type","versions","observed_status"]},"latest_request":{"type":["object","null"],"properties":{"request_id":{"type":"string","format":"uuid"},"action":{"type":"string","enum":["approve","adjust","dismiss","bind_sender"]},"status":{"type":"string","enum":["pending","completed","failed"]},"error":{"type":["string","null"]}},"required":["request_id","action","status","error"]},"pending_request":{"type":["object","null"],"properties":{"request_id":{"type":"string","format":"uuid"},"action":{"type":"string","enum":["approve","adjust","dismiss","bind_sender"]},"status":{"type":"string","enum":["pending"]}},"required":["request_id","action","status"]}},"required":["proposal_id","revision","created_at","expires_at","status","status_reason","lever","options","external_recommendation","latest_request","pending_request"]},"maxItems":100},"pagination":{"type":"object","properties":{"offset":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"total":{"type":"integer","minimum":0},"next_offset":{"type":["integer","null"],"minimum":0}},"required":["offset","limit","total","next_offset"]}},"required":["workspace_id","recommendations","pagination"]}}}},"400":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/workspace/insights/recommendations/{id}/bind-sender":{"post":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"id","in":"path"},{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"request_id":{"type":"string","format":"uuid"},"expected_revision":{"type":"integer","exclusiveMinimum":0},"sender_id":{"type":"string","format":"uuid"}},"required":["request_id","expected_revision","sender_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Finish the selected new-person option with a real sender_id from this workspace. Confirm the person and option first. No connected account is required to save assignment. Original revision, expiry and targeting versions still apply; reuse request_id for retries.","content":{"application/json":{"schema":{"type":"object","properties":{"request_id":{"type":"string","format":"uuid"},"proposal_id":{"type":"string","format":"uuid"},"status":{"type":"string","enum":["pending","completed","failed"]},"result":{"type":["object","null"],"additionalProperties":{"anyOf":[{"type":"null"},{"type":"boolean"},{"type":"number"},{"type":"string"},{"type":"array","items":{}},{"type":"object","additionalProperties":{}}]}}},"required":["request_id","proposal_id","status","result"]}}}},"400":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/workspace/insights/recommendations/{id}/approve":{"post":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"id","in":"path"},{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"request_id":{"type":"string","format":"uuid"},"expected_revision":{"type":"integer","exclusiveMinimum":0},"option_position":{"anyOf":[{"type":"number","enum":[1]},{"type":"number","enum":[2]}]}},"required":["request_id","expected_revision","option_position"],"additionalProperties":false}}}},"responses":{"200":{"description":"Choose a reviewed option at its exact proposal revision. A new-person option waits for sender setup; read setup_url, create or select the person, then bind-sender. Reuse request_id for retries; pending means read the recommendation again.","content":{"application/json":{"schema":{"type":"object","properties":{"request_id":{"type":"string","format":"uuid"},"proposal_id":{"type":"string","format":"uuid"},"status":{"type":"string","enum":["pending","completed","failed"]},"result":{"type":["object","null"],"additionalProperties":{"anyOf":[{"type":"null"},{"type":"boolean"},{"type":"number"},{"type":"string"},{"type":"array","items":{}},{"type":"object","additionalProperties":{}}]}}},"required":["request_id","proposal_id","status","result"]}}}},"400":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/workspace/insights/recommendations/{id}/adjust":{"post":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"id","in":"path"},{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"request_id":{"type":"string","format":"uuid"},"expected_revision":{"type":"integer","exclusiveMinimum":0},"option_position":{"anyOf":[{"type":"number","enum":[1]},{"type":"number","enum":[2]}]},"instruction":{"type":"string","minLength":1,"maxLength":2000},"slack_followup":{"type":"object","properties":{"message_id":{"type":"string","format":"uuid"},"expected_after":{"anyOf":[{"type":"string"},{"type":"array","items":{}},{"type":"object","additionalProperties":{}}]}},"required":["message_id"],"additionalProperties":false}},"required":["request_id","expected_revision","option_position","instruction"],"additionalProperties":false}}}},"responses":{"200":{"description":"Revise one option. In Slack attach the new message ID and, only for explicit approval, the exact expected_after. Reuse request_id on retry.","content":{"application/json":{"schema":{"type":"object","properties":{"request_id":{"type":"string","format":"uuid"},"proposal_id":{"type":"string","format":"uuid"},"status":{"type":"string","enum":["pending","completed","failed"]},"result":{"type":["object","null"],"additionalProperties":{"anyOf":[{"type":"null"},{"type":"boolean"},{"type":"number"},{"type":"string"},{"type":"array","items":{}},{"type":"object","additionalProperties":{}}]}}},"required":["request_id","proposal_id","status","result"]}}}},"400":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/workspace/insights/recommendations/{id}/dismiss":{"post":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"id","in":"path"},{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"request_id":{"type":"string","format":"uuid"},"expected_revision":{"type":"integer","exclusiveMinimum":0}},"required":["request_id","expected_revision"],"additionalProperties":false}}}},"responses":{"200":{"description":"Set this recommendation aside. Reuse request_id for retries.","content":{"application/json":{"schema":{"type":"object","properties":{"request_id":{"type":"string","format":"uuid"},"proposal_id":{"type":"string","format":"uuid"},"status":{"type":"string","enum":["pending","completed","failed"]},"result":{"type":["object","null"],"additionalProperties":{"anyOf":[{"type":"null"},{"type":"boolean"},{"type":"number"},{"type":"string"},{"type":"array","items":{}},{"type":"object","additionalProperties":{}}]}}},"required":["request_id","proposal_id","status","result"]}}}},"400":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/workspace/insights/requests/{id}/done":{"post":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"id","in":"path"},{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":false}}}},"responses":{"200":{"description":"Mark a founder request done: the founder did what it asks. It leaves the open requests. Retrying returns the same answer.","content":{"application/json":{"schema":{"type":"object","properties":{"request_id":{"type":"string","format":"uuid"},"status":{"type":"string","enum":["done","ignored"]},"responded_at":{"type":"string","format":"date-time"}},"required":["request_id","status","responded_at"]}}}},"400":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/workspace/insights/requests/{id}/ignore":{"post":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"id","in":"path"},{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"reason":{"type":"string","minLength":1,"maxLength":2000,"description":"Why the founder won't do it, in their words."}},"required":["reason"],"additionalProperties":false}}}},"responses":{"200":{"description":"Mark a founder request ignored. reason is why the founder won't do it, in their words; Insights reads it before raising the request again. Retrying returns the first answer.","content":{"application/json":{"schema":{"type":"object","properties":{"request_id":{"type":"string","format":"uuid"},"status":{"type":"string","enum":["done","ignored"]},"responded_at":{"type":"string","format":"date-time"}},"required":["request_id","status","responded_at"]}}}},"400":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/workspace/insights/requests/{id}/reopen":{"post":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"id","in":"path"},{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":false}}}},"responses":{"200":{"description":"Reopen a founder request marked done or ignored, when the founder takes the answer back. It returns to the open requests.","content":{"application/json":{"schema":{"type":"object","properties":{"request_id":{"type":"string","format":"uuid"},"status":{"type":"string","enum":["open"]},"responded_at":{"type":"null"}},"required":["request_id","status","responded_at"]}}}},"400":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/workspace/insights/campaign-preference":{"get":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"responses":{"200":{"description":"Read whether Insights also corrects unsent Campaign messages.","content":{"application/json":{"schema":{"type":"object","properties":{"workspace_id":{"type":"string","format":"uuid"},"mode":{"type":"string","enum":["new_leads_only","also_correct_unsent"]}},"required":["workspace_id","mode"],"additionalProperties":false}}}},"400":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}},"patch":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"mode":{"type":"string","enum":["new_leads_only","also_correct_unsent"]},"expected_mode":{"type":"string","enum":["new_leads_only","also_correct_unsent"]},"confirm":{"type":"boolean","enum":[true]}},"required":["mode","expected_mode","confirm"],"additionalProperties":false}}}},"responses":{"200":{"description":"Only when the founder asks, explain the effect and confirm their choice for future Insights changes.","content":{"application/json":{"schema":{"type":"object","properties":{"workspace_id":{"type":"string","format":"uuid"},"mode":{"type":"string","enum":["new_leads_only","also_correct_unsent"]}},"required":["workspace_id","mode"],"additionalProperties":false}}}},"400":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/workspace/insights/changes":{"get":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":["integer","null"],"minimum":0,"maximum":2147483647,"default":0},"required":false,"name":"offset","in":"query"},{"schema":{"type":"integer","minimum":1,"maximum":500,"default":100},"required":false,"name":"limit","in":"query"},{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"responses":{"200":{"description":"Read applied changes with actors, values, metrics, outcomes and revert links. Null is unknown. Page with next_offset.","content":{"application/json":{"schema":{"type":"object","properties":{"workspace_id":{"type":"string","format":"uuid"},"changes":{"type":"array","items":{"type":"object","properties":{"proposal_id":{"type":"string","format":"uuid"},"option_id":{"type":"string","format":"uuid"},"applied_at":{"type":"string","format":"date-time"},"operation":{"type":"string","enum":["patch_lifty_targeting","patch_lifty_writing_rules","apply_lifty_campaign_copy","patch_lifty_research_criteria","patch_lifty_value_proposition","prepare_lifty_sender_assignment","run_lifty_operation"]},"lever":{"type":"string","pattern":"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*){0,4}$"},"summary":{"type":"string"},"classification":{"type":["string","null"],"enum":["refinement","large",null]},"classification_reason":{"type":["string","null"]},"before":{"anyOf":[{"type":"null"},{"type":"boolean"},{"type":"number"},{"type":"string"},{"type":"array","items":{}},{"type":"object","additionalProperties":{}}]},"after":{"anyOf":[{"type":"null"},{"type":"boolean"},{"type":"number"},{"type":"string"},{"type":"array","items":{}},{"type":"object","additionalProperties":{}}]},"lanes":{"type":"array","items":{"type":"object","properties":{"lane_id":{"type":"string","format":"uuid"},"label":{"type":["string","null"]}},"required":["lane_id","label"]},"description":"Each targeting lane this entry names, with its current label (null until it has one). Show the label with lane_id."},"actor":{"type":"object","properties":{"kind":{"type":["string","null"],"enum":["founder","staff","system",null]},"user_id":{"type":["string","null"],"format":"uuid"},"display_name":{"type":["string","null"]},"channel":{"type":["string","null"],"pattern":"^[a-z][a-z0-9_-]{0,63}$"}},"required":["kind","user_id","channel"]},"expected_metric":{"type":["string","null"],"pattern":"^[a-z][a-zA-Z0-9_]*(\\.[a-z][a-zA-Z0-9_]*){0,4}$"},"metric_direction":{"type":["string","null"],"enum":["up","down",null]},"applied_versions":{"type":"object","additionalProperties":{"anyOf":[{"type":"null"},{"type":"boolean"},{"type":"number"},{"type":"string"},{"type":"array","items":{}},{"type":"object","additionalProperties":{}}]}},"reverts_proposal_id":{"type":["string","null"],"format":"uuid"},"reverted_by_proposal_id":{"type":["string","null"],"format":"uuid"},"revert_reason":{"type":["string","null"]},"result":{"type":["object","null"],"properties":{"status":{"type":["string","null"],"enum":["hit","missed","inconclusive",null]},"baseline":{"anyOf":[{"type":"null"},{"type":"boolean"},{"type":"number"},{"type":"string"},{"type":"array","items":{}},{"type":"object","additionalProperties":{}}]},"measured":{"anyOf":[{"type":"null"},{"type":"boolean"},{"type":"number"},{"type":"string"},{"type":"array","items":{}},{"type":"object","additionalProperties":{}}]},"opened_at":{"type":"string","format":"date-time"},"closes_at":{"type":"string","format":"date-time"},"measured_at":{"type":["string","null"],"format":"date-time"}},"required":["status","baseline","measured","opened_at","closes_at","measured_at"]}},"required":["proposal_id","option_id","applied_at","operation","lever","summary","classification","classification_reason","before","after","actor","expected_metric","metric_direction","applied_versions","reverts_proposal_id","reverted_by_proposal_id","revert_reason","result"]},"maxItems":500},"pagination":{"type":"object","properties":{"offset":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":1,"maximum":500},"total":{"type":"integer","minimum":0},"next_offset":{"type":["integer","null"],"minimum":0}},"required":["offset","limit","total","next_offset"]}},"required":["workspace_id","changes","pagination"]}}}},"400":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/workspace/insights/changes/{id}/revert":{"post":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"id","in":"path"},{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"request_id":{"type":"string","format":"uuid"},"reason":{"type":"string","minLength":1,"maxLength":2000,"description":"Why the founder reverts this change, in their words."}},"required":["request_id","reason"],"additionalProperties":false}}}},"responses":{"200":{"description":"Restore previous values as a new version. Use proposal_id as path.id; reuse request_id on retry. reason is why the founder reverts, in their words. Later edits or missing history block it.","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["reverted"]},"proposal_id":{"type":"string","format":"uuid"},"reverted_proposal_id":{"type":"string","format":"uuid"},"applied_versions":{"type":"object","additionalProperties":{"anyOf":[{"type":"null"},{"type":"boolean"},{"type":"number"},{"type":"string"},{"type":"array","items":{}},{"type":"object","additionalProperties":{}}]}}},"required":["status","proposal_id","reverted_proposal_id","applied_versions"]}}}},"400":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/workspace/conferences":{"get":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":100,"default":25},"required":false,"name":"limit","in":"query"},{"schema":{"type":"string","format":"date-time"},"required":false,"name":"before_created_at","in":"query"},{"schema":{"type":"string","format":"uuid"},"required":false,"name":"before_list_id","in":"query"},{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"responses":{"200":{"description":"Read saved conference summaries, newest first. Pass both next_cursor fields as before_created_at and before_list_id for the next page. Does not start research or outreach.","content":{"application/json":{"schema":{"type":"object","properties":{"workspace_id":{"type":"string","format":"uuid"},"lists":{"type":"array","items":{"type":"object","properties":{"list_id":{"type":"string","format":"uuid"},"name":{"type":"string"},"created_at":{"type":"string","format":"date-time"},"committed":{"type":"boolean"},"member_count":{"type":"integer","minimum":0},"upload_state":{"type":"string","enum":["unbound","bound"]},"upload_version":{"type":["integer","null"],"minimum":0},"row_count":{"type":"integer","minimum":0},"research_status":{"type":"string","enum":["not_started","pending","finished"]},"outreach_status":{"type":"string","enum":["not_activated","pending","finished","research_only"]}},"required":["list_id","name","created_at","committed","member_count","research_status","outreach_status"]},"maxItems":100},"next_cursor":{"type":["object","null"],"properties":{"created_at":{"type":"string","format":"date-time"},"list_id":{"type":"string","format":"uuid"}},"required":["created_at","list_id"]}},"required":["workspace_id","lists","next_cursor"]}}}},"400":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/workspace/conferences/uploads":{"post":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"event_context":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/ConferenceEventValue"}},"rows":{"type":"array","items":{"type":"object","properties":{"row_id":{"type":"string","minLength":1,"maxLength":128},"email":{"type":"string"},"linkedin_url":{"type":"string"},"first_name":{"type":"string"},"last_name":{"type":"string"},"title":{"type":"string"},"company_name":{"type":"string"},"company_domain":{"type":"string"}},"required":["row_id"],"additionalProperties":false},"minItems":1,"maxItems":5000},"list_id":{"type":"string","format":"uuid"},"request_ref":{"type":"string","format":"uuid"},"expected_version":{"type":"integer","minimum":0}},"required":["name","event_context","rows","list_id","request_ref","expected_version"],"additionalProperties":false}}}},"responses":{"200":{"description":"Autosave a named CSV upload before segment binding. Stable list_id, expected_version (0 creates) and request_ref fence serialized saves; retry the identical request after an uncertain response. Starts no research.","content":{"application/json":{"schema":{"type":"object","properties":{"event_url":{"type":"string"},"event_state":{"type":"string","enum":["researching","ready","failed","confirmed"]},"event":{"type":["object","null"],"properties":{"name":{"type":"string","minLength":1,"maxLength":200,"pattern":"\\S"},"starts_on":{"type":"string","format":"date"},"ends_on":{"type":["string","null"],"format":"date"},"location":{"type":["string","null"]},"audience":{"type":"string","minLength":1,"pattern":"\\S"},"summary":{"type":"string","minLength":1,"pattern":"\\S"}},"required":["name","starts_on","ends_on","location","audience","summary"]},"event_generation":{"type":"integer","minimum":0},"event_failure":{"type":["string","null"]},"segments":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"priority":{"type":"integer"},"finite_segment_id":{"type":"string","format":"uuid"},"journey_ref":{"type":["string","null"],"format":"uuid"},"campaign_ref":{"type":["string","null"],"format":"uuid"},"fit_state":{"type":"string","enum":["pending","ready","failed"]}},"required":["id","name","priority","finite_segment_id","journey_ref","campaign_ref","fit_state"]}},"screen_state":{"type":["string","null"],"enum":["fit","companies","company_review","roles","ready",null]},"workspace_id":{"type":"string","format":"uuid"},"list_id":{"type":"string","format":"uuid"},"version":{"type":"integer","minimum":0},"state":{"type":"string","enum":["unbound","bound"]},"name":{"type":"string"},"row_count":{"type":"integer","minimum":0,"maximum":5000},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"segment_ref":{"type":["string","null"],"format":"uuid"}},"required":["workspace_id","list_id","version","state","name","row_count","created_at","updated_at","segment_ref"]}}}},"400":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/workspace/conferences/{id}/upload":{"get":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"id","in":"path"},{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"responses":{"200":{"description":"Resume a saved upload, its segment choices, company and title verdicts, row fit and research segments, and enrollment groups.","content":{"application/json":{"schema":{"type":"object","properties":{"event_url":{"type":"string"},"event_state":{"type":"string","enum":["researching","ready","failed","confirmed"]},"event":{"type":["object","null"],"properties":{"name":{"type":"string","minLength":1,"maxLength":200,"pattern":"\\S"},"starts_on":{"type":"string","format":"date"},"ends_on":{"type":["string","null"],"format":"date"},"location":{"type":["string","null"]},"audience":{"type":"string","minLength":1,"pattern":"\\S"},"summary":{"type":"string","minLength":1,"pattern":"\\S"}},"required":["name","starts_on","ends_on","location","audience","summary"]},"event_generation":{"type":"integer","minimum":0},"event_failure":{"type":["string","null"]},"segments":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"priority":{"type":"integer"},"finite_segment_id":{"type":"string","format":"uuid"},"journey_ref":{"type":["string","null"],"format":"uuid"},"campaign_ref":{"type":["string","null"],"format":"uuid"},"fit_state":{"type":"string","enum":["pending","ready","failed"]}},"required":["id","name","priority","finite_segment_id","journey_ref","campaign_ref","fit_state"]}},"screen_state":{"type":["string","null"],"enum":["fit","companies","company_review","roles","ready",null]},"workspace_id":{"type":"string","format":"uuid"},"list_id":{"type":"string","format":"uuid"},"version":{"type":"integer","minimum":0},"state":{"type":"string","enum":["unbound","bound"]},"name":{"type":"string"},"row_count":{"type":"integer","minimum":0,"maximum":5000},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"segment_ref":{"type":["string","null"],"format":"uuid"},"total":{"type":"integer","minimum":0},"completed":{"type":"integer","minimum":0},"remaining":{"type":"integer","minimum":0},"stopped":{"type":"integer","minimum":0},"to_research":{"type":"integer","minimum":0},"skipped_company":{"type":"integer","minimum":0},"skipped_role":{"type":"integer","minimum":0},"avg_seconds":{"type":"number","minimum":0},"slots":{"type":"integer","exclusiveMinimum":0},"eta_seconds":{"type":"number","minimum":0},"research_started_at":{"type":["string","null"],"format":"date-time"},"research_stopped_at":{"type":["string","null"],"format":"date-time"},"samples_approved_at":{"type":["string","null"],"format":"date-time"},"samples_approved_by":{"type":["string","null"],"format":"uuid"},"screen":{"type":"object","properties":{"companies":{"type":"object","properties":{"total":{"type":"integer","minimum":0},"done":{"type":"integer","minimum":0},"skipped":{"type":"integer","minimum":0}},"required":["total","done","skipped"]},"roles":{"type":"object","properties":{"total":{"type":"integer","minimum":0},"done":{"type":"integer","minimum":0},"skipped":{"type":"integer","minimum":0}},"required":["total","done","skipped"]},"company_list":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"verdict":{"type":["string","null"],"enum":["keep","skip",null]},"reason":{"type":["string","null"]},"segment_verdicts":{"type":"array","items":{"type":"object","properties":{"segment_id":{"type":"string","format":"uuid"},"keep":{"type":["boolean","null"]},"reason":{"type":["string","null"]}},"required":["segment_id","keep","reason"]}},"fit_segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"domain":{"type":["string","null"]},"people":{"type":"integer","minimum":0},"included":{"type":"integer","minimum":0}},"required":["key","label","verdict","reason","domain","people","included"]}},"role_list":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"verdict":{"type":["string","null"],"enum":["keep","skip",null]},"reason":{"type":["string","null"]},"segment_verdicts":{"type":"array","items":{"type":"object","properties":{"segment_id":{"type":"string","format":"uuid"},"keep":{"type":["boolean","null"]},"reason":{"type":["string","null"]}},"required":["segment_id","keep","reason"]}},"fit_segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}}},"required":["key","label","verdict","reason"]}}},"required":["company_list","role_list"]},"rows":{"type":"array","items":{"type":"object","properties":{"row_id":{"type":"string"},"person":{"type":"object","properties":{"lead_id":{"type":"string"},"email":{"type":"string"},"linkedin_url":{"type":"string"},"first_name":{"type":"string"},"last_name":{"type":"string"},"title":{"type":"string"},"company_name":{"type":"string"},"company_domain":{"type":"string"}}},"lead_id":{"type":["string","null"],"format":"uuid"},"state":{"type":"string","enum":["pending","claimed","completed","stopped","failed","skipped"]},"company_key":{"type":["string","null"]},"title_key":{"type":["string","null"]},"skip_stage":{"type":["string","null"],"enum":["company","role","person",null]},"skip_reason":{"type":["string","null"]},"skip_by_member":{"type":"boolean"},"member_included":{"type":"boolean"},"fit_segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"research_segment_id":{"type":["string","null"],"format":"uuid"},"ask_key":{"type":"string"},"generation":{"type":"integer","minimum":0},"claimed_at":{"type":["string","null"],"format":"date-time"},"completed_at":{"type":["string","null"],"format":"date-time"},"identity_confidence":{"type":["string","null"],"enum":["confirmed","review","not_found",null]},"found":{"type":["object","null"],"properties":{"linkedin_url":{"type":["string","null"]},"email":{"type":["string","null"]},"email_status":{"type":["string","null"]},"title":{"type":["string","null"]},"company_name":{"type":["string","null"]},"company_domain":{"type":["string","null"]},"mismatch_reason":{"type":["string","null"]},"evidence":{"type":"array","items":{"type":"object","properties":{"url":{"type":"string"},"claim":{"type":"string"}},"required":["url","claim"]}}}},"tier":{"type":["string","null"],"enum":["A","B","C",null]},"tier_reason":{"type":["string","null"]},"draft":{"type":["object","null"],"properties":{"linkedin_message":{"type":"string","minLength":1,"pattern":"\\S"},"email_subject":{"type":"string","minLength":1,"pattern":"\\S"},"email_body":{"type":"string","minLength":1,"pattern":"\\S"}},"required":["linkedin_message","email_subject","email_body"]},"member_decision":{"type":["string","null"],"enum":["this_is_person","not_this_person",null]},"failure":{"type":["string","null"]}},"required":["row_id"]},"maxItems":5000},"draft":{"type":["object","null"],"properties":{"name":{"type":"string","minLength":1,"maxLength":200},"event_context":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/ConferenceEventValue"}},"rows":{"type":"array","items":{"type":"object","properties":{"row_id":{"type":"string","minLength":1,"maxLength":128},"email":{"type":"string"},"linkedin_url":{"type":"string"},"first_name":{"type":"string"},"last_name":{"type":"string"},"title":{"type":"string"},"company_name":{"type":"string"},"company_domain":{"type":"string"}},"required":["row_id"]},"minItems":1,"maxItems":5000}},"required":["name","event_context","rows"]},"list":{"type":["object","null"],"properties":{"list_id":{"type":"string","format":"uuid"},"workspace_id":{"type":"string","format":"uuid"},"name":{"type":"string"},"event_context":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/ConferenceEventValue"}},"committed":{"type":"boolean"},"draft_request":{"type":["object","null"],"properties":{"import_id":{"type":"string","format":"uuid"},"name":{"type":"string","minLength":1,"maxLength":200},"event_context":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/ConferenceEventValue"}},"rows":{"type":"array","items":{"type":"object","properties":{"row_id":{"type":"string","minLength":1,"maxLength":128},"segment_id":{"type":"string"},"lead_id":{"type":"string"},"email":{"type":"string"},"linkedin_url":{"type":"string"},"first_name":{"type":"string"},"last_name":{"type":"string"},"title":{"type":"string"},"company_name":{"type":"string"},"company_domain":{"type":"string"}},"required":["row_id","segment_id"]},"minItems":1,"maxItems":5000}},"required":["import_id","name","event_context","rows"]},"rows":{"type":"array","items":{"type":"object","properties":{"row_id":{"type":"string"},"segment_id":{"type":"string"},"lead_id":{"type":["string","null"],"format":"uuid"},"status":{"type":"string","enum":["invalid","unresolved","duplicate","existing","already_contacted","excluded","mapped","lookup"]},"reason":{"type":"string"},"duplicate_of":{"type":["string","null"]}},"required":["row_id","segment_id","lead_id","status","reason","duplicate_of"]},"maxItems":5000}},"required":["list_id","workspace_id","name","event_context","committed","rows"]},"configuration":{"type":["object","null"],"properties":{"workspace_id":{"type":"string","format":"uuid"},"list_id":{"type":"string","format":"uuid"},"journey_ref":{"type":"string","format":"uuid"},"campaign_ref":{"type":"string","format":"uuid"},"revision_ref":{"type":"string","format":"uuid"},"digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"version":{"type":"integer","minimum":0},"base_campaign_ref":{"type":"string","format":"uuid"},"base_revision_ref":{"type":"string","format":"uuid"}},"required":["workspace_id","list_id","journey_ref","campaign_ref","revision_ref","digest","version","base_campaign_ref","base_revision_ref"]},"preparation":{"type":["object","null"],"properties":{"workspace_id":{"type":"string","format":"uuid"},"list_id":{"type":"string","format":"uuid"},"request_ref":{"type":"string","format":"uuid"},"journey_ref":{"type":"string","format":"uuid"},"campaign_ref":{"type":"string","format":"uuid"},"revision_ref":{"type":"string","format":"uuid"},"digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"lead_count":{"type":"integer","minimum":0,"maximum":5000},"target_sample_count":{"type":"number","enum":[5]},"eligible_count":{"type":"integer","minimum":0,"maximum":5},"sample_count":{"type":"integer","minimum":0,"maximum":5},"status":{"type":"string","enum":["researching","waiting","sampling","completed","failed","insufficient_qualified"]},"cause":{"type":["string","null"]},"test_ref":{"type":["string","null"],"format":"uuid"},"lab_run_refs":{"type":"array","items":{"type":"string","format":"uuid"},"maxItems":5},"test":{"type":["object","null"],"properties":{"test_ref":{"type":"string","format":"uuid"},"request_ref":{"type":"string","format":"uuid"},"campaign_ref":{"type":"string","format":"uuid"},"revision_ref":{"type":"string","format":"uuid"},"digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"baseline_test_ref":{"type":["string","null"],"format":"uuid"},"status":{"type":"string","enum":["queued","running","completed","failed"]},"created_at":{"type":"string","format":"date-time"},"samples":{"type":"array","items":{"type":"object","properties":{"lead_ref":{"type":"string","format":"uuid"},"lab_run_ref":{"type":"string","format":"uuid"},"status":{"type":"string","enum":["queued","running","succeeded","failed","canceled"]},"lane":{"type":["string","null"]},"opener":{"type":["string","null"],"enum":["cold","linkedin_bridge",null]},"output":{"type":["object","null"],"properties":{"output_ref":{"type":"string","format":"uuid"},"digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"created_at":{"type":"string","format":"date-time"},"content":{"anyOf":[{"type":"object","properties":{"linkedin_messages":{"type":"array","items":{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":3000}},"required":["text"]},"minItems":1,"maxItems":3}},"required":["linkedin_messages"]},{"type":"object","properties":{"email_steps":{"type":"array","items":{"type":"object","properties":{"subject":{"type":"string","minLength":1,"maxLength":300},"text":{"type":"string","minLength":1,"maxLength":20000},"delay_minutes":{"type":"integer","minimum":0,"maximum":43200}},"required":["subject","text","delay_minutes"]},"minItems":1,"maxItems":5}},"required":["email_steps"]}]},"selection":{"type":"object","properties":{"lane":{"type":["string","null"]},"opener":{"type":["string","null"],"enum":["cold","linkedin_bridge",null]},"template_ids":{"type":"array","items":{"type":"string","minLength":1,"maxLength":100},"minItems":1,"maxItems":5},"approach_type":{"type":"string","enum":["direct","pain","personal","strategic"]}},"required":["lane","opener"]},"context":{"type":"object","properties":{"revision_ref":{"type":"string","format":"uuid"},"digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"profile_version":{"type":"integer","exclusiveMinimum":0},"voice_version":{"type":"integer","minimum":0},"sender_id":{"type":"string","format":"uuid"},"sender_version":{"type":"integer","exclusiveMinimum":0},"prompt_digest":{"type":"string","pattern":"^[a-f0-9]{64}$"}},"required":["revision_ref","digest","profile_version","voice_version","sender_id","sender_version","prompt_digest"]}},"required":["output_ref","digest","created_at","content","selection","context"]},"baseline_output":{"type":["object","null"],"properties":{"output_ref":{"type":"string","format":"uuid"},"digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"created_at":{"type":"string","format":"date-time"},"content":{"anyOf":[{"type":"object","properties":{"linkedin_messages":{"type":"array","items":{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":3000}},"required":["text"]},"minItems":1,"maxItems":3}},"required":["linkedin_messages"]},{"type":"object","properties":{"email_steps":{"type":"array","items":{"type":"object","properties":{"subject":{"type":"string","minLength":1,"maxLength":300},"text":{"type":"string","minLength":1,"maxLength":20000},"delay_minutes":{"type":"integer","minimum":0,"maximum":43200}},"required":["subject","text","delay_minutes"]},"minItems":1,"maxItems":5}},"required":["email_steps"]}]},"selection":{"type":"object","properties":{"lane":{"type":["string","null"]},"opener":{"type":["string","null"],"enum":["cold","linkedin_bridge",null]},"template_ids":{"type":"array","items":{"type":"string","minLength":1,"maxLength":100},"minItems":1,"maxItems":5},"approach_type":{"type":"string","enum":["direct","pain","personal","strategic"]}},"required":["lane","opener"]},"context":{"type":"object","properties":{"revision_ref":{"type":"string","format":"uuid"},"digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"profile_version":{"type":"integer","exclusiveMinimum":0},"voice_version":{"type":"integer","minimum":0},"sender_id":{"type":"string","format":"uuid"},"sender_version":{"type":"integer","exclusiveMinimum":0},"prompt_digest":{"type":"string","pattern":"^[a-f0-9]{64}$"}},"required":["revision_ref","digest","profile_version","voice_version","sender_id","sender_version","prompt_digest"]}},"required":["output_ref","digest","created_at","content","selection","context"]},"changes":{"type":"array","items":{"type":"string","enum":["research_changed","lead_facts_changed","sender_changed","business_changed","composition_context_changed"]}},"failure":{"type":["object","null"],"properties":{"code":{"type":"string","enum":["composition_held","composition_configuration_invalid","composition_context_unavailable","composition_context_mismatch","composition_templates_unavailable","composition_approaches_unavailable","composition_research_mismatch","composition_receipt_invalid","composition_quality_hold","composition_unexpected","composition_lead_data_missing"]},"stage":{"type":"string","enum":["identity","version","sender_identity","compose","signing"]},"position":{"type":"integer","minimum":1,"maximum":5,"description":"The Campaign step involved, when known."},"cause":{"type":"string","pattern":"^[A-Za-z][A-Za-z0-9_.]{0,63}$"},"http_status":{"type":"integer","minimum":100,"maximum":599},"message":{"type":"string","minLength":1,"maxLength":400,"description":"Founder-facing reason to relay; the API adds it."}},"required":["code"]}},"required":["lead_ref","lab_run_ref","status","lane","opener","output","baseline_output","changes"]},"minItems":1,"maxItems":20}},"required":["test_ref","request_ref","campaign_ref","revision_ref","digest","baseline_test_ref","status","created_at","samples"]}},"required":["workspace_id","list_id","request_ref","journey_ref","campaign_ref","revision_ref","digest","lead_count","target_sample_count","eligible_count","sample_count","status","cause","test_ref","lab_run_refs","test"]},"enrollment":{"type":["object","null"],"properties":{"workspace_id":{"type":"string","format":"uuid"},"list_id":{"type":"string","format":"uuid"},"request_ref":{"type":"string","format":"uuid"},"journey_ref":{"type":"string","format":"uuid"},"journey_revision_ref":{"type":"string","format":"uuid"},"campaign_ref":{"type":"string","format":"uuid"},"revision_ref":{"type":"string","format":"uuid"},"test_ref":{"type":["string","null"],"format":"uuid"},"executable_version_ref":{"type":"string","format":"uuid"},"member_count":{"type":"integer","minimum":0,"maximum":5000},"status":{"type":"string","enum":["waiting_compilation","blocked","consented","finished"]},"cause":{"type":["string","null"]},"activation":{"type":["object","null"],"properties":{"workspace_id":{"type":"string","format":"uuid"},"list_id":{"type":"string","format":"uuid"},"members":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"lead_ref":{"type":"string","format":"uuid"},"segment_ref":{"type":"string","format":"uuid"},"journey_ref":{"type":"string","format":"uuid"},"executable_version_ref":{"type":"string","format":"uuid"},"member_run_ref":{"type":"string","format":"uuid"},"research_ref":{"type":"string","format":"uuid"},"expected_destination_request_ref":{"type":"string","format":"uuid"},"destination_request_ref":{"type":["string","null"],"format":"uuid"},"state":{"type":"string","enum":["eligible","waiting","rejected"]},"cause":{"type":["string","null"]},"canonical_run_ref":{"type":"null"},"outreach_progress":{"type":"string","enum":["not_activated","pending"]}},"required":["lead_ref","segment_ref","journey_ref","executable_version_ref","member_run_ref","research_ref","destination_request_ref","state","cause","canonical_run_ref","outreach_progress"]},{"type":"object","properties":{"lead_ref":{"type":"string","format":"uuid"},"segment_ref":{"type":"string","format":"uuid"},"journey_ref":{"type":"string","format":"uuid"},"executable_version_ref":{"type":"string","format":"uuid"},"member_run_ref":{"type":"string","format":"uuid"},"research_ref":{"type":"string","format":"uuid"},"expected_destination_request_ref":{"type":"string","format":"uuid"},"destination_request_ref":{"type":["string","null"],"format":"uuid"},"state":{"type":"string","enum":["admitted"]},"cause":{"type":"null"},"canonical_run_ref":{"type":"string","format":"uuid"},"outreach_progress":{"type":"string","enum":["active","paused","snoozed","completed","switched_channel","suppressed","re_enrolling"]}},"required":["lead_ref","segment_ref","journey_ref","executable_version_ref","member_run_ref","research_ref","destination_request_ref","state","cause","canonical_run_ref","outreach_progress"]}]},"maxItems":5000}},"required":["workspace_id","list_id","members"]},"groups":{"type":"array","items":{"type":"object","properties":{"workspace_id":{"type":"string","format":"uuid"},"list_id":{"type":"string","format":"uuid"},"request_ref":{"type":"string","format":"uuid"},"journey_ref":{"type":"string","format":"uuid"},"journey_revision_ref":{"type":"string","format":"uuid"},"campaign_ref":{"type":"string","format":"uuid"},"revision_ref":{"type":"string","format":"uuid"},"test_ref":{"type":["string","null"],"format":"uuid"},"executable_version_ref":{"type":"string","format":"uuid"},"member_count":{"type":"integer","minimum":0,"maximum":5000},"status":{"type":"string","enum":["waiting_compilation","blocked","consented","finished"]},"cause":{"type":["string","null"]},"activation":{"type":["object","null"],"properties":{"workspace_id":{"type":"string","format":"uuid"},"list_id":{"type":"string","format":"uuid"},"members":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"lead_ref":{"type":"string","format":"uuid"},"segment_ref":{"type":"string","format":"uuid"},"journey_ref":{"type":"string","format":"uuid"},"executable_version_ref":{"type":"string","format":"uuid"},"member_run_ref":{"type":"string","format":"uuid"},"research_ref":{"type":"string","format":"uuid"},"expected_destination_request_ref":{"type":"string","format":"uuid"},"destination_request_ref":{"type":["string","null"],"format":"uuid"},"state":{"type":"string","enum":["eligible","waiting","rejected"]},"cause":{"type":["string","null"]},"canonical_run_ref":{"type":"null"},"outreach_progress":{"type":"string","enum":["not_activated","pending"]}},"required":["lead_ref","segment_ref","journey_ref","executable_version_ref","member_run_ref","research_ref","destination_request_ref","state","cause","canonical_run_ref","outreach_progress"]},{"type":"object","properties":{"lead_ref":{"type":"string","format":"uuid"},"segment_ref":{"type":"string","format":"uuid"},"journey_ref":{"type":"string","format":"uuid"},"executable_version_ref":{"type":"string","format":"uuid"},"member_run_ref":{"type":"string","format":"uuid"},"research_ref":{"type":"string","format":"uuid"},"expected_destination_request_ref":{"type":"string","format":"uuid"},"destination_request_ref":{"type":["string","null"],"format":"uuid"},"state":{"type":"string","enum":["admitted"]},"cause":{"type":"null"},"canonical_run_ref":{"type":"string","format":"uuid"},"outreach_progress":{"type":"string","enum":["active","paused","snoozed","completed","switched_channel","suppressed","re_enrolling"]}},"required":["lead_ref","segment_ref","journey_ref","executable_version_ref","member_run_ref","research_ref","destination_request_ref","state","cause","canonical_run_ref","outreach_progress"]}]},"maxItems":5000}},"required":["workspace_id","list_id","members"]},"segment_id":{"type":"string","format":"uuid"},"finite_segment_id":{"type":"string","format":"uuid"},"lead_ids":{"type":"array","items":{"type":"string","format":"uuid"},"minItems":1,"maxItems":5000}},"required":["workspace_id","list_id","request_ref","journey_ref","journey_revision_ref","campaign_ref","revision_ref","test_ref","executable_version_ref","member_count","status","cause","activation","segment_id","finite_segment_id","lead_ids"]},"minItems":1,"maxItems":5000}},"required":["workspace_id","list_id","request_ref","journey_ref","journey_revision_ref","campaign_ref","revision_ref","test_ref","executable_version_ref","member_count","status","cause","activation"]},"conference_criterion":{"type":["string","null"]}},"required":["workspace_id","list_id","version","state","name","row_count","created_at","updated_at","segment_ref","draft","list","configuration","preparation"]}}}},"400":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/workspace/conferences/{id}/bind":{"post":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"id","in":"path"},{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"request_ref":{"type":"string","format":"uuid"},"expected_version":{"type":"integer","minimum":0},"segment_ref":{"type":"string","format":"uuid"}},"required":["request_ref","expected_version","segment_ref"],"additionalProperties":false},{"type":"object","properties":{"request_ref":{"type":"string","format":"uuid"},"expected_version":{"type":"integer","minimum":0},"finite_segment":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120,"description":"1 to 120 characters, unique in the workspace ignoring case."},"source_segment_id":{"type":"string","format":"uuid","description":"Explicit source of criteria and voice only; no discovery lanes or senders are copied."}},"required":["name","source_segment_id"],"additionalProperties":false}},"required":["request_ref","expected_version","finite_segment"],"additionalProperties":false}]}}}},"responses":{"200":{"description":"Bind one existing segment or atomically create a finite segment from explicit name and source. Creates the immutable import only now. Retry the same request_ref and payload after uncertainty; starts no research.","content":{"application/json":{"schema":{"type":"object","properties":{"event_url":{"type":"string"},"event_state":{"type":"string","enum":["researching","ready","failed","confirmed"]},"event":{"type":["object","null"],"properties":{"name":{"type":"string","minLength":1,"maxLength":200,"pattern":"\\S"},"starts_on":{"type":"string","format":"date"},"ends_on":{"type":["string","null"],"format":"date"},"location":{"type":["string","null"]},"audience":{"type":"string","minLength":1,"pattern":"\\S"},"summary":{"type":"string","minLength":1,"pattern":"\\S"}},"required":["name","starts_on","ends_on","location","audience","summary"]},"event_generation":{"type":"integer","minimum":0},"event_failure":{"type":["string","null"]},"segments":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"priority":{"type":"integer"},"finite_segment_id":{"type":"string","format":"uuid"},"journey_ref":{"type":["string","null"],"format":"uuid"},"campaign_ref":{"type":["string","null"],"format":"uuid"},"fit_state":{"type":"string","enum":["pending","ready","failed"]}},"required":["id","name","priority","finite_segment_id","journey_ref","campaign_ref","fit_state"]}},"screen_state":{"type":["string","null"],"enum":["fit","companies","company_review","roles","ready",null]},"workspace_id":{"type":"string","format":"uuid"},"list_id":{"type":"string","format":"uuid"},"version":{"type":"integer","minimum":0},"state":{"type":"string","enum":["unbound","bound"]},"name":{"type":"string"},"row_count":{"type":"integer","minimum":0,"maximum":5000},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"segment_ref":{"type":["string","null"],"format":"uuid"},"total":{"type":"integer","minimum":0},"completed":{"type":"integer","minimum":0},"remaining":{"type":"integer","minimum":0},"stopped":{"type":"integer","minimum":0},"to_research":{"type":"integer","minimum":0},"skipped_company":{"type":"integer","minimum":0},"skipped_role":{"type":"integer","minimum":0},"avg_seconds":{"type":"number","minimum":0},"slots":{"type":"integer","exclusiveMinimum":0},"eta_seconds":{"type":"number","minimum":0},"research_started_at":{"type":["string","null"],"format":"date-time"},"research_stopped_at":{"type":["string","null"],"format":"date-time"},"samples_approved_at":{"type":["string","null"],"format":"date-time"},"samples_approved_by":{"type":["string","null"],"format":"uuid"},"screen":{"type":"object","properties":{"companies":{"type":"object","properties":{"total":{"type":"integer","minimum":0},"done":{"type":"integer","minimum":0},"skipped":{"type":"integer","minimum":0}},"required":["total","done","skipped"]},"roles":{"type":"object","properties":{"total":{"type":"integer","minimum":0},"done":{"type":"integer","minimum":0},"skipped":{"type":"integer","minimum":0}},"required":["total","done","skipped"]},"company_list":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"verdict":{"type":["string","null"],"enum":["keep","skip",null]},"reason":{"type":["string","null"]},"segment_verdicts":{"type":"array","items":{"type":"object","properties":{"segment_id":{"type":"string","format":"uuid"},"keep":{"type":["boolean","null"]},"reason":{"type":["string","null"]}},"required":["segment_id","keep","reason"]}},"fit_segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"domain":{"type":["string","null"]},"people":{"type":"integer","minimum":0},"included":{"type":"integer","minimum":0}},"required":["key","label","verdict","reason","domain","people","included"]}},"role_list":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"verdict":{"type":["string","null"],"enum":["keep","skip",null]},"reason":{"type":["string","null"]},"segment_verdicts":{"type":"array","items":{"type":"object","properties":{"segment_id":{"type":"string","format":"uuid"},"keep":{"type":["boolean","null"]},"reason":{"type":["string","null"]}},"required":["segment_id","keep","reason"]}},"fit_segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}}},"required":["key","label","verdict","reason"]}}},"required":["company_list","role_list"]},"rows":{"type":"array","items":{"type":"object","properties":{"row_id":{"type":"string"},"person":{"type":"object","properties":{"lead_id":{"type":"string"},"email":{"type":"string"},"linkedin_url":{"type":"string"},"first_name":{"type":"string"},"last_name":{"type":"string"},"title":{"type":"string"},"company_name":{"type":"string"},"company_domain":{"type":"string"}}},"lead_id":{"type":["string","null"],"format":"uuid"},"state":{"type":"string","enum":["pending","claimed","completed","stopped","failed","skipped"]},"company_key":{"type":["string","null"]},"title_key":{"type":["string","null"]},"skip_stage":{"type":["string","null"],"enum":["company","role","person",null]},"skip_reason":{"type":["string","null"]},"skip_by_member":{"type":"boolean"},"member_included":{"type":"boolean"},"fit_segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"research_segment_id":{"type":["string","null"],"format":"uuid"},"ask_key":{"type":"string"},"generation":{"type":"integer","minimum":0},"claimed_at":{"type":["string","null"],"format":"date-time"},"completed_at":{"type":["string","null"],"format":"date-time"},"identity_confidence":{"type":["string","null"],"enum":["confirmed","review","not_found",null]},"found":{"type":["object","null"],"properties":{"linkedin_url":{"type":["string","null"]},"email":{"type":["string","null"]},"email_status":{"type":["string","null"]},"title":{"type":["string","null"]},"company_name":{"type":["string","null"]},"company_domain":{"type":["string","null"]},"mismatch_reason":{"type":["string","null"]},"evidence":{"type":"array","items":{"type":"object","properties":{"url":{"type":"string"},"claim":{"type":"string"}},"required":["url","claim"]}}}},"tier":{"type":["string","null"],"enum":["A","B","C",null]},"tier_reason":{"type":["string","null"]},"draft":{"type":["object","null"],"properties":{"linkedin_message":{"type":"string","minLength":1,"pattern":"\\S"},"email_subject":{"type":"string","minLength":1,"pattern":"\\S"},"email_body":{"type":"string","minLength":1,"pattern":"\\S"}},"required":["linkedin_message","email_subject","email_body"]},"member_decision":{"type":["string","null"],"enum":["this_is_person","not_this_person",null]},"failure":{"type":["string","null"]}},"required":["row_id"]},"maxItems":5000},"draft":{"type":["object","null"],"properties":{"name":{"type":"string","minLength":1,"maxLength":200},"event_context":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/ConferenceEventValue"}},"rows":{"type":"array","items":{"type":"object","properties":{"row_id":{"type":"string","minLength":1,"maxLength":128},"email":{"type":"string"},"linkedin_url":{"type":"string"},"first_name":{"type":"string"},"last_name":{"type":"string"},"title":{"type":"string"},"company_name":{"type":"string"},"company_domain":{"type":"string"}},"required":["row_id"]},"minItems":1,"maxItems":5000}},"required":["name","event_context","rows"]},"list":{"type":["object","null"],"properties":{"list_id":{"type":"string","format":"uuid"},"workspace_id":{"type":"string","format":"uuid"},"name":{"type":"string"},"event_context":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/ConferenceEventValue"}},"committed":{"type":"boolean"},"draft_request":{"type":["object","null"],"properties":{"import_id":{"type":"string","format":"uuid"},"name":{"type":"string","minLength":1,"maxLength":200},"event_context":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/ConferenceEventValue"}},"rows":{"type":"array","items":{"type":"object","properties":{"row_id":{"type":"string","minLength":1,"maxLength":128},"segment_id":{"type":"string"},"lead_id":{"type":"string"},"email":{"type":"string"},"linkedin_url":{"type":"string"},"first_name":{"type":"string"},"last_name":{"type":"string"},"title":{"type":"string"},"company_name":{"type":"string"},"company_domain":{"type":"string"}},"required":["row_id","segment_id"]},"minItems":1,"maxItems":5000}},"required":["import_id","name","event_context","rows"]},"rows":{"type":"array","items":{"type":"object","properties":{"row_id":{"type":"string"},"segment_id":{"type":"string"},"lead_id":{"type":["string","null"],"format":"uuid"},"status":{"type":"string","enum":["invalid","unresolved","duplicate","existing","already_contacted","excluded","mapped","lookup"]},"reason":{"type":"string"},"duplicate_of":{"type":["string","null"]}},"required":["row_id","segment_id","lead_id","status","reason","duplicate_of"]},"maxItems":5000}},"required":["list_id","workspace_id","name","event_context","committed","rows"]},"configuration":{"type":["object","null"],"properties":{"workspace_id":{"type":"string","format":"uuid"},"list_id":{"type":"string","format":"uuid"},"journey_ref":{"type":"string","format":"uuid"},"campaign_ref":{"type":"string","format":"uuid"},"revision_ref":{"type":"string","format":"uuid"},"digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"version":{"type":"integer","minimum":0},"base_campaign_ref":{"type":"string","format":"uuid"},"base_revision_ref":{"type":"string","format":"uuid"}},"required":["workspace_id","list_id","journey_ref","campaign_ref","revision_ref","digest","version","base_campaign_ref","base_revision_ref"]},"preparation":{"type":["object","null"],"properties":{"workspace_id":{"type":"string","format":"uuid"},"list_id":{"type":"string","format":"uuid"},"request_ref":{"type":"string","format":"uuid"},"journey_ref":{"type":"string","format":"uuid"},"campaign_ref":{"type":"string","format":"uuid"},"revision_ref":{"type":"string","format":"uuid"},"digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"lead_count":{"type":"integer","minimum":0,"maximum":5000},"target_sample_count":{"type":"number","enum":[5]},"eligible_count":{"type":"integer","minimum":0,"maximum":5},"sample_count":{"type":"integer","minimum":0,"maximum":5},"status":{"type":"string","enum":["researching","waiting","sampling","completed","failed","insufficient_qualified"]},"cause":{"type":["string","null"]},"test_ref":{"type":["string","null"],"format":"uuid"},"lab_run_refs":{"type":"array","items":{"type":"string","format":"uuid"},"maxItems":5},"test":{"type":["object","null"],"properties":{"test_ref":{"type":"string","format":"uuid"},"request_ref":{"type":"string","format":"uuid"},"campaign_ref":{"type":"string","format":"uuid"},"revision_ref":{"type":"string","format":"uuid"},"digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"baseline_test_ref":{"type":["string","null"],"format":"uuid"},"status":{"type":"string","enum":["queued","running","completed","failed"]},"created_at":{"type":"string","format":"date-time"},"samples":{"type":"array","items":{"type":"object","properties":{"lead_ref":{"type":"string","format":"uuid"},"lab_run_ref":{"type":"string","format":"uuid"},"status":{"type":"string","enum":["queued","running","succeeded","failed","canceled"]},"lane":{"type":["string","null"]},"opener":{"type":["string","null"],"enum":["cold","linkedin_bridge",null]},"output":{"type":["object","null"],"properties":{"output_ref":{"type":"string","format":"uuid"},"digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"created_at":{"type":"string","format":"date-time"},"content":{"anyOf":[{"type":"object","properties":{"linkedin_messages":{"type":"array","items":{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":3000}},"required":["text"]},"minItems":1,"maxItems":3}},"required":["linkedin_messages"]},{"type":"object","properties":{"email_steps":{"type":"array","items":{"type":"object","properties":{"subject":{"type":"string","minLength":1,"maxLength":300},"text":{"type":"string","minLength":1,"maxLength":20000},"delay_minutes":{"type":"integer","minimum":0,"maximum":43200}},"required":["subject","text","delay_minutes"]},"minItems":1,"maxItems":5}},"required":["email_steps"]}]},"selection":{"type":"object","properties":{"lane":{"type":["string","null"]},"opener":{"type":["string","null"],"enum":["cold","linkedin_bridge",null]},"template_ids":{"type":"array","items":{"type":"string","minLength":1,"maxLength":100},"minItems":1,"maxItems":5},"approach_type":{"type":"string","enum":["direct","pain","personal","strategic"]}},"required":["lane","opener"]},"context":{"type":"object","properties":{"revision_ref":{"type":"string","format":"uuid"},"digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"profile_version":{"type":"integer","exclusiveMinimum":0},"voice_version":{"type":"integer","minimum":0},"sender_id":{"type":"string","format":"uuid"},"sender_version":{"type":"integer","exclusiveMinimum":0},"prompt_digest":{"type":"string","pattern":"^[a-f0-9]{64}$"}},"required":["revision_ref","digest","profile_version","voice_version","sender_id","sender_version","prompt_digest"]}},"required":["output_ref","digest","created_at","content","selection","context"]},"baseline_output":{"type":["object","null"],"properties":{"output_ref":{"type":"string","format":"uuid"},"digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"created_at":{"type":"string","format":"date-time"},"content":{"anyOf":[{"type":"object","properties":{"linkedin_messages":{"type":"array","items":{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":3000}},"required":["text"]},"minItems":1,"maxItems":3}},"required":["linkedin_messages"]},{"type":"object","properties":{"email_steps":{"type":"array","items":{"type":"object","properties":{"subject":{"type":"string","minLength":1,"maxLength":300},"text":{"type":"string","minLength":1,"maxLength":20000},"delay_minutes":{"type":"integer","minimum":0,"maximum":43200}},"required":["subject","text","delay_minutes"]},"minItems":1,"maxItems":5}},"required":["email_steps"]}]},"selection":{"type":"object","properties":{"lane":{"type":["string","null"]},"opener":{"type":["string","null"],"enum":["cold","linkedin_bridge",null]},"template_ids":{"type":"array","items":{"type":"string","minLength":1,"maxLength":100},"minItems":1,"maxItems":5},"approach_type":{"type":"string","enum":["direct","pain","personal","strategic"]}},"required":["lane","opener"]},"context":{"type":"object","properties":{"revision_ref":{"type":"string","format":"uuid"},"digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"profile_version":{"type":"integer","exclusiveMinimum":0},"voice_version":{"type":"integer","minimum":0},"sender_id":{"type":"string","format":"uuid"},"sender_version":{"type":"integer","exclusiveMinimum":0},"prompt_digest":{"type":"string","pattern":"^[a-f0-9]{64}$"}},"required":["revision_ref","digest","profile_version","voice_version","sender_id","sender_version","prompt_digest"]}},"required":["output_ref","digest","created_at","content","selection","context"]},"changes":{"type":"array","items":{"type":"string","enum":["research_changed","lead_facts_changed","sender_changed","business_changed","composition_context_changed"]}},"failure":{"type":["object","null"],"properties":{"code":{"type":"string","enum":["composition_held","composition_configuration_invalid","composition_context_unavailable","composition_context_mismatch","composition_templates_unavailable","composition_approaches_unavailable","composition_research_mismatch","composition_receipt_invalid","composition_quality_hold","composition_unexpected","composition_lead_data_missing"]},"stage":{"type":"string","enum":["identity","version","sender_identity","compose","signing"]},"position":{"type":"integer","minimum":1,"maximum":5,"description":"The Campaign step involved, when known."},"cause":{"type":"string","pattern":"^[A-Za-z][A-Za-z0-9_.]{0,63}$"},"http_status":{"type":"integer","minimum":100,"maximum":599},"message":{"type":"string","minLength":1,"maxLength":400,"description":"Founder-facing reason to relay; the API adds it."}},"required":["code"]}},"required":["lead_ref","lab_run_ref","status","lane","opener","output","baseline_output","changes"]},"minItems":1,"maxItems":20}},"required":["test_ref","request_ref","campaign_ref","revision_ref","digest","baseline_test_ref","status","created_at","samples"]}},"required":["workspace_id","list_id","request_ref","journey_ref","campaign_ref","revision_ref","digest","lead_count","target_sample_count","eligible_count","sample_count","status","cause","test_ref","lab_run_refs","test"]},"enrollment":{"type":["object","null"],"properties":{"workspace_id":{"type":"string","format":"uuid"},"list_id":{"type":"string","format":"uuid"},"request_ref":{"type":"string","format":"uuid"},"journey_ref":{"type":"string","format":"uuid"},"journey_revision_ref":{"type":"string","format":"uuid"},"campaign_ref":{"type":"string","format":"uuid"},"revision_ref":{"type":"string","format":"uuid"},"test_ref":{"type":["string","null"],"format":"uuid"},"executable_version_ref":{"type":"string","format":"uuid"},"member_count":{"type":"integer","minimum":0,"maximum":5000},"status":{"type":"string","enum":["waiting_compilation","blocked","consented","finished"]},"cause":{"type":["string","null"]},"activation":{"type":["object","null"],"properties":{"workspace_id":{"type":"string","format":"uuid"},"list_id":{"type":"string","format":"uuid"},"members":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"lead_ref":{"type":"string","format":"uuid"},"segment_ref":{"type":"string","format":"uuid"},"journey_ref":{"type":"string","format":"uuid"},"executable_version_ref":{"type":"string","format":"uuid"},"member_run_ref":{"type":"string","format":"uuid"},"research_ref":{"type":"string","format":"uuid"},"expected_destination_request_ref":{"type":"string","format":"uuid"},"destination_request_ref":{"type":["string","null"],"format":"uuid"},"state":{"type":"string","enum":["eligible","waiting","rejected"]},"cause":{"type":["string","null"]},"canonical_run_ref":{"type":"null"},"outreach_progress":{"type":"string","enum":["not_activated","pending"]}},"required":["lead_ref","segment_ref","journey_ref","executable_version_ref","member_run_ref","research_ref","destination_request_ref","state","cause","canonical_run_ref","outreach_progress"]},{"type":"object","properties":{"lead_ref":{"type":"string","format":"uuid"},"segment_ref":{"type":"string","format":"uuid"},"journey_ref":{"type":"string","format":"uuid"},"executable_version_ref":{"type":"string","format":"uuid"},"member_run_ref":{"type":"string","format":"uuid"},"research_ref":{"type":"string","format":"uuid"},"expected_destination_request_ref":{"type":"string","format":"uuid"},"destination_request_ref":{"type":["string","null"],"format":"uuid"},"state":{"type":"string","enum":["admitted"]},"cause":{"type":"null"},"canonical_run_ref":{"type":"string","format":"uuid"},"outreach_progress":{"type":"string","enum":["active","paused","snoozed","completed","switched_channel","suppressed","re_enrolling"]}},"required":["lead_ref","segment_ref","journey_ref","executable_version_ref","member_run_ref","research_ref","destination_request_ref","state","cause","canonical_run_ref","outreach_progress"]}]},"maxItems":5000}},"required":["workspace_id","list_id","members"]},"groups":{"type":"array","items":{"type":"object","properties":{"workspace_id":{"type":"string","format":"uuid"},"list_id":{"type":"string","format":"uuid"},"request_ref":{"type":"string","format":"uuid"},"journey_ref":{"type":"string","format":"uuid"},"journey_revision_ref":{"type":"string","format":"uuid"},"campaign_ref":{"type":"string","format":"uuid"},"revision_ref":{"type":"string","format":"uuid"},"test_ref":{"type":["string","null"],"format":"uuid"},"executable_version_ref":{"type":"string","format":"uuid"},"member_count":{"type":"integer","minimum":0,"maximum":5000},"status":{"type":"string","enum":["waiting_compilation","blocked","consented","finished"]},"cause":{"type":["string","null"]},"activation":{"type":["object","null"],"properties":{"workspace_id":{"type":"string","format":"uuid"},"list_id":{"type":"string","format":"uuid"},"members":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"lead_ref":{"type":"string","format":"uuid"},"segment_ref":{"type":"string","format":"uuid"},"journey_ref":{"type":"string","format":"uuid"},"executable_version_ref":{"type":"string","format":"uuid"},"member_run_ref":{"type":"string","format":"uuid"},"research_ref":{"type":"string","format":"uuid"},"expected_destination_request_ref":{"type":"string","format":"uuid"},"destination_request_ref":{"type":["string","null"],"format":"uuid"},"state":{"type":"string","enum":["eligible","waiting","rejected"]},"cause":{"type":["string","null"]},"canonical_run_ref":{"type":"null"},"outreach_progress":{"type":"string","enum":["not_activated","pending"]}},"required":["lead_ref","segment_ref","journey_ref","executable_version_ref","member_run_ref","research_ref","destination_request_ref","state","cause","canonical_run_ref","outreach_progress"]},{"type":"object","properties":{"lead_ref":{"type":"string","format":"uuid"},"segment_ref":{"type":"string","format":"uuid"},"journey_ref":{"type":"string","format":"uuid"},"executable_version_ref":{"type":"string","format":"uuid"},"member_run_ref":{"type":"string","format":"uuid"},"research_ref":{"type":"string","format":"uuid"},"expected_destination_request_ref":{"type":"string","format":"uuid"},"destination_request_ref":{"type":["string","null"],"format":"uuid"},"state":{"type":"string","enum":["admitted"]},"cause":{"type":"null"},"canonical_run_ref":{"type":"string","format":"uuid"},"outreach_progress":{"type":"string","enum":["active","paused","snoozed","completed","switched_channel","suppressed","re_enrolling"]}},"required":["lead_ref","segment_ref","journey_ref","executable_version_ref","member_run_ref","research_ref","destination_request_ref","state","cause","canonical_run_ref","outreach_progress"]}]},"maxItems":5000}},"required":["workspace_id","list_id","members"]},"segment_id":{"type":"string","format":"uuid"},"finite_segment_id":{"type":"string","format":"uuid"},"lead_ids":{"type":"array","items":{"type":"string","format":"uuid"},"minItems":1,"maxItems":5000}},"required":["workspace_id","list_id","request_ref","journey_ref","journey_revision_ref","campaign_ref","revision_ref","test_ref","executable_version_ref","member_count","status","cause","activation","segment_id","finite_segment_id","lead_ids"]},"minItems":1,"maxItems":5000}},"required":["workspace_id","list_id","request_ref","journey_ref","journey_revision_ref","campaign_ref","revision_ref","test_ref","executable_version_ref","member_count","status","cause","activation"]}},"required":["workspace_id","list_id","version","state","name","row_count","created_at","updated_at","segment_ref","draft","list","configuration","preparation"]}}}},"400":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/workspace/conferences/{id}/campaign":{"post":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"id","in":"path"},{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"request_ref":{"type":"string","format":"uuid"},"expected_version":{"type":"integer","minimum":0},"base_campaign_ref":{"type":"string","format":"uuid"},"base_revision_ref":{"type":"string","format":"uuid"},"base_digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"name":{"type":"string","minLength":1,"maxLength":200},"changes":{"type":"object","properties":{"instructions":{"type":"string","maxLength":30000},"steps":{"type":"array","items":{"type":"object","properties":{"position":{"type":"integer","minimum":1,"maximum":5},"delay":{"anyOf":[{"type":"object","properties":{"days":{"type":"integer","minimum":0,"maximum":365}},"required":["days"],"additionalProperties":false},{"type":"object","properties":{"business_days":{"type":"integer","minimum":0,"maximum":365}},"required":["business_days"],"additionalProperties":false}]},"template":{"type":"object","properties":{"subject":{"type":"string","minLength":1,"maxLength":300},"text":{"type":"string","minLength":1,"maxLength":20000},"display_name":{"type":"string","minLength":1,"maxLength":100},"id":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9._-]+$"},"arms":{"type":"array","items":{"type":"string","enum":["direct","pain","personal","strategic"]},"minItems":1,"maxItems":4},"variant":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9._-]+$"},"coverage":{"type":"string","enum":["broad","signal_specific"]},"fit":{"type":"string","minLength":1,"maxLength":2000},"slots_spec":{"type":"string","minLength":1,"maxLength":4000,"description":"Free-form guidance the writer reads about the slots this template's subject and text use. The text defines the slots; this spec never adds or removes one."}},"required":["text"],"additionalProperties":false},"variants":{"type":"array","items":{"type":"object","properties":{"subject":{"type":"string","minLength":1,"maxLength":300},"text":{"type":"string","minLength":1,"maxLength":20000},"display_name":{"type":"string","minLength":1,"maxLength":100},"id":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9._-]+$"},"arms":{"type":"array","items":{"type":"string","enum":["direct","pain","personal","strategic"]},"minItems":1,"maxItems":4},"variant":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9._-]+$"},"coverage":{"type":"string","enum":["broad","signal_specific"]},"fit":{"type":"string","minLength":1,"maxLength":2000},"slots_spec":{"type":"string","minLength":1,"maxLength":4000,"description":"Free-form guidance the writer reads about the slots this template's subject and text use. The text defines the slots; this spec never adds or removes one."},"lane":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,39}$"},"opener":{"type":"string","enum":["cold","linkedin_bridge"]}},"required":["text"],"additionalProperties":false},"minItems":1,"maxItems":40},"writing_instructions":{"type":"string","minLength":1,"maxLength":10000,"description":"Optional guidance for this message in generate mode; preserves campaign-wide instructions and Business voice."}},"required":["position","delay"],"additionalProperties":false},"minItems":1,"maxItems":5,"description":"The saved sequence owns its count. Executable adapter: LinkedIn invitation then 1–3 messages, the first waiting its delay after acceptance; email 1–5 steps with delays up to 30 days or business days."},"compose_mode":{"type":"string","enum":["generate","templates"]}},"additionalProperties":false}},"required":["request_ref","expected_version","base_campaign_ref","base_revision_ref","base_digest","name","changes"],"additionalProperties":false}}}},"responses":{"200":{"description":"Save event Campaign copy from an explicit base revision and digest. expected_version 0 creates; later saves revise the same Campaign before preparation consent. No research, samples or sending. Recover configuration from upload_get.","content":{"application/json":{"schema":{"type":"object","properties":{"workspace_id":{"type":"string","format":"uuid"},"list_id":{"type":"string","format":"uuid"},"journey_ref":{"type":"string","format":"uuid"},"campaign_ref":{"type":"string","format":"uuid"},"revision_ref":{"type":"string","format":"uuid"},"digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"version":{"type":"integer","minimum":0},"base_campaign_ref":{"type":"string","format":"uuid"},"base_revision_ref":{"type":"string","format":"uuid"}},"required":["workspace_id","list_id","journey_ref","campaign_ref","revision_ref","digest","version","base_campaign_ref","base_revision_ref"]}}}},"400":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/workspace/conferences/{id}/event":{"post":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"id","in":"path"},{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"event_url":{"type":"string","maxLength":2048,"format":"uri"}},"required":["event_url"],"additionalProperties":false}}}},"responses":{"200":{"description":"Start paid research on the event URL. Read upload_get for the event details to review.","content":{"application/json":{"schema":{"type":"object","properties":{"event_url":{"type":"string"},"event_state":{"type":"string","enum":["researching","ready","failed","confirmed"]},"event":{"type":["object","null"],"properties":{"name":{"type":"string","minLength":1,"maxLength":200,"pattern":"\\S"},"starts_on":{"type":"string","format":"date"},"ends_on":{"type":["string","null"],"format":"date"},"location":{"type":["string","null"]},"audience":{"type":"string","minLength":1,"pattern":"\\S"},"summary":{"type":"string","minLength":1,"pattern":"\\S"}},"required":["name","starts_on","ends_on","location","audience","summary"]},"event_generation":{"type":"integer","minimum":0},"event_failure":{"type":["string","null"]},"segments":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"priority":{"type":"integer"},"finite_segment_id":{"type":"string","format":"uuid"},"journey_ref":{"type":["string","null"],"format":"uuid"},"campaign_ref":{"type":["string","null"],"format":"uuid"},"fit_state":{"type":"string","enum":["pending","ready","failed"]}},"required":["id","name","priority","finite_segment_id","journey_ref","campaign_ref","fit_state"]}},"screen_state":{"type":["string","null"],"enum":["fit","companies","company_review","roles","ready",null]},"workspace_id":{"type":"string","format":"uuid"},"list_id":{"type":"string","format":"uuid"},"version":{"type":"integer","minimum":0},"state":{"type":"string","enum":["unbound","bound"]},"name":{"type":"string"},"row_count":{"type":"integer","minimum":0,"maximum":5000},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"segment_ref":{"type":["string","null"],"format":"uuid"},"workspace":{"type":"object","properties":{"company_name":{"type":["string","null"]},"value_proposition":{"type":["string","null"]}},"required":["company_name","value_proposition"]}},"required":["event_url","event_state","event","event_generation","event_failure","workspace_id","list_id","version","state","name","row_count","created_at","updated_at","segment_ref"]}}}},"400":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/workspace/conferences/{id}/event/confirm":{"post":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"id","in":"path"},{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"event":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200,"pattern":"\\S"},"starts_on":{"type":"string","format":"date"},"ends_on":{"type":["string","null"],"format":"date"},"location":{"type":["string","null"]},"audience":{"type":"string","minLength":1,"pattern":"\\S"},"summary":{"type":"string","minLength":1,"pattern":"\\S"}},"required":["name","starts_on","ends_on","location","audience","summary"],"additionalProperties":false},"segment_refs":{"type":"array","items":{"type":"string","format":"uuid"},"minItems":1,"uniqueItems":true}},"required":["event","segment_refs"],"additionalProperties":false}}}},"responses":{"200":{"description":"Confirm the event with one or more distinct ICP segment_refs. Each chosen segment supplies its screening criteria and the base Campaign for its event Campaign.","content":{"application/json":{"schema":{"type":"object","properties":{"event_url":{"type":"string"},"event_state":{"type":"string","enum":["confirmed"]},"event":{"type":["object","null"],"properties":{"name":{"type":"string","minLength":1,"maxLength":200,"pattern":"\\S"},"starts_on":{"type":"string","format":"date"},"ends_on":{"type":["string","null"],"format":"date"},"location":{"type":["string","null"]},"audience":{"type":"string","minLength":1,"pattern":"\\S"},"summary":{"type":"string","minLength":1,"pattern":"\\S"}},"required":["name","starts_on","ends_on","location","audience","summary"]},"event_generation":{"type":"integer","minimum":0},"event_failure":{"type":["string","null"]},"segments":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"priority":{"type":"integer"},"finite_segment_id":{"type":"string","format":"uuid"},"journey_ref":{"type":["string","null"],"format":"uuid"},"campaign_ref":{"type":["string","null"],"format":"uuid"},"fit_state":{"type":"string","enum":["pending","ready","failed"]}},"required":["id","name","priority","finite_segment_id","journey_ref","campaign_ref","fit_state"]},"minItems":1},"screen_state":{"type":["string","null"],"enum":["fit","companies","company_review","roles","ready",null]},"workspace_id":{"type":"string","format":"uuid"},"list_id":{"type":"string","format":"uuid"},"version":{"type":"integer","minimum":0},"state":{"type":"string","enum":["bound"]},"name":{"type":"string"},"row_count":{"type":"integer","minimum":0,"maximum":5000},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"segment_ref":{"type":["string","null"],"format":"uuid"},"total":{"type":"integer","minimum":0},"completed":{"type":"integer","minimum":0},"remaining":{"type":"integer","minimum":0},"stopped":{"type":"integer","minimum":0},"to_research":{"type":"integer","minimum":0},"skipped_company":{"type":"integer","minimum":0},"skipped_role":{"type":"integer","minimum":0},"avg_seconds":{"type":"number","minimum":0},"slots":{"type":"integer","exclusiveMinimum":0},"eta_seconds":{"type":"number","minimum":0},"research_started_at":{"type":["string","null"],"format":"date-time"},"research_stopped_at":{"type":["string","null"],"format":"date-time"},"samples_approved_at":{"type":["string","null"],"format":"date-time"},"samples_approved_by":{"type":["string","null"],"format":"uuid"},"screen":{"type":"object","properties":{"companies":{"type":"object","properties":{"total":{"type":"integer","minimum":0},"done":{"type":"integer","minimum":0},"skipped":{"type":"integer","minimum":0}},"required":["total","done","skipped"]},"roles":{"type":"object","properties":{"total":{"type":"integer","minimum":0},"done":{"type":"integer","minimum":0},"skipped":{"type":"integer","minimum":0}},"required":["total","done","skipped"]},"company_list":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"verdict":{"type":["string","null"],"enum":["keep","skip",null]},"reason":{"type":["string","null"]},"segment_verdicts":{"type":"array","items":{"type":"object","properties":{"segment_id":{"type":"string","format":"uuid"},"keep":{"type":["boolean","null"]},"reason":{"type":["string","null"]}},"required":["segment_id","keep","reason"]}},"fit_segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"domain":{"type":["string","null"]},"people":{"type":"integer","minimum":0},"included":{"type":"integer","minimum":0}},"required":["key","label","verdict","reason","domain","people","included"]}},"role_list":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"verdict":{"type":["string","null"],"enum":["keep","skip",null]},"reason":{"type":["string","null"]},"segment_verdicts":{"type":"array","items":{"type":"object","properties":{"segment_id":{"type":"string","format":"uuid"},"keep":{"type":["boolean","null"]},"reason":{"type":["string","null"]}},"required":["segment_id","keep","reason"]}},"fit_segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}}},"required":["key","label","verdict","reason"]}}},"required":["company_list","role_list"]},"rows":{"type":"array","items":{"type":"object","properties":{"row_id":{"type":"string"},"person":{"type":"object","properties":{"lead_id":{"type":"string"},"email":{"type":"string"},"linkedin_url":{"type":"string"},"first_name":{"type":"string"},"last_name":{"type":"string"},"title":{"type":"string"},"company_name":{"type":"string"},"company_domain":{"type":"string"}}},"lead_id":{"type":["string","null"],"format":"uuid"},"state":{"type":"string","enum":["pending","claimed","completed","stopped","failed","skipped"]},"company_key":{"type":["string","null"]},"title_key":{"type":["string","null"]},"skip_stage":{"type":["string","null"],"enum":["company","role","person",null]},"skip_reason":{"type":["string","null"]},"skip_by_member":{"type":"boolean"},"member_included":{"type":"boolean"},"fit_segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"research_segment_id":{"type":["string","null"],"format":"uuid"},"ask_key":{"type":"string"},"generation":{"type":"integer","minimum":0},"claimed_at":{"type":["string","null"],"format":"date-time"},"completed_at":{"type":["string","null"],"format":"date-time"},"identity_confidence":{"type":["string","null"],"enum":["confirmed","review","not_found",null]},"found":{"type":["object","null"],"properties":{"linkedin_url":{"type":["string","null"]},"email":{"type":["string","null"]},"email_status":{"type":["string","null"]},"title":{"type":["string","null"]},"company_name":{"type":["string","null"]},"company_domain":{"type":["string","null"]},"mismatch_reason":{"type":["string","null"]},"evidence":{"type":"array","items":{"type":"object","properties":{"url":{"type":"string"},"claim":{"type":"string"}},"required":["url","claim"]}}}},"tier":{"type":["string","null"],"enum":["A","B","C",null]},"tier_reason":{"type":["string","null"]},"draft":{"type":["object","null"],"properties":{"linkedin_message":{"type":"string","minLength":1,"pattern":"\\S"},"email_subject":{"type":"string","minLength":1,"pattern":"\\S"},"email_body":{"type":"string","minLength":1,"pattern":"\\S"}},"required":["linkedin_message","email_subject","email_body"]},"member_decision":{"type":["string","null"],"enum":["this_is_person","not_this_person",null]},"failure":{"type":["string","null"]}},"required":["row_id"]},"maxItems":5000},"draft":{"type":["object","null"],"properties":{"name":{"type":"string","minLength":1,"maxLength":200},"event_context":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/ConferenceEventValue"}},"rows":{"type":"array","items":{"type":"object","properties":{"row_id":{"type":"string","minLength":1,"maxLength":128},"email":{"type":"string"},"linkedin_url":{"type":"string"},"first_name":{"type":"string"},"last_name":{"type":"string"},"title":{"type":"string"},"company_name":{"type":"string"},"company_domain":{"type":"string"}},"required":["row_id"]},"minItems":1,"maxItems":5000}},"required":["name","event_context","rows"]},"list":{"type":["object","null"],"properties":{"list_id":{"type":"string","format":"uuid"},"workspace_id":{"type":"string","format":"uuid"},"name":{"type":"string"},"event_context":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/ConferenceEventValue"}},"committed":{"type":"boolean"},"draft_request":{"type":["object","null"],"properties":{"import_id":{"type":"string","format":"uuid"},"name":{"type":"string","minLength":1,"maxLength":200},"event_context":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/ConferenceEventValue"}},"rows":{"type":"array","items":{"type":"object","properties":{"row_id":{"type":"string","minLength":1,"maxLength":128},"segment_id":{"type":"string"},"lead_id":{"type":"string"},"email":{"type":"string"},"linkedin_url":{"type":"string"},"first_name":{"type":"string"},"last_name":{"type":"string"},"title":{"type":"string"},"company_name":{"type":"string"},"company_domain":{"type":"string"}},"required":["row_id","segment_id"]},"minItems":1,"maxItems":5000}},"required":["import_id","name","event_context","rows"]},"rows":{"type":"array","items":{"type":"object","properties":{"row_id":{"type":"string"},"segment_id":{"type":"string"},"lead_id":{"type":["string","null"],"format":"uuid"},"status":{"type":"string","enum":["invalid","unresolved","duplicate","existing","already_contacted","excluded","mapped","lookup"]},"reason":{"type":"string"},"duplicate_of":{"type":["string","null"]}},"required":["row_id","segment_id","lead_id","status","reason","duplicate_of"]},"maxItems":5000}},"required":["list_id","workspace_id","name","event_context","committed","rows"]},"configuration":{"type":["object","null"],"properties":{"workspace_id":{"type":"string","format":"uuid"},"list_id":{"type":"string","format":"uuid"},"journey_ref":{"type":"string","format":"uuid"},"campaign_ref":{"type":"string","format":"uuid"},"revision_ref":{"type":"string","format":"uuid"},"digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"version":{"type":"integer","minimum":0},"base_campaign_ref":{"type":"string","format":"uuid"},"base_revision_ref":{"type":"string","format":"uuid"}},"required":["workspace_id","list_id","journey_ref","campaign_ref","revision_ref","digest","version","base_campaign_ref","base_revision_ref"]},"preparation":{"type":["object","null"],"properties":{"workspace_id":{"type":"string","format":"uuid"},"list_id":{"type":"string","format":"uuid"},"request_ref":{"type":"string","format":"uuid"},"journey_ref":{"type":"string","format":"uuid"},"campaign_ref":{"type":"string","format":"uuid"},"revision_ref":{"type":"string","format":"uuid"},"digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"lead_count":{"type":"integer","minimum":0,"maximum":5000},"target_sample_count":{"type":"number","enum":[5]},"eligible_count":{"type":"integer","minimum":0,"maximum":5},"sample_count":{"type":"integer","minimum":0,"maximum":5},"status":{"type":"string","enum":["researching","waiting","sampling","completed","failed","insufficient_qualified"]},"cause":{"type":["string","null"]},"test_ref":{"type":["string","null"],"format":"uuid"},"lab_run_refs":{"type":"array","items":{"type":"string","format":"uuid"},"maxItems":5},"test":{"type":["object","null"],"properties":{"test_ref":{"type":"string","format":"uuid"},"request_ref":{"type":"string","format":"uuid"},"campaign_ref":{"type":"string","format":"uuid"},"revision_ref":{"type":"string","format":"uuid"},"digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"baseline_test_ref":{"type":["string","null"],"format":"uuid"},"status":{"type":"string","enum":["queued","running","completed","failed"]},"created_at":{"type":"string","format":"date-time"},"samples":{"type":"array","items":{"type":"object","properties":{"lead_ref":{"type":"string","format":"uuid"},"lab_run_ref":{"type":"string","format":"uuid"},"status":{"type":"string","enum":["queued","running","succeeded","failed","canceled"]},"lane":{"type":["string","null"]},"opener":{"type":["string","null"],"enum":["cold","linkedin_bridge",null]},"output":{"type":["object","null"],"properties":{"output_ref":{"type":"string","format":"uuid"},"digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"created_at":{"type":"string","format":"date-time"},"content":{"anyOf":[{"type":"object","properties":{"linkedin_messages":{"type":"array","items":{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":3000}},"required":["text"]},"minItems":1,"maxItems":3}},"required":["linkedin_messages"]},{"type":"object","properties":{"email_steps":{"type":"array","items":{"type":"object","properties":{"subject":{"type":"string","minLength":1,"maxLength":300},"text":{"type":"string","minLength":1,"maxLength":20000},"delay_minutes":{"type":"integer","minimum":0,"maximum":43200}},"required":["subject","text","delay_minutes"]},"minItems":1,"maxItems":5}},"required":["email_steps"]}]},"selection":{"type":"object","properties":{"lane":{"type":["string","null"]},"opener":{"type":["string","null"],"enum":["cold","linkedin_bridge",null]},"template_ids":{"type":"array","items":{"type":"string","minLength":1,"maxLength":100},"minItems":1,"maxItems":5},"approach_type":{"type":"string","enum":["direct","pain","personal","strategic"]}},"required":["lane","opener"]},"context":{"type":"object","properties":{"revision_ref":{"type":"string","format":"uuid"},"digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"profile_version":{"type":"integer","exclusiveMinimum":0},"voice_version":{"type":"integer","minimum":0},"sender_id":{"type":"string","format":"uuid"},"sender_version":{"type":"integer","exclusiveMinimum":0},"prompt_digest":{"type":"string","pattern":"^[a-f0-9]{64}$"}},"required":["revision_ref","digest","profile_version","voice_version","sender_id","sender_version","prompt_digest"]}},"required":["output_ref","digest","created_at","content","selection","context"]},"baseline_output":{"type":["object","null"],"properties":{"output_ref":{"type":"string","format":"uuid"},"digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"created_at":{"type":"string","format":"date-time"},"content":{"anyOf":[{"type":"object","properties":{"linkedin_messages":{"type":"array","items":{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":3000}},"required":["text"]},"minItems":1,"maxItems":3}},"required":["linkedin_messages"]},{"type":"object","properties":{"email_steps":{"type":"array","items":{"type":"object","properties":{"subject":{"type":"string","minLength":1,"maxLength":300},"text":{"type":"string","minLength":1,"maxLength":20000},"delay_minutes":{"type":"integer","minimum":0,"maximum":43200}},"required":["subject","text","delay_minutes"]},"minItems":1,"maxItems":5}},"required":["email_steps"]}]},"selection":{"type":"object","properties":{"lane":{"type":["string","null"]},"opener":{"type":["string","null"],"enum":["cold","linkedin_bridge",null]},"template_ids":{"type":"array","items":{"type":"string","minLength":1,"maxLength":100},"minItems":1,"maxItems":5},"approach_type":{"type":"string","enum":["direct","pain","personal","strategic"]}},"required":["lane","opener"]},"context":{"type":"object","properties":{"revision_ref":{"type":"string","format":"uuid"},"digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"profile_version":{"type":"integer","exclusiveMinimum":0},"voice_version":{"type":"integer","minimum":0},"sender_id":{"type":"string","format":"uuid"},"sender_version":{"type":"integer","exclusiveMinimum":0},"prompt_digest":{"type":"string","pattern":"^[a-f0-9]{64}$"}},"required":["revision_ref","digest","profile_version","voice_version","sender_id","sender_version","prompt_digest"]}},"required":["output_ref","digest","created_at","content","selection","context"]},"changes":{"type":"array","items":{"type":"string","enum":["research_changed","lead_facts_changed","sender_changed","business_changed","composition_context_changed"]}},"failure":{"type":["object","null"],"properties":{"code":{"type":"string","enum":["composition_held","composition_configuration_invalid","composition_context_unavailable","composition_context_mismatch","composition_templates_unavailable","composition_approaches_unavailable","composition_research_mismatch","composition_receipt_invalid","composition_quality_hold","composition_unexpected","composition_lead_data_missing"]},"stage":{"type":"string","enum":["identity","version","sender_identity","compose","signing"]},"position":{"type":"integer","minimum":1,"maximum":5,"description":"The Campaign step involved, when known."},"cause":{"type":"string","pattern":"^[A-Za-z][A-Za-z0-9_.]{0,63}$"},"http_status":{"type":"integer","minimum":100,"maximum":599},"message":{"type":"string","minLength":1,"maxLength":400,"description":"Founder-facing reason to relay; the API adds it."}},"required":["code"]}},"required":["lead_ref","lab_run_ref","status","lane","opener","output","baseline_output","changes"]},"minItems":1,"maxItems":20}},"required":["test_ref","request_ref","campaign_ref","revision_ref","digest","baseline_test_ref","status","created_at","samples"]}},"required":["workspace_id","list_id","request_ref","journey_ref","campaign_ref","revision_ref","digest","lead_count","target_sample_count","eligible_count","sample_count","status","cause","test_ref","lab_run_refs","test"]},"enrollment":{"type":["object","null"],"properties":{"workspace_id":{"type":"string","format":"uuid"},"list_id":{"type":"string","format":"uuid"},"request_ref":{"type":"string","format":"uuid"},"journey_ref":{"type":"string","format":"uuid"},"journey_revision_ref":{"type":"string","format":"uuid"},"campaign_ref":{"type":"string","format":"uuid"},"revision_ref":{"type":"string","format":"uuid"},"test_ref":{"type":["string","null"],"format":"uuid"},"executable_version_ref":{"type":"string","format":"uuid"},"member_count":{"type":"integer","minimum":0,"maximum":5000},"status":{"type":"string","enum":["waiting_compilation","blocked","consented","finished"]},"cause":{"type":["string","null"]},"activation":{"type":["object","null"],"properties":{"workspace_id":{"type":"string","format":"uuid"},"list_id":{"type":"string","format":"uuid"},"members":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"lead_ref":{"type":"string","format":"uuid"},"segment_ref":{"type":"string","format":"uuid"},"journey_ref":{"type":"string","format":"uuid"},"executable_version_ref":{"type":"string","format":"uuid"},"member_run_ref":{"type":"string","format":"uuid"},"research_ref":{"type":"string","format":"uuid"},"expected_destination_request_ref":{"type":"string","format":"uuid"},"destination_request_ref":{"type":["string","null"],"format":"uuid"},"state":{"type":"string","enum":["eligible","waiting","rejected"]},"cause":{"type":["string","null"]},"canonical_run_ref":{"type":"null"},"outreach_progress":{"type":"string","enum":["not_activated","pending"]}},"required":["lead_ref","segment_ref","journey_ref","executable_version_ref","member_run_ref","research_ref","destination_request_ref","state","cause","canonical_run_ref","outreach_progress"]},{"type":"object","properties":{"lead_ref":{"type":"string","format":"uuid"},"segment_ref":{"type":"string","format":"uuid"},"journey_ref":{"type":"string","format":"uuid"},"executable_version_ref":{"type":"string","format":"uuid"},"member_run_ref":{"type":"string","format":"uuid"},"research_ref":{"type":"string","format":"uuid"},"expected_destination_request_ref":{"type":"string","format":"uuid"},"destination_request_ref":{"type":["string","null"],"format":"uuid"},"state":{"type":"string","enum":["admitted"]},"cause":{"type":"null"},"canonical_run_ref":{"type":"string","format":"uuid"},"outreach_progress":{"type":"string","enum":["active","paused","snoozed","completed","switched_channel","suppressed","re_enrolling"]}},"required":["lead_ref","segment_ref","journey_ref","executable_version_ref","member_run_ref","research_ref","destination_request_ref","state","cause","canonical_run_ref","outreach_progress"]}]},"maxItems":5000}},"required":["workspace_id","list_id","members"]},"groups":{"type":"array","items":{"type":"object","properties":{"workspace_id":{"type":"string","format":"uuid"},"list_id":{"type":"string","format":"uuid"},"request_ref":{"type":"string","format":"uuid"},"journey_ref":{"type":"string","format":"uuid"},"journey_revision_ref":{"type":"string","format":"uuid"},"campaign_ref":{"type":"string","format":"uuid"},"revision_ref":{"type":"string","format":"uuid"},"test_ref":{"type":["string","null"],"format":"uuid"},"executable_version_ref":{"type":"string","format":"uuid"},"member_count":{"type":"integer","minimum":0,"maximum":5000},"status":{"type":"string","enum":["waiting_compilation","blocked","consented","finished"]},"cause":{"type":["string","null"]},"activation":{"type":["object","null"],"properties":{"workspace_id":{"type":"string","format":"uuid"},"list_id":{"type":"string","format":"uuid"},"members":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"lead_ref":{"type":"string","format":"uuid"},"segment_ref":{"type":"string","format":"uuid"},"journey_ref":{"type":"string","format":"uuid"},"executable_version_ref":{"type":"string","format":"uuid"},"member_run_ref":{"type":"string","format":"uuid"},"research_ref":{"type":"string","format":"uuid"},"expected_destination_request_ref":{"type":"string","format":"uuid"},"destination_request_ref":{"type":["string","null"],"format":"uuid"},"state":{"type":"string","enum":["eligible","waiting","rejected"]},"cause":{"type":["string","null"]},"canonical_run_ref":{"type":"null"},"outreach_progress":{"type":"string","enum":["not_activated","pending"]}},"required":["lead_ref","segment_ref","journey_ref","executable_version_ref","member_run_ref","research_ref","destination_request_ref","state","cause","canonical_run_ref","outreach_progress"]},{"type":"object","properties":{"lead_ref":{"type":"string","format":"uuid"},"segment_ref":{"type":"string","format":"uuid"},"journey_ref":{"type":"string","format":"uuid"},"executable_version_ref":{"type":"string","format":"uuid"},"member_run_ref":{"type":"string","format":"uuid"},"research_ref":{"type":"string","format":"uuid"},"expected_destination_request_ref":{"type":"string","format":"uuid"},"destination_request_ref":{"type":["string","null"],"format":"uuid"},"state":{"type":"string","enum":["admitted"]},"cause":{"type":"null"},"canonical_run_ref":{"type":"string","format":"uuid"},"outreach_progress":{"type":"string","enum":["active","paused","snoozed","completed","switched_channel","suppressed","re_enrolling"]}},"required":["lead_ref","segment_ref","journey_ref","executable_version_ref","member_run_ref","research_ref","destination_request_ref","state","cause","canonical_run_ref","outreach_progress"]}]},"maxItems":5000}},"required":["workspace_id","list_id","members"]},"segment_id":{"type":"string","format":"uuid"},"finite_segment_id":{"type":"string","format":"uuid"},"lead_ids":{"type":"array","items":{"type":"string","format":"uuid"},"minItems":1,"maxItems":5000}},"required":["workspace_id","list_id","request_ref","journey_ref","journey_revision_ref","campaign_ref","revision_ref","test_ref","executable_version_ref","member_count","status","cause","activation","segment_id","finite_segment_id","lead_ids"]},"minItems":1,"maxItems":5000}},"required":["workspace_id","list_id","request_ref","journey_ref","journey_revision_ref","campaign_ref","revision_ref","test_ref","executable_version_ref","member_count","status","cause","activation"]}},"required":["event_url","event_state","event","event_generation","event_failure","segments","workspace_id","list_id","version","state","name","row_count","created_at","updated_at","segment_ref","draft","list","configuration","preparation"]}}}},"400":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/workspace/conferences/{id}/research/stop":{"post":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"id","in":"path"},{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":false}}}},"responses":{"200":{"description":"Stop remaining research. In-flight rows can finish.","content":{"application/json":{"schema":{"type":"object","properties":{"event_url":{"type":"string"},"event_state":{"type":"string","enum":["researching","ready","failed","confirmed"]},"event":{"type":["object","null"],"properties":{"name":{"type":"string","minLength":1,"maxLength":200,"pattern":"\\S"},"starts_on":{"type":"string","format":"date"},"ends_on":{"type":["string","null"],"format":"date"},"location":{"type":["string","null"]},"audience":{"type":"string","minLength":1,"pattern":"\\S"},"summary":{"type":"string","minLength":1,"pattern":"\\S"}},"required":["name","starts_on","ends_on","location","audience","summary"]},"workspace_id":{"type":"string","format":"uuid"},"list_id":{"type":"string","format":"uuid"},"total":{"type":"integer","minimum":0},"completed":{"type":"integer","minimum":0},"remaining":{"type":"integer","minimum":0},"stopped":{"type":"integer","minimum":0},"to_research":{"type":"integer","minimum":0},"skipped_company":{"type":"integer","minimum":0},"skipped_role":{"type":"integer","minimum":0},"avg_seconds":{"type":"number","minimum":0},"slots":{"type":"integer","exclusiveMinimum":0},"eta_seconds":{"type":"number","minimum":0},"research_started_at":{"type":["string","null"],"format":"date-time"},"research_stopped_at":{"type":["string","null"],"format":"date-time"},"samples_approved_at":{"type":["string","null"],"format":"date-time"},"samples_approved_by":{"type":["string","null"],"format":"uuid"},"segments":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"priority":{"type":"integer"},"finite_segment_id":{"type":"string","format":"uuid"},"journey_ref":{"type":["string","null"],"format":"uuid"},"campaign_ref":{"type":["string","null"],"format":"uuid"},"fit_state":{"type":"string","enum":["pending","ready","failed"]}},"required":["id","name","priority","finite_segment_id","journey_ref","campaign_ref","fit_state"]}},"screen_state":{"type":["string","null"],"enum":["fit","companies","company_review","roles","ready",null]},"screen":{"type":"object","properties":{"companies":{"type":"object","properties":{"total":{"type":"integer","minimum":0},"done":{"type":"integer","minimum":0},"skipped":{"type":"integer","minimum":0}},"required":["total","done","skipped"]},"roles":{"type":"object","properties":{"total":{"type":"integer","minimum":0},"done":{"type":"integer","minimum":0},"skipped":{"type":"integer","minimum":0}},"required":["total","done","skipped"]},"company_list":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"verdict":{"type":["string","null"],"enum":["keep","skip",null]},"reason":{"type":["string","null"]},"segment_verdicts":{"type":"array","items":{"type":"object","properties":{"segment_id":{"type":"string","format":"uuid"},"keep":{"type":["boolean","null"]},"reason":{"type":["string","null"]}},"required":["segment_id","keep","reason"]}},"fit_segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"domain":{"type":["string","null"]},"people":{"type":"integer","minimum":0},"included":{"type":"integer","minimum":0}},"required":["key","label","verdict","reason","domain","people","included"]}},"role_list":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"verdict":{"type":["string","null"],"enum":["keep","skip",null]},"reason":{"type":["string","null"]},"segment_verdicts":{"type":"array","items":{"type":"object","properties":{"segment_id":{"type":"string","format":"uuid"},"keep":{"type":["boolean","null"]},"reason":{"type":["string","null"]}},"required":["segment_id","keep","reason"]}},"fit_segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}}},"required":["key","label","verdict","reason"]}}},"required":["companies","roles","company_list","role_list"]},"rows":{"type":"array","items":{"type":"object","properties":{"row_id":{"type":"string"},"person":{"type":"object","properties":{"lead_id":{"type":"string"},"email":{"type":"string"},"linkedin_url":{"type":"string"},"first_name":{"type":"string"},"last_name":{"type":"string"},"title":{"type":"string"},"company_name":{"type":"string"},"company_domain":{"type":"string"}}},"lead_id":{"type":["string","null"],"format":"uuid"},"state":{"type":"string","enum":["pending","claimed","completed","stopped","failed","skipped"]},"company_key":{"type":["string","null"]},"title_key":{"type":["string","null"]},"skip_stage":{"type":["string","null"],"enum":["company","role","person",null]},"skip_reason":{"type":["string","null"]},"skip_by_member":{"type":"boolean"},"member_included":{"type":"boolean"},"fit_segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"research_segment_id":{"type":["string","null"],"format":"uuid"},"ask_key":{"type":"string"},"generation":{"type":"integer","minimum":0},"claimed_at":{"type":["string","null"],"format":"date-time"},"completed_at":{"type":["string","null"],"format":"date-time"},"identity_confidence":{"type":["string","null"],"enum":["confirmed","review","not_found",null]},"found":{"type":["object","null"],"properties":{"linkedin_url":{"type":["string","null"]},"email":{"type":["string","null"]},"email_status":{"type":["string","null"]},"title":{"type":["string","null"]},"company_name":{"type":["string","null"]},"company_domain":{"type":["string","null"]},"mismatch_reason":{"type":["string","null"]},"evidence":{"type":"array","items":{"type":"object","properties":{"url":{"type":"string"},"claim":{"type":"string"}},"required":["url","claim"]}}}},"tier":{"type":["string","null"],"enum":["A","B","C",null]},"tier_reason":{"type":["string","null"]},"draft":{"type":["object","null"],"properties":{"linkedin_message":{"type":"string","minLength":1,"pattern":"\\S"},"email_subject":{"type":"string","minLength":1,"pattern":"\\S"},"email_body":{"type":"string","minLength":1,"pattern":"\\S"}},"required":["linkedin_message","email_subject","email_body"]},"member_decision":{"type":["string","null"],"enum":["this_is_person","not_this_person",null]},"failure":{"type":["string","null"]}},"required":["row_id","person","lead_id","state","company_key","title_key","skip_stage","skip_reason","skip_by_member","ask_key","generation","claimed_at","completed_at","identity_confidence","found","tier","tier_reason","draft","member_decision","failure"]},"maxItems":5000},"conference_criterion":{"type":["string","null"]}},"required":["event_url","event_state","event","workspace_id","list_id","total","completed","remaining","stopped","to_research","skipped_company","skipped_role","avg_seconds","slots","eta_seconds","research_started_at","research_stopped_at","samples_approved_at","samples_approved_by","screen_state","screen","rows"]}}}},"400":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/workspace/conferences/{id}/rows/decision":{"post":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"id","in":"path"},{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"row_id":{"type":"string","minLength":1,"maxLength":128},"decision":{"type":"string","enum":["this_is_person","not_this_person"]}},"required":["row_id","decision"],"additionalProperties":false}}}},"responses":{"200":{"description":"Record whether a Review row matches the person on the list.","content":{"application/json":{"schema":{"type":"object","properties":{"event_url":{"type":"string"},"event_state":{"type":"string","enum":["researching","ready","failed","confirmed"]},"event":{"type":["object","null"],"properties":{"name":{"type":"string","minLength":1,"maxLength":200,"pattern":"\\S"},"starts_on":{"type":"string","format":"date"},"ends_on":{"type":["string","null"],"format":"date"},"location":{"type":["string","null"]},"audience":{"type":"string","minLength":1,"pattern":"\\S"},"summary":{"type":"string","minLength":1,"pattern":"\\S"}},"required":["name","starts_on","ends_on","location","audience","summary"]},"workspace_id":{"type":"string","format":"uuid"},"list_id":{"type":"string","format":"uuid"},"total":{"type":"integer","minimum":0},"completed":{"type":"integer","minimum":0},"remaining":{"type":"integer","minimum":0},"stopped":{"type":"integer","minimum":0},"to_research":{"type":"integer","minimum":0},"skipped_company":{"type":"integer","minimum":0},"skipped_role":{"type":"integer","minimum":0},"avg_seconds":{"type":"number","minimum":0},"slots":{"type":"integer","exclusiveMinimum":0},"eta_seconds":{"type":"number","minimum":0},"research_started_at":{"type":["string","null"],"format":"date-time"},"research_stopped_at":{"type":["string","null"],"format":"date-time"},"samples_approved_at":{"type":["string","null"],"format":"date-time"},"samples_approved_by":{"type":["string","null"],"format":"uuid"},"segments":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"priority":{"type":"integer"},"finite_segment_id":{"type":"string","format":"uuid"},"journey_ref":{"type":["string","null"],"format":"uuid"},"campaign_ref":{"type":["string","null"],"format":"uuid"},"fit_state":{"type":"string","enum":["pending","ready","failed"]}},"required":["id","name","priority","finite_segment_id","journey_ref","campaign_ref","fit_state"]}},"screen_state":{"type":["string","null"],"enum":["fit","companies","company_review","roles","ready",null]},"screen":{"type":"object","properties":{"companies":{"type":"object","properties":{"total":{"type":"integer","minimum":0},"done":{"type":"integer","minimum":0},"skipped":{"type":"integer","minimum":0}},"required":["total","done","skipped"]},"roles":{"type":"object","properties":{"total":{"type":"integer","minimum":0},"done":{"type":"integer","minimum":0},"skipped":{"type":"integer","minimum":0}},"required":["total","done","skipped"]},"company_list":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"verdict":{"type":["string","null"],"enum":["keep","skip",null]},"reason":{"type":["string","null"]},"segment_verdicts":{"type":"array","items":{"type":"object","properties":{"segment_id":{"type":"string","format":"uuid"},"keep":{"type":["boolean","null"]},"reason":{"type":["string","null"]}},"required":["segment_id","keep","reason"]}},"fit_segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"domain":{"type":["string","null"]},"people":{"type":"integer","minimum":0},"included":{"type":"integer","minimum":0}},"required":["key","label","verdict","reason","domain","people","included"]}},"role_list":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"verdict":{"type":["string","null"],"enum":["keep","skip",null]},"reason":{"type":["string","null"]},"segment_verdicts":{"type":"array","items":{"type":"object","properties":{"segment_id":{"type":"string","format":"uuid"},"keep":{"type":["boolean","null"]},"reason":{"type":["string","null"]}},"required":["segment_id","keep","reason"]}},"fit_segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}}},"required":["key","label","verdict","reason"]}}},"required":["companies","roles","company_list","role_list"]},"rows":{"type":"array","items":{"type":"object","properties":{"row_id":{"type":"string"},"person":{"type":"object","properties":{"lead_id":{"type":"string"},"email":{"type":"string"},"linkedin_url":{"type":"string"},"first_name":{"type":"string"},"last_name":{"type":"string"},"title":{"type":"string"},"company_name":{"type":"string"},"company_domain":{"type":"string"}}},"lead_id":{"type":["string","null"],"format":"uuid"},"state":{"type":"string","enum":["pending","claimed","completed","stopped","failed","skipped"]},"company_key":{"type":["string","null"]},"title_key":{"type":["string","null"]},"skip_stage":{"type":["string","null"],"enum":["company","role","person",null]},"skip_reason":{"type":["string","null"]},"skip_by_member":{"type":"boolean"},"member_included":{"type":"boolean"},"fit_segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"research_segment_id":{"type":["string","null"],"format":"uuid"},"ask_key":{"type":"string"},"generation":{"type":"integer","minimum":0},"claimed_at":{"type":["string","null"],"format":"date-time"},"completed_at":{"type":["string","null"],"format":"date-time"},"identity_confidence":{"type":["string","null"],"enum":["confirmed","review","not_found",null]},"found":{"type":["object","null"],"properties":{"linkedin_url":{"type":["string","null"]},"email":{"type":["string","null"]},"email_status":{"type":["string","null"]},"title":{"type":["string","null"]},"company_name":{"type":["string","null"]},"company_domain":{"type":["string","null"]},"mismatch_reason":{"type":["string","null"]},"evidence":{"type":"array","items":{"type":"object","properties":{"url":{"type":"string"},"claim":{"type":"string"}},"required":["url","claim"]}}}},"tier":{"type":["string","null"],"enum":["A","B","C",null]},"tier_reason":{"type":["string","null"]},"draft":{"type":["object","null"],"properties":{"linkedin_message":{"type":"string","minLength":1,"pattern":"\\S"},"email_subject":{"type":"string","minLength":1,"pattern":"\\S"},"email_body":{"type":"string","minLength":1,"pattern":"\\S"}},"required":["linkedin_message","email_subject","email_body"]},"member_decision":{"type":["string","null"],"enum":["this_is_person","not_this_person",null]},"failure":{"type":["string","null"]}},"required":["row_id","person","lead_id","state","company_key","title_key","skip_stage","skip_reason","skip_by_member","ask_key","generation","claimed_at","completed_at","identity_confidence","found","tier","tier_reason","draft","member_decision","failure"]},"maxItems":5000},"conference_criterion":{"type":["string","null"]}},"required":["event_url","event_state","event","workspace_id","list_id","total","completed","remaining","stopped","to_research","skipped_company","skipped_role","avg_seconds","slots","eta_seconds","research_started_at","research_stopped_at","samples_approved_at","samples_approved_by","screen_state","screen","rows"]}}}},"400":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/workspace/conferences/{id}/rows/selection":{"post":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"id","in":"path"},{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"row_ids":{"type":"array","items":{"type":"string","minLength":1,"maxLength":128},"minItems":1,"maxItems":5000},"include":{"type":"boolean"}},"required":["row_ids","include"],"additionalProperties":false}}}},"responses":{"200":{"description":"Include or exclude rows in the open review: all row_ids of a company (company_review) or people (ready). Safe to retry.","content":{"application/json":{"schema":{"type":"object","properties":{"event_url":{"type":"string"},"event_state":{"type":"string","enum":["researching","ready","failed","confirmed"]},"event":{"type":["object","null"],"properties":{"name":{"type":"string","minLength":1,"maxLength":200,"pattern":"\\S"},"starts_on":{"type":"string","format":"date"},"ends_on":{"type":["string","null"],"format":"date"},"location":{"type":["string","null"]},"audience":{"type":"string","minLength":1,"pattern":"\\S"},"summary":{"type":"string","minLength":1,"pattern":"\\S"}},"required":["name","starts_on","ends_on","location","audience","summary"]},"workspace_id":{"type":"string","format":"uuid"},"list_id":{"type":"string","format":"uuid"},"total":{"type":"integer","minimum":0},"completed":{"type":"integer","minimum":0},"remaining":{"type":"integer","minimum":0},"stopped":{"type":"integer","minimum":0},"to_research":{"type":"integer","minimum":0},"skipped_company":{"type":"integer","minimum":0},"skipped_role":{"type":"integer","minimum":0},"avg_seconds":{"type":"number","minimum":0},"slots":{"type":"integer","exclusiveMinimum":0},"eta_seconds":{"type":"number","minimum":0},"research_started_at":{"type":["string","null"],"format":"date-time"},"research_stopped_at":{"type":["string","null"],"format":"date-time"},"samples_approved_at":{"type":["string","null"],"format":"date-time"},"samples_approved_by":{"type":["string","null"],"format":"uuid"},"segments":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"priority":{"type":"integer"},"finite_segment_id":{"type":"string","format":"uuid"},"journey_ref":{"type":["string","null"],"format":"uuid"},"campaign_ref":{"type":["string","null"],"format":"uuid"},"fit_state":{"type":"string","enum":["pending","ready","failed"]}},"required":["id","name","priority","finite_segment_id","journey_ref","campaign_ref","fit_state"]}},"screen_state":{"type":["string","null"],"enum":["fit","companies","company_review","roles","ready",null]},"screen":{"type":"object","properties":{"companies":{"type":"object","properties":{"total":{"type":"integer","minimum":0},"done":{"type":"integer","minimum":0},"skipped":{"type":"integer","minimum":0}},"required":["total","done","skipped"]},"roles":{"type":"object","properties":{"total":{"type":"integer","minimum":0},"done":{"type":"integer","minimum":0},"skipped":{"type":"integer","minimum":0}},"required":["total","done","skipped"]},"company_list":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"verdict":{"type":["string","null"],"enum":["keep","skip",null]},"reason":{"type":["string","null"]},"segment_verdicts":{"type":"array","items":{"type":"object","properties":{"segment_id":{"type":"string","format":"uuid"},"keep":{"type":["boolean","null"]},"reason":{"type":["string","null"]}},"required":["segment_id","keep","reason"]}},"fit_segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"domain":{"type":["string","null"]},"people":{"type":"integer","minimum":0},"included":{"type":"integer","minimum":0}},"required":["key","label","verdict","reason","domain","people","included"]}},"role_list":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"verdict":{"type":["string","null"],"enum":["keep","skip",null]},"reason":{"type":["string","null"]},"segment_verdicts":{"type":"array","items":{"type":"object","properties":{"segment_id":{"type":"string","format":"uuid"},"keep":{"type":["boolean","null"]},"reason":{"type":["string","null"]}},"required":["segment_id","keep","reason"]}},"fit_segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}}},"required":["key","label","verdict","reason"]}}},"required":["companies","roles","company_list","role_list"]},"rows":{"type":"array","items":{"type":"object","properties":{"row_id":{"type":"string"},"person":{"type":"object","properties":{"lead_id":{"type":"string"},"email":{"type":"string"},"linkedin_url":{"type":"string"},"first_name":{"type":"string"},"last_name":{"type":"string"},"title":{"type":"string"},"company_name":{"type":"string"},"company_domain":{"type":"string"}}},"lead_id":{"type":["string","null"],"format":"uuid"},"state":{"type":"string","enum":["pending","claimed","completed","stopped","failed","skipped"]},"company_key":{"type":["string","null"]},"title_key":{"type":["string","null"]},"skip_stage":{"type":["string","null"],"enum":["company","role","person",null]},"skip_reason":{"type":["string","null"]},"skip_by_member":{"type":"boolean"},"member_included":{"type":"boolean"},"fit_segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"research_segment_id":{"type":["string","null"],"format":"uuid"},"ask_key":{"type":"string"},"generation":{"type":"integer","minimum":0},"claimed_at":{"type":["string","null"],"format":"date-time"},"completed_at":{"type":["string","null"],"format":"date-time"},"identity_confidence":{"type":["string","null"],"enum":["confirmed","review","not_found",null]},"found":{"type":["object","null"],"properties":{"linkedin_url":{"type":["string","null"]},"email":{"type":["string","null"]},"email_status":{"type":["string","null"]},"title":{"type":["string","null"]},"company_name":{"type":["string","null"]},"company_domain":{"type":["string","null"]},"mismatch_reason":{"type":["string","null"]},"evidence":{"type":"array","items":{"type":"object","properties":{"url":{"type":"string"},"claim":{"type":"string"}},"required":["url","claim"]}}}},"tier":{"type":["string","null"],"enum":["A","B","C",null]},"tier_reason":{"type":["string","null"]},"draft":{"type":["object","null"],"properties":{"linkedin_message":{"type":"string","minLength":1,"pattern":"\\S"},"email_subject":{"type":"string","minLength":1,"pattern":"\\S"},"email_body":{"type":"string","minLength":1,"pattern":"\\S"}},"required":["linkedin_message","email_subject","email_body"]},"member_decision":{"type":["string","null"],"enum":["this_is_person","not_this_person",null]},"failure":{"type":["string","null"]}},"required":["row_id","person","lead_id","state","company_key","title_key","skip_stage","skip_reason","skip_by_member","ask_key","generation","claimed_at","completed_at","identity_confidence","found","tier","tier_reason","draft","member_decision","failure"]},"maxItems":5000},"conference_criterion":{"type":["string","null"]}},"required":["event_url","event_state","event","workspace_id","list_id","total","completed","remaining","stopped","to_research","skipped_company","skipped_role","avg_seconds","slots","eta_seconds","research_started_at","research_stopped_at","samples_approved_at","samples_approved_by","screen_state","screen","rows"]}}}},"400":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/workspace/conferences/{id}/companies/approve":{"post":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"id","in":"path"},{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":false}}}},"responses":{"200":{"description":"Approve the reviewed companies and start job title screening for the people still included.","content":{"application/json":{"schema":{"type":"object","properties":{"event_url":{"type":"string"},"event_state":{"type":"string","enum":["researching","ready","failed","confirmed"]},"event":{"type":["object","null"],"properties":{"name":{"type":"string","minLength":1,"maxLength":200,"pattern":"\\S"},"starts_on":{"type":"string","format":"date"},"ends_on":{"type":["string","null"],"format":"date"},"location":{"type":["string","null"]},"audience":{"type":"string","minLength":1,"pattern":"\\S"},"summary":{"type":"string","minLength":1,"pattern":"\\S"}},"required":["name","starts_on","ends_on","location","audience","summary"]},"workspace_id":{"type":"string","format":"uuid"},"list_id":{"type":"string","format":"uuid"},"total":{"type":"integer","minimum":0},"completed":{"type":"integer","minimum":0},"remaining":{"type":"integer","minimum":0},"stopped":{"type":"integer","minimum":0},"to_research":{"type":"integer","minimum":0},"skipped_company":{"type":"integer","minimum":0},"skipped_role":{"type":"integer","minimum":0},"avg_seconds":{"type":"number","minimum":0},"slots":{"type":"integer","exclusiveMinimum":0},"eta_seconds":{"type":"number","minimum":0},"research_started_at":{"type":["string","null"],"format":"date-time"},"research_stopped_at":{"type":["string","null"],"format":"date-time"},"samples_approved_at":{"type":["string","null"],"format":"date-time"},"samples_approved_by":{"type":["string","null"],"format":"uuid"},"segments":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"priority":{"type":"integer"},"finite_segment_id":{"type":"string","format":"uuid"},"journey_ref":{"type":["string","null"],"format":"uuid"},"campaign_ref":{"type":["string","null"],"format":"uuid"},"fit_state":{"type":"string","enum":["pending","ready","failed"]}},"required":["id","name","priority","finite_segment_id","journey_ref","campaign_ref","fit_state"]}},"screen_state":{"type":["string","null"],"enum":["fit","companies","company_review","roles","ready",null]},"screen":{"type":"object","properties":{"companies":{"type":"object","properties":{"total":{"type":"integer","minimum":0},"done":{"type":"integer","minimum":0},"skipped":{"type":"integer","minimum":0}},"required":["total","done","skipped"]},"roles":{"type":"object","properties":{"total":{"type":"integer","minimum":0},"done":{"type":"integer","minimum":0},"skipped":{"type":"integer","minimum":0}},"required":["total","done","skipped"]},"company_list":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"verdict":{"type":["string","null"],"enum":["keep","skip",null]},"reason":{"type":["string","null"]},"segment_verdicts":{"type":"array","items":{"type":"object","properties":{"segment_id":{"type":"string","format":"uuid"},"keep":{"type":["boolean","null"]},"reason":{"type":["string","null"]}},"required":["segment_id","keep","reason"]}},"fit_segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"domain":{"type":["string","null"]},"people":{"type":"integer","minimum":0},"included":{"type":"integer","minimum":0}},"required":["key","label","verdict","reason","domain","people","included"]}},"role_list":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"verdict":{"type":["string","null"],"enum":["keep","skip",null]},"reason":{"type":["string","null"]},"segment_verdicts":{"type":"array","items":{"type":"object","properties":{"segment_id":{"type":"string","format":"uuid"},"keep":{"type":["boolean","null"]},"reason":{"type":["string","null"]}},"required":["segment_id","keep","reason"]}},"fit_segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}}},"required":["key","label","verdict","reason"]}}},"required":["companies","roles","company_list","role_list"]},"rows":{"type":"array","items":{"type":"object","properties":{"row_id":{"type":"string"},"person":{"type":"object","properties":{"lead_id":{"type":"string"},"email":{"type":"string"},"linkedin_url":{"type":"string"},"first_name":{"type":"string"},"last_name":{"type":"string"},"title":{"type":"string"},"company_name":{"type":"string"},"company_domain":{"type":"string"}}},"lead_id":{"type":["string","null"],"format":"uuid"},"state":{"type":"string","enum":["pending","claimed","completed","stopped","failed","skipped"]},"company_key":{"type":["string","null"]},"title_key":{"type":["string","null"]},"skip_stage":{"type":["string","null"],"enum":["company","role","person",null]},"skip_reason":{"type":["string","null"]},"skip_by_member":{"type":"boolean"},"member_included":{"type":"boolean"},"fit_segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"research_segment_id":{"type":["string","null"],"format":"uuid"},"ask_key":{"type":"string"},"generation":{"type":"integer","minimum":0},"claimed_at":{"type":["string","null"],"format":"date-time"},"completed_at":{"type":["string","null"],"format":"date-time"},"identity_confidence":{"type":["string","null"],"enum":["confirmed","review","not_found",null]},"found":{"type":["object","null"],"properties":{"linkedin_url":{"type":["string","null"]},"email":{"type":["string","null"]},"email_status":{"type":["string","null"]},"title":{"type":["string","null"]},"company_name":{"type":["string","null"]},"company_domain":{"type":["string","null"]},"mismatch_reason":{"type":["string","null"]},"evidence":{"type":"array","items":{"type":"object","properties":{"url":{"type":"string"},"claim":{"type":"string"}},"required":["url","claim"]}}}},"tier":{"type":["string","null"],"enum":["A","B","C",null]},"tier_reason":{"type":["string","null"]},"draft":{"type":["object","null"],"properties":{"linkedin_message":{"type":"string","minLength":1,"pattern":"\\S"},"email_subject":{"type":"string","minLength":1,"pattern":"\\S"},"email_body":{"type":"string","minLength":1,"pattern":"\\S"}},"required":["linkedin_message","email_subject","email_body"]},"member_decision":{"type":["string","null"],"enum":["this_is_person","not_this_person",null]},"failure":{"type":["string","null"]}},"required":["row_id","person","lead_id","state","company_key","title_key","skip_stage","skip_reason","skip_by_member","ask_key","generation","claimed_at","completed_at","identity_confidence","found","tier","tier_reason","draft","member_decision","failure"]},"maxItems":5000},"conference_criterion":{"type":["string","null"]}},"required":["event_url","event_state","event","workspace_id","list_id","total","completed","remaining","stopped","to_research","skipped_company","skipped_role","avg_seconds","slots","eta_seconds","research_started_at","research_stopped_at","samples_approved_at","samples_approved_by","screen_state","screen","rows"]}}}},"400":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/workspace/conferences/{id}/samples/approve":{"post":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"id","in":"path"},{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":false}}}},"responses":{"200":{"description":"Approve reviewed sample drafts before selecting leads for enrollment.","content":{"application/json":{"schema":{"type":"object","properties":{"event_url":{"type":"string"},"event_state":{"type":"string","enum":["researching","ready","failed","confirmed"]},"event":{"type":["object","null"],"properties":{"name":{"type":"string","minLength":1,"maxLength":200,"pattern":"\\S"},"starts_on":{"type":"string","format":"date"},"ends_on":{"type":["string","null"],"format":"date"},"location":{"type":["string","null"]},"audience":{"type":"string","minLength":1,"pattern":"\\S"},"summary":{"type":"string","minLength":1,"pattern":"\\S"}},"required":["name","starts_on","ends_on","location","audience","summary"]},"workspace_id":{"type":"string","format":"uuid"},"list_id":{"type":"string","format":"uuid"},"total":{"type":"integer","minimum":0},"completed":{"type":"integer","minimum":0},"remaining":{"type":"integer","minimum":0},"stopped":{"type":"integer","minimum":0},"to_research":{"type":"integer","minimum":0},"skipped_company":{"type":"integer","minimum":0},"skipped_role":{"type":"integer","minimum":0},"avg_seconds":{"type":"number","minimum":0},"slots":{"type":"integer","exclusiveMinimum":0},"eta_seconds":{"type":"number","minimum":0},"research_started_at":{"type":["string","null"],"format":"date-time"},"research_stopped_at":{"type":["string","null"],"format":"date-time"},"samples_approved_at":{"type":["string","null"],"format":"date-time"},"samples_approved_by":{"type":["string","null"],"format":"uuid"},"segments":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"priority":{"type":"integer"},"finite_segment_id":{"type":"string","format":"uuid"},"journey_ref":{"type":["string","null"],"format":"uuid"},"campaign_ref":{"type":["string","null"],"format":"uuid"},"fit_state":{"type":"string","enum":["pending","ready","failed"]}},"required":["id","name","priority","finite_segment_id","journey_ref","campaign_ref","fit_state"]}},"screen_state":{"type":["string","null"],"enum":["fit","companies","company_review","roles","ready",null]},"screen":{"type":"object","properties":{"companies":{"type":"object","properties":{"total":{"type":"integer","minimum":0},"done":{"type":"integer","minimum":0},"skipped":{"type":"integer","minimum":0}},"required":["total","done","skipped"]},"roles":{"type":"object","properties":{"total":{"type":"integer","minimum":0},"done":{"type":"integer","minimum":0},"skipped":{"type":"integer","minimum":0}},"required":["total","done","skipped"]},"company_list":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"verdict":{"type":["string","null"],"enum":["keep","skip",null]},"reason":{"type":["string","null"]},"segment_verdicts":{"type":"array","items":{"type":"object","properties":{"segment_id":{"type":"string","format":"uuid"},"keep":{"type":["boolean","null"]},"reason":{"type":["string","null"]}},"required":["segment_id","keep","reason"]}},"fit_segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"domain":{"type":["string","null"]},"people":{"type":"integer","minimum":0},"included":{"type":"integer","minimum":0}},"required":["key","label","verdict","reason","domain","people","included"]}},"role_list":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"verdict":{"type":["string","null"],"enum":["keep","skip",null]},"reason":{"type":["string","null"]},"segment_verdicts":{"type":"array","items":{"type":"object","properties":{"segment_id":{"type":"string","format":"uuid"},"keep":{"type":["boolean","null"]},"reason":{"type":["string","null"]}},"required":["segment_id","keep","reason"]}},"fit_segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}}},"required":["key","label","verdict","reason"]}}},"required":["companies","roles","company_list","role_list"]},"rows":{"type":"array","items":{"type":"object","properties":{"row_id":{"type":"string"},"person":{"type":"object","properties":{"lead_id":{"type":"string"},"email":{"type":"string"},"linkedin_url":{"type":"string"},"first_name":{"type":"string"},"last_name":{"type":"string"},"title":{"type":"string"},"company_name":{"type":"string"},"company_domain":{"type":"string"}}},"lead_id":{"type":["string","null"],"format":"uuid"},"state":{"type":"string","enum":["pending","claimed","completed","stopped","failed","skipped"]},"company_key":{"type":["string","null"]},"title_key":{"type":["string","null"]},"skip_stage":{"type":["string","null"],"enum":["company","role","person",null]},"skip_reason":{"type":["string","null"]},"skip_by_member":{"type":"boolean"},"member_included":{"type":"boolean"},"fit_segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"research_segment_id":{"type":["string","null"],"format":"uuid"},"ask_key":{"type":"string"},"generation":{"type":"integer","minimum":0},"claimed_at":{"type":["string","null"],"format":"date-time"},"completed_at":{"type":["string","null"],"format":"date-time"},"identity_confidence":{"type":["string","null"],"enum":["confirmed","review","not_found",null]},"found":{"type":["object","null"],"properties":{"linkedin_url":{"type":["string","null"]},"email":{"type":["string","null"]},"email_status":{"type":["string","null"]},"title":{"type":["string","null"]},"company_name":{"type":["string","null"]},"company_domain":{"type":["string","null"]},"mismatch_reason":{"type":["string","null"]},"evidence":{"type":"array","items":{"type":"object","properties":{"url":{"type":"string"},"claim":{"type":"string"}},"required":["url","claim"]}}}},"tier":{"type":["string","null"],"enum":["A","B","C",null]},"tier_reason":{"type":["string","null"]},"draft":{"type":["object","null"],"properties":{"linkedin_message":{"type":"string","minLength":1,"pattern":"\\S"},"email_subject":{"type":"string","minLength":1,"pattern":"\\S"},"email_body":{"type":"string","minLength":1,"pattern":"\\S"}},"required":["linkedin_message","email_subject","email_body"]},"member_decision":{"type":["string","null"],"enum":["this_is_person","not_this_person",null]},"failure":{"type":["string","null"]}},"required":["row_id","person","lead_id","state","company_key","title_key","skip_stage","skip_reason","skip_by_member","ask_key","generation","claimed_at","completed_at","identity_confidence","found","tier","tier_reason","draft","member_decision","failure"]},"maxItems":5000},"conference_criterion":{"type":["string","null"]}},"required":["event_url","event_state","event","workspace_id","list_id","total","completed","remaining","stopped","to_research","skipped_company","skipped_role","avg_seconds","slots","eta_seconds","research_started_at","research_stopped_at","samples_approved_at","samples_approved_by","screen_state","screen","rows"]}}}},"400":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/workspace/conferences/{id}/enrollment":{"post":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"id","in":"path"},{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"revision_ref":{"type":"string","format":"uuid"},"digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"request_ref":{"type":"string","format":"uuid"},"campaign_ref":{"type":"string","format":"uuid"},"expected_version":{"type":"integer","minimum":0},"journey_ref":{"type":"string","format":"uuid"},"journey_revision_ref":{"type":"string","format":"uuid"},"journey_digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"journey_expected_version":{"type":"integer","exclusiveMinimum":0},"test_ref":{"type":"string","format":"uuid"}},"required":["revision_ref","digest","request_ref","campaign_ref","expected_version","journey_ref","journey_revision_ref","journey_digest","journey_expected_version","test_ref"],"additionalProperties":false},{"type":"object","properties":{"lead_ids":{"type":"array","items":{"type":"string","format":"uuid"},"minItems":1,"maxItems":5000},"request_ref":{"type":"string","format":"uuid"}},"required":["lead_ids"],"additionalProperties":false}]}}}},"responses":{"200":{"description":"Enroll the selected eligible lead_ids once after sample approval, grouped by research segment and event Campaign. Retry the identical selection after uncertainty. Older clients can supply exact Journey, Campaign and test pins.","content":{"application/json":{"schema":{"type":"object","properties":{"workspace_id":{"type":"string","format":"uuid"},"list_id":{"type":"string","format":"uuid"},"request_ref":{"type":"string","format":"uuid"},"journey_ref":{"type":"string","format":"uuid"},"journey_revision_ref":{"type":"string","format":"uuid"},"campaign_ref":{"type":"string","format":"uuid"},"revision_ref":{"type":"string","format":"uuid"},"test_ref":{"type":["string","null"],"format":"uuid"},"executable_version_ref":{"type":"string","format":"uuid"},"member_count":{"type":"integer","minimum":0,"maximum":5000},"status":{"type":"string","enum":["waiting_compilation","blocked","consented","finished"]},"cause":{"type":["string","null"]},"activation":{"type":["object","null"],"properties":{"workspace_id":{"type":"string","format":"uuid"},"list_id":{"type":"string","format":"uuid"},"members":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"lead_ref":{"type":"string","format":"uuid"},"segment_ref":{"type":"string","format":"uuid"},"journey_ref":{"type":"string","format":"uuid"},"executable_version_ref":{"type":"string","format":"uuid"},"member_run_ref":{"type":"string","format":"uuid"},"research_ref":{"type":"string","format":"uuid"},"expected_destination_request_ref":{"type":"string","format":"uuid"},"destination_request_ref":{"type":["string","null"],"format":"uuid"},"state":{"type":"string","enum":["eligible","waiting","rejected"]},"cause":{"type":["string","null"]},"canonical_run_ref":{"type":"null"},"outreach_progress":{"type":"string","enum":["not_activated","pending"]}},"required":["lead_ref","segment_ref","journey_ref","executable_version_ref","member_run_ref","research_ref","destination_request_ref","state","cause","canonical_run_ref","outreach_progress"]},{"type":"object","properties":{"lead_ref":{"type":"string","format":"uuid"},"segment_ref":{"type":"string","format":"uuid"},"journey_ref":{"type":"string","format":"uuid"},"executable_version_ref":{"type":"string","format":"uuid"},"member_run_ref":{"type":"string","format":"uuid"},"research_ref":{"type":"string","format":"uuid"},"expected_destination_request_ref":{"type":"string","format":"uuid"},"destination_request_ref":{"type":["string","null"],"format":"uuid"},"state":{"type":"string","enum":["admitted"]},"cause":{"type":"null"},"canonical_run_ref":{"type":"string","format":"uuid"},"outreach_progress":{"type":"string","enum":["active","paused","snoozed","completed","switched_channel","suppressed","re_enrolling"]}},"required":["lead_ref","segment_ref","journey_ref","executable_version_ref","member_run_ref","research_ref","destination_request_ref","state","cause","canonical_run_ref","outreach_progress"]}]},"maxItems":5000}},"required":["workspace_id","list_id","members"]},"groups":{"type":"array","items":{"type":"object","properties":{"workspace_id":{"type":"string","format":"uuid"},"list_id":{"type":"string","format":"uuid"},"request_ref":{"type":"string","format":"uuid"},"journey_ref":{"type":"string","format":"uuid"},"journey_revision_ref":{"type":"string","format":"uuid"},"campaign_ref":{"type":"string","format":"uuid"},"revision_ref":{"type":"string","format":"uuid"},"test_ref":{"type":["string","null"],"format":"uuid"},"executable_version_ref":{"type":"string","format":"uuid"},"member_count":{"type":"integer","minimum":0,"maximum":5000},"status":{"type":"string","enum":["waiting_compilation","blocked","consented","finished"]},"cause":{"type":["string","null"]},"activation":{"type":["object","null"],"properties":{"workspace_id":{"type":"string","format":"uuid"},"list_id":{"type":"string","format":"uuid"},"members":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"lead_ref":{"type":"string","format":"uuid"},"segment_ref":{"type":"string","format":"uuid"},"journey_ref":{"type":"string","format":"uuid"},"executable_version_ref":{"type":"string","format":"uuid"},"member_run_ref":{"type":"string","format":"uuid"},"research_ref":{"type":"string","format":"uuid"},"expected_destination_request_ref":{"type":"string","format":"uuid"},"destination_request_ref":{"type":["string","null"],"format":"uuid"},"state":{"type":"string","enum":["eligible","waiting","rejected"]},"cause":{"type":["string","null"]},"canonical_run_ref":{"type":"null"},"outreach_progress":{"type":"string","enum":["not_activated","pending"]}},"required":["lead_ref","segment_ref","journey_ref","executable_version_ref","member_run_ref","research_ref","destination_request_ref","state","cause","canonical_run_ref","outreach_progress"]},{"type":"object","properties":{"lead_ref":{"type":"string","format":"uuid"},"segment_ref":{"type":"string","format":"uuid"},"journey_ref":{"type":"string","format":"uuid"},"executable_version_ref":{"type":"string","format":"uuid"},"member_run_ref":{"type":"string","format":"uuid"},"research_ref":{"type":"string","format":"uuid"},"expected_destination_request_ref":{"type":"string","format":"uuid"},"destination_request_ref":{"type":["string","null"],"format":"uuid"},"state":{"type":"string","enum":["admitted"]},"cause":{"type":"null"},"canonical_run_ref":{"type":"string","format":"uuid"},"outreach_progress":{"type":"string","enum":["active","paused","snoozed","completed","switched_channel","suppressed","re_enrolling"]}},"required":["lead_ref","segment_ref","journey_ref","executable_version_ref","member_run_ref","research_ref","destination_request_ref","state","cause","canonical_run_ref","outreach_progress"]}]},"maxItems":5000}},"required":["workspace_id","list_id","members"]},"segment_id":{"type":"string","format":"uuid"},"finite_segment_id":{"type":"string","format":"uuid"},"lead_ids":{"type":"array","items":{"type":"string","format":"uuid"},"minItems":1,"maxItems":5000}},"required":["workspace_id","list_id","request_ref","journey_ref","journey_revision_ref","campaign_ref","revision_ref","test_ref","executable_version_ref","member_count","status","cause","activation","segment_id","finite_segment_id","lead_ids"]},"minItems":1,"maxItems":5000}},"required":["workspace_id","list_id","request_ref","journey_ref","journey_revision_ref","campaign_ref","revision_ref","test_ref","executable_version_ref","member_count","status","cause","activation"]}}}},"400":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}},"get":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"id","in":"path"},{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"responses":{"200":{"description":"Read enrollment progress for each research segment, including its leads, event Campaign, executable and activation status. Does not publish, compile, grant consent or admit on read.","content":{"application/json":{"schema":{"type":"object","properties":{"workspace_id":{"type":"string","format":"uuid"},"list_id":{"type":"string","format":"uuid"},"request_ref":{"type":"string","format":"uuid"},"journey_ref":{"type":"string","format":"uuid"},"journey_revision_ref":{"type":"string","format":"uuid"},"campaign_ref":{"type":"string","format":"uuid"},"revision_ref":{"type":"string","format":"uuid"},"test_ref":{"type":["string","null"],"format":"uuid"},"executable_version_ref":{"type":"string","format":"uuid"},"member_count":{"type":"integer","minimum":0,"maximum":5000},"status":{"type":"string","enum":["waiting_compilation","blocked","consented","finished"]},"cause":{"type":["string","null"]},"activation":{"type":["object","null"],"properties":{"workspace_id":{"type":"string","format":"uuid"},"list_id":{"type":"string","format":"uuid"},"members":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"lead_ref":{"type":"string","format":"uuid"},"segment_ref":{"type":"string","format":"uuid"},"journey_ref":{"type":"string","format":"uuid"},"executable_version_ref":{"type":"string","format":"uuid"},"member_run_ref":{"type":"string","format":"uuid"},"research_ref":{"type":"string","format":"uuid"},"expected_destination_request_ref":{"type":"string","format":"uuid"},"destination_request_ref":{"type":["string","null"],"format":"uuid"},"state":{"type":"string","enum":["eligible","waiting","rejected"]},"cause":{"type":["string","null"]},"canonical_run_ref":{"type":"null"},"outreach_progress":{"type":"string","enum":["not_activated","pending"]}},"required":["lead_ref","segment_ref","journey_ref","executable_version_ref","member_run_ref","research_ref","destination_request_ref","state","cause","canonical_run_ref","outreach_progress"]},{"type":"object","properties":{"lead_ref":{"type":"string","format":"uuid"},"segment_ref":{"type":"string","format":"uuid"},"journey_ref":{"type":"string","format":"uuid"},"executable_version_ref":{"type":"string","format":"uuid"},"member_run_ref":{"type":"string","format":"uuid"},"research_ref":{"type":"string","format":"uuid"},"expected_destination_request_ref":{"type":"string","format":"uuid"},"destination_request_ref":{"type":["string","null"],"format":"uuid"},"state":{"type":"string","enum":["admitted"]},"cause":{"type":"null"},"canonical_run_ref":{"type":"string","format":"uuid"},"outreach_progress":{"type":"string","enum":["active","paused","snoozed","completed","switched_channel","suppressed","re_enrolling"]}},"required":["lead_ref","segment_ref","journey_ref","executable_version_ref","member_run_ref","research_ref","destination_request_ref","state","cause","canonical_run_ref","outreach_progress"]}]},"maxItems":5000}},"required":["workspace_id","list_id","members"]},"groups":{"type":"array","items":{"type":"object","properties":{"workspace_id":{"type":"string","format":"uuid"},"list_id":{"type":"string","format":"uuid"},"request_ref":{"type":"string","format":"uuid"},"journey_ref":{"type":"string","format":"uuid"},"journey_revision_ref":{"type":"string","format":"uuid"},"campaign_ref":{"type":"string","format":"uuid"},"revision_ref":{"type":"string","format":"uuid"},"test_ref":{"type":["string","null"],"format":"uuid"},"executable_version_ref":{"type":"string","format":"uuid"},"member_count":{"type":"integer","minimum":0,"maximum":5000},"status":{"type":"string","enum":["waiting_compilation","blocked","consented","finished"]},"cause":{"type":["string","null"]},"activation":{"type":["object","null"],"properties":{"workspace_id":{"type":"string","format":"uuid"},"list_id":{"type":"string","format":"uuid"},"members":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"lead_ref":{"type":"string","format":"uuid"},"segment_ref":{"type":"string","format":"uuid"},"journey_ref":{"type":"string","format":"uuid"},"executable_version_ref":{"type":"string","format":"uuid"},"member_run_ref":{"type":"string","format":"uuid"},"research_ref":{"type":"string","format":"uuid"},"expected_destination_request_ref":{"type":"string","format":"uuid"},"destination_request_ref":{"type":["string","null"],"format":"uuid"},"state":{"type":"string","enum":["eligible","waiting","rejected"]},"cause":{"type":["string","null"]},"canonical_run_ref":{"type":"null"},"outreach_progress":{"type":"string","enum":["not_activated","pending"]}},"required":["lead_ref","segment_ref","journey_ref","executable_version_ref","member_run_ref","research_ref","destination_request_ref","state","cause","canonical_run_ref","outreach_progress"]},{"type":"object","properties":{"lead_ref":{"type":"string","format":"uuid"},"segment_ref":{"type":"string","format":"uuid"},"journey_ref":{"type":"string","format":"uuid"},"executable_version_ref":{"type":"string","format":"uuid"},"member_run_ref":{"type":"string","format":"uuid"},"research_ref":{"type":"string","format":"uuid"},"expected_destination_request_ref":{"type":"string","format":"uuid"},"destination_request_ref":{"type":["string","null"],"format":"uuid"},"state":{"type":"string","enum":["admitted"]},"cause":{"type":"null"},"canonical_run_ref":{"type":"string","format":"uuid"},"outreach_progress":{"type":"string","enum":["active","paused","snoozed","completed","switched_channel","suppressed","re_enrolling"]}},"required":["lead_ref","segment_ref","journey_ref","executable_version_ref","member_run_ref","research_ref","destination_request_ref","state","cause","canonical_run_ref","outreach_progress"]}]},"maxItems":5000}},"required":["workspace_id","list_id","members"]},"segment_id":{"type":"string","format":"uuid"},"finite_segment_id":{"type":"string","format":"uuid"},"lead_ids":{"type":"array","items":{"type":"string","format":"uuid"},"minItems":1,"maxItems":5000}},"required":["workspace_id","list_id","request_ref","journey_ref","journey_revision_ref","campaign_ref","revision_ref","test_ref","executable_version_ref","member_count","status","cause","activation","segment_id","finite_segment_id","lead_ids"]},"minItems":1,"maxItems":5000}},"required":["workspace_id","list_id","request_ref","journey_ref","journey_revision_ref","campaign_ref","revision_ref","test_ref","executable_version_ref","member_count","status","cause","activation"]}}}},"400":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/workspace/conferences/{id}/preparation":{"post":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"id","in":"path"},{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"revision_ref":{"type":"string","format":"uuid"},"digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"request_ref":{"type":"string","format":"uuid"},"campaign_ref":{"type":"string","format":"uuid"},"expected_version":{"type":"integer","minimum":0}},"required":["revision_ref","digest","request_ref","campaign_ref","expected_version"],"additionalProperties":false}}}},"responses":{"200":{"description":"Persist one Research and generate 5 samples consent for the list and exact event Campaign candidate. Background workers continue after the browser closes. Never retries an uncertain paid sample as new work; does not enroll.","content":{"application/json":{"schema":{"type":"object","properties":{"workspace_id":{"type":"string","format":"uuid"},"list_id":{"type":"string","format":"uuid"},"request_ref":{"type":"string","format":"uuid"},"journey_ref":{"type":"string","format":"uuid"},"campaign_ref":{"type":"string","format":"uuid"},"revision_ref":{"type":"string","format":"uuid"},"digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"lead_count":{"type":"integer","minimum":0,"maximum":5000},"target_sample_count":{"type":"number","enum":[5]},"eligible_count":{"type":"integer","minimum":0,"maximum":5},"sample_count":{"type":"integer","minimum":0,"maximum":5},"status":{"type":"string","enum":["researching","waiting","sampling","completed","failed","insufficient_qualified"]},"cause":{"type":["string","null"]},"test_ref":{"type":["string","null"],"format":"uuid"},"lab_run_refs":{"type":"array","items":{"type":"string","format":"uuid"},"maxItems":5},"test":{"type":["object","null"],"properties":{"test_ref":{"type":"string","format":"uuid"},"request_ref":{"type":"string","format":"uuid"},"campaign_ref":{"type":"string","format":"uuid"},"revision_ref":{"type":"string","format":"uuid"},"digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"baseline_test_ref":{"type":["string","null"],"format":"uuid"},"status":{"type":"string","enum":["queued","running","completed","failed"]},"created_at":{"type":"string","format":"date-time"},"samples":{"type":"array","items":{"type":"object","properties":{"lead_ref":{"type":"string","format":"uuid"},"lab_run_ref":{"type":"string","format":"uuid"},"status":{"type":"string","enum":["queued","running","succeeded","failed","canceled"]},"lane":{"type":["string","null"]},"opener":{"type":["string","null"],"enum":["cold","linkedin_bridge",null]},"output":{"type":["object","null"],"properties":{"output_ref":{"type":"string","format":"uuid"},"digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"created_at":{"type":"string","format":"date-time"},"content":{"anyOf":[{"type":"object","properties":{"linkedin_messages":{"type":"array","items":{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":3000}},"required":["text"]},"minItems":1,"maxItems":3}},"required":["linkedin_messages"]},{"type":"object","properties":{"email_steps":{"type":"array","items":{"type":"object","properties":{"subject":{"type":"string","minLength":1,"maxLength":300},"text":{"type":"string","minLength":1,"maxLength":20000},"delay_minutes":{"type":"integer","minimum":0,"maximum":43200}},"required":["subject","text","delay_minutes"]},"minItems":1,"maxItems":5}},"required":["email_steps"]}]},"selection":{"type":"object","properties":{"lane":{"type":["string","null"]},"opener":{"type":["string","null"],"enum":["cold","linkedin_bridge",null]},"template_ids":{"type":"array","items":{"type":"string","minLength":1,"maxLength":100},"minItems":1,"maxItems":5},"approach_type":{"type":"string","enum":["direct","pain","personal","strategic"]}},"required":["lane","opener"]},"context":{"type":"object","properties":{"revision_ref":{"type":"string","format":"uuid"},"digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"profile_version":{"type":"integer","exclusiveMinimum":0},"voice_version":{"type":"integer","minimum":0},"sender_id":{"type":"string","format":"uuid"},"sender_version":{"type":"integer","exclusiveMinimum":0},"prompt_digest":{"type":"string","pattern":"^[a-f0-9]{64}$"}},"required":["revision_ref","digest","profile_version","voice_version","sender_id","sender_version","prompt_digest"]}},"required":["output_ref","digest","created_at","content","selection","context"]},"baseline_output":{"type":["object","null"],"properties":{"output_ref":{"type":"string","format":"uuid"},"digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"created_at":{"type":"string","format":"date-time"},"content":{"anyOf":[{"type":"object","properties":{"linkedin_messages":{"type":"array","items":{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":3000}},"required":["text"]},"minItems":1,"maxItems":3}},"required":["linkedin_messages"]},{"type":"object","properties":{"email_steps":{"type":"array","items":{"type":"object","properties":{"subject":{"type":"string","minLength":1,"maxLength":300},"text":{"type":"string","minLength":1,"maxLength":20000},"delay_minutes":{"type":"integer","minimum":0,"maximum":43200}},"required":["subject","text","delay_minutes"]},"minItems":1,"maxItems":5}},"required":["email_steps"]}]},"selection":{"type":"object","properties":{"lane":{"type":["string","null"]},"opener":{"type":["string","null"],"enum":["cold","linkedin_bridge",null]},"template_ids":{"type":"array","items":{"type":"string","minLength":1,"maxLength":100},"minItems":1,"maxItems":5},"approach_type":{"type":"string","enum":["direct","pain","personal","strategic"]}},"required":["lane","opener"]},"context":{"type":"object","properties":{"revision_ref":{"type":"string","format":"uuid"},"digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"profile_version":{"type":"integer","exclusiveMinimum":0},"voice_version":{"type":"integer","minimum":0},"sender_id":{"type":"string","format":"uuid"},"sender_version":{"type":"integer","exclusiveMinimum":0},"prompt_digest":{"type":"string","pattern":"^[a-f0-9]{64}$"}},"required":["revision_ref","digest","profile_version","voice_version","sender_id","sender_version","prompt_digest"]}},"required":["output_ref","digest","created_at","content","selection","context"]},"changes":{"type":"array","items":{"type":"string","enum":["research_changed","lead_facts_changed","sender_changed","business_changed","composition_context_changed"]}},"failure":{"type":["object","null"],"properties":{"code":{"type":"string","enum":["composition_held","composition_configuration_invalid","composition_context_unavailable","composition_context_mismatch","composition_templates_unavailable","composition_approaches_unavailable","composition_research_mismatch","composition_receipt_invalid","composition_quality_hold","composition_unexpected","composition_lead_data_missing"]},"stage":{"type":"string","enum":["identity","version","sender_identity","compose","signing"]},"position":{"type":"integer","minimum":1,"maximum":5,"description":"The Campaign step involved, when known."},"cause":{"type":"string","pattern":"^[A-Za-z][A-Za-z0-9_.]{0,63}$"},"http_status":{"type":"integer","minimum":100,"maximum":599},"message":{"type":"string","minLength":1,"maxLength":400,"description":"Founder-facing reason to relay; the API adds it."}},"required":["code"]}},"required":["lead_ref","lab_run_ref","status","lane","opener","output","baseline_output","changes"]},"minItems":1,"maxItems":20}},"required":["test_ref","request_ref","campaign_ref","revision_ref","digest","baseline_test_ref","status","created_at","samples"]}},"required":["workspace_id","list_id","request_ref","journey_ref","campaign_ref","revision_ref","digest","lead_count","target_sample_count","eligible_count","sample_count","status","cause","test_ref","lab_run_refs","test"]}}}},"400":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}},"get":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"id","in":"path"},{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"responses":{"200":{"description":"Read separate research and saved sample progress, count, failure and exact provenance. sample_count counts selected samples, not completed outputs. Read-only; uncertainty never authorizes a replacement paid test.","content":{"application/json":{"schema":{"type":"object","properties":{"workspace_id":{"type":"string","format":"uuid"},"list_id":{"type":"string","format":"uuid"},"request_ref":{"type":"string","format":"uuid"},"journey_ref":{"type":"string","format":"uuid"},"campaign_ref":{"type":"string","format":"uuid"},"revision_ref":{"type":"string","format":"uuid"},"digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"lead_count":{"type":"integer","minimum":0,"maximum":5000},"target_sample_count":{"type":"number","enum":[5]},"eligible_count":{"type":"integer","minimum":0,"maximum":5},"sample_count":{"type":"integer","minimum":0,"maximum":5},"status":{"type":"string","enum":["researching","waiting","sampling","completed","failed","insufficient_qualified"]},"cause":{"type":["string","null"]},"test_ref":{"type":["string","null"],"format":"uuid"},"lab_run_refs":{"type":"array","items":{"type":"string","format":"uuid"},"maxItems":5},"test":{"type":["object","null"],"properties":{"test_ref":{"type":"string","format":"uuid"},"request_ref":{"type":"string","format":"uuid"},"campaign_ref":{"type":"string","format":"uuid"},"revision_ref":{"type":"string","format":"uuid"},"digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"baseline_test_ref":{"type":["string","null"],"format":"uuid"},"status":{"type":"string","enum":["queued","running","completed","failed"]},"created_at":{"type":"string","format":"date-time"},"samples":{"type":"array","items":{"type":"object","properties":{"lead_ref":{"type":"string","format":"uuid"},"lab_run_ref":{"type":"string","format":"uuid"},"status":{"type":"string","enum":["queued","running","succeeded","failed","canceled"]},"lane":{"type":["string","null"]},"opener":{"type":["string","null"],"enum":["cold","linkedin_bridge",null]},"output":{"type":["object","null"],"properties":{"output_ref":{"type":"string","format":"uuid"},"digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"created_at":{"type":"string","format":"date-time"},"content":{"anyOf":[{"type":"object","properties":{"linkedin_messages":{"type":"array","items":{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":3000}},"required":["text"]},"minItems":1,"maxItems":3}},"required":["linkedin_messages"]},{"type":"object","properties":{"email_steps":{"type":"array","items":{"type":"object","properties":{"subject":{"type":"string","minLength":1,"maxLength":300},"text":{"type":"string","minLength":1,"maxLength":20000},"delay_minutes":{"type":"integer","minimum":0,"maximum":43200}},"required":["subject","text","delay_minutes"]},"minItems":1,"maxItems":5}},"required":["email_steps"]}]},"selection":{"type":"object","properties":{"lane":{"type":["string","null"]},"opener":{"type":["string","null"],"enum":["cold","linkedin_bridge",null]},"template_ids":{"type":"array","items":{"type":"string","minLength":1,"maxLength":100},"minItems":1,"maxItems":5},"approach_type":{"type":"string","enum":["direct","pain","personal","strategic"]}},"required":["lane","opener"]},"context":{"type":"object","properties":{"revision_ref":{"type":"string","format":"uuid"},"digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"profile_version":{"type":"integer","exclusiveMinimum":0},"voice_version":{"type":"integer","minimum":0},"sender_id":{"type":"string","format":"uuid"},"sender_version":{"type":"integer","exclusiveMinimum":0},"prompt_digest":{"type":"string","pattern":"^[a-f0-9]{64}$"}},"required":["revision_ref","digest","profile_version","voice_version","sender_id","sender_version","prompt_digest"]}},"required":["output_ref","digest","created_at","content","selection","context"]},"baseline_output":{"type":["object","null"],"properties":{"output_ref":{"type":"string","format":"uuid"},"digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"created_at":{"type":"string","format":"date-time"},"content":{"anyOf":[{"type":"object","properties":{"linkedin_messages":{"type":"array","items":{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":3000}},"required":["text"]},"minItems":1,"maxItems":3}},"required":["linkedin_messages"]},{"type":"object","properties":{"email_steps":{"type":"array","items":{"type":"object","properties":{"subject":{"type":"string","minLength":1,"maxLength":300},"text":{"type":"string","minLength":1,"maxLength":20000},"delay_minutes":{"type":"integer","minimum":0,"maximum":43200}},"required":["subject","text","delay_minutes"]},"minItems":1,"maxItems":5}},"required":["email_steps"]}]},"selection":{"type":"object","properties":{"lane":{"type":["string","null"]},"opener":{"type":["string","null"],"enum":["cold","linkedin_bridge",null]},"template_ids":{"type":"array","items":{"type":"string","minLength":1,"maxLength":100},"minItems":1,"maxItems":5},"approach_type":{"type":"string","enum":["direct","pain","personal","strategic"]}},"required":["lane","opener"]},"context":{"type":"object","properties":{"revision_ref":{"type":"string","format":"uuid"},"digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"profile_version":{"type":"integer","exclusiveMinimum":0},"voice_version":{"type":"integer","minimum":0},"sender_id":{"type":"string","format":"uuid"},"sender_version":{"type":"integer","exclusiveMinimum":0},"prompt_digest":{"type":"string","pattern":"^[a-f0-9]{64}$"}},"required":["revision_ref","digest","profile_version","voice_version","sender_id","sender_version","prompt_digest"]}},"required":["output_ref","digest","created_at","content","selection","context"]},"changes":{"type":"array","items":{"type":"string","enum":["research_changed","lead_facts_changed","sender_changed","business_changed","composition_context_changed"]}},"failure":{"type":["object","null"],"properties":{"code":{"type":"string","enum":["composition_held","composition_configuration_invalid","composition_context_unavailable","composition_context_mismatch","composition_templates_unavailable","composition_approaches_unavailable","composition_research_mismatch","composition_receipt_invalid","composition_quality_hold","composition_unexpected","composition_lead_data_missing"]},"stage":{"type":"string","enum":["identity","version","sender_identity","compose","signing"]},"position":{"type":"integer","minimum":1,"maximum":5,"description":"The Campaign step involved, when known."},"cause":{"type":"string","pattern":"^[A-Za-z][A-Za-z0-9_.]{0,63}$"},"http_status":{"type":"integer","minimum":100,"maximum":599},"message":{"type":"string","minLength":1,"maxLength":400,"description":"Founder-facing reason to relay; the API adds it."}},"required":["code"]}},"required":["lead_ref","lab_run_ref","status","lane","opener","output","baseline_output","changes"]},"minItems":1,"maxItems":20}},"required":["test_ref","request_ref","campaign_ref","revision_ref","digest","baseline_test_ref","status","created_at","samples"]}},"required":["workspace_id","list_id","request_ref","journey_ref","campaign_ref","revision_ref","digest","lead_count","target_sample_count","eligible_count","sample_count","status","cause","test_ref","lab_run_refs","test"]}}}},"400":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/workspace/conferences/inspect":{"post":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"csv":{"type":"string"}},"required":["csv"],"additionalProperties":false}}}},"responses":{"200":{"description":"Inspect suggested_mapping, indexed CSV columns, the first five data rows and total row count. Column indexes preserve duplicate or blank header labels. No persistence or research.","content":{"application/json":{"schema":{"type":"object","properties":{"suggested_mapping":{"type":"object","properties":{"row_id":{"type":"integer","minimum":0,"maximum":31},"segment_id":{"type":"integer","minimum":0,"maximum":31},"lead_id":{"type":"integer","minimum":0,"maximum":31},"email":{"type":"integer","minimum":0,"maximum":31},"linkedin_url":{"type":"integer","minimum":0,"maximum":31},"first_name":{"type":"integer","minimum":0,"maximum":31},"last_name":{"type":"integer","minimum":0,"maximum":31},"title":{"type":"integer","minimum":0,"maximum":31},"company_name":{"type":"integer","minimum":0,"maximum":31},"company_domain":{"type":"integer","minimum":0,"maximum":31},"full_name":{"type":"integer","minimum":0,"maximum":31}}},"columns":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer","minimum":0,"maximum":31},"name":{"type":"string"}},"required":["index","name"]},"minItems":1,"maxItems":32},"sample_rows":{"type":"array","items":{"type":"array","items":{"type":"string"},"minItems":1,"maxItems":32},"minItems":1,"maxItems":5},"row_count":{"type":"integer","minimum":1,"maximum":5000},"header_row":{"type":"integer","minimum":1},"skipped_blank_rows":{"type":"integer","minimum":0}},"required":["suggested_mapping","columns","sample_rows","row_count","header_row","skipped_blank_rows"]}}}},"400":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/workspace/conferences/map":{"post":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"csv":{"type":"string"},"mapping":{"type":"object","properties":{"row_id":{"type":"integer","minimum":0,"maximum":31},"segment_id":{"type":"integer","minimum":0,"maximum":31},"lead_id":{"type":"integer","minimum":0,"maximum":31},"email":{"type":"integer","minimum":0,"maximum":31},"linkedin_url":{"type":"integer","minimum":0,"maximum":31},"first_name":{"type":"integer","minimum":0,"maximum":31},"last_name":{"type":"integer","minimum":0,"maximum":31},"title":{"type":"integer","minimum":0,"maximum":31},"company_name":{"type":"integer","minimum":0,"maximum":31},"company_domain":{"type":"integer","minimum":0,"maximum":31},"full_name":{"type":"integer","minimum":0,"maximum":31}}}},"required":["csv","mapping"],"additionalProperties":false}}}},"responses":{"200":{"description":"Map canonical fields to explicit zero-based CSV column indexes. Returns normalized rows without persistence. Unmapped segment_id is empty: bind explicit segments and list metadata before durable preview.","content":{"application/json":{"schema":{"type":"object","properties":{"rows":{"type":"array","items":{"type":"object","properties":{"row_id":{"type":"string","minLength":1,"maxLength":128},"segment_id":{"type":"string"},"lead_id":{"type":"string"},"email":{"type":"string"},"linkedin_url":{"type":"string"},"first_name":{"type":"string"},"last_name":{"type":"string"},"title":{"type":"string"},"company_name":{"type":"string"},"company_domain":{"type":"string"}},"required":["row_id","segment_id"]},"minItems":1,"maxItems":5000}},"required":["rows"]}}}},"400":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/workspace/conferences/parse":{"post":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"import_id":{"type":"string","format":"uuid"},"name":{"type":"string","minLength":1,"maxLength":200},"event_context":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/ConferenceEventValue"}},"csv":{"type":"string"}},"required":["import_id","name","event_context","csv"],"additionalProperties":false}}}},"responses":{"200":{"description":"Parse bounded CSV to a canonical conference request. No persistence. Preserve this exact request for preview and commit. Read conferences context for parser rules.","content":{"application/json":{"schema":{"type":"object","properties":{"import_id":{"type":"string","format":"uuid"},"name":{"type":"string","minLength":1,"maxLength":200},"event_context":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/ConferenceEventValue"}},"rows":{"type":"array","items":{"type":"object","properties":{"row_id":{"type":"string","minLength":1,"maxLength":128},"segment_id":{"type":"string"},"lead_id":{"type":"string"},"email":{"type":"string"},"linkedin_url":{"type":"string"},"first_name":{"type":"string"},"last_name":{"type":"string"},"title":{"type":"string"},"company_name":{"type":"string"},"company_domain":{"type":"string"}},"required":["row_id","segment_id"]},"minItems":1,"maxItems":5000}},"required":["import_id","name","event_context","rows"]}}}},"400":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/workspace/conferences/preview":{"post":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"import_id":{"type":"string","format":"uuid"},"name":{"type":"string","minLength":1,"maxLength":200},"event_context":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/ConferenceEventValue"}},"rows":{"type":"array","items":{"type":"object","properties":{"row_id":{"type":"string","minLength":1,"maxLength":128},"segment_id":{"type":"string"},"lead_id":{"type":"string"},"email":{"type":"string"},"linkedin_url":{"type":"string"},"first_name":{"type":"string"},"last_name":{"type":"string"},"title":{"type":"string"},"company_name":{"type":"string"},"company_domain":{"type":"string"}},"required":["row_id","segment_id"],"additionalProperties":false},"minItems":1,"maxItems":5000}},"required":["import_id","name","event_context","rows"],"additionalProperties":false}}}},"responses":{"200":{"description":"Preview every row of a conference import using explicit segment ids and supported identity evidence. Reserves this exact request durably; no research, research quota use or outreach. Commit revalidates.","content":{"application/json":{"schema":{"type":"object","properties":{"list_id":{"type":"string","format":"uuid"},"workspace_id":{"type":"string","format":"uuid"},"name":{"type":"string"},"event_context":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/ConferenceEventValue"}},"committed":{"type":"boolean"},"draft_request":{"type":["object","null"],"properties":{"import_id":{"type":"string","format":"uuid"},"name":{"type":"string","minLength":1,"maxLength":200},"event_context":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/ConferenceEventValue"}},"rows":{"type":"array","items":{"type":"object","properties":{"row_id":{"type":"string","minLength":1,"maxLength":128},"segment_id":{"type":"string"},"lead_id":{"type":"string"},"email":{"type":"string"},"linkedin_url":{"type":"string"},"first_name":{"type":"string"},"last_name":{"type":"string"},"title":{"type":"string"},"company_name":{"type":"string"},"company_domain":{"type":"string"}},"required":["row_id","segment_id"]},"minItems":1,"maxItems":5000}},"required":["import_id","name","event_context","rows"]},"rows":{"type":"array","items":{"type":"object","properties":{"row_id":{"type":"string"},"segment_id":{"type":"string"},"lead_id":{"type":["string","null"],"format":"uuid"},"status":{"type":"string","enum":["invalid","unresolved","duplicate","existing","already_contacted","excluded","mapped","lookup"]},"reason":{"type":"string"},"duplicate_of":{"type":["string","null"]}},"required":["row_id","segment_id","lead_id","status","reason","duplicate_of"]},"maxItems":5000}},"required":["list_id","workspace_id","name","event_context","committed","rows"]}}}},"400":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/workspace/conferences/commit":{"post":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"import_id":{"type":"string","format":"uuid"},"name":{"type":"string","minLength":1,"maxLength":200},"event_context":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/ConferenceEventValue"}},"rows":{"type":"array","items":{"type":"object","properties":{"row_id":{"type":"string","minLength":1,"maxLength":128},"segment_id":{"type":"string"},"lead_id":{"type":"string"},"email":{"type":"string"},"linkedin_url":{"type":"string"},"first_name":{"type":"string"},"last_name":{"type":"string"},"title":{"type":"string"},"company_name":{"type":"string"},"company_domain":{"type":"string"}},"required":["row_id","segment_id"],"additionalProperties":false},"minItems":1,"maxItems":5000}},"required":["import_id","name","event_context","rows"],"additionalProperties":false}}}},"responses":{"200":{"description":"Commit conference list membership and event context atomically. Retry the identical full request with its import_id; changed retries conflict. Does not start research or activate outreach.","content":{"application/json":{"schema":{"type":"object","properties":{"list_id":{"type":"string","format":"uuid"},"workspace_id":{"type":"string","format":"uuid"},"name":{"type":"string"},"event_context":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/ConferenceEventValue"}},"committed":{"type":"boolean"},"draft_request":{"type":["object","null"],"properties":{"import_id":{"type":"string","format":"uuid"},"name":{"type":"string","minLength":1,"maxLength":200},"event_context":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/ConferenceEventValue"}},"rows":{"type":"array","items":{"type":"object","properties":{"row_id":{"type":"string","minLength":1,"maxLength":128},"segment_id":{"type":"string"},"lead_id":{"type":"string"},"email":{"type":"string"},"linkedin_url":{"type":"string"},"first_name":{"type":"string"},"last_name":{"type":"string"},"title":{"type":"string"},"company_name":{"type":"string"},"company_domain":{"type":"string"}},"required":["row_id","segment_id"]},"minItems":1,"maxItems":5000}},"required":["import_id","name","event_context","rows"]},"rows":{"type":"array","items":{"type":"object","properties":{"row_id":{"type":"string"},"segment_id":{"type":"string"},"lead_id":{"type":["string","null"],"format":"uuid"},"status":{"type":"string","enum":["invalid","unresolved","duplicate","existing","already_contacted","excluded","mapped","lookup"]},"reason":{"type":"string"},"duplicate_of":{"type":["string","null"]}},"required":["row_id","segment_id","lead_id","status","reason","duplicate_of"]},"maxItems":5000}},"required":["list_id","workspace_id","name","event_context","committed","rows"]}}}},"400":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/workspace/conferences/{id}/research":{"post":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"id","in":"path"},{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":false}}}},"responses":{"200":{"description":"Authorize per-person research for this confirmed event, or finite research on a legacy committed list. Does not activate outreach.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"event_url":{"type":"string"},"event_state":{"type":"string","enum":["researching","ready","failed","confirmed"]},"event":{"type":["object","null"],"properties":{"name":{"type":"string","minLength":1,"maxLength":200,"pattern":"\\S"},"starts_on":{"type":"string","format":"date"},"ends_on":{"type":["string","null"],"format":"date"},"location":{"type":["string","null"]},"audience":{"type":"string","minLength":1,"pattern":"\\S"},"summary":{"type":"string","minLength":1,"pattern":"\\S"}},"required":["name","starts_on","ends_on","location","audience","summary"]},"workspace_id":{"type":"string","format":"uuid"},"list_id":{"type":"string","format":"uuid"},"total":{"type":"integer","minimum":0},"completed":{"type":"integer","minimum":0},"remaining":{"type":"integer","minimum":0},"stopped":{"type":"integer","minimum":0},"to_research":{"type":"integer","minimum":0},"skipped_company":{"type":"integer","minimum":0},"skipped_role":{"type":"integer","minimum":0},"avg_seconds":{"type":"number","minimum":0},"slots":{"type":"integer","exclusiveMinimum":0},"eta_seconds":{"type":"number","minimum":0},"research_started_at":{"type":["string","null"],"format":"date-time"},"research_stopped_at":{"type":["string","null"],"format":"date-time"},"samples_approved_at":{"type":["string","null"],"format":"date-time"},"samples_approved_by":{"type":["string","null"],"format":"uuid"},"segments":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"priority":{"type":"integer"},"finite_segment_id":{"type":"string","format":"uuid"},"journey_ref":{"type":["string","null"],"format":"uuid"},"campaign_ref":{"type":["string","null"],"format":"uuid"},"fit_state":{"type":"string","enum":["pending","ready","failed"]}},"required":["id","name","priority","finite_segment_id","journey_ref","campaign_ref","fit_state"]}},"screen_state":{"type":["string","null"],"enum":["fit","companies","company_review","roles","ready",null]},"screen":{"type":"object","properties":{"companies":{"type":"object","properties":{"total":{"type":"integer","minimum":0},"done":{"type":"integer","minimum":0},"skipped":{"type":"integer","minimum":0}},"required":["total","done","skipped"]},"roles":{"type":"object","properties":{"total":{"type":"integer","minimum":0},"done":{"type":"integer","minimum":0},"skipped":{"type":"integer","minimum":0}},"required":["total","done","skipped"]},"company_list":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"verdict":{"type":["string","null"],"enum":["keep","skip",null]},"reason":{"type":["string","null"]},"segment_verdicts":{"type":"array","items":{"type":"object","properties":{"segment_id":{"type":"string","format":"uuid"},"keep":{"type":["boolean","null"]},"reason":{"type":["string","null"]}},"required":["segment_id","keep","reason"]}},"fit_segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"domain":{"type":["string","null"]},"people":{"type":"integer","minimum":0},"included":{"type":"integer","minimum":0}},"required":["key","label","verdict","reason","domain","people","included"]}},"role_list":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"verdict":{"type":["string","null"],"enum":["keep","skip",null]},"reason":{"type":["string","null"]},"segment_verdicts":{"type":"array","items":{"type":"object","properties":{"segment_id":{"type":"string","format":"uuid"},"keep":{"type":["boolean","null"]},"reason":{"type":["string","null"]}},"required":["segment_id","keep","reason"]}},"fit_segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}}},"required":["key","label","verdict","reason"]}}},"required":["companies","roles","company_list","role_list"]},"rows":{"type":"array","items":{"type":"object","properties":{"row_id":{"type":"string"},"person":{"type":"object","properties":{"lead_id":{"type":"string"},"email":{"type":"string"},"linkedin_url":{"type":"string"},"first_name":{"type":"string"},"last_name":{"type":"string"},"title":{"type":"string"},"company_name":{"type":"string"},"company_domain":{"type":"string"}}},"lead_id":{"type":["string","null"],"format":"uuid"},"state":{"type":"string","enum":["pending","claimed","completed","stopped","failed","skipped"]},"company_key":{"type":["string","null"]},"title_key":{"type":["string","null"]},"skip_stage":{"type":["string","null"],"enum":["company","role","person",null]},"skip_reason":{"type":["string","null"]},"skip_by_member":{"type":"boolean"},"member_included":{"type":"boolean"},"fit_segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"research_segment_id":{"type":["string","null"],"format":"uuid"},"ask_key":{"type":"string"},"generation":{"type":"integer","minimum":0},"claimed_at":{"type":["string","null"],"format":"date-time"},"completed_at":{"type":["string","null"],"format":"date-time"},"identity_confidence":{"type":["string","null"],"enum":["confirmed","review","not_found",null]},"found":{"type":["object","null"],"properties":{"linkedin_url":{"type":["string","null"]},"email":{"type":["string","null"]},"email_status":{"type":["string","null"]},"title":{"type":["string","null"]},"company_name":{"type":["string","null"]},"company_domain":{"type":["string","null"]},"mismatch_reason":{"type":["string","null"]},"evidence":{"type":"array","items":{"type":"object","properties":{"url":{"type":"string"},"claim":{"type":"string"}},"required":["url","claim"]}}}},"tier":{"type":["string","null"],"enum":["A","B","C",null]},"tier_reason":{"type":["string","null"]},"draft":{"type":["object","null"],"properties":{"linkedin_message":{"type":"string","minLength":1,"pattern":"\\S"},"email_subject":{"type":"string","minLength":1,"pattern":"\\S"},"email_body":{"type":"string","minLength":1,"pattern":"\\S"}},"required":["linkedin_message","email_subject","email_body"]},"member_decision":{"type":["string","null"],"enum":["this_is_person","not_this_person",null]},"failure":{"type":["string","null"]}},"required":["row_id","person","lead_id","state","company_key","title_key","skip_stage","skip_reason","skip_by_member","ask_key","generation","claimed_at","completed_at","identity_confidence","found","tier","tier_reason","draft","member_decision","failure"]},"maxItems":5000},"conference_criterion":{"type":["string","null"]}},"required":["event_url","event_state","event","workspace_id","list_id","total","completed","remaining","stopped","to_research","skipped_company","skipped_role","avg_seconds","slots","eta_seconds","research_started_at","research_stopped_at","samples_approved_at","samples_approved_by","screen_state","screen","rows"]},{"type":"object","properties":{"workspace_id":{"type":"string","format":"uuid"},"list_id":{"type":"string","format":"uuid"},"intake_status":{"type":"string","enum":["preview","committed"]},"research_status":{"type":"string","enum":["not_started","pending","finished"]},"outreach_status":{"type":"string","enum":["not_activated","pending","finished","research_only"]},"outreach":{"type":"object","properties":{"workspace_id":{"type":"string","format":"uuid"},"list_id":{"type":"string","format":"uuid"},"members":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"lead_ref":{"type":"string","format":"uuid"},"segment_ref":{"type":"string","format":"uuid"},"journey_ref":{"type":"string","format":"uuid"},"executable_version_ref":{"type":"string","format":"uuid"},"member_run_ref":{"type":"string","format":"uuid"},"research_ref":{"type":"string","format":"uuid"},"expected_destination_request_ref":{"type":"string","format":"uuid"},"destination_request_ref":{"type":["string","null"],"format":"uuid"},"state":{"type":"string","enum":["eligible","waiting","rejected"]},"cause":{"type":["string","null"]},"canonical_run_ref":{"type":"null"},"outreach_progress":{"type":"string","enum":["not_activated","pending"]}},"required":["lead_ref","segment_ref","journey_ref","executable_version_ref","member_run_ref","research_ref","destination_request_ref","state","cause","canonical_run_ref","outreach_progress"]},{"type":"object","properties":{"lead_ref":{"type":"string","format":"uuid"},"segment_ref":{"type":"string","format":"uuid"},"journey_ref":{"type":"string","format":"uuid"},"executable_version_ref":{"type":"string","format":"uuid"},"member_run_ref":{"type":"string","format":"uuid"},"research_ref":{"type":"string","format":"uuid"},"expected_destination_request_ref":{"type":"string","format":"uuid"},"destination_request_ref":{"type":["string","null"],"format":"uuid"},"state":{"type":"string","enum":["admitted"]},"cause":{"type":"null"},"canonical_run_ref":{"type":"string","format":"uuid"},"outreach_progress":{"type":"string","enum":["active","paused","snoozed","completed","switched_channel","suppressed","re_enrolling"]}},"required":["lead_ref","segment_ref","journey_ref","executable_version_ref","member_run_ref","research_ref","destination_request_ref","state","cause","canonical_run_ref","outreach_progress"]}]},"maxItems":5000}},"required":["workspace_id","list_id","members"]},"started_at":{"type":["string","null"],"format":"date-time"},"next_due":{"type":["string","null"],"format":"date-time"},"members":{"type":"array","items":{"type":"object","properties":{"lead_id":{"type":"string","format":"uuid"},"segment_id":{"type":"string","format":"uuid"},"run_ref":{"type":"string","format":"uuid"},"criteria_version":{"type":["integer","null"],"minimum":0},"status":{"type":"string","enum":["waiting","pending","completed","excluded","failed"]},"reason":{"type":["string","null"]},"result":{"type":["object","null"],"properties":{"workspace_id":{"type":"string","format":"uuid"},"lead_id":{"type":"string","format":"uuid"},"segment_id":{"type":"string","format":"uuid"},"run_ref":{"type":"string","format":"uuid"},"research_id":{"type":"string","format":"uuid"},"qualified":{"type":"boolean"},"side_effects_eligible":{"type":"boolean","enum":[false]},"reused":{"type":"boolean"}},"required":["workspace_id","lead_id","segment_id","run_ref","research_id","qualified","side_effects_eligible"]}},"required":["lead_id","segment_id","run_ref","criteria_version","status","reason","result"]},"maxItems":5000},"refill":{"type":"boolean","enum":[false]}},"required":["workspace_id","list_id","intake_status","research_status","outreach_status","started_at","next_due","members","refill"]}]}}}},"400":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}},"get":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"id","in":"path"},{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"responses":{"200":{"description":"Read company and title verdicts per segment, row fit segments, the assigned research segment, identity, tier, draft, review decisions and estimated time, or legacy finite research progress.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"event_url":{"type":"string"},"event_state":{"type":"string","enum":["researching","ready","failed","confirmed"]},"event":{"type":["object","null"],"properties":{"name":{"type":"string","minLength":1,"maxLength":200,"pattern":"\\S"},"starts_on":{"type":"string","format":"date"},"ends_on":{"type":["string","null"],"format":"date"},"location":{"type":["string","null"]},"audience":{"type":"string","minLength":1,"pattern":"\\S"},"summary":{"type":"string","minLength":1,"pattern":"\\S"}},"required":["name","starts_on","ends_on","location","audience","summary"]},"workspace_id":{"type":"string","format":"uuid"},"list_id":{"type":"string","format":"uuid"},"total":{"type":"integer","minimum":0},"completed":{"type":"integer","minimum":0},"remaining":{"type":"integer","minimum":0},"stopped":{"type":"integer","minimum":0},"to_research":{"type":"integer","minimum":0},"skipped_company":{"type":"integer","minimum":0},"skipped_role":{"type":"integer","minimum":0},"avg_seconds":{"type":"number","minimum":0},"slots":{"type":"integer","exclusiveMinimum":0},"eta_seconds":{"type":"number","minimum":0},"research_started_at":{"type":["string","null"],"format":"date-time"},"research_stopped_at":{"type":["string","null"],"format":"date-time"},"samples_approved_at":{"type":["string","null"],"format":"date-time"},"samples_approved_by":{"type":["string","null"],"format":"uuid"},"segments":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"priority":{"type":"integer"},"finite_segment_id":{"type":"string","format":"uuid"},"journey_ref":{"type":["string","null"],"format":"uuid"},"campaign_ref":{"type":["string","null"],"format":"uuid"},"fit_state":{"type":"string","enum":["pending","ready","failed"]}},"required":["id","name","priority","finite_segment_id","journey_ref","campaign_ref","fit_state"]}},"screen_state":{"type":["string","null"],"enum":["fit","companies","company_review","roles","ready",null]},"screen":{"type":"object","properties":{"companies":{"type":"object","properties":{"total":{"type":"integer","minimum":0},"done":{"type":"integer","minimum":0},"skipped":{"type":"integer","minimum":0}},"required":["total","done","skipped"]},"roles":{"type":"object","properties":{"total":{"type":"integer","minimum":0},"done":{"type":"integer","minimum":0},"skipped":{"type":"integer","minimum":0}},"required":["total","done","skipped"]},"company_list":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"verdict":{"type":["string","null"],"enum":["keep","skip",null]},"reason":{"type":["string","null"]},"segment_verdicts":{"type":"array","items":{"type":"object","properties":{"segment_id":{"type":"string","format":"uuid"},"keep":{"type":["boolean","null"]},"reason":{"type":["string","null"]}},"required":["segment_id","keep","reason"]}},"fit_segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"domain":{"type":["string","null"]},"people":{"type":"integer","minimum":0},"included":{"type":"integer","minimum":0}},"required":["key","label","verdict","reason","domain","people","included"]}},"role_list":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"verdict":{"type":["string","null"],"enum":["keep","skip",null]},"reason":{"type":["string","null"]},"segment_verdicts":{"type":"array","items":{"type":"object","properties":{"segment_id":{"type":"string","format":"uuid"},"keep":{"type":["boolean","null"]},"reason":{"type":["string","null"]}},"required":["segment_id","keep","reason"]}},"fit_segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}}},"required":["key","label","verdict","reason"]}}},"required":["companies","roles","company_list","role_list"]},"rows":{"type":"array","items":{"type":"object","properties":{"row_id":{"type":"string"},"person":{"type":"object","properties":{"lead_id":{"type":"string"},"email":{"type":"string"},"linkedin_url":{"type":"string"},"first_name":{"type":"string"},"last_name":{"type":"string"},"title":{"type":"string"},"company_name":{"type":"string"},"company_domain":{"type":"string"}}},"lead_id":{"type":["string","null"],"format":"uuid"},"state":{"type":"string","enum":["pending","claimed","completed","stopped","failed","skipped"]},"company_key":{"type":["string","null"]},"title_key":{"type":["string","null"]},"skip_stage":{"type":["string","null"],"enum":["company","role","person",null]},"skip_reason":{"type":["string","null"]},"skip_by_member":{"type":"boolean"},"member_included":{"type":"boolean"},"fit_segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"research_segment_id":{"type":["string","null"],"format":"uuid"},"ask_key":{"type":"string"},"generation":{"type":"integer","minimum":0},"claimed_at":{"type":["string","null"],"format":"date-time"},"completed_at":{"type":["string","null"],"format":"date-time"},"identity_confidence":{"type":["string","null"],"enum":["confirmed","review","not_found",null]},"found":{"type":["object","null"],"properties":{"linkedin_url":{"type":["string","null"]},"email":{"type":["string","null"]},"email_status":{"type":["string","null"]},"title":{"type":["string","null"]},"company_name":{"type":["string","null"]},"company_domain":{"type":["string","null"]},"mismatch_reason":{"type":["string","null"]},"evidence":{"type":"array","items":{"type":"object","properties":{"url":{"type":"string"},"claim":{"type":"string"}},"required":["url","claim"]}}}},"tier":{"type":["string","null"],"enum":["A","B","C",null]},"tier_reason":{"type":["string","null"]},"draft":{"type":["object","null"],"properties":{"linkedin_message":{"type":"string","minLength":1,"pattern":"\\S"},"email_subject":{"type":"string","minLength":1,"pattern":"\\S"},"email_body":{"type":"string","minLength":1,"pattern":"\\S"}},"required":["linkedin_message","email_subject","email_body"]},"member_decision":{"type":["string","null"],"enum":["this_is_person","not_this_person",null]},"failure":{"type":["string","null"]}},"required":["row_id","person","lead_id","state","company_key","title_key","skip_stage","skip_reason","skip_by_member","ask_key","generation","claimed_at","completed_at","identity_confidence","found","tier","tier_reason","draft","member_decision","failure"]},"maxItems":5000},"conference_criterion":{"type":["string","null"]}},"required":["event_url","event_state","event","workspace_id","list_id","total","completed","remaining","stopped","to_research","skipped_company","skipped_role","avg_seconds","slots","eta_seconds","research_started_at","research_stopped_at","samples_approved_at","samples_approved_by","screen_state","screen","rows"]},{"type":"object","properties":{"workspace_id":{"type":"string","format":"uuid"},"list_id":{"type":"string","format":"uuid"},"intake_status":{"type":"string","enum":["preview","committed"]},"research_status":{"type":"string","enum":["not_started","pending","finished"]},"outreach_status":{"type":"string","enum":["not_activated","pending","finished","research_only"]},"outreach":{"type":"object","properties":{"workspace_id":{"type":"string","format":"uuid"},"list_id":{"type":"string","format":"uuid"},"members":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"lead_ref":{"type":"string","format":"uuid"},"segment_ref":{"type":"string","format":"uuid"},"journey_ref":{"type":"string","format":"uuid"},"executable_version_ref":{"type":"string","format":"uuid"},"member_run_ref":{"type":"string","format":"uuid"},"research_ref":{"type":"string","format":"uuid"},"expected_destination_request_ref":{"type":"string","format":"uuid"},"destination_request_ref":{"type":["string","null"],"format":"uuid"},"state":{"type":"string","enum":["eligible","waiting","rejected"]},"cause":{"type":["string","null"]},"canonical_run_ref":{"type":"null"},"outreach_progress":{"type":"string","enum":["not_activated","pending"]}},"required":["lead_ref","segment_ref","journey_ref","executable_version_ref","member_run_ref","research_ref","destination_request_ref","state","cause","canonical_run_ref","outreach_progress"]},{"type":"object","properties":{"lead_ref":{"type":"string","format":"uuid"},"segment_ref":{"type":"string","format":"uuid"},"journey_ref":{"type":"string","format":"uuid"},"executable_version_ref":{"type":"string","format":"uuid"},"member_run_ref":{"type":"string","format":"uuid"},"research_ref":{"type":"string","format":"uuid"},"expected_destination_request_ref":{"type":"string","format":"uuid"},"destination_request_ref":{"type":["string","null"],"format":"uuid"},"state":{"type":"string","enum":["admitted"]},"cause":{"type":"null"},"canonical_run_ref":{"type":"string","format":"uuid"},"outreach_progress":{"type":"string","enum":["active","paused","snoozed","completed","switched_channel","suppressed","re_enrolling"]}},"required":["lead_ref","segment_ref","journey_ref","executable_version_ref","member_run_ref","research_ref","destination_request_ref","state","cause","canonical_run_ref","outreach_progress"]}]},"maxItems":5000}},"required":["workspace_id","list_id","members"]},"started_at":{"type":["string","null"],"format":"date-time"},"next_due":{"type":["string","null"],"format":"date-time"},"members":{"type":"array","items":{"type":"object","properties":{"lead_id":{"type":"string","format":"uuid"},"segment_id":{"type":"string","format":"uuid"},"run_ref":{"type":"string","format":"uuid"},"criteria_version":{"type":["integer","null"],"minimum":0},"status":{"type":"string","enum":["waiting","pending","completed","excluded","failed"]},"reason":{"type":["string","null"]},"result":{"type":["object","null"],"properties":{"workspace_id":{"type":"string","format":"uuid"},"lead_id":{"type":"string","format":"uuid"},"segment_id":{"type":"string","format":"uuid"},"run_ref":{"type":"string","format":"uuid"},"research_id":{"type":"string","format":"uuid"},"qualified":{"type":"boolean"},"side_effects_eligible":{"type":"boolean","enum":[false]},"reused":{"type":"boolean"}},"required":["workspace_id","lead_id","segment_id","run_ref","research_id","qualified","side_effects_eligible"]}},"required":["lead_id","segment_id","run_ref","criteria_version","status","reason","result"]},"maxItems":5000},"refill":{"type":"boolean","enum":[false]}},"required":["workspace_id","list_id","intake_status","research_status","outreach_status","started_at","next_due","members","refill"]}]}}}},"400":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/workspace/conferences/{id}/activation/preview":{"post":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"id","in":"path"},{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"request_ref":{"type":"string","format":"uuid"},"selections":{"type":"array","items":{"type":"object","properties":{"lead_ref":{"type":"string","format":"uuid"},"segment_ref":{"type":"string","format":"uuid"},"journey_ref":{"type":"string","format":"uuid"},"executable_version_ref":{"type":"string","format":"uuid"},"member_run_ref":{"type":"string","format":"uuid"},"research_ref":{"type":"string","format":"uuid"},"expected_destination_request_ref":{"type":"string","format":"uuid"}},"required":["lead_ref","segment_ref","journey_ref","executable_version_ref","member_run_ref","research_ref"],"additionalProperties":false},"minItems":1,"maxItems":5000}},"required":["request_ref","selections"],"additionalProperties":false}}}},"responses":{"200":{"description":"Preview explicit person, segment, dedicated Journey, executable version and research references. Readiness waits are not admission; no consent or enrollment is written.","content":{"application/json":{"schema":{"type":"object","properties":{"workspace_id":{"type":"string","format":"uuid"},"list_id":{"type":"string","format":"uuid"},"members":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"lead_ref":{"type":"string","format":"uuid"},"segment_ref":{"type":"string","format":"uuid"},"journey_ref":{"type":"string","format":"uuid"},"executable_version_ref":{"type":"string","format":"uuid"},"member_run_ref":{"type":"string","format":"uuid"},"research_ref":{"type":"string","format":"uuid"},"expected_destination_request_ref":{"type":"string","format":"uuid"},"destination_request_ref":{"type":["string","null"],"format":"uuid"},"state":{"type":"string","enum":["eligible","waiting","rejected"]},"cause":{"type":["string","null"]},"canonical_run_ref":{"type":"null"},"outreach_progress":{"type":"string","enum":["not_activated","pending"]}},"required":["lead_ref","segment_ref","journey_ref","executable_version_ref","member_run_ref","research_ref","destination_request_ref","state","cause","canonical_run_ref","outreach_progress"]},{"type":"object","properties":{"lead_ref":{"type":"string","format":"uuid"},"segment_ref":{"type":"string","format":"uuid"},"journey_ref":{"type":"string","format":"uuid"},"executable_version_ref":{"type":"string","format":"uuid"},"member_run_ref":{"type":"string","format":"uuid"},"research_ref":{"type":"string","format":"uuid"},"expected_destination_request_ref":{"type":"string","format":"uuid"},"destination_request_ref":{"type":["string","null"],"format":"uuid"},"state":{"type":"string","enum":["admitted"]},"cause":{"type":"null"},"canonical_run_ref":{"type":"string","format":"uuid"},"outreach_progress":{"type":"string","enum":["active","paused","snoozed","completed","switched_channel","suppressed","re_enrolling"]}},"required":["lead_ref","segment_ref","journey_ref","executable_version_ref","member_run_ref","research_ref","destination_request_ref","state","cause","canonical_run_ref","outreach_progress"]}]},"maxItems":5000},"request_ref":{"type":"string","format":"uuid"}},"required":["workspace_id","list_id","members","request_ref"]}}}},"400":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/workspace/conferences/{id}/activation":{"post":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"id","in":"path"},{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"request_ref":{"type":"string","format":"uuid"},"selections":{"type":"array","items":{"type":"object","properties":{"lead_ref":{"type":"string","format":"uuid"},"segment_ref":{"type":"string","format":"uuid"},"journey_ref":{"type":"string","format":"uuid"},"executable_version_ref":{"type":"string","format":"uuid"},"member_run_ref":{"type":"string","format":"uuid"},"research_ref":{"type":"string","format":"uuid"},"expected_destination_request_ref":{"type":"string","format":"uuid"}},"required":["lead_ref","segment_ref","journey_ref","executable_version_ref","member_run_ref","research_ref"],"additionalProperties":false},"minItems":1,"maxItems":5000}},"required":["request_ref","selections"],"additionalProperties":false}}}},"responses":{"200":{"description":"Persist explicit conference destinations after member approval. Retry the identical request_ref and selections. Normal Outreach admission owns enrollment and waiting; only admitted includes a canonical run.","content":{"application/json":{"schema":{"type":"object","properties":{"workspace_id":{"type":"string","format":"uuid"},"list_id":{"type":"string","format":"uuid"},"members":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"lead_ref":{"type":"string","format":"uuid"},"segment_ref":{"type":"string","format":"uuid"},"journey_ref":{"type":"string","format":"uuid"},"executable_version_ref":{"type":"string","format":"uuid"},"member_run_ref":{"type":"string","format":"uuid"},"research_ref":{"type":"string","format":"uuid"},"expected_destination_request_ref":{"type":"string","format":"uuid"},"destination_request_ref":{"type":["string","null"],"format":"uuid"},"state":{"type":"string","enum":["eligible","waiting","rejected"]},"cause":{"type":["string","null"]},"canonical_run_ref":{"type":"null"},"outreach_progress":{"type":"string","enum":["not_activated","pending"]}},"required":["lead_ref","segment_ref","journey_ref","executable_version_ref","member_run_ref","research_ref","destination_request_ref","state","cause","canonical_run_ref","outreach_progress"]},{"type":"object","properties":{"lead_ref":{"type":"string","format":"uuid"},"segment_ref":{"type":"string","format":"uuid"},"journey_ref":{"type":"string","format":"uuid"},"executable_version_ref":{"type":"string","format":"uuid"},"member_run_ref":{"type":"string","format":"uuid"},"research_ref":{"type":"string","format":"uuid"},"expected_destination_request_ref":{"type":"string","format":"uuid"},"destination_request_ref":{"type":["string","null"],"format":"uuid"},"state":{"type":"string","enum":["admitted"]},"cause":{"type":"null"},"canonical_run_ref":{"type":"string","format":"uuid"},"outreach_progress":{"type":"string","enum":["active","paused","snoozed","completed","switched_channel","suppressed","re_enrolling"]}},"required":["lead_ref","segment_ref","journey_ref","executable_version_ref","member_run_ref","research_ref","destination_request_ref","state","cause","canonical_run_ref","outreach_progress"]}]},"maxItems":5000},"request_ref":{"type":"string","format":"uuid"},"replayed":{"type":"boolean"}},"required":["workspace_id","list_id","members","request_ref","replayed"]}}}},"400":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}},"get":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"id","in":"path"},{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"responses":{"200":{"description":"Read saved conference destinations, per-person admission causes and separate outreach progress. Does not activate or retry work.","content":{"application/json":{"schema":{"type":"object","properties":{"workspace_id":{"type":"string","format":"uuid"},"list_id":{"type":"string","format":"uuid"},"members":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"lead_ref":{"type":"string","format":"uuid"},"segment_ref":{"type":"string","format":"uuid"},"journey_ref":{"type":"string","format":"uuid"},"executable_version_ref":{"type":"string","format":"uuid"},"member_run_ref":{"type":"string","format":"uuid"},"research_ref":{"type":"string","format":"uuid"},"expected_destination_request_ref":{"type":"string","format":"uuid"},"destination_request_ref":{"type":["string","null"],"format":"uuid"},"state":{"type":"string","enum":["eligible","waiting","rejected"]},"cause":{"type":["string","null"]},"canonical_run_ref":{"type":"null"},"outreach_progress":{"type":"string","enum":["not_activated","pending"]}},"required":["lead_ref","segment_ref","journey_ref","executable_version_ref","member_run_ref","research_ref","destination_request_ref","state","cause","canonical_run_ref","outreach_progress"]},{"type":"object","properties":{"lead_ref":{"type":"string","format":"uuid"},"segment_ref":{"type":"string","format":"uuid"},"journey_ref":{"type":"string","format":"uuid"},"executable_version_ref":{"type":"string","format":"uuid"},"member_run_ref":{"type":"string","format":"uuid"},"research_ref":{"type":"string","format":"uuid"},"expected_destination_request_ref":{"type":"string","format":"uuid"},"destination_request_ref":{"type":["string","null"],"format":"uuid"},"state":{"type":"string","enum":["admitted"]},"cause":{"type":"null"},"canonical_run_ref":{"type":"string","format":"uuid"},"outreach_progress":{"type":"string","enum":["active","paused","snoozed","completed","switched_channel","suppressed","re_enrolling"]}},"required":["lead_ref","segment_ref","journey_ref","executable_version_ref","member_run_ref","research_ref","destination_request_ref","state","cause","canonical_run_ref","outreach_progress"]}]},"maxItems":5000}},"required":["workspace_id","list_id","members"]}}}},"400":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/workspace/conferences/{id}":{"post":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"id","in":"path"},{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120}},"required":["name"],"additionalProperties":false}}}},"responses":{"200":{"description":"Rename a conference list at any stage, before or after import. The name is trimmed and holds 1 to 120 characters. Changes nothing else.","content":{"application/json":{"schema":{"type":"object","properties":{"event_url":{"type":"string"},"event_state":{"type":"string","enum":["researching","ready","failed","confirmed"]},"event":{"type":["object","null"],"properties":{"name":{"type":"string","minLength":1,"maxLength":200,"pattern":"\\S"},"starts_on":{"type":"string","format":"date"},"ends_on":{"type":["string","null"],"format":"date"},"location":{"type":["string","null"]},"audience":{"type":"string","minLength":1,"pattern":"\\S"},"summary":{"type":"string","minLength":1,"pattern":"\\S"}},"required":["name","starts_on","ends_on","location","audience","summary"]},"event_generation":{"type":"integer","minimum":0},"event_failure":{"type":["string","null"]},"segments":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"priority":{"type":"integer"},"finite_segment_id":{"type":"string","format":"uuid"},"journey_ref":{"type":["string","null"],"format":"uuid"},"campaign_ref":{"type":["string","null"],"format":"uuid"},"fit_state":{"type":"string","enum":["pending","ready","failed"]}},"required":["id","name","priority","finite_segment_id","journey_ref","campaign_ref","fit_state"]}},"screen_state":{"type":["string","null"],"enum":["fit","companies","company_review","roles","ready",null]},"workspace_id":{"type":"string","format":"uuid"},"list_id":{"type":"string","format":"uuid"},"version":{"type":"integer","minimum":0},"state":{"type":"string","enum":["unbound","bound"]},"name":{"type":"string"},"row_count":{"type":"integer","minimum":0,"maximum":5000},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"segment_ref":{"type":["string","null"],"format":"uuid"}},"required":["workspace_id","list_id","version","state","name","row_count","created_at","updated_at","segment_ref"]}}}},"400":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}},"get":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"id","in":"path"},{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"responses":{"200":{"description":"Read conference detail and row dispositions. draft_request restores the exact uncommitted request; null after commit. list_id equals import_id.","content":{"application/json":{"schema":{"type":"object","properties":{"list_id":{"type":"string","format":"uuid"},"workspace_id":{"type":"string","format":"uuid"},"name":{"type":"string"},"event_context":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/ConferenceEventValue"}},"committed":{"type":"boolean"},"draft_request":{"type":["object","null"],"properties":{"import_id":{"type":"string","format":"uuid"},"name":{"type":"string","minLength":1,"maxLength":200},"event_context":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/ConferenceEventValue"}},"rows":{"type":"array","items":{"type":"object","properties":{"row_id":{"type":"string","minLength":1,"maxLength":128},"segment_id":{"type":"string"},"lead_id":{"type":"string"},"email":{"type":"string"},"linkedin_url":{"type":"string"},"first_name":{"type":"string"},"last_name":{"type":"string"},"title":{"type":"string"},"company_name":{"type":"string"},"company_domain":{"type":"string"}},"required":["row_id","segment_id"]},"minItems":1,"maxItems":5000}},"required":["import_id","name","event_context","rows"]},"rows":{"type":"array","items":{"type":"object","properties":{"row_id":{"type":"string"},"segment_id":{"type":"string"},"lead_id":{"type":["string","null"],"format":"uuid"},"status":{"type":"string","enum":["invalid","unresolved","duplicate","existing","already_contacted","excluded","mapped","lookup"]},"reason":{"type":"string"},"duplicate_of":{"type":["string","null"]}},"required":["row_id","segment_id","lead_id","status","reason","duplicate_of"]},"maxItems":5000}},"required":["list_id","workspace_id","name","event_context","committed","rows"]}}}},"400":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/workspace/reports":{"get":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"date","description":"First week's Monday (UTC), YYYY-MM-DD."},"required":true,"description":"First week's Monday (UTC), YYYY-MM-DD.","name":"start","in":"query"},{"schema":{"type":"string","format":"date","description":"A later Monday, excluded."},"required":true,"description":"A later Monday, excluded.","name":"end","in":"query"},{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"responses":{"200":{"description":"Read the stored weekly reports of [start, end), Mondays UTC at most 735 days apart: the figures the weekly digest shows. A week with no stored report is absent, not zero. calculated_at changes when a correction replaces a week.","content":{"application/json":{"schema":{"type":"object","properties":{"reports":{"type":"array","items":{"type":"object","properties":{"workspace_id":{"type":"string","format":"uuid"},"week_start":{"type":"string","format":"date"},"period_start":{"type":"string","format":"date-time"},"period_end":{"type":"string","format":"date-time"},"calculated_at":{"type":"string","format":"date-time","description":"The report's calculation identity. It changes when a correction replaces the week."},"payload":{"type":"object","properties":{"workspace_id":{"type":"string","format":"uuid"},"period":{"type":"object","properties":{"start":{"type":"string","format":"date-time"},"end":{"type":"string","format":"date-time"}},"required":["start","end"]},"observed_at":{"type":"string","format":"date-time"},"senders":{"type":"array","items":{"type":"object","properties":{"sender_id":{"type":"string","format":"uuid"},"display_name":{"type":"string"},"deleted":{"type":"boolean"},"metrics":{"type":"object","properties":{"linkedin.connectionsSent":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","enum":["people","messages","meetings","deals"]},"value":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["entities"]},"value":{"type":["integer","null"],"minimum":0},"ambiguous_receipts":{"type":"integer","minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","ambiguous_receipts","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["money"]},"value":{"type":["array","null"],"items":{"type":"object","properties":{"currency":{"type":["string","null"],"minLength":1},"amount":{"type":"number"},"deals":{"type":"integer","exclusiveMinimum":0}},"required":["currency","amount","deals"]}},"unpriced":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","unpriced","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["ratio"]},"value":{"type":["number","null"]},"numerator":{"type":["integer","null"],"minimum":0},"denominator":{"type":["integer","null"],"minimum":0},"horizon_days":{"type":"integer","exclusiveMinimum":0},"matures_at":{"type":"string","format":"date-time"},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","numerator","denominator","availability","reason"]}]},"linkedin.peopleMessaged":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","enum":["people","messages","meetings","deals"]},"value":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["entities"]},"value":{"type":["integer","null"],"minimum":0},"ambiguous_receipts":{"type":"integer","minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","ambiguous_receipts","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["money"]},"value":{"type":["array","null"],"items":{"type":"object","properties":{"currency":{"type":["string","null"],"minLength":1},"amount":{"type":"number"},"deals":{"type":"integer","exclusiveMinimum":0}},"required":["currency","amount","deals"]}},"unpriced":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","unpriced","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["ratio"]},"value":{"type":["number","null"]},"numerator":{"type":["integer","null"],"minimum":0},"denominator":{"type":["integer","null"],"minimum":0},"horizon_days":{"type":"integer","exclusiveMinimum":0},"matures_at":{"type":"string","format":"date-time"},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","numerator","denominator","availability","reason"]}]},"email.peopleEmailed":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","enum":["people","messages","meetings","deals"]},"value":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["entities"]},"value":{"type":["integer","null"],"minimum":0},"ambiguous_receipts":{"type":"integer","minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","ambiguous_receipts","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["money"]},"value":{"type":["array","null"],"items":{"type":"object","properties":{"currency":{"type":["string","null"],"minLength":1},"amount":{"type":"number"},"deals":{"type":"integer","exclusiveMinimum":0}},"required":["currency","amount","deals"]}},"unpriced":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","unpriced","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["ratio"]},"value":{"type":["number","null"]},"numerator":{"type":["integer","null"],"minimum":0},"denominator":{"type":["integer","null"],"minimum":0},"horizon_days":{"type":"integer","exclusiveMinimum":0},"matures_at":{"type":"string","format":"date-time"},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","numerator","denominator","availability","reason"]}]}},"required":["linkedin.connectionsSent","linkedin.peopleMessaged","email.peopleEmailed"]}},"required":["sender_id","display_name","deleted","metrics"]}},"sources":{"type":"object","properties":{"crm":{"type":"object","properties":{"provider":{"type":["string","null"],"enum":["hubspot","attio",null]},"connected":{"type":"boolean"},"synced_at":{"type":["string","null"],"format":"date-time"},"failed":{"type":"boolean"}},"required":["provider","connected","synced_at","failed"]},"pipeline":{"type":"object","properties":{"provider":{"type":["string","null"],"enum":["lifty","hubspot","attio",null]},"connected":{"type":"boolean"},"synced_at":{"type":["string","null"],"format":"date-time"},"failed":{"type":"boolean"}},"required":["provider","connected","synced_at","failed"]}},"required":["crm"]},"schema_version":{"type":"number","enum":[1]},"publication_state":{"type":"string","enum":["complete"]},"period_closed":{"type":"boolean","enum":[true]},"metrics":{"type":"object","properties":{"linkedin.connectionsSent":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","enum":["people","messages","meetings","deals"]},"value":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["entities"]},"value":{"type":["integer","null"],"minimum":0},"ambiguous_receipts":{"type":"integer","minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","ambiguous_receipts","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["money"]},"value":{"type":["array","null"],"items":{"type":"object","properties":{"currency":{"type":["string","null"],"minLength":1},"amount":{"type":"number"},"deals":{"type":"integer","exclusiveMinimum":0}},"required":["currency","amount","deals"]}},"unpriced":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","unpriced","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["ratio"]},"value":{"type":["number","null"]},"numerator":{"type":["integer","null"],"minimum":0},"denominator":{"type":["integer","null"],"minimum":0},"horizon_days":{"type":"integer","exclusiveMinimum":0},"matures_at":{"type":"string","format":"date-time"},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","numerator","denominator","availability","reason"]}]},"linkedin.connectionsAccepted":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","enum":["people","messages","meetings","deals"]},"value":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["entities"]},"value":{"type":["integer","null"],"minimum":0},"ambiguous_receipts":{"type":"integer","minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","ambiguous_receipts","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["money"]},"value":{"type":["array","null"],"items":{"type":"object","properties":{"currency":{"type":["string","null"],"minLength":1},"amount":{"type":"number"},"deals":{"type":"integer","exclusiveMinimum":0}},"required":["currency","amount","deals"]}},"unpriced":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","unpriced","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["ratio"]},"value":{"type":["number","null"]},"numerator":{"type":["integer","null"],"minimum":0},"denominator":{"type":["integer","null"],"minimum":0},"horizon_days":{"type":"integer","exclusiveMinimum":0},"matures_at":{"type":"string","format":"date-time"},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","numerator","denominator","availability","reason"]}]},"linkedin.peopleMessaged":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","enum":["people","messages","meetings","deals"]},"value":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["entities"]},"value":{"type":["integer","null"],"minimum":0},"ambiguous_receipts":{"type":"integer","minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","ambiguous_receipts","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["money"]},"value":{"type":["array","null"],"items":{"type":"object","properties":{"currency":{"type":["string","null"],"minLength":1},"amount":{"type":"number"},"deals":{"type":"integer","exclusiveMinimum":0}},"required":["currency","amount","deals"]}},"unpriced":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","unpriced","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["ratio"]},"value":{"type":["number","null"]},"numerator":{"type":["integer","null"],"minimum":0},"denominator":{"type":["integer","null"],"minimum":0},"horizon_days":{"type":"integer","exclusiveMinimum":0},"matures_at":{"type":"string","format":"date-time"},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","numerator","denominator","availability","reason"]}]},"linkedin.peopleReplied":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","enum":["people","messages","meetings","deals"]},"value":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["entities"]},"value":{"type":["integer","null"],"minimum":0},"ambiguous_receipts":{"type":"integer","minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","ambiguous_receipts","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["money"]},"value":{"type":["array","null"],"items":{"type":"object","properties":{"currency":{"type":["string","null"],"minLength":1},"amount":{"type":"number"},"deals":{"type":"integer","exclusiveMinimum":0}},"required":["currency","amount","deals"]}},"unpriced":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","unpriced","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["ratio"]},"value":{"type":["number","null"]},"numerator":{"type":["integer","null"],"minimum":0},"denominator":{"type":["integer","null"],"minimum":0},"horizon_days":{"type":"integer","exclusiveMinimum":0},"matures_at":{"type":"string","format":"date-time"},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","numerator","denominator","availability","reason"]}]},"email.messagesSent":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","enum":["people","messages","meetings","deals"]},"value":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["entities"]},"value":{"type":["integer","null"],"minimum":0},"ambiguous_receipts":{"type":"integer","minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","ambiguous_receipts","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["money"]},"value":{"type":["array","null"],"items":{"type":"object","properties":{"currency":{"type":["string","null"],"minLength":1},"amount":{"type":"number"},"deals":{"type":"integer","exclusiveMinimum":0}},"required":["currency","amount","deals"]}},"unpriced":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","unpriced","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["ratio"]},"value":{"type":["number","null"]},"numerator":{"type":["integer","null"],"minimum":0},"denominator":{"type":["integer","null"],"minimum":0},"horizon_days":{"type":"integer","exclusiveMinimum":0},"matures_at":{"type":"string","format":"date-time"},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","numerator","denominator","availability","reason"]}]},"email.peopleEmailed":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","enum":["people","messages","meetings","deals"]},"value":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["entities"]},"value":{"type":["integer","null"],"minimum":0},"ambiguous_receipts":{"type":"integer","minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","ambiguous_receipts","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["money"]},"value":{"type":["array","null"],"items":{"type":"object","properties":{"currency":{"type":["string","null"],"minLength":1},"amount":{"type":"number"},"deals":{"type":"integer","exclusiveMinimum":0}},"required":["currency","amount","deals"]}},"unpriced":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","unpriced","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["ratio"]},"value":{"type":["number","null"]},"numerator":{"type":["integer","null"],"minimum":0},"denominator":{"type":["integer","null"],"minimum":0},"horizon_days":{"type":"integer","exclusiveMinimum":0},"matures_at":{"type":"string","format":"date-time"},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","numerator","denominator","availability","reason"]}]},"email.peopleBounced":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","enum":["people","messages","meetings","deals"]},"value":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["entities"]},"value":{"type":["integer","null"],"minimum":0},"ambiguous_receipts":{"type":"integer","minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","ambiguous_receipts","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["money"]},"value":{"type":["array","null"],"items":{"type":"object","properties":{"currency":{"type":["string","null"],"minLength":1},"amount":{"type":"number"},"deals":{"type":"integer","exclusiveMinimum":0}},"required":["currency","amount","deals"]}},"unpriced":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","unpriced","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["ratio"]},"value":{"type":["number","null"]},"numerator":{"type":["integer","null"],"minimum":0},"denominator":{"type":["integer","null"],"minimum":0},"horizon_days":{"type":"integer","exclusiveMinimum":0},"matures_at":{"type":"string","format":"date-time"},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","numerator","denominator","availability","reason"]}]},"email.peopleBlocked":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","enum":["people","messages","meetings","deals"]},"value":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["entities"]},"value":{"type":["integer","null"],"minimum":0},"ambiguous_receipts":{"type":"integer","minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","ambiguous_receipts","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["money"]},"value":{"type":["array","null"],"items":{"type":"object","properties":{"currency":{"type":["string","null"],"minLength":1},"amount":{"type":"number"},"deals":{"type":"integer","exclusiveMinimum":0}},"required":["currency","amount","deals"]}},"unpriced":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","unpriced","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["ratio"]},"value":{"type":["number","null"]},"numerator":{"type":["integer","null"],"minimum":0},"denominator":{"type":["integer","null"],"minimum":0},"horizon_days":{"type":"integer","exclusiveMinimum":0},"matures_at":{"type":"string","format":"date-time"},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","numerator","denominator","availability","reason"]}]},"email.peopleReplied":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","enum":["people","messages","meetings","deals"]},"value":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["entities"]},"value":{"type":["integer","null"],"minimum":0},"ambiguous_receipts":{"type":"integer","minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","ambiguous_receipts","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["money"]},"value":{"type":["array","null"],"items":{"type":"object","properties":{"currency":{"type":["string","null"],"minLength":1},"amount":{"type":"number"},"deals":{"type":"integer","exclusiveMinimum":0}},"required":["currency","amount","deals"]}},"unpriced":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","unpriced","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["ratio"]},"value":{"type":["number","null"]},"numerator":{"type":["integer","null"],"minimum":0},"denominator":{"type":["integer","null"],"minimum":0},"horizon_days":{"type":"integer","exclusiveMinimum":0},"matures_at":{"type":"string","format":"date-time"},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","numerator","denominator","availability","reason"]}]},"research.researched":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","enum":["people","messages","meetings","deals"]},"value":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["entities"]},"value":{"type":["integer","null"],"minimum":0},"ambiguous_receipts":{"type":"integer","minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","ambiguous_receipts","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["money"]},"value":{"type":["array","null"],"items":{"type":"object","properties":{"currency":{"type":["string","null"],"minLength":1},"amount":{"type":"number"},"deals":{"type":"integer","exclusiveMinimum":0}},"required":["currency","amount","deals"]}},"unpriced":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","unpriced","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["ratio"]},"value":{"type":["number","null"]},"numerator":{"type":["integer","null"],"minimum":0},"denominator":{"type":["integer","null"],"minimum":0},"horizon_days":{"type":"integer","exclusiveMinimum":0},"matures_at":{"type":"string","format":"date-time"},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","numerator","denominator","availability","reason"]}]},"research.tierA":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","enum":["people","messages","meetings","deals"]},"value":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["entities"]},"value":{"type":["integer","null"],"minimum":0},"ambiguous_receipts":{"type":"integer","minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","ambiguous_receipts","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["money"]},"value":{"type":["array","null"],"items":{"type":"object","properties":{"currency":{"type":["string","null"],"minLength":1},"amount":{"type":"number"},"deals":{"type":"integer","exclusiveMinimum":0}},"required":["currency","amount","deals"]}},"unpriced":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","unpriced","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["ratio"]},"value":{"type":["number","null"]},"numerator":{"type":["integer","null"],"minimum":0},"denominator":{"type":["integer","null"],"minimum":0},"horizon_days":{"type":"integer","exclusiveMinimum":0},"matures_at":{"type":"string","format":"date-time"},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","numerator","denominator","availability","reason"]}]},"research.tierB":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","enum":["people","messages","meetings","deals"]},"value":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["entities"]},"value":{"type":["integer","null"],"minimum":0},"ambiguous_receipts":{"type":"integer","minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","ambiguous_receipts","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["money"]},"value":{"type":["array","null"],"items":{"type":"object","properties":{"currency":{"type":["string","null"],"minLength":1},"amount":{"type":"number"},"deals":{"type":"integer","exclusiveMinimum":0}},"required":["currency","amount","deals"]}},"unpriced":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","unpriced","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["ratio"]},"value":{"type":["number","null"]},"numerator":{"type":["integer","null"],"minimum":0},"denominator":{"type":["integer","null"],"minimum":0},"horizon_days":{"type":"integer","exclusiveMinimum":0},"matures_at":{"type":"string","format":"date-time"},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","numerator","denominator","availability","reason"]}]},"research.tierAB":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","enum":["people","messages","meetings","deals"]},"value":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["entities"]},"value":{"type":["integer","null"],"minimum":0},"ambiguous_receipts":{"type":"integer","minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","ambiguous_receipts","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["money"]},"value":{"type":["array","null"],"items":{"type":"object","properties":{"currency":{"type":["string","null"],"minLength":1},"amount":{"type":"number"},"deals":{"type":"integer","exclusiveMinimum":0}},"required":["currency","amount","deals"]}},"unpriced":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","unpriced","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["ratio"]},"value":{"type":["number","null"]},"numerator":{"type":["integer","null"],"minimum":0},"denominator":{"type":["integer","null"],"minimum":0},"horizon_days":{"type":"integer","exclusiveMinimum":0},"matures_at":{"type":"string","format":"date-time"},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","numerator","denominator","availability","reason"]}]},"research.tierC":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","enum":["people","messages","meetings","deals"]},"value":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["entities"]},"value":{"type":["integer","null"],"minimum":0},"ambiguous_receipts":{"type":"integer","minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","ambiguous_receipts","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["money"]},"value":{"type":["array","null"],"items":{"type":"object","properties":{"currency":{"type":["string","null"],"minLength":1},"amount":{"type":"number"},"deals":{"type":"integer","exclusiveMinimum":0}},"required":["currency","amount","deals"]}},"unpriced":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","unpriced","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["ratio"]},"value":{"type":["number","null"]},"numerator":{"type":["integer","null"],"minimum":0},"denominator":{"type":["integer","null"],"minimum":0},"horizon_days":{"type":"integer","exclusiveMinimum":0},"matures_at":{"type":"string","format":"date-time"},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","numerator","denominator","availability","reason"]}]},"research.unclassified":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","enum":["people","messages","meetings","deals"]},"value":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["entities"]},"value":{"type":["integer","null"],"minimum":0},"ambiguous_receipts":{"type":"integer","minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","ambiguous_receipts","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["money"]},"value":{"type":["array","null"],"items":{"type":"object","properties":{"currency":{"type":["string","null"],"minLength":1},"amount":{"type":"number"},"deals":{"type":"integer","exclusiveMinimum":0}},"required":["currency","amount","deals"]}},"unpriced":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","unpriced","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["ratio"]},"value":{"type":["number","null"]},"numerator":{"type":["integer","null"],"minimum":0},"denominator":{"type":["integer","null"],"minimum":0},"horizon_days":{"type":"integer","exclusiveMinimum":0},"matures_at":{"type":"string","format":"date-time"},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","numerator","denominator","availability","reason"]}]},"research.quality":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","enum":["people","messages","meetings","deals"]},"value":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["entities"]},"value":{"type":["integer","null"],"minimum":0},"ambiguous_receipts":{"type":"integer","minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","ambiguous_receipts","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["money"]},"value":{"type":["array","null"],"items":{"type":"object","properties":{"currency":{"type":["string","null"],"minLength":1},"amount":{"type":"number"},"deals":{"type":"integer","exclusiveMinimum":0}},"required":["currency","amount","deals"]}},"unpriced":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","unpriced","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["ratio"]},"value":{"type":["number","null"]},"numerator":{"type":["integer","null"],"minimum":0},"denominator":{"type":["integer","null"],"minimum":0},"horizon_days":{"type":"integer","exclusiveMinimum":0},"matures_at":{"type":"string","format":"date-time"},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","numerator","denominator","availability","reason"]}]},"discovery.suppressedBeforeResearch":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","enum":["people","messages","meetings","deals"]},"value":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["entities"]},"value":{"type":["integer","null"],"minimum":0},"ambiguous_receipts":{"type":"integer","minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","ambiguous_receipts","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["money"]},"value":{"type":["array","null"],"items":{"type":"object","properties":{"currency":{"type":["string","null"],"minLength":1},"amount":{"type":"number"},"deals":{"type":"integer","exclusiveMinimum":0}},"required":["currency","amount","deals"]}},"unpriced":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","unpriced","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["ratio"]},"value":{"type":["number","null"]},"numerator":{"type":["integer","null"],"minimum":0},"denominator":{"type":["integer","null"],"minimum":0},"horizon_days":{"type":"integer","exclusiveMinimum":0},"matures_at":{"type":"string","format":"date-time"},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","numerator","denominator","availability","reason"]}]},"crm.companiesCreated":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","enum":["people","messages","meetings","deals"]},"value":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["entities"]},"value":{"type":["integer","null"],"minimum":0},"ambiguous_receipts":{"type":"integer","minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","ambiguous_receipts","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["money"]},"value":{"type":["array","null"],"items":{"type":"object","properties":{"currency":{"type":["string","null"],"minLength":1},"amount":{"type":"number"},"deals":{"type":"integer","exclusiveMinimum":0}},"required":["currency","amount","deals"]}},"unpriced":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","unpriced","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["ratio"]},"value":{"type":["number","null"]},"numerator":{"type":["integer","null"],"minimum":0},"denominator":{"type":["integer","null"],"minimum":0},"horizon_days":{"type":"integer","exclusiveMinimum":0},"matures_at":{"type":"string","format":"date-time"},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","numerator","denominator","availability","reason"]}]},"crm.companiesEnriched":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","enum":["people","messages","meetings","deals"]},"value":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["entities"]},"value":{"type":["integer","null"],"minimum":0},"ambiguous_receipts":{"type":"integer","minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","ambiguous_receipts","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["money"]},"value":{"type":["array","null"],"items":{"type":"object","properties":{"currency":{"type":["string","null"],"minLength":1},"amount":{"type":"number"},"deals":{"type":"integer","exclusiveMinimum":0}},"required":["currency","amount","deals"]}},"unpriced":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","unpriced","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["ratio"]},"value":{"type":["number","null"]},"numerator":{"type":["integer","null"],"minimum":0},"denominator":{"type":["integer","null"],"minimum":0},"horizon_days":{"type":"integer","exclusiveMinimum":0},"matures_at":{"type":"string","format":"date-time"},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","numerator","denominator","availability","reason"]}]},"crm.contactsCreated":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","enum":["people","messages","meetings","deals"]},"value":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["entities"]},"value":{"type":["integer","null"],"minimum":0},"ambiguous_receipts":{"type":"integer","minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","ambiguous_receipts","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["money"]},"value":{"type":["array","null"],"items":{"type":"object","properties":{"currency":{"type":["string","null"],"minLength":1},"amount":{"type":"number"},"deals":{"type":"integer","exclusiveMinimum":0}},"required":["currency","amount","deals"]}},"unpriced":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","unpriced","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["ratio"]},"value":{"type":["number","null"]},"numerator":{"type":["integer","null"],"minimum":0},"denominator":{"type":["integer","null"],"minimum":0},"horizon_days":{"type":"integer","exclusiveMinimum":0},"matures_at":{"type":"string","format":"date-time"},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","numerator","denominator","availability","reason"]}]},"crm.contactsEnriched":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","enum":["people","messages","meetings","deals"]},"value":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["entities"]},"value":{"type":["integer","null"],"minimum":0},"ambiguous_receipts":{"type":"integer","minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","ambiguous_receipts","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["money"]},"value":{"type":["array","null"],"items":{"type":"object","properties":{"currency":{"type":["string","null"],"minLength":1},"amount":{"type":"number"},"deals":{"type":"integer","exclusiveMinimum":0}},"required":["currency","amount","deals"]}},"unpriced":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","unpriced","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["ratio"]},"value":{"type":["number","null"]},"numerator":{"type":["integer","null"],"minimum":0},"denominator":{"type":["integer","null"],"minimum":0},"horizon_days":{"type":"integer","exclusiveMinimum":0},"matures_at":{"type":"string","format":"date-time"},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","numerator","denominator","availability","reason"]}]},"pipeline.meetingsBooked":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","enum":["people","messages","meetings","deals"]},"value":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["entities"]},"value":{"type":["integer","null"],"minimum":0},"ambiguous_receipts":{"type":"integer","minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","ambiguous_receipts","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["money"]},"value":{"type":["array","null"],"items":{"type":"object","properties":{"currency":{"type":["string","null"],"minLength":1},"amount":{"type":"number"},"deals":{"type":"integer","exclusiveMinimum":0}},"required":["currency","amount","deals"]}},"unpriced":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","unpriced","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["ratio"]},"value":{"type":["number","null"]},"numerator":{"type":["integer","null"],"minimum":0},"denominator":{"type":["integer","null"],"minimum":0},"horizon_days":{"type":"integer","exclusiveMinimum":0},"matures_at":{"type":"string","format":"date-time"},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","numerator","denominator","availability","reason"]}]},"pipeline.dealsCreated":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","enum":["people","messages","meetings","deals"]},"value":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["entities"]},"value":{"type":["integer","null"],"minimum":0},"ambiguous_receipts":{"type":"integer","minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","ambiguous_receipts","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["money"]},"value":{"type":["array","null"],"items":{"type":"object","properties":{"currency":{"type":["string","null"],"minLength":1},"amount":{"type":"number"},"deals":{"type":"integer","exclusiveMinimum":0}},"required":["currency","amount","deals"]}},"unpriced":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","unpriced","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["ratio"]},"value":{"type":["number","null"]},"numerator":{"type":["integer","null"],"minimum":0},"denominator":{"type":["integer","null"],"minimum":0},"horizon_days":{"type":"integer","exclusiveMinimum":0},"matures_at":{"type":"string","format":"date-time"},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","numerator","denominator","availability","reason"]}]},"pipeline.dealsWon":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","enum":["people","messages","meetings","deals"]},"value":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["entities"]},"value":{"type":["integer","null"],"minimum":0},"ambiguous_receipts":{"type":"integer","minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","ambiguous_receipts","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["money"]},"value":{"type":["array","null"],"items":{"type":"object","properties":{"currency":{"type":["string","null"],"minLength":1},"amount":{"type":"number"},"deals":{"type":"integer","exclusiveMinimum":0}},"required":["currency","amount","deals"]}},"unpriced":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","unpriced","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["ratio"]},"value":{"type":["number","null"]},"numerator":{"type":["integer","null"],"minimum":0},"denominator":{"type":["integer","null"],"minimum":0},"horizon_days":{"type":"integer","exclusiveMinimum":0},"matures_at":{"type":"string","format":"date-time"},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","numerator","denominator","availability","reason"]}]},"pipeline.createdDealValue":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","enum":["people","messages","meetings","deals"]},"value":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["entities"]},"value":{"type":["integer","null"],"minimum":0},"ambiguous_receipts":{"type":"integer","minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","ambiguous_receipts","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["money"]},"value":{"type":["array","null"],"items":{"type":"object","properties":{"currency":{"type":["string","null"],"minLength":1},"amount":{"type":"number"},"deals":{"type":"integer","exclusiveMinimum":0}},"required":["currency","amount","deals"]}},"unpriced":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","unpriced","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["ratio"]},"value":{"type":["number","null"]},"numerator":{"type":["integer","null"],"minimum":0},"denominator":{"type":["integer","null"],"minimum":0},"horizon_days":{"type":"integer","exclusiveMinimum":0},"matures_at":{"type":"string","format":"date-time"},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","numerator","denominator","availability","reason"]}]},"pipeline.wonDealValue":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","enum":["people","messages","meetings","deals"]},"value":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["entities"]},"value":{"type":["integer","null"],"minimum":0},"ambiguous_receipts":{"type":"integer","minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","ambiguous_receipts","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["money"]},"value":{"type":["array","null"],"items":{"type":"object","properties":{"currency":{"type":["string","null"],"minLength":1},"amount":{"type":"number"},"deals":{"type":"integer","exclusiveMinimum":0}},"required":["currency","amount","deals"]}},"unpriced":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","unpriced","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["ratio"]},"value":{"type":["number","null"]},"numerator":{"type":["integer","null"],"minimum":0},"denominator":{"type":["integer","null"],"minimum":0},"horizon_days":{"type":"integer","exclusiveMinimum":0},"matures_at":{"type":"string","format":"date-time"},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","numerator","denominator","availability","reason"]}]},"pipeline.linkedin.meetingsBooked":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","enum":["people","messages","meetings","deals"]},"value":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["entities"]},"value":{"type":["integer","null"],"minimum":0},"ambiguous_receipts":{"type":"integer","minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","ambiguous_receipts","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["money"]},"value":{"type":["array","null"],"items":{"type":"object","properties":{"currency":{"type":["string","null"],"minLength":1},"amount":{"type":"number"},"deals":{"type":"integer","exclusiveMinimum":0}},"required":["currency","amount","deals"]}},"unpriced":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","unpriced","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["ratio"]},"value":{"type":["number","null"]},"numerator":{"type":["integer","null"],"minimum":0},"denominator":{"type":["integer","null"],"minimum":0},"horizon_days":{"type":"integer","exclusiveMinimum":0},"matures_at":{"type":"string","format":"date-time"},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","numerator","denominator","availability","reason"]}]},"pipeline.linkedin.dealsCreated":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","enum":["people","messages","meetings","deals"]},"value":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["entities"]},"value":{"type":["integer","null"],"minimum":0},"ambiguous_receipts":{"type":"integer","minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","ambiguous_receipts","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["money"]},"value":{"type":["array","null"],"items":{"type":"object","properties":{"currency":{"type":["string","null"],"minLength":1},"amount":{"type":"number"},"deals":{"type":"integer","exclusiveMinimum":0}},"required":["currency","amount","deals"]}},"unpriced":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","unpriced","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["ratio"]},"value":{"type":["number","null"]},"numerator":{"type":["integer","null"],"minimum":0},"denominator":{"type":["integer","null"],"minimum":0},"horizon_days":{"type":"integer","exclusiveMinimum":0},"matures_at":{"type":"string","format":"date-time"},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","numerator","denominator","availability","reason"]}]},"pipeline.linkedin.dealsWon":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","enum":["people","messages","meetings","deals"]},"value":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["entities"]},"value":{"type":["integer","null"],"minimum":0},"ambiguous_receipts":{"type":"integer","minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","ambiguous_receipts","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["money"]},"value":{"type":["array","null"],"items":{"type":"object","properties":{"currency":{"type":["string","null"],"minLength":1},"amount":{"type":"number"},"deals":{"type":"integer","exclusiveMinimum":0}},"required":["currency","amount","deals"]}},"unpriced":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","unpriced","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["ratio"]},"value":{"type":["number","null"]},"numerator":{"type":["integer","null"],"minimum":0},"denominator":{"type":["integer","null"],"minimum":0},"horizon_days":{"type":"integer","exclusiveMinimum":0},"matures_at":{"type":"string","format":"date-time"},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","numerator","denominator","availability","reason"]}]},"pipeline.linkedin.createdDealValue":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","enum":["people","messages","meetings","deals"]},"value":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["entities"]},"value":{"type":["integer","null"],"minimum":0},"ambiguous_receipts":{"type":"integer","minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","ambiguous_receipts","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["money"]},"value":{"type":["array","null"],"items":{"type":"object","properties":{"currency":{"type":["string","null"],"minLength":1},"amount":{"type":"number"},"deals":{"type":"integer","exclusiveMinimum":0}},"required":["currency","amount","deals"]}},"unpriced":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","unpriced","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["ratio"]},"value":{"type":["number","null"]},"numerator":{"type":["integer","null"],"minimum":0},"denominator":{"type":["integer","null"],"minimum":0},"horizon_days":{"type":"integer","exclusiveMinimum":0},"matures_at":{"type":"string","format":"date-time"},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","numerator","denominator","availability","reason"]}]},"pipeline.linkedin.wonDealValue":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","enum":["people","messages","meetings","deals"]},"value":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["entities"]},"value":{"type":["integer","null"],"minimum":0},"ambiguous_receipts":{"type":"integer","minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","ambiguous_receipts","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["money"]},"value":{"type":["array","null"],"items":{"type":"object","properties":{"currency":{"type":["string","null"],"minLength":1},"amount":{"type":"number"},"deals":{"type":"integer","exclusiveMinimum":0}},"required":["currency","amount","deals"]}},"unpriced":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","unpriced","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["ratio"]},"value":{"type":["number","null"]},"numerator":{"type":["integer","null"],"minimum":0},"denominator":{"type":["integer","null"],"minimum":0},"horizon_days":{"type":"integer","exclusiveMinimum":0},"matures_at":{"type":"string","format":"date-time"},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","numerator","denominator","availability","reason"]}]},"pipeline.email.meetingsBooked":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","enum":["people","messages","meetings","deals"]},"value":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["entities"]},"value":{"type":["integer","null"],"minimum":0},"ambiguous_receipts":{"type":"integer","minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","ambiguous_receipts","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["money"]},"value":{"type":["array","null"],"items":{"type":"object","properties":{"currency":{"type":["string","null"],"minLength":1},"amount":{"type":"number"},"deals":{"type":"integer","exclusiveMinimum":0}},"required":["currency","amount","deals"]}},"unpriced":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","unpriced","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["ratio"]},"value":{"type":["number","null"]},"numerator":{"type":["integer","null"],"minimum":0},"denominator":{"type":["integer","null"],"minimum":0},"horizon_days":{"type":"integer","exclusiveMinimum":0},"matures_at":{"type":"string","format":"date-time"},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","numerator","denominator","availability","reason"]}]},"pipeline.email.dealsCreated":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","enum":["people","messages","meetings","deals"]},"value":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["entities"]},"value":{"type":["integer","null"],"minimum":0},"ambiguous_receipts":{"type":"integer","minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","ambiguous_receipts","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["money"]},"value":{"type":["array","null"],"items":{"type":"object","properties":{"currency":{"type":["string","null"],"minLength":1},"amount":{"type":"number"},"deals":{"type":"integer","exclusiveMinimum":0}},"required":["currency","amount","deals"]}},"unpriced":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","unpriced","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["ratio"]},"value":{"type":["number","null"]},"numerator":{"type":["integer","null"],"minimum":0},"denominator":{"type":["integer","null"],"minimum":0},"horizon_days":{"type":"integer","exclusiveMinimum":0},"matures_at":{"type":"string","format":"date-time"},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","numerator","denominator","availability","reason"]}]},"pipeline.email.dealsWon":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","enum":["people","messages","meetings","deals"]},"value":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["entities"]},"value":{"type":["integer","null"],"minimum":0},"ambiguous_receipts":{"type":"integer","minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","ambiguous_receipts","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["money"]},"value":{"type":["array","null"],"items":{"type":"object","properties":{"currency":{"type":["string","null"],"minLength":1},"amount":{"type":"number"},"deals":{"type":"integer","exclusiveMinimum":0}},"required":["currency","amount","deals"]}},"unpriced":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","unpriced","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["ratio"]},"value":{"type":["number","null"]},"numerator":{"type":["integer","null"],"minimum":0},"denominator":{"type":["integer","null"],"minimum":0},"horizon_days":{"type":"integer","exclusiveMinimum":0},"matures_at":{"type":"string","format":"date-time"},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","numerator","denominator","availability","reason"]}]},"pipeline.email.createdDealValue":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","enum":["people","messages","meetings","deals"]},"value":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["entities"]},"value":{"type":["integer","null"],"minimum":0},"ambiguous_receipts":{"type":"integer","minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","ambiguous_receipts","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["money"]},"value":{"type":["array","null"],"items":{"type":"object","properties":{"currency":{"type":["string","null"],"minLength":1},"amount":{"type":"number"},"deals":{"type":"integer","exclusiveMinimum":0}},"required":["currency","amount","deals"]}},"unpriced":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","unpriced","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["ratio"]},"value":{"type":["number","null"]},"numerator":{"type":["integer","null"],"minimum":0},"denominator":{"type":["integer","null"],"minimum":0},"horizon_days":{"type":"integer","exclusiveMinimum":0},"matures_at":{"type":"string","format":"date-time"},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","numerator","denominator","availability","reason"]}]},"pipeline.email.wonDealValue":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","enum":["people","messages","meetings","deals"]},"value":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["entities"]},"value":{"type":["integer","null"],"minimum":0},"ambiguous_receipts":{"type":"integer","minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","ambiguous_receipts","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["money"]},"value":{"type":["array","null"],"items":{"type":"object","properties":{"currency":{"type":["string","null"],"minLength":1},"amount":{"type":"number"},"deals":{"type":"integer","exclusiveMinimum":0}},"required":["currency","amount","deals"]}},"unpriced":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","unpriced","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["ratio"]},"value":{"type":["number","null"]},"numerator":{"type":["integer","null"],"minimum":0},"denominator":{"type":["integer","null"],"minimum":0},"horizon_days":{"type":"integer","exclusiveMinimum":0},"matures_at":{"type":"string","format":"date-time"},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","numerator","denominator","availability","reason"]}]},"conversion.connectionAccepted":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","enum":["people","messages","meetings","deals"]},"value":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["entities"]},"value":{"type":["integer","null"],"minimum":0},"ambiguous_receipts":{"type":"integer","minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","ambiguous_receipts","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["money"]},"value":{"type":["array","null"],"items":{"type":"object","properties":{"currency":{"type":["string","null"],"minLength":1},"amount":{"type":"number"},"deals":{"type":"integer","exclusiveMinimum":0}},"required":["currency","amount","deals"]}},"unpriced":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","unpriced","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["ratio"]},"value":{"type":["number","null"]},"numerator":{"type":["integer","null"],"minimum":0},"denominator":{"type":["integer","null"],"minimum":0},"horizon_days":{"type":"integer","exclusiveMinimum":0},"matures_at":{"type":"string","format":"date-time"},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","numerator","denominator","availability","reason"]}]},"conversion.linkedin.replied":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","enum":["people","messages","meetings","deals"]},"value":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["entities"]},"value":{"type":["integer","null"],"minimum":0},"ambiguous_receipts":{"type":"integer","minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","ambiguous_receipts","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["money"]},"value":{"type":["array","null"],"items":{"type":"object","properties":{"currency":{"type":["string","null"],"minLength":1},"amount":{"type":"number"},"deals":{"type":"integer","exclusiveMinimum":0}},"required":["currency","amount","deals"]}},"unpriced":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","unpriced","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["ratio"]},"value":{"type":["number","null"]},"numerator":{"type":["integer","null"],"minimum":0},"denominator":{"type":["integer","null"],"minimum":0},"horizon_days":{"type":"integer","exclusiveMinimum":0},"matures_at":{"type":"string","format":"date-time"},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","numerator","denominator","availability","reason"]}]},"conversion.email.replied":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","enum":["people","messages","meetings","deals"]},"value":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["entities"]},"value":{"type":["integer","null"],"minimum":0},"ambiguous_receipts":{"type":"integer","minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","ambiguous_receipts","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["money"]},"value":{"type":["array","null"],"items":{"type":"object","properties":{"currency":{"type":["string","null"],"minLength":1},"amount":{"type":"number"},"deals":{"type":"integer","exclusiveMinimum":0}},"required":["currency","amount","deals"]}},"unpriced":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","unpriced","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["ratio"]},"value":{"type":["number","null"]},"numerator":{"type":["integer","null"],"minimum":0},"denominator":{"type":["integer","null"],"minimum":0},"horizon_days":{"type":"integer","exclusiveMinimum":0},"matures_at":{"type":"string","format":"date-time"},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","numerator","denominator","availability","reason"]}]},"conversion.meeting":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","enum":["people","messages","meetings","deals"]},"value":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["entities"]},"value":{"type":["integer","null"],"minimum":0},"ambiguous_receipts":{"type":"integer","minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","ambiguous_receipts","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["money"]},"value":{"type":["array","null"],"items":{"type":"object","properties":{"currency":{"type":["string","null"],"minLength":1},"amount":{"type":"number"},"deals":{"type":"integer","exclusiveMinimum":0}},"required":["currency","amount","deals"]}},"unpriced":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","unpriced","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["ratio"]},"value":{"type":["number","null"]},"numerator":{"type":["integer","null"],"minimum":0},"denominator":{"type":["integer","null"],"minimum":0},"horizon_days":{"type":"integer","exclusiveMinimum":0},"matures_at":{"type":"string","format":"date-time"},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","numerator","denominator","availability","reason"]}]},"conversion.won":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","enum":["people","messages","meetings","deals"]},"value":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["entities"]},"value":{"type":["integer","null"],"minimum":0},"ambiguous_receipts":{"type":"integer","minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","ambiguous_receipts","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["money"]},"value":{"type":["array","null"],"items":{"type":"object","properties":{"currency":{"type":["string","null"],"minLength":1},"amount":{"type":"number"},"deals":{"type":"integer","exclusiveMinimum":0}},"required":["currency","amount","deals"]}},"unpriced":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","unpriced","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["ratio"]},"value":{"type":["number","null"]},"numerator":{"type":["integer","null"],"minimum":0},"denominator":{"type":["integer","null"],"minimum":0},"horizon_days":{"type":"integer","exclusiveMinimum":0},"matures_at":{"type":"string","format":"date-time"},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","numerator","denominator","availability","reason"]}]}},"required":["linkedin.connectionsSent","linkedin.connectionsAccepted","linkedin.peopleMessaged","linkedin.peopleReplied","email.messagesSent","email.peopleEmailed","email.peopleBounced","email.peopleBlocked","email.peopleReplied","research.researched","research.tierA","research.tierB","research.tierAB","research.tierC","research.unclassified","research.quality","discovery.suppressedBeforeResearch","crm.companiesCreated","crm.companiesEnriched","crm.contactsCreated","crm.contactsEnriched","pipeline.meetingsBooked","pipeline.dealsCreated","pipeline.dealsWon","pipeline.createdDealValue","pipeline.wonDealValue","pipeline.linkedin.meetingsBooked","pipeline.linkedin.dealsCreated","pipeline.linkedin.dealsWon","pipeline.linkedin.createdDealValue","pipeline.linkedin.wonDealValue","pipeline.email.meetingsBooked","pipeline.email.dealsCreated","pipeline.email.dealsWon","pipeline.email.createdDealValue","pipeline.email.wonDealValue","conversion.connectionAccepted","conversion.linkedin.replied","conversion.email.replied","conversion.meeting","conversion.won"]}},"required":["workspace_id","period","observed_at","senders","sources","schema_version","publication_state","period_closed","metrics"]}},"required":["workspace_id","week_start","period_start","period_end","calculated_at","payload"]},"maxItems":105}},"required":["reports"]}}}},"400":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/workspace/reports/cuts":{"get":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"date-time","description":"Included timestamp with an explicit offset; boundaries and weekdays are evaluated in UTC."},"required":true,"description":"Included timestamp with an explicit offset; boundaries and weekdays are evaluated in UTC.","name":"start","in":"query"},{"schema":{"type":"string","format":"date-time","description":"Excluded timestamp, after start and at most 56 days later."},"required":true,"description":"Excluded timestamp, after start and at most 56 days later.","name":"end","in":"query"},{"schema":{"type":["integer","null"],"minimum":0,"maximum":2147483647,"default":0},"required":false,"name":"offset","in":"query"},{"schema":{"type":"integer","minimum":1,"maximum":500,"default":100},"required":false,"name":"limit","in":"query"},{"schema":{"type":["integer","null"],"minimum":0,"maximum":50,"default":20},"required":false,"name":"sample_limit","in":"query"},{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"responses":{"200":{"description":"Read cohort rates by segment, sender, template step, search source, UTC weekday and mailbox (email replies, bounces, blocks) for [start, end), at most 56 days. Includes shared totals, observed and available counts, unknown attribution, coverage and maturity, plus bounded sent-message and research samples with truncation flags. Page with next_offset; a partial page cannot reconcile a dimension. Keep partial, collecting and unavailable states; never recompute rates or infer attribution. limit 1–500, sample_limit 0–50 per kind.","content":{"application/json":{"schema":{"type":"object","properties":{"schema_version":{"type":"number","enum":[1]},"workspace_id":{"type":"string","format":"uuid"},"period":{"type":"object","properties":{"start":{"type":"string","format":"date-time"},"end":{"type":"string","format":"date-time"},"timezone":{"type":"string","enum":["UTC"]},"end_exclusive":{"type":"boolean","enum":[true]}},"required":["start","end","timezone","end_exclusive"]},"observed_at":{"type":"string","format":"date-time"},"shared_totals":{"type":"object","properties":{"workspace_id":{"type":"string","format":"uuid"},"period":{"type":"object","properties":{"start":{"type":"string","format":"date-time"},"end":{"type":"string","format":"date-time"}},"required":["start","end"]},"observed_at":{"type":"string","format":"date-time"},"senders":{"type":"array","items":{"type":"object","properties":{"sender_id":{"type":"string","format":"uuid"},"display_name":{"type":"string"},"deleted":{"type":"boolean"},"metrics":{"type":"object","properties":{"linkedin.connectionsSent":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","enum":["people","messages","meetings","deals"]},"value":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["entities"]},"value":{"type":["integer","null"],"minimum":0},"ambiguous_receipts":{"type":"integer","minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","ambiguous_receipts","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["money"]},"value":{"type":["array","null"],"items":{"type":"object","properties":{"currency":{"type":["string","null"],"minLength":1},"amount":{"type":"number"},"deals":{"type":"integer","exclusiveMinimum":0}},"required":["currency","amount","deals"]}},"unpriced":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","unpriced","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["ratio"]},"value":{"type":["number","null"]},"numerator":{"type":["integer","null"],"minimum":0},"denominator":{"type":["integer","null"],"minimum":0},"horizon_days":{"type":"integer","exclusiveMinimum":0},"matures_at":{"type":"string","format":"date-time"},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","numerator","denominator","availability","reason"]}]},"linkedin.peopleMessaged":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","enum":["people","messages","meetings","deals"]},"value":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["entities"]},"value":{"type":["integer","null"],"minimum":0},"ambiguous_receipts":{"type":"integer","minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","ambiguous_receipts","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["money"]},"value":{"type":["array","null"],"items":{"type":"object","properties":{"currency":{"type":["string","null"],"minLength":1},"amount":{"type":"number"},"deals":{"type":"integer","exclusiveMinimum":0}},"required":["currency","amount","deals"]}},"unpriced":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","unpriced","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["ratio"]},"value":{"type":["number","null"]},"numerator":{"type":["integer","null"],"minimum":0},"denominator":{"type":["integer","null"],"minimum":0},"horizon_days":{"type":"integer","exclusiveMinimum":0},"matures_at":{"type":"string","format":"date-time"},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","numerator","denominator","availability","reason"]}]},"email.peopleEmailed":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","enum":["people","messages","meetings","deals"]},"value":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["entities"]},"value":{"type":["integer","null"],"minimum":0},"ambiguous_receipts":{"type":"integer","minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","ambiguous_receipts","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["money"]},"value":{"type":["array","null"],"items":{"type":"object","properties":{"currency":{"type":["string","null"],"minLength":1},"amount":{"type":"number"},"deals":{"type":"integer","exclusiveMinimum":0}},"required":["currency","amount","deals"]}},"unpriced":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","unpriced","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["ratio"]},"value":{"type":["number","null"]},"numerator":{"type":["integer","null"],"minimum":0},"denominator":{"type":["integer","null"],"minimum":0},"horizon_days":{"type":"integer","exclusiveMinimum":0},"matures_at":{"type":"string","format":"date-time"},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","numerator","denominator","availability","reason"]}]}},"required":["linkedin.connectionsSent","linkedin.peopleMessaged","email.peopleEmailed"]}},"required":["sender_id","display_name","deleted","metrics"]}},"sources":{"type":"object","properties":{"crm":{"type":"object","properties":{"provider":{"type":["string","null"],"enum":["hubspot","attio",null]},"connected":{"type":"boolean"},"synced_at":{"type":["string","null"],"format":"date-time"},"failed":{"type":"boolean"}},"required":["provider","connected","synced_at","failed"]},"pipeline":{"type":"object","properties":{"provider":{"type":["string","null"],"enum":["lifty","hubspot","attio",null]},"connected":{"type":"boolean"},"synced_at":{"type":["string","null"],"format":"date-time"},"failed":{"type":"boolean"}},"required":["provider","connected","synced_at","failed"]}},"required":["crm"]},"period_closed":{"type":"boolean"},"metrics":{"type":"object","properties":{"linkedin.connectionsSent":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","enum":["people","messages","meetings","deals"]},"value":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["entities"]},"value":{"type":["integer","null"],"minimum":0},"ambiguous_receipts":{"type":"integer","minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","ambiguous_receipts","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["money"]},"value":{"type":["array","null"],"items":{"type":"object","properties":{"currency":{"type":["string","null"],"minLength":1},"amount":{"type":"number"},"deals":{"type":"integer","exclusiveMinimum":0}},"required":["currency","amount","deals"]}},"unpriced":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","unpriced","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["ratio"]},"value":{"type":["number","null"]},"numerator":{"type":["integer","null"],"minimum":0},"denominator":{"type":["integer","null"],"minimum":0},"horizon_days":{"type":"integer","exclusiveMinimum":0},"matures_at":{"type":"string","format":"date-time"},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","numerator","denominator","availability","reason"]}]},"linkedin.connectionsAccepted":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","enum":["people","messages","meetings","deals"]},"value":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["entities"]},"value":{"type":["integer","null"],"minimum":0},"ambiguous_receipts":{"type":"integer","minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","ambiguous_receipts","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["money"]},"value":{"type":["array","null"],"items":{"type":"object","properties":{"currency":{"type":["string","null"],"minLength":1},"amount":{"type":"number"},"deals":{"type":"integer","exclusiveMinimum":0}},"required":["currency","amount","deals"]}},"unpriced":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","unpriced","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["ratio"]},"value":{"type":["number","null"]},"numerator":{"type":["integer","null"],"minimum":0},"denominator":{"type":["integer","null"],"minimum":0},"horizon_days":{"type":"integer","exclusiveMinimum":0},"matures_at":{"type":"string","format":"date-time"},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","numerator","denominator","availability","reason"]}]},"linkedin.peopleMessaged":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","enum":["people","messages","meetings","deals"]},"value":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["entities"]},"value":{"type":["integer","null"],"minimum":0},"ambiguous_receipts":{"type":"integer","minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","ambiguous_receipts","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["money"]},"value":{"type":["array","null"],"items":{"type":"object","properties":{"currency":{"type":["string","null"],"minLength":1},"amount":{"type":"number"},"deals":{"type":"integer","exclusiveMinimum":0}},"required":["currency","amount","deals"]}},"unpriced":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","unpriced","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["ratio"]},"value":{"type":["number","null"]},"numerator":{"type":["integer","null"],"minimum":0},"denominator":{"type":["integer","null"],"minimum":0},"horizon_days":{"type":"integer","exclusiveMinimum":0},"matures_at":{"type":"string","format":"date-time"},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","numerator","denominator","availability","reason"]}]},"linkedin.peopleReplied":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","enum":["people","messages","meetings","deals"]},"value":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["entities"]},"value":{"type":["integer","null"],"minimum":0},"ambiguous_receipts":{"type":"integer","minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","ambiguous_receipts","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["money"]},"value":{"type":["array","null"],"items":{"type":"object","properties":{"currency":{"type":["string","null"],"minLength":1},"amount":{"type":"number"},"deals":{"type":"integer","exclusiveMinimum":0}},"required":["currency","amount","deals"]}},"unpriced":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","unpriced","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["ratio"]},"value":{"type":["number","null"]},"numerator":{"type":["integer","null"],"minimum":0},"denominator":{"type":["integer","null"],"minimum":0},"horizon_days":{"type":"integer","exclusiveMinimum":0},"matures_at":{"type":"string","format":"date-time"},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","numerator","denominator","availability","reason"]}]},"email.messagesSent":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","enum":["people","messages","meetings","deals"]},"value":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["entities"]},"value":{"type":["integer","null"],"minimum":0},"ambiguous_receipts":{"type":"integer","minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","ambiguous_receipts","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["money"]},"value":{"type":["array","null"],"items":{"type":"object","properties":{"currency":{"type":["string","null"],"minLength":1},"amount":{"type":"number"},"deals":{"type":"integer","exclusiveMinimum":0}},"required":["currency","amount","deals"]}},"unpriced":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","unpriced","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["ratio"]},"value":{"type":["number","null"]},"numerator":{"type":["integer","null"],"minimum":0},"denominator":{"type":["integer","null"],"minimum":0},"horizon_days":{"type":"integer","exclusiveMinimum":0},"matures_at":{"type":"string","format":"date-time"},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","numerator","denominator","availability","reason"]}]},"email.peopleEmailed":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","enum":["people","messages","meetings","deals"]},"value":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["entities"]},"value":{"type":["integer","null"],"minimum":0},"ambiguous_receipts":{"type":"integer","minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","ambiguous_receipts","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["money"]},"value":{"type":["array","null"],"items":{"type":"object","properties":{"currency":{"type":["string","null"],"minLength":1},"amount":{"type":"number"},"deals":{"type":"integer","exclusiveMinimum":0}},"required":["currency","amount","deals"]}},"unpriced":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","unpriced","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["ratio"]},"value":{"type":["number","null"]},"numerator":{"type":["integer","null"],"minimum":0},"denominator":{"type":["integer","null"],"minimum":0},"horizon_days":{"type":"integer","exclusiveMinimum":0},"matures_at":{"type":"string","format":"date-time"},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","numerator","denominator","availability","reason"]}]},"email.peopleBounced":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","enum":["people","messages","meetings","deals"]},"value":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["entities"]},"value":{"type":["integer","null"],"minimum":0},"ambiguous_receipts":{"type":"integer","minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","ambiguous_receipts","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["money"]},"value":{"type":["array","null"],"items":{"type":"object","properties":{"currency":{"type":["string","null"],"minLength":1},"amount":{"type":"number"},"deals":{"type":"integer","exclusiveMinimum":0}},"required":["currency","amount","deals"]}},"unpriced":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","unpriced","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["ratio"]},"value":{"type":["number","null"]},"numerator":{"type":["integer","null"],"minimum":0},"denominator":{"type":["integer","null"],"minimum":0},"horizon_days":{"type":"integer","exclusiveMinimum":0},"matures_at":{"type":"string","format":"date-time"},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","numerator","denominator","availability","reason"]}]},"email.peopleBlocked":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","enum":["people","messages","meetings","deals"]},"value":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["entities"]},"value":{"type":["integer","null"],"minimum":0},"ambiguous_receipts":{"type":"integer","minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","ambiguous_receipts","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["money"]},"value":{"type":["array","null"],"items":{"type":"object","properties":{"currency":{"type":["string","null"],"minLength":1},"amount":{"type":"number"},"deals":{"type":"integer","exclusiveMinimum":0}},"required":["currency","amount","deals"]}},"unpriced":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","unpriced","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["ratio"]},"value":{"type":["number","null"]},"numerator":{"type":["integer","null"],"minimum":0},"denominator":{"type":["integer","null"],"minimum":0},"horizon_days":{"type":"integer","exclusiveMinimum":0},"matures_at":{"type":"string","format":"date-time"},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","numerator","denominator","availability","reason"]}]},"email.peopleReplied":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","enum":["people","messages","meetings","deals"]},"value":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["entities"]},"value":{"type":["integer","null"],"minimum":0},"ambiguous_receipts":{"type":"integer","minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","ambiguous_receipts","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["money"]},"value":{"type":["array","null"],"items":{"type":"object","properties":{"currency":{"type":["string","null"],"minLength":1},"amount":{"type":"number"},"deals":{"type":"integer","exclusiveMinimum":0}},"required":["currency","amount","deals"]}},"unpriced":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","unpriced","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["ratio"]},"value":{"type":["number","null"]},"numerator":{"type":["integer","null"],"minimum":0},"denominator":{"type":["integer","null"],"minimum":0},"horizon_days":{"type":"integer","exclusiveMinimum":0},"matures_at":{"type":"string","format":"date-time"},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","numerator","denominator","availability","reason"]}]},"research.researched":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","enum":["people","messages","meetings","deals"]},"value":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["entities"]},"value":{"type":["integer","null"],"minimum":0},"ambiguous_receipts":{"type":"integer","minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","ambiguous_receipts","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["money"]},"value":{"type":["array","null"],"items":{"type":"object","properties":{"currency":{"type":["string","null"],"minLength":1},"amount":{"type":"number"},"deals":{"type":"integer","exclusiveMinimum":0}},"required":["currency","amount","deals"]}},"unpriced":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","unpriced","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["ratio"]},"value":{"type":["number","null"]},"numerator":{"type":["integer","null"],"minimum":0},"denominator":{"type":["integer","null"],"minimum":0},"horizon_days":{"type":"integer","exclusiveMinimum":0},"matures_at":{"type":"string","format":"date-time"},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","numerator","denominator","availability","reason"]}]},"research.tierA":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","enum":["people","messages","meetings","deals"]},"value":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["entities"]},"value":{"type":["integer","null"],"minimum":0},"ambiguous_receipts":{"type":"integer","minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","ambiguous_receipts","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["money"]},"value":{"type":["array","null"],"items":{"type":"object","properties":{"currency":{"type":["string","null"],"minLength":1},"amount":{"type":"number"},"deals":{"type":"integer","exclusiveMinimum":0}},"required":["currency","amount","deals"]}},"unpriced":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","unpriced","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["ratio"]},"value":{"type":["number","null"]},"numerator":{"type":["integer","null"],"minimum":0},"denominator":{"type":["integer","null"],"minimum":0},"horizon_days":{"type":"integer","exclusiveMinimum":0},"matures_at":{"type":"string","format":"date-time"},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","numerator","denominator","availability","reason"]}]},"research.tierB":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","enum":["people","messages","meetings","deals"]},"value":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["entities"]},"value":{"type":["integer","null"],"minimum":0},"ambiguous_receipts":{"type":"integer","minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","ambiguous_receipts","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["money"]},"value":{"type":["array","null"],"items":{"type":"object","properties":{"currency":{"type":["string","null"],"minLength":1},"amount":{"type":"number"},"deals":{"type":"integer","exclusiveMinimum":0}},"required":["currency","amount","deals"]}},"unpriced":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","unpriced","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["ratio"]},"value":{"type":["number","null"]},"numerator":{"type":["integer","null"],"minimum":0},"denominator":{"type":["integer","null"],"minimum":0},"horizon_days":{"type":"integer","exclusiveMinimum":0},"matures_at":{"type":"string","format":"date-time"},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","numerator","denominator","availability","reason"]}]},"research.tierAB":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","enum":["people","messages","meetings","deals"]},"value":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["entities"]},"value":{"type":["integer","null"],"minimum":0},"ambiguous_receipts":{"type":"integer","minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","ambiguous_receipts","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["money"]},"value":{"type":["array","null"],"items":{"type":"object","properties":{"currency":{"type":["string","null"],"minLength":1},"amount":{"type":"number"},"deals":{"type":"integer","exclusiveMinimum":0}},"required":["currency","amount","deals"]}},"unpriced":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","unpriced","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["ratio"]},"value":{"type":["number","null"]},"numerator":{"type":["integer","null"],"minimum":0},"denominator":{"type":["integer","null"],"minimum":0},"horizon_days":{"type":"integer","exclusiveMinimum":0},"matures_at":{"type":"string","format":"date-time"},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","numerator","denominator","availability","reason"]}]},"research.tierC":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","enum":["people","messages","meetings","deals"]},"value":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["entities"]},"value":{"type":["integer","null"],"minimum":0},"ambiguous_receipts":{"type":"integer","minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","ambiguous_receipts","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["money"]},"value":{"type":["array","null"],"items":{"type":"object","properties":{"currency":{"type":["string","null"],"minLength":1},"amount":{"type":"number"},"deals":{"type":"integer","exclusiveMinimum":0}},"required":["currency","amount","deals"]}},"unpriced":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","unpriced","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["ratio"]},"value":{"type":["number","null"]},"numerator":{"type":["integer","null"],"minimum":0},"denominator":{"type":["integer","null"],"minimum":0},"horizon_days":{"type":"integer","exclusiveMinimum":0},"matures_at":{"type":"string","format":"date-time"},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","numerator","denominator","availability","reason"]}]},"research.unclassified":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","enum":["people","messages","meetings","deals"]},"value":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["entities"]},"value":{"type":["integer","null"],"minimum":0},"ambiguous_receipts":{"type":"integer","minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","ambiguous_receipts","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["money"]},"value":{"type":["array","null"],"items":{"type":"object","properties":{"currency":{"type":["string","null"],"minLength":1},"amount":{"type":"number"},"deals":{"type":"integer","exclusiveMinimum":0}},"required":["currency","amount","deals"]}},"unpriced":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","unpriced","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["ratio"]},"value":{"type":["number","null"]},"numerator":{"type":["integer","null"],"minimum":0},"denominator":{"type":["integer","null"],"minimum":0},"horizon_days":{"type":"integer","exclusiveMinimum":0},"matures_at":{"type":"string","format":"date-time"},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","numerator","denominator","availability","reason"]}]},"research.quality":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","enum":["people","messages","meetings","deals"]},"value":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["entities"]},"value":{"type":["integer","null"],"minimum":0},"ambiguous_receipts":{"type":"integer","minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","ambiguous_receipts","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["money"]},"value":{"type":["array","null"],"items":{"type":"object","properties":{"currency":{"type":["string","null"],"minLength":1},"amount":{"type":"number"},"deals":{"type":"integer","exclusiveMinimum":0}},"required":["currency","amount","deals"]}},"unpriced":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","unpriced","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["ratio"]},"value":{"type":["number","null"]},"numerator":{"type":["integer","null"],"minimum":0},"denominator":{"type":["integer","null"],"minimum":0},"horizon_days":{"type":"integer","exclusiveMinimum":0},"matures_at":{"type":"string","format":"date-time"},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","numerator","denominator","availability","reason"]}]},"discovery.suppressedBeforeResearch":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","enum":["people","messages","meetings","deals"]},"value":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["entities"]},"value":{"type":["integer","null"],"minimum":0},"ambiguous_receipts":{"type":"integer","minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","ambiguous_receipts","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["money"]},"value":{"type":["array","null"],"items":{"type":"object","properties":{"currency":{"type":["string","null"],"minLength":1},"amount":{"type":"number"},"deals":{"type":"integer","exclusiveMinimum":0}},"required":["currency","amount","deals"]}},"unpriced":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","unpriced","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["ratio"]},"value":{"type":["number","null"]},"numerator":{"type":["integer","null"],"minimum":0},"denominator":{"type":["integer","null"],"minimum":0},"horizon_days":{"type":"integer","exclusiveMinimum":0},"matures_at":{"type":"string","format":"date-time"},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","numerator","denominator","availability","reason"]}]},"crm.companiesCreated":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","enum":["people","messages","meetings","deals"]},"value":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["entities"]},"value":{"type":["integer","null"],"minimum":0},"ambiguous_receipts":{"type":"integer","minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","ambiguous_receipts","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["money"]},"value":{"type":["array","null"],"items":{"type":"object","properties":{"currency":{"type":["string","null"],"minLength":1},"amount":{"type":"number"},"deals":{"type":"integer","exclusiveMinimum":0}},"required":["currency","amount","deals"]}},"unpriced":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","unpriced","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["ratio"]},"value":{"type":["number","null"]},"numerator":{"type":["integer","null"],"minimum":0},"denominator":{"type":["integer","null"],"minimum":0},"horizon_days":{"type":"integer","exclusiveMinimum":0},"matures_at":{"type":"string","format":"date-time"},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","numerator","denominator","availability","reason"]}]},"crm.companiesEnriched":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","enum":["people","messages","meetings","deals"]},"value":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["entities"]},"value":{"type":["integer","null"],"minimum":0},"ambiguous_receipts":{"type":"integer","minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","ambiguous_receipts","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["money"]},"value":{"type":["array","null"],"items":{"type":"object","properties":{"currency":{"type":["string","null"],"minLength":1},"amount":{"type":"number"},"deals":{"type":"integer","exclusiveMinimum":0}},"required":["currency","amount","deals"]}},"unpriced":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","unpriced","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["ratio"]},"value":{"type":["number","null"]},"numerator":{"type":["integer","null"],"minimum":0},"denominator":{"type":["integer","null"],"minimum":0},"horizon_days":{"type":"integer","exclusiveMinimum":0},"matures_at":{"type":"string","format":"date-time"},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","numerator","denominator","availability","reason"]}]},"crm.contactsCreated":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","enum":["people","messages","meetings","deals"]},"value":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["entities"]},"value":{"type":["integer","null"],"minimum":0},"ambiguous_receipts":{"type":"integer","minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","ambiguous_receipts","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["money"]},"value":{"type":["array","null"],"items":{"type":"object","properties":{"currency":{"type":["string","null"],"minLength":1},"amount":{"type":"number"},"deals":{"type":"integer","exclusiveMinimum":0}},"required":["currency","amount","deals"]}},"unpriced":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","unpriced","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["ratio"]},"value":{"type":["number","null"]},"numerator":{"type":["integer","null"],"minimum":0},"denominator":{"type":["integer","null"],"minimum":0},"horizon_days":{"type":"integer","exclusiveMinimum":0},"matures_at":{"type":"string","format":"date-time"},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","numerator","denominator","availability","reason"]}]},"crm.contactsEnriched":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","enum":["people","messages","meetings","deals"]},"value":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["entities"]},"value":{"type":["integer","null"],"minimum":0},"ambiguous_receipts":{"type":"integer","minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","ambiguous_receipts","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["money"]},"value":{"type":["array","null"],"items":{"type":"object","properties":{"currency":{"type":["string","null"],"minLength":1},"amount":{"type":"number"},"deals":{"type":"integer","exclusiveMinimum":0}},"required":["currency","amount","deals"]}},"unpriced":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","unpriced","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["ratio"]},"value":{"type":["number","null"]},"numerator":{"type":["integer","null"],"minimum":0},"denominator":{"type":["integer","null"],"minimum":0},"horizon_days":{"type":"integer","exclusiveMinimum":0},"matures_at":{"type":"string","format":"date-time"},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","numerator","denominator","availability","reason"]}]},"pipeline.meetingsBooked":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","enum":["people","messages","meetings","deals"]},"value":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["entities"]},"value":{"type":["integer","null"],"minimum":0},"ambiguous_receipts":{"type":"integer","minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","ambiguous_receipts","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["money"]},"value":{"type":["array","null"],"items":{"type":"object","properties":{"currency":{"type":["string","null"],"minLength":1},"amount":{"type":"number"},"deals":{"type":"integer","exclusiveMinimum":0}},"required":["currency","amount","deals"]}},"unpriced":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","unpriced","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["ratio"]},"value":{"type":["number","null"]},"numerator":{"type":["integer","null"],"minimum":0},"denominator":{"type":["integer","null"],"minimum":0},"horizon_days":{"type":"integer","exclusiveMinimum":0},"matures_at":{"type":"string","format":"date-time"},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","numerator","denominator","availability","reason"]}]},"pipeline.dealsCreated":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","enum":["people","messages","meetings","deals"]},"value":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["entities"]},"value":{"type":["integer","null"],"minimum":0},"ambiguous_receipts":{"type":"integer","minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","ambiguous_receipts","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["money"]},"value":{"type":["array","null"],"items":{"type":"object","properties":{"currency":{"type":["string","null"],"minLength":1},"amount":{"type":"number"},"deals":{"type":"integer","exclusiveMinimum":0}},"required":["currency","amount","deals"]}},"unpriced":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","unpriced","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["ratio"]},"value":{"type":["number","null"]},"numerator":{"type":["integer","null"],"minimum":0},"denominator":{"type":["integer","null"],"minimum":0},"horizon_days":{"type":"integer","exclusiveMinimum":0},"matures_at":{"type":"string","format":"date-time"},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","numerator","denominator","availability","reason"]}]},"pipeline.dealsWon":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","enum":["people","messages","meetings","deals"]},"value":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["entities"]},"value":{"type":["integer","null"],"minimum":0},"ambiguous_receipts":{"type":"integer","minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","ambiguous_receipts","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["money"]},"value":{"type":["array","null"],"items":{"type":"object","properties":{"currency":{"type":["string","null"],"minLength":1},"amount":{"type":"number"},"deals":{"type":"integer","exclusiveMinimum":0}},"required":["currency","amount","deals"]}},"unpriced":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","unpriced","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["ratio"]},"value":{"type":["number","null"]},"numerator":{"type":["integer","null"],"minimum":0},"denominator":{"type":["integer","null"],"minimum":0},"horizon_days":{"type":"integer","exclusiveMinimum":0},"matures_at":{"type":"string","format":"date-time"},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","numerator","denominator","availability","reason"]}]},"pipeline.createdDealValue":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","enum":["people","messages","meetings","deals"]},"value":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["entities"]},"value":{"type":["integer","null"],"minimum":0},"ambiguous_receipts":{"type":"integer","minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","ambiguous_receipts","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["money"]},"value":{"type":["array","null"],"items":{"type":"object","properties":{"currency":{"type":["string","null"],"minLength":1},"amount":{"type":"number"},"deals":{"type":"integer","exclusiveMinimum":0}},"required":["currency","amount","deals"]}},"unpriced":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","unpriced","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["ratio"]},"value":{"type":["number","null"]},"numerator":{"type":["integer","null"],"minimum":0},"denominator":{"type":["integer","null"],"minimum":0},"horizon_days":{"type":"integer","exclusiveMinimum":0},"matures_at":{"type":"string","format":"date-time"},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","numerator","denominator","availability","reason"]}]},"pipeline.wonDealValue":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","enum":["people","messages","meetings","deals"]},"value":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["entities"]},"value":{"type":["integer","null"],"minimum":0},"ambiguous_receipts":{"type":"integer","minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","ambiguous_receipts","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["money"]},"value":{"type":["array","null"],"items":{"type":"object","properties":{"currency":{"type":["string","null"],"minLength":1},"amount":{"type":"number"},"deals":{"type":"integer","exclusiveMinimum":0}},"required":["currency","amount","deals"]}},"unpriced":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","unpriced","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["ratio"]},"value":{"type":["number","null"]},"numerator":{"type":["integer","null"],"minimum":0},"denominator":{"type":["integer","null"],"minimum":0},"horizon_days":{"type":"integer","exclusiveMinimum":0},"matures_at":{"type":"string","format":"date-time"},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","numerator","denominator","availability","reason"]}]},"pipeline.linkedin.meetingsBooked":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","enum":["people","messages","meetings","deals"]},"value":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["entities"]},"value":{"type":["integer","null"],"minimum":0},"ambiguous_receipts":{"type":"integer","minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","ambiguous_receipts","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["money"]},"value":{"type":["array","null"],"items":{"type":"object","properties":{"currency":{"type":["string","null"],"minLength":1},"amount":{"type":"number"},"deals":{"type":"integer","exclusiveMinimum":0}},"required":["currency","amount","deals"]}},"unpriced":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","unpriced","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["ratio"]},"value":{"type":["number","null"]},"numerator":{"type":["integer","null"],"minimum":0},"denominator":{"type":["integer","null"],"minimum":0},"horizon_days":{"type":"integer","exclusiveMinimum":0},"matures_at":{"type":"string","format":"date-time"},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","numerator","denominator","availability","reason"]}]},"pipeline.linkedin.dealsCreated":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","enum":["people","messages","meetings","deals"]},"value":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["entities"]},"value":{"type":["integer","null"],"minimum":0},"ambiguous_receipts":{"type":"integer","minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","ambiguous_receipts","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["money"]},"value":{"type":["array","null"],"items":{"type":"object","properties":{"currency":{"type":["string","null"],"minLength":1},"amount":{"type":"number"},"deals":{"type":"integer","exclusiveMinimum":0}},"required":["currency","amount","deals"]}},"unpriced":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","unpriced","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["ratio"]},"value":{"type":["number","null"]},"numerator":{"type":["integer","null"],"minimum":0},"denominator":{"type":["integer","null"],"minimum":0},"horizon_days":{"type":"integer","exclusiveMinimum":0},"matures_at":{"type":"string","format":"date-time"},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","numerator","denominator","availability","reason"]}]},"pipeline.linkedin.dealsWon":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","enum":["people","messages","meetings","deals"]},"value":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["entities"]},"value":{"type":["integer","null"],"minimum":0},"ambiguous_receipts":{"type":"integer","minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","ambiguous_receipts","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["money"]},"value":{"type":["array","null"],"items":{"type":"object","properties":{"currency":{"type":["string","null"],"minLength":1},"amount":{"type":"number"},"deals":{"type":"integer","exclusiveMinimum":0}},"required":["currency","amount","deals"]}},"unpriced":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","unpriced","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["ratio"]},"value":{"type":["number","null"]},"numerator":{"type":["integer","null"],"minimum":0},"denominator":{"type":["integer","null"],"minimum":0},"horizon_days":{"type":"integer","exclusiveMinimum":0},"matures_at":{"type":"string","format":"date-time"},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","numerator","denominator","availability","reason"]}]},"pipeline.linkedin.createdDealValue":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","enum":["people","messages","meetings","deals"]},"value":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["entities"]},"value":{"type":["integer","null"],"minimum":0},"ambiguous_receipts":{"type":"integer","minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","ambiguous_receipts","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["money"]},"value":{"type":["array","null"],"items":{"type":"object","properties":{"currency":{"type":["string","null"],"minLength":1},"amount":{"type":"number"},"deals":{"type":"integer","exclusiveMinimum":0}},"required":["currency","amount","deals"]}},"unpriced":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","unpriced","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["ratio"]},"value":{"type":["number","null"]},"numerator":{"type":["integer","null"],"minimum":0},"denominator":{"type":["integer","null"],"minimum":0},"horizon_days":{"type":"integer","exclusiveMinimum":0},"matures_at":{"type":"string","format":"date-time"},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","numerator","denominator","availability","reason"]}]},"pipeline.linkedin.wonDealValue":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","enum":["people","messages","meetings","deals"]},"value":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["entities"]},"value":{"type":["integer","null"],"minimum":0},"ambiguous_receipts":{"type":"integer","minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","ambiguous_receipts","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["money"]},"value":{"type":["array","null"],"items":{"type":"object","properties":{"currency":{"type":["string","null"],"minLength":1},"amount":{"type":"number"},"deals":{"type":"integer","exclusiveMinimum":0}},"required":["currency","amount","deals"]}},"unpriced":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","unpriced","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["ratio"]},"value":{"type":["number","null"]},"numerator":{"type":["integer","null"],"minimum":0},"denominator":{"type":["integer","null"],"minimum":0},"horizon_days":{"type":"integer","exclusiveMinimum":0},"matures_at":{"type":"string","format":"date-time"},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","numerator","denominator","availability","reason"]}]},"pipeline.email.meetingsBooked":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","enum":["people","messages","meetings","deals"]},"value":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["entities"]},"value":{"type":["integer","null"],"minimum":0},"ambiguous_receipts":{"type":"integer","minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","ambiguous_receipts","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["money"]},"value":{"type":["array","null"],"items":{"type":"object","properties":{"currency":{"type":["string","null"],"minLength":1},"amount":{"type":"number"},"deals":{"type":"integer","exclusiveMinimum":0}},"required":["currency","amount","deals"]}},"unpriced":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","unpriced","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["ratio"]},"value":{"type":["number","null"]},"numerator":{"type":["integer","null"],"minimum":0},"denominator":{"type":["integer","null"],"minimum":0},"horizon_days":{"type":"integer","exclusiveMinimum":0},"matures_at":{"type":"string","format":"date-time"},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","numerator","denominator","availability","reason"]}]},"pipeline.email.dealsCreated":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","enum":["people","messages","meetings","deals"]},"value":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["entities"]},"value":{"type":["integer","null"],"minimum":0},"ambiguous_receipts":{"type":"integer","minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","ambiguous_receipts","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["money"]},"value":{"type":["array","null"],"items":{"type":"object","properties":{"currency":{"type":["string","null"],"minLength":1},"amount":{"type":"number"},"deals":{"type":"integer","exclusiveMinimum":0}},"required":["currency","amount","deals"]}},"unpriced":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","unpriced","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["ratio"]},"value":{"type":["number","null"]},"numerator":{"type":["integer","null"],"minimum":0},"denominator":{"type":["integer","null"],"minimum":0},"horizon_days":{"type":"integer","exclusiveMinimum":0},"matures_at":{"type":"string","format":"date-time"},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","numerator","denominator","availability","reason"]}]},"pipeline.email.dealsWon":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","enum":["people","messages","meetings","deals"]},"value":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["entities"]},"value":{"type":["integer","null"],"minimum":0},"ambiguous_receipts":{"type":"integer","minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","ambiguous_receipts","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["money"]},"value":{"type":["array","null"],"items":{"type":"object","properties":{"currency":{"type":["string","null"],"minLength":1},"amount":{"type":"number"},"deals":{"type":"integer","exclusiveMinimum":0}},"required":["currency","amount","deals"]}},"unpriced":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","unpriced","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["ratio"]},"value":{"type":["number","null"]},"numerator":{"type":["integer","null"],"minimum":0},"denominator":{"type":["integer","null"],"minimum":0},"horizon_days":{"type":"integer","exclusiveMinimum":0},"matures_at":{"type":"string","format":"date-time"},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","numerator","denominator","availability","reason"]}]},"pipeline.email.createdDealValue":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","enum":["people","messages","meetings","deals"]},"value":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["entities"]},"value":{"type":["integer","null"],"minimum":0},"ambiguous_receipts":{"type":"integer","minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","ambiguous_receipts","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["money"]},"value":{"type":["array","null"],"items":{"type":"object","properties":{"currency":{"type":["string","null"],"minLength":1},"amount":{"type":"number"},"deals":{"type":"integer","exclusiveMinimum":0}},"required":["currency","amount","deals"]}},"unpriced":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","unpriced","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["ratio"]},"value":{"type":["number","null"]},"numerator":{"type":["integer","null"],"minimum":0},"denominator":{"type":["integer","null"],"minimum":0},"horizon_days":{"type":"integer","exclusiveMinimum":0},"matures_at":{"type":"string","format":"date-time"},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","numerator","denominator","availability","reason"]}]},"pipeline.email.wonDealValue":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","enum":["people","messages","meetings","deals"]},"value":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["entities"]},"value":{"type":["integer","null"],"minimum":0},"ambiguous_receipts":{"type":"integer","minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","ambiguous_receipts","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["money"]},"value":{"type":["array","null"],"items":{"type":"object","properties":{"currency":{"type":["string","null"],"minLength":1},"amount":{"type":"number"},"deals":{"type":"integer","exclusiveMinimum":0}},"required":["currency","amount","deals"]}},"unpriced":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","unpriced","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["ratio"]},"value":{"type":["number","null"]},"numerator":{"type":["integer","null"],"minimum":0},"denominator":{"type":["integer","null"],"minimum":0},"horizon_days":{"type":"integer","exclusiveMinimum":0},"matures_at":{"type":"string","format":"date-time"},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","numerator","denominator","availability","reason"]}]},"conversion.connectionAccepted":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","enum":["people","messages","meetings","deals"]},"value":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["entities"]},"value":{"type":["integer","null"],"minimum":0},"ambiguous_receipts":{"type":"integer","minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","ambiguous_receipts","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["money"]},"value":{"type":["array","null"],"items":{"type":"object","properties":{"currency":{"type":["string","null"],"minLength":1},"amount":{"type":"number"},"deals":{"type":"integer","exclusiveMinimum":0}},"required":["currency","amount","deals"]}},"unpriced":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","unpriced","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["ratio"]},"value":{"type":["number","null"]},"numerator":{"type":["integer","null"],"minimum":0},"denominator":{"type":["integer","null"],"minimum":0},"horizon_days":{"type":"integer","exclusiveMinimum":0},"matures_at":{"type":"string","format":"date-time"},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","numerator","denominator","availability","reason"]}]},"conversion.linkedin.replied":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","enum":["people","messages","meetings","deals"]},"value":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["entities"]},"value":{"type":["integer","null"],"minimum":0},"ambiguous_receipts":{"type":"integer","minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","ambiguous_receipts","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["money"]},"value":{"type":["array","null"],"items":{"type":"object","properties":{"currency":{"type":["string","null"],"minLength":1},"amount":{"type":"number"},"deals":{"type":"integer","exclusiveMinimum":0}},"required":["currency","amount","deals"]}},"unpriced":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","unpriced","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["ratio"]},"value":{"type":["number","null"]},"numerator":{"type":["integer","null"],"minimum":0},"denominator":{"type":["integer","null"],"minimum":0},"horizon_days":{"type":"integer","exclusiveMinimum":0},"matures_at":{"type":"string","format":"date-time"},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","numerator","denominator","availability","reason"]}]},"conversion.email.replied":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","enum":["people","messages","meetings","deals"]},"value":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["entities"]},"value":{"type":["integer","null"],"minimum":0},"ambiguous_receipts":{"type":"integer","minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","ambiguous_receipts","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["money"]},"value":{"type":["array","null"],"items":{"type":"object","properties":{"currency":{"type":["string","null"],"minLength":1},"amount":{"type":"number"},"deals":{"type":"integer","exclusiveMinimum":0}},"required":["currency","amount","deals"]}},"unpriced":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","unpriced","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["ratio"]},"value":{"type":["number","null"]},"numerator":{"type":["integer","null"],"minimum":0},"denominator":{"type":["integer","null"],"minimum":0},"horizon_days":{"type":"integer","exclusiveMinimum":0},"matures_at":{"type":"string","format":"date-time"},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","numerator","denominator","availability","reason"]}]},"conversion.meeting":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","enum":["people","messages","meetings","deals"]},"value":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["entities"]},"value":{"type":["integer","null"],"minimum":0},"ambiguous_receipts":{"type":"integer","minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","ambiguous_receipts","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["money"]},"value":{"type":["array","null"],"items":{"type":"object","properties":{"currency":{"type":["string","null"],"minLength":1},"amount":{"type":"number"},"deals":{"type":"integer","exclusiveMinimum":0}},"required":["currency","amount","deals"]}},"unpriced":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","unpriced","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["ratio"]},"value":{"type":["number","null"]},"numerator":{"type":["integer","null"],"minimum":0},"denominator":{"type":["integer","null"],"minimum":0},"horizon_days":{"type":"integer","exclusiveMinimum":0},"matures_at":{"type":"string","format":"date-time"},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","numerator","denominator","availability","reason"]}]},"conversion.won":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","enum":["people","messages","meetings","deals"]},"value":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["entities"]},"value":{"type":["integer","null"],"minimum":0},"ambiguous_receipts":{"type":"integer","minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","ambiguous_receipts","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["money"]},"value":{"type":["array","null"],"items":{"type":"object","properties":{"currency":{"type":["string","null"],"minLength":1},"amount":{"type":"number"},"deals":{"type":"integer","exclusiveMinimum":0}},"required":["currency","amount","deals"]}},"unpriced":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","unpriced","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["ratio"]},"value":{"type":["number","null"]},"numerator":{"type":["integer","null"],"minimum":0},"denominator":{"type":["integer","null"],"minimum":0},"horizon_days":{"type":"integer","exclusiveMinimum":0},"matures_at":{"type":"string","format":"date-time"},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","numerator","denominator","availability","reason"]}]}},"required":["linkedin.connectionsSent","linkedin.connectionsAccepted","linkedin.peopleMessaged","linkedin.peopleReplied","email.messagesSent","email.peopleEmailed","email.peopleBounced","email.peopleBlocked","email.peopleReplied","pipeline.meetingsBooked","pipeline.dealsCreated","pipeline.dealsWon","pipeline.createdDealValue","pipeline.wonDealValue","pipeline.linkedin.meetingsBooked","pipeline.linkedin.dealsCreated","pipeline.linkedin.dealsWon","pipeline.linkedin.createdDealValue","pipeline.linkedin.wonDealValue","pipeline.email.meetingsBooked","pipeline.email.dealsCreated","pipeline.email.dealsWon","pipeline.email.createdDealValue","pipeline.email.wonDealValue","conversion.connectionAccepted","conversion.linkedin.replied","conversion.email.replied","conversion.meeting","conversion.won"]}},"required":["workspace_id","period","observed_at","senders","sources","period_closed","metrics"]},"supported_metrics":{"type":"array","items":{"type":"string","enum":["conversion.connectionAccepted","conversion.linkedin.replied","conversion.email.replied","conversion.meeting","conversion.won","research.quality","email.peopleBounced","email.peopleBlocked"]},"minItems":6,"maxItems":8},"mailboxes":{"type":"array","items":{"type":"object","properties":{"account_id":{"type":"string","format":"uuid"},"sender_id":{"type":"string","format":"uuid"},"mailbox":{"type":"string"},"mailbox_provider":{"type":["string","null"],"enum":["google","microsoft",null]}},"required":["account_id","sender_id","mailbox","mailbox_provider"]},"maxItems":500,"description":"Mailboxes that sent in the period: the mailbox cut buckets."},"unsupported_metrics":{"type":"array","items":{"type":"object","properties":{"metric":{"type":"string","enum":["linkedin.connectionsSent","linkedin.connectionsAccepted","linkedin.peopleMessaged","linkedin.peopleReplied","email.messagesSent","email.peopleEmailed","email.peopleBounced","email.peopleBlocked","email.peopleReplied","research.researched","research.tierA","research.tierB","research.tierAB","research.tierC","research.unclassified","research.quality","discovery.suppressedBeforeResearch","crm.companiesCreated","crm.companiesEnriched","crm.contactsCreated","crm.contactsEnriched","pipeline.meetingsBooked","pipeline.dealsCreated","pipeline.dealsWon","pipeline.createdDealValue","pipeline.wonDealValue","pipeline.linkedin.meetingsBooked","pipeline.linkedin.dealsCreated","pipeline.linkedin.dealsWon","pipeline.linkedin.createdDealValue","pipeline.linkedin.wonDealValue","pipeline.email.meetingsBooked","pipeline.email.dealsCreated","pipeline.email.dealsWon","pipeline.email.createdDealValue","pipeline.email.wonDealValue","conversion.connectionAccepted","conversion.linkedin.replied","conversion.email.replied","conversion.meeting","conversion.won"]},"reason":{"type":"string","enum":["cuts_not_supported"]}},"required":["metric","reason"]}},"rejections":{"type":"object","properties":{"basis":{"type":"string","enum":["first_settled_tier_C"]},"attribution_basis":{"type":"string","enum":["relational"]},"counts":{"type":"array","items":{"type":"object","properties":{"code":{"type":["string","null"],"enum":["industry_company_type","size","title","departed_person","unverifiable","business_judgment",null]},"lane_id":{"type":["string","null"],"format":"uuid","description":"The targeting lane that found the person: the id targeting_get returns and Insights names as search:<lane_id>."},"discovery_run_id":{"type":["string","null"],"format":"uuid"},"icp_config_id":{"type":["string","null"],"format":"uuid","description":"The saved version of that lane (icp_config) discovery used; null when unknown."},"label":{"type":["string","null"],"description":"The lane's current display name (its targeting label); null until it has one. Show it with lane_id."},"count":{"type":"integer","minimum":0}},"required":["code","lane_id","discovery_run_id","count"]},"description":"Counts jointly grouped by rejection code, lane and discovery run. Workspace-period totals are not lane or run denominators."},"total":{"type":"integer","minimum":0,"description":"All first-settled Tier C people in this workspace and period, including uncoded rejections. Independent of pagination and samples."},"coded_total":{"type":"integer","minimum":0,"description":"First-settled Tier C people with a rejection code across this workspace and period, not a lane or discovery run."},"code_totals":{"type":"array","items":{"type":"object","properties":{"code":{"type":["string","null"],"enum":["industry_company_type","size","title","departed_person","unverifiable","business_judgment",null]},"count":{"type":"integer","minimum":0}},"required":["code","count"]},"description":"Workspace-period totals grouped only by code across all lanes and discovery runs; null includes every uncoded rejection once."},"uncoded_total":{"type":"integer","minimum":0,"description":"First-settled Tier C people without a rejection code across this workspace and period."},"uncoded_samples":{"type":"array","items":{"type":"object","properties":{"person_id":{"type":"string"},"code":{"type":"null"},"explanation":{"type":["string","null"]},"lane_id":{"type":["string","null"],"format":"uuid","description":"The targeting lane that found the person: the id targeting_get returns and Insights names as search:<lane_id>."},"discovery_run_id":{"type":["string","null"],"format":"uuid"},"icp_config_id":{"type":["string","null"],"format":"uuid","description":"The saved version of that lane (icp_config) discovery used; null when unknown."},"label":{"type":["string","null"],"description":"The lane's current display name (its targeting label); null until it has one. Show it with lane_id."}},"required":["person_id","code","explanation","lane_id","discovery_run_id"]},"maxItems":50}},"required":["basis","attribution_basis","counts","uncoded_total","uncoded_samples"]},"cuts":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"metric":{"type":"string","enum":["conversion.connectionAccepted","conversion.linkedin.replied","conversion.email.replied","conversion.meeting","conversion.won","research.quality","email.peopleBounced","email.peopleBlocked"]},"measurement_kind":{"type":"string","enum":["person_cohort_ratio","person_period_ratio"],"description":"person_period_ratio: people a mailbox emailed in the period, and how many of them its bounces or blocks reached in the period."},"basis":{"type":"string","enum":["first_settled_research","first_contact_672_hours","period_sends"]},"attribution_basis":{"type":"string","enum":["unknown","immutable_send","event","relational","anchor_time","message_account"]},"observed_numerator":{"type":"integer","minimum":0},"observed_denominator":{"type":"integer","minimum":0},"numerator":{"type":["integer","null"],"minimum":0},"denominator":{"type":["integer","null"],"minimum":0},"value":{"type":["number","null"]},"status":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"},"maturity":{"type":"object","properties":{"mature":{"type":"boolean"},"matures_at":{"type":"string","format":"date-time"}},"required":["mature","matures_at"]},"dimension":{"type":"string","enum":["segment"]},"bucket":{"type":"object","properties":{"identity":{"type":["string","null"]},"unknown":{"type":"boolean"}},"required":["identity","unknown"]}},"required":["metric","measurement_kind","basis","attribution_basis","observed_numerator","observed_denominator","numerator","denominator","value","status","reason","maturity","dimension","bucket"]},{"type":"object","properties":{"metric":{"type":"string","enum":["conversion.connectionAccepted","conversion.linkedin.replied","conversion.email.replied","conversion.meeting","conversion.won","research.quality","email.peopleBounced","email.peopleBlocked"]},"measurement_kind":{"type":"string","enum":["person_cohort_ratio","person_period_ratio"],"description":"person_period_ratio: people a mailbox emailed in the period, and how many of them its bounces or blocks reached in the period."},"basis":{"type":"string","enum":["first_settled_research","first_contact_672_hours","period_sends"]},"attribution_basis":{"type":"string","enum":["unknown","immutable_send","event","relational","anchor_time","message_account"]},"observed_numerator":{"type":"integer","minimum":0},"observed_denominator":{"type":"integer","minimum":0},"numerator":{"type":["integer","null"],"minimum":0},"denominator":{"type":["integer","null"],"minimum":0},"value":{"type":["number","null"]},"status":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"},"maturity":{"type":"object","properties":{"mature":{"type":"boolean"},"matures_at":{"type":"string","format":"date-time"}},"required":["mature","matures_at"]},"dimension":{"type":"string","enum":["sender"]},"bucket":{"type":"object","properties":{"identity":{"type":["string","null"],"format":"uuid"},"unknown":{"type":"boolean"}},"required":["identity","unknown"]}},"required":["metric","measurement_kind","basis","attribution_basis","observed_numerator","observed_denominator","numerator","denominator","value","status","reason","maturity","dimension","bucket"]},{"type":"object","properties":{"metric":{"type":"string","enum":["conversion.connectionAccepted","conversion.linkedin.replied","conversion.email.replied","conversion.meeting","conversion.won","research.quality","email.peopleBounced","email.peopleBlocked"]},"measurement_kind":{"type":"string","enum":["person_cohort_ratio","person_period_ratio"],"description":"person_period_ratio: people a mailbox emailed in the period, and how many of them its bounces or blocks reached in the period."},"basis":{"type":"string","enum":["first_settled_research","first_contact_672_hours","period_sends"]},"attribution_basis":{"type":"string","enum":["unknown","immutable_send","event","relational","anchor_time","message_account"]},"observed_numerator":{"type":"integer","minimum":0},"observed_denominator":{"type":"integer","minimum":0},"numerator":{"type":["integer","null"],"minimum":0},"denominator":{"type":["integer","null"],"minimum":0},"value":{"type":["number","null"]},"status":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"},"maturity":{"type":"object","properties":{"mature":{"type":"boolean"},"matures_at":{"type":"string","format":"date-time"}},"required":["mature","matures_at"]},"dimension":{"type":"string","enum":["template_step"]},"bucket":{"type":"object","properties":{"identity":{"type":["object","null"],"properties":{"campaign_id":{"type":"string"},"revision_id":{"type":"string"},"template_id":{"type":"string"},"step":{"type":"integer"}},"required":["campaign_id","revision_id","template_id","step"]},"unknown":{"type":"boolean"}},"required":["identity","unknown"]}},"required":["metric","measurement_kind","basis","attribution_basis","observed_numerator","observed_denominator","numerator","denominator","value","status","reason","maturity","dimension","bucket"]},{"type":"object","properties":{"metric":{"type":"string","enum":["conversion.connectionAccepted","conversion.linkedin.replied","conversion.email.replied","conversion.meeting","conversion.won","research.quality","email.peopleBounced","email.peopleBlocked"]},"measurement_kind":{"type":"string","enum":["person_cohort_ratio","person_period_ratio"],"description":"person_period_ratio: people a mailbox emailed in the period, and how many of them its bounces or blocks reached in the period."},"basis":{"type":"string","enum":["first_settled_research","first_contact_672_hours","period_sends"]},"attribution_basis":{"type":"string","enum":["unknown","immutable_send","event","relational","anchor_time","message_account"]},"observed_numerator":{"type":"integer","minimum":0},"observed_denominator":{"type":"integer","minimum":0},"numerator":{"type":["integer","null"],"minimum":0},"denominator":{"type":["integer","null"],"minimum":0},"value":{"type":["number","null"]},"status":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"},"maturity":{"type":"object","properties":{"mature":{"type":"boolean"},"matures_at":{"type":"string","format":"date-time"}},"required":["mature","matures_at"]},"dimension":{"type":"string","enum":["search_source"]},"bucket":{"type":"object","properties":{"identity":{"type":["object","null"],"properties":{"icp_config_id":{"type":"string","format":"uuid"},"discovery_run_id":{"type":"string","format":"uuid"},"lane_id":{"type":"string","format":"uuid","description":"The targeting lane: the same id targeting_get returns and an Insights trigger names as search:<lane_id>."}}},"unknown":{"type":"boolean"},"label":{"type":["string","null"],"description":"The lane's current display name (its targeting label); null until it has one. Show it with lane_id."}},"required":["identity","unknown"]}},"required":["metric","measurement_kind","basis","attribution_basis","observed_numerator","observed_denominator","numerator","denominator","value","status","reason","maturity","dimension","bucket"]},{"type":"object","properties":{"metric":{"type":"string","enum":["conversion.connectionAccepted","conversion.linkedin.replied","conversion.email.replied","conversion.meeting","conversion.won","research.quality","email.peopleBounced","email.peopleBlocked"]},"measurement_kind":{"type":"string","enum":["person_cohort_ratio","person_period_ratio"],"description":"person_period_ratio: people a mailbox emailed in the period, and how many of them its bounces or blocks reached in the period."},"basis":{"type":"string","enum":["first_settled_research","first_contact_672_hours","period_sends"]},"attribution_basis":{"type":"string","enum":["unknown","immutable_send","event","relational","anchor_time","message_account"]},"observed_numerator":{"type":"integer","minimum":0},"observed_denominator":{"type":"integer","minimum":0},"numerator":{"type":["integer","null"],"minimum":0},"denominator":{"type":["integer","null"],"minimum":0},"value":{"type":["number","null"]},"status":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"},"maturity":{"type":"object","properties":{"mature":{"type":"boolean"},"matures_at":{"type":"string","format":"date-time"}},"required":["mature","matures_at"]},"dimension":{"type":"string","enum":["weekday_utc"]},"bucket":{"type":"object","properties":{"identity":{"type":["integer","null"],"minimum":1,"maximum":7},"unknown":{"type":"boolean"}},"required":["identity","unknown"]}},"required":["metric","measurement_kind","basis","attribution_basis","observed_numerator","observed_denominator","numerator","denominator","value","status","reason","maturity","dimension","bucket"]},{"type":"object","properties":{"metric":{"type":"string","enum":["conversion.connectionAccepted","conversion.linkedin.replied","conversion.email.replied","conversion.meeting","conversion.won","research.quality","email.peopleBounced","email.peopleBlocked"]},"measurement_kind":{"type":"string","enum":["person_cohort_ratio","person_period_ratio"],"description":"person_period_ratio: people a mailbox emailed in the period, and how many of them its bounces or blocks reached in the period."},"basis":{"type":"string","enum":["first_settled_research","first_contact_672_hours","period_sends"]},"attribution_basis":{"type":"string","enum":["unknown","immutable_send","event","relational","anchor_time","message_account"]},"observed_numerator":{"type":"integer","minimum":0},"observed_denominator":{"type":"integer","minimum":0},"numerator":{"type":["integer","null"],"minimum":0},"denominator":{"type":["integer","null"],"minimum":0},"value":{"type":["number","null"]},"status":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"},"maturity":{"type":"object","properties":{"mature":{"type":"boolean"},"matures_at":{"type":"string","format":"date-time"}},"required":["mature","matures_at"]},"dimension":{"type":"string","enum":["segment_id"]},"bucket":{"type":"object","properties":{"identity":{"type":["string","null"],"format":"uuid"},"unknown":{"type":"boolean"}},"required":["identity","unknown"]}},"required":["metric","measurement_kind","basis","attribution_basis","observed_numerator","observed_denominator","numerator","denominator","value","status","reason","maturity","dimension","bucket"]},{"type":"object","properties":{"metric":{"type":"string","enum":["conversion.connectionAccepted","conversion.linkedin.replied","conversion.email.replied","conversion.meeting","conversion.won","research.quality","email.peopleBounced","email.peopleBlocked"]},"measurement_kind":{"type":"string","enum":["person_cohort_ratio","person_period_ratio"],"description":"person_period_ratio: people a mailbox emailed in the period, and how many of them its bounces or blocks reached in the period."},"basis":{"type":"string","enum":["first_settled_research","first_contact_672_hours","period_sends"]},"attribution_basis":{"type":"string","enum":["unknown","immutable_send","event","relational","anchor_time","message_account"]},"observed_numerator":{"type":"integer","minimum":0},"observed_denominator":{"type":"integer","minimum":0},"numerator":{"type":["integer","null"],"minimum":0},"denominator":{"type":["integer","null"],"minimum":0},"value":{"type":["number","null"]},"status":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"},"maturity":{"type":"object","properties":{"mature":{"type":"boolean"},"matures_at":{"type":"string","format":"date-time"}},"required":["mature","matures_at"]},"dimension":{"type":"string","enum":["mailbox"]},"bucket":{"type":"object","properties":{"identity":{"type":["string","null"],"format":"uuid"},"unknown":{"type":"boolean"}},"required":["identity","unknown"]}},"required":["metric","measurement_kind","basis","attribution_basis","observed_numerator","observed_denominator","numerator","denominator","value","status","reason","maturity","dimension","bucket"]}]},"maxItems":500},"pagination":{"type":"object","properties":{"offset":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":1,"maximum":500},"total":{"type":"integer","minimum":0},"next_offset":{"type":["integer","null"],"minimum":0},"complete":{"type":"boolean"}},"required":["offset","limit","total","next_offset","complete"]},"samples":{"type":"object","properties":{"limit_per_kind":{"type":"integer","minimum":0,"maximum":50},"text_limit":{"type":"number","enum":[6000]},"sent_messages":{"type":"array","items":{"type":"object","properties":{"event_id":{"type":"string","format":"uuid"},"lead_id":{"type":"string","format":"uuid"},"sent_at":{"type":"string","format":"date-time"},"family":{"type":"string","enum":["email","linkedin"]},"sender_id":{"type":["string","null"],"format":"uuid"},"attribution_basis":{"type":"string","enum":["unknown","immutable_send","reply"]},"message_id":{"type":["string","null"],"format":"uuid"},"message":{"type":["string","null"]},"status":{"type":"string","enum":["available","unavailable"]},"text_truncated":{"type":"boolean"},"original_characters":{"type":["integer","null"],"minimum":0}},"required":["event_id","lead_id","sent_at","family","sender_id","attribution_basis","message_id","message","status","text_truncated","original_characters"]},"maxItems":50},"sent_messages_total":{"type":"integer","minimum":0},"research":{"type":"array","items":{"type":"object","properties":{"person_id":{"type":"string","minLength":1},"lead_id":{"type":["string","null"],"format":"uuid"},"candidate_id":{"type":["string","null"],"format":"uuid"},"settled_at":{"type":"string","format":"date-time"},"grade":{"type":"string","enum":["A","B","C","unclassified"]},"research_id":{"type":["string","null"],"format":"uuid"},"researched_at":{"type":["string","null"],"format":"date-time"},"criteria_version":{"type":["integer","null"],"minimum":0,"description":"Research criteria version this research was graded under; null when unknown."},"attribution_basis":{"type":"string","enum":["first_settled_research"]},"evidence_source":{"type":"string","enum":["run_result","candidate_at_settlement","unavailable"]},"search_source":{"type":["object","null"],"properties":{"icp_config_id":{"type":"string","format":"uuid"},"discovery_run_id":{"type":"string","format":"uuid"},"lane_id":{"type":"string","format":"uuid","description":"The targeting lane: the same id targeting_get returns and an Insights trigger names as search:<lane_id>."},"label":{"type":["string","null"],"description":"The lane's current display name (its targeting label); null until it has one. Show it with lane_id."}}},"search_attribution_basis":{"type":"string","enum":["unknown","relational"]},"status":{"type":"string","enum":["available","unavailable"]},"rationale":{"type":["string","null"]},"summary":{"type":["string","null"]},"sources":{"$ref":"#/components/schemas/ReportCutsEvidence"},"custom_fields":{"$ref":"#/components/schemas/ReportCutsEvidence"},"discovery_match":{"type":["object","null"],"properties":{"industries":{"type":["array","null"],"items":{"type":"string"},"description":"The company's primary and secondary industry labels."},"industry_codes":{"type":["array","null"],"items":{"type":"string"},"description":"The company's NAICS codes."},"keyword_matches":{"type":["array","null"],"items":{"type":"string"},"description":"The company's keyword tags that match the search's company keywords; null when the search has none."}},"required":["industries","industry_codes","keyword_matches"],"description":"Internal reads only: what the company matched when discovery found the person. Null, or a null field, is unknown."},"truncation":{"type":"object","properties":{"text_limit":{"type":"number","enum":[6000]},"rationale":{"type":"boolean"},"summary":{"type":"boolean"},"sources_omitted":{"type":"boolean"},"custom_fields_omitted":{"type":"boolean"}},"required":["text_limit","rationale","summary","sources_omitted","custom_fields_omitted"]}},"required":["person_id","lead_id","candidate_id","settled_at","grade","research_id","researched_at","attribution_basis","evidence_source","search_source","search_attribution_basis","status","rationale","summary","sources","custom_fields","truncation"]},"maxItems":50},"research_total":{"type":"integer","minimum":0},"disqualified":{"type":"array","items":{"type":"object","properties":{"person_id":{"type":"string","minLength":1},"lead_id":{"type":["string","null"],"format":"uuid"},"candidate_id":{"type":["string","null"],"format":"uuid"},"settled_at":{"type":"string","format":"date-time"},"grade":{"type":"string","enum":["A","B","C","unclassified"]},"research_id":{"type":["string","null"],"format":"uuid"},"researched_at":{"type":["string","null"],"format":"date-time"},"criteria_version":{"type":["integer","null"],"minimum":0,"description":"Research criteria version this research was graded under; null when unknown."},"attribution_basis":{"type":"string","enum":["first_settled_research"]},"evidence_source":{"type":"string","enum":["run_result","candidate_at_settlement","unavailable"]},"search_source":{"type":["object","null"],"properties":{"icp_config_id":{"type":"string","format":"uuid"},"discovery_run_id":{"type":"string","format":"uuid"},"lane_id":{"type":"string","format":"uuid","description":"The targeting lane: the same id targeting_get returns and an Insights trigger names as search:<lane_id>."},"label":{"type":["string","null"],"description":"The lane's current display name (its targeting label); null until it has one. Show it with lane_id."}}},"search_attribution_basis":{"type":"string","enum":["unknown","relational"]},"status":{"type":"string","enum":["available","unavailable"]},"rationale":{"type":["string","null"]},"summary":{"type":["string","null"]},"sources":{"$ref":"#/components/schemas/ReportCutsEvidence"},"custom_fields":{"$ref":"#/components/schemas/ReportCutsEvidence"},"discovery_match":{"type":["object","null"],"properties":{"industries":{"type":["array","null"],"items":{"type":"string"},"description":"The company's primary and secondary industry labels."},"industry_codes":{"type":["array","null"],"items":{"type":"string"},"description":"The company's NAICS codes."},"keyword_matches":{"type":["array","null"],"items":{"type":"string"},"description":"The company's keyword tags that match the search's company keywords; null when the search has none."}},"required":["industries","industry_codes","keyword_matches"],"description":"Internal reads only: what the company matched when discovery found the person. Null, or a null field, is unknown."},"truncation":{"type":"object","properties":{"text_limit":{"type":"number","enum":[6000]},"rationale":{"type":"boolean"},"summary":{"type":"boolean"},"sources_omitted":{"type":"boolean"},"custom_fields_omitted":{"type":"boolean"}},"required":["text_limit","rationale","summary","sources_omitted","custom_fields_omitted"]}},"required":["person_id","lead_id","candidate_id","settled_at","grade","research_id","researched_at","attribution_basis","evidence_source","search_source","search_attribution_basis","status","rationale","summary","sources","custom_fields","truncation"]},"maxItems":50},"disqualified_total":{"type":"integer","minimum":0},"disqualified_basis":{"type":"string","enum":["first_settled_tier_C_not_pre_research_suppression"]}},"required":["limit_per_kind","text_limit","sent_messages","sent_messages_total","research","research_total","disqualified","disqualified_total","disqualified_basis"]}},"required":["schema_version","workspace_id","period","observed_at","shared_totals","supported_metrics","unsupported_metrics","cuts","pagination","samples"]}}}},"400":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/workspace/reports/{week}/details":{"get":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"date","description":"The Monday (UTC) that starts the week, YYYY-MM-DD."},"required":true,"description":"The Monday (UTC) that starts the week, YYYY-MM-DD.","name":"week","in":"path"},{"schema":{"type":"string","description":"A key of the report's metrics."},"required":true,"description":"A key of the report's metrics.","name":"metric","in":"query"},{"schema":{"type":["integer","null"],"minimum":0,"maximum":1000000000,"default":0},"required":false,"name":"offset","in":"query"},{"schema":{"type":"integer","minimum":1,"maximum":500,"default":100},"required":false,"name":"limit","in":"query"},{"schema":{"type":"string","format":"date-time","description":"The report's calculated_at, unchanged."},"required":false,"description":"The report's calculated_at, unchanged.","name":"calculated_at","in":"query"},{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"responses":{"200":{"description":"Read one page, limit 1 to 500, of the people and records behind one metric of a stored weekly report. Page with next_offset. stale true means the week was corrected since the calculated_at you sent: read the report and its pages again. REPORT_NOT_FOUND means none is stored for that week.","content":{"application/json":{"schema":{"type":"object","properties":{"workspace_id":{"type":"string","format":"uuid"},"week_start":{"type":"string","format":"date"},"period":{"type":"object","properties":{"start":{"type":"string","format":"date-time"},"end":{"type":"string","format":"date-time"}},"required":["start","end"]},"calculated_at":{"type":"string","format":"date-time","description":"The report this page belongs to; compare it with the report you hold."},"stale":{"type":"boolean","description":"true when calculated_at was sent and the week has since been corrected. Reload the report and its details together."},"metric":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","enum":["people","messages","meetings","deals"]},"value":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["entities"]},"value":{"type":["integer","null"],"minimum":0},"ambiguous_receipts":{"type":"integer","minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","ambiguous_receipts","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["money"]},"value":{"type":["array","null"],"items":{"type":"object","properties":{"currency":{"type":["string","null"],"minLength":1},"amount":{"type":"number"},"deals":{"type":"integer","exclusiveMinimum":0}},"required":["currency","amount","deals"]}},"unpriced":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","unpriced","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["ratio"]},"value":{"type":["number","null"]},"numerator":{"type":["integer","null"],"minimum":0},"denominator":{"type":["integer","null"],"minimum":0},"horizon_days":{"type":"integer","exclusiveMinimum":0},"matures_at":{"type":"string","format":"date-time"},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","numerator","denominator","availability","reason"]}]},"total":{"type":"integer","minimum":0},"offset":{"type":"integer","minimum":0},"next_offset":{"type":["integer","null"],"minimum":0,"description":"Send as offset for the next page; null on the last page."},"items":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","minLength":1},"lead_id":{"type":"string","format":"uuid"}},"required":["id","lead_id"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1},"lead_id":{"type":["string","null"],"format":"uuid"},"candidate_id":{"type":["string","null"],"format":"uuid"},"settled_at":{"type":"string","format":"date-time"},"grade":{"type":"string","enum":["A","B","C","unclassified"]},"evidence":{"anyOf":[{"type":"object","properties":{"source":{"type":"string","enum":["run_result"]},"research_id":{"type":"string","format":"uuid"},"run_ref":{"type":"string","format":"uuid"},"grade":{"type":["string","null"]}},"required":["source","research_id","run_ref","grade"]},{"type":"object","properties":{"source":{"type":"string","enum":["candidate_at_settlement"]},"candidate_id":{"type":"string","format":"uuid"},"run_ref":{"type":"string","format":"uuid"},"grade":{"type":["string","null"]}},"required":["source","candidate_id","run_ref","grade"]},{"type":"object","properties":{"source":{"type":"string","enum":["unavailable"]},"grade":{"type":"null"}},"required":["source","grade"]}]},"converted":{"type":"boolean"}},"required":["id","lead_id","candidate_id","settled_at","grade","evidence","converted"]},{"type":"object","properties":{"id":{"type":"string","minLength":1},"candidate_id":{"type":"string","format":"uuid"},"suppressed_at":{"type":"string","format":"date-time"}},"required":["id","candidate_id","suppressed_at"]},{"type":"object","properties":{"id":{"type":"string","minLength":1},"provider":{"type":"string","enum":["hubspot","attio"]},"object_type":{"type":"string","enum":["contact","company"]},"record_id":{"type":"string","minLength":1},"evidence":{"type":"array","items":{"type":"object","properties":{"event_id":{"type":"string","format":"uuid"},"lead_id":{"type":"string","format":"uuid"},"written_at":{"type":"string","format":"date-time"},"operation":{"type":"string","enum":["create","update"]},"property_keys":{"type":"array","items":{"type":"string"}}},"required":["event_id","lead_id","written_at","operation","property_keys"]},"minItems":1}},"required":["id","provider","object_type","record_id","evidence"]},{"type":"object","properties":{"id":{"type":"string","minLength":1},"lead_id":{"type":"string","format":"uuid"},"booked_at":{"type":"string","format":"date-time"}},"required":["id","lead_id","booked_at"]},{"type":"object","properties":{"id":{"type":"string","minLength":1},"lead_id":{"type":"string","format":"uuid"},"amount":{"type":["number","null"]},"currency":{"type":["string","null"],"minLength":1},"created_at":{"type":"string","format":"date-time"},"closed_at":{"type":["string","null"],"format":"date-time"}},"required":["id","lead_id","amount","currency","created_at","closed_at"]},{"type":"object","properties":{"id":{"type":"string","minLength":1},"lead_id":{"type":"string","format":"uuid"},"anchored_at":{"type":"string","format":"date-time"},"converted":{"type":"boolean"}},"required":["id","lead_id","anchored_at","converted"]}]},"maxItems":500}},"required":["workspace_id","week_start","period","calculated_at","stale","metric","total","offset","next_offset","items"]}}}},"400":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/workspace/measurements":{"get":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"date-time","description":"Included, with its offset."},"required":true,"description":"Included, with its offset.","name":"start","in":"query"},{"schema":{"type":"string","format":"date-time","description":"Excluded, with its offset."},"required":true,"description":"Excluded, with its offset.","name":"end","in":"query"},{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"responses":{"200":{"description":"Read the shared live measurement of any range of at most 731 days: the week in progress, an exact 30 days, or a closed week with no stored report. Same metric ids as the report; figures can still change.","content":{"application/json":{"schema":{"type":"object","properties":{"workspace_id":{"type":"string","format":"uuid"},"period":{"type":"object","properties":{"start":{"type":"string","format":"date-time"},"end":{"type":"string","format":"date-time"}},"required":["start","end"]},"observed_at":{"type":"string","format":"date-time"},"senders":{"type":"array","items":{"type":"object","properties":{"sender_id":{"type":"string","format":"uuid"},"display_name":{"type":"string"},"deleted":{"type":"boolean"},"metrics":{"type":"object","properties":{"linkedin.connectionsSent":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","enum":["people","messages","meetings","deals"]},"value":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["entities"]},"value":{"type":["integer","null"],"minimum":0},"ambiguous_receipts":{"type":"integer","minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","ambiguous_receipts","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["money"]},"value":{"type":["array","null"],"items":{"type":"object","properties":{"currency":{"type":["string","null"],"minLength":1},"amount":{"type":"number"},"deals":{"type":"integer","exclusiveMinimum":0}},"required":["currency","amount","deals"]}},"unpriced":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","unpriced","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["ratio"]},"value":{"type":["number","null"]},"numerator":{"type":["integer","null"],"minimum":0},"denominator":{"type":["integer","null"],"minimum":0},"horizon_days":{"type":"integer","exclusiveMinimum":0},"matures_at":{"type":"string","format":"date-time"},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","numerator","denominator","availability","reason"]}]},"linkedin.peopleMessaged":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","enum":["people","messages","meetings","deals"]},"value":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["entities"]},"value":{"type":["integer","null"],"minimum":0},"ambiguous_receipts":{"type":"integer","minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","ambiguous_receipts","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["money"]},"value":{"type":["array","null"],"items":{"type":"object","properties":{"currency":{"type":["string","null"],"minLength":1},"amount":{"type":"number"},"deals":{"type":"integer","exclusiveMinimum":0}},"required":["currency","amount","deals"]}},"unpriced":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","unpriced","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["ratio"]},"value":{"type":["number","null"]},"numerator":{"type":["integer","null"],"minimum":0},"denominator":{"type":["integer","null"],"minimum":0},"horizon_days":{"type":"integer","exclusiveMinimum":0},"matures_at":{"type":"string","format":"date-time"},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","numerator","denominator","availability","reason"]}]},"email.peopleEmailed":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","enum":["people","messages","meetings","deals"]},"value":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["entities"]},"value":{"type":["integer","null"],"minimum":0},"ambiguous_receipts":{"type":"integer","minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","ambiguous_receipts","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["money"]},"value":{"type":["array","null"],"items":{"type":"object","properties":{"currency":{"type":["string","null"],"minLength":1},"amount":{"type":"number"},"deals":{"type":"integer","exclusiveMinimum":0}},"required":["currency","amount","deals"]}},"unpriced":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","unpriced","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["ratio"]},"value":{"type":["number","null"]},"numerator":{"type":["integer","null"],"minimum":0},"denominator":{"type":["integer","null"],"minimum":0},"horizon_days":{"type":"integer","exclusiveMinimum":0},"matures_at":{"type":"string","format":"date-time"},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","numerator","denominator","availability","reason"]}]}},"required":["linkedin.connectionsSent","linkedin.peopleMessaged","email.peopleEmailed"]}},"required":["sender_id","display_name","deleted","metrics"]}},"sources":{"type":"object","properties":{"crm":{"type":"object","properties":{"provider":{"type":["string","null"],"enum":["hubspot","attio",null]},"connected":{"type":"boolean"},"synced_at":{"type":["string","null"],"format":"date-time"},"failed":{"type":"boolean"}},"required":["provider","connected","synced_at","failed"]},"pipeline":{"type":"object","properties":{"provider":{"type":["string","null"],"enum":["lifty","hubspot","attio",null]},"connected":{"type":"boolean"},"synced_at":{"type":["string","null"],"format":"date-time"},"failed":{"type":"boolean"}},"required":["provider","connected","synced_at","failed"]}},"required":["crm"]},"period_closed":{"type":"boolean"},"metrics":{"type":"object","properties":{"linkedin.connectionsSent":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","enum":["people","messages","meetings","deals"]},"value":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["entities"]},"value":{"type":["integer","null"],"minimum":0},"ambiguous_receipts":{"type":"integer","minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","ambiguous_receipts","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["money"]},"value":{"type":["array","null"],"items":{"type":"object","properties":{"currency":{"type":["string","null"],"minLength":1},"amount":{"type":"number"},"deals":{"type":"integer","exclusiveMinimum":0}},"required":["currency","amount","deals"]}},"unpriced":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","unpriced","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["ratio"]},"value":{"type":["number","null"]},"numerator":{"type":["integer","null"],"minimum":0},"denominator":{"type":["integer","null"],"minimum":0},"horizon_days":{"type":"integer","exclusiveMinimum":0},"matures_at":{"type":"string","format":"date-time"},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","numerator","denominator","availability","reason"]}]},"linkedin.connectionsAccepted":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","enum":["people","messages","meetings","deals"]},"value":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["entities"]},"value":{"type":["integer","null"],"minimum":0},"ambiguous_receipts":{"type":"integer","minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","ambiguous_receipts","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["money"]},"value":{"type":["array","null"],"items":{"type":"object","properties":{"currency":{"type":["string","null"],"minLength":1},"amount":{"type":"number"},"deals":{"type":"integer","exclusiveMinimum":0}},"required":["currency","amount","deals"]}},"unpriced":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","unpriced","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["ratio"]},"value":{"type":["number","null"]},"numerator":{"type":["integer","null"],"minimum":0},"denominator":{"type":["integer","null"],"minimum":0},"horizon_days":{"type":"integer","exclusiveMinimum":0},"matures_at":{"type":"string","format":"date-time"},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","numerator","denominator","availability","reason"]}]},"linkedin.peopleMessaged":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","enum":["people","messages","meetings","deals"]},"value":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["entities"]},"value":{"type":["integer","null"],"minimum":0},"ambiguous_receipts":{"type":"integer","minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","ambiguous_receipts","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["money"]},"value":{"type":["array","null"],"items":{"type":"object","properties":{"currency":{"type":["string","null"],"minLength":1},"amount":{"type":"number"},"deals":{"type":"integer","exclusiveMinimum":0}},"required":["currency","amount","deals"]}},"unpriced":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","unpriced","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["ratio"]},"value":{"type":["number","null"]},"numerator":{"type":["integer","null"],"minimum":0},"denominator":{"type":["integer","null"],"minimum":0},"horizon_days":{"type":"integer","exclusiveMinimum":0},"matures_at":{"type":"string","format":"date-time"},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","numerator","denominator","availability","reason"]}]},"linkedin.peopleReplied":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","enum":["people","messages","meetings","deals"]},"value":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["entities"]},"value":{"type":["integer","null"],"minimum":0},"ambiguous_receipts":{"type":"integer","minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","ambiguous_receipts","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["money"]},"value":{"type":["array","null"],"items":{"type":"object","properties":{"currency":{"type":["string","null"],"minLength":1},"amount":{"type":"number"},"deals":{"type":"integer","exclusiveMinimum":0}},"required":["currency","amount","deals"]}},"unpriced":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","unpriced","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["ratio"]},"value":{"type":["number","null"]},"numerator":{"type":["integer","null"],"minimum":0},"denominator":{"type":["integer","null"],"minimum":0},"horizon_days":{"type":"integer","exclusiveMinimum":0},"matures_at":{"type":"string","format":"date-time"},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","numerator","denominator","availability","reason"]}]},"email.messagesSent":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","enum":["people","messages","meetings","deals"]},"value":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["entities"]},"value":{"type":["integer","null"],"minimum":0},"ambiguous_receipts":{"type":"integer","minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","ambiguous_receipts","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["money"]},"value":{"type":["array","null"],"items":{"type":"object","properties":{"currency":{"type":["string","null"],"minLength":1},"amount":{"type":"number"},"deals":{"type":"integer","exclusiveMinimum":0}},"required":["currency","amount","deals"]}},"unpriced":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","unpriced","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["ratio"]},"value":{"type":["number","null"]},"numerator":{"type":["integer","null"],"minimum":0},"denominator":{"type":["integer","null"],"minimum":0},"horizon_days":{"type":"integer","exclusiveMinimum":0},"matures_at":{"type":"string","format":"date-time"},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","numerator","denominator","availability","reason"]}]},"email.peopleEmailed":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","enum":["people","messages","meetings","deals"]},"value":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["entities"]},"value":{"type":["integer","null"],"minimum":0},"ambiguous_receipts":{"type":"integer","minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","ambiguous_receipts","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["money"]},"value":{"type":["array","null"],"items":{"type":"object","properties":{"currency":{"type":["string","null"],"minLength":1},"amount":{"type":"number"},"deals":{"type":"integer","exclusiveMinimum":0}},"required":["currency","amount","deals"]}},"unpriced":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","unpriced","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["ratio"]},"value":{"type":["number","null"]},"numerator":{"type":["integer","null"],"minimum":0},"denominator":{"type":["integer","null"],"minimum":0},"horizon_days":{"type":"integer","exclusiveMinimum":0},"matures_at":{"type":"string","format":"date-time"},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","numerator","denominator","availability","reason"]}]},"email.peopleBounced":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","enum":["people","messages","meetings","deals"]},"value":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["entities"]},"value":{"type":["integer","null"],"minimum":0},"ambiguous_receipts":{"type":"integer","minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","ambiguous_receipts","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["money"]},"value":{"type":["array","null"],"items":{"type":"object","properties":{"currency":{"type":["string","null"],"minLength":1},"amount":{"type":"number"},"deals":{"type":"integer","exclusiveMinimum":0}},"required":["currency","amount","deals"]}},"unpriced":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","unpriced","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["ratio"]},"value":{"type":["number","null"]},"numerator":{"type":["integer","null"],"minimum":0},"denominator":{"type":["integer","null"],"minimum":0},"horizon_days":{"type":"integer","exclusiveMinimum":0},"matures_at":{"type":"string","format":"date-time"},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","numerator","denominator","availability","reason"]}]},"email.peopleBlocked":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","enum":["people","messages","meetings","deals"]},"value":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["entities"]},"value":{"type":["integer","null"],"minimum":0},"ambiguous_receipts":{"type":"integer","minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","ambiguous_receipts","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["money"]},"value":{"type":["array","null"],"items":{"type":"object","properties":{"currency":{"type":["string","null"],"minLength":1},"amount":{"type":"number"},"deals":{"type":"integer","exclusiveMinimum":0}},"required":["currency","amount","deals"]}},"unpriced":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","unpriced","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["ratio"]},"value":{"type":["number","null"]},"numerator":{"type":["integer","null"],"minimum":0},"denominator":{"type":["integer","null"],"minimum":0},"horizon_days":{"type":"integer","exclusiveMinimum":0},"matures_at":{"type":"string","format":"date-time"},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","numerator","denominator","availability","reason"]}]},"email.peopleReplied":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","enum":["people","messages","meetings","deals"]},"value":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["entities"]},"value":{"type":["integer","null"],"minimum":0},"ambiguous_receipts":{"type":"integer","minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","ambiguous_receipts","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["money"]},"value":{"type":["array","null"],"items":{"type":"object","properties":{"currency":{"type":["string","null"],"minLength":1},"amount":{"type":"number"},"deals":{"type":"integer","exclusiveMinimum":0}},"required":["currency","amount","deals"]}},"unpriced":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","unpriced","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["ratio"]},"value":{"type":["number","null"]},"numerator":{"type":["integer","null"],"minimum":0},"denominator":{"type":["integer","null"],"minimum":0},"horizon_days":{"type":"integer","exclusiveMinimum":0},"matures_at":{"type":"string","format":"date-time"},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","numerator","denominator","availability","reason"]}]},"research.researched":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","enum":["people","messages","meetings","deals"]},"value":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["entities"]},"value":{"type":["integer","null"],"minimum":0},"ambiguous_receipts":{"type":"integer","minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","ambiguous_receipts","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["money"]},"value":{"type":["array","null"],"items":{"type":"object","properties":{"currency":{"type":["string","null"],"minLength":1},"amount":{"type":"number"},"deals":{"type":"integer","exclusiveMinimum":0}},"required":["currency","amount","deals"]}},"unpriced":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","unpriced","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["ratio"]},"value":{"type":["number","null"]},"numerator":{"type":["integer","null"],"minimum":0},"denominator":{"type":["integer","null"],"minimum":0},"horizon_days":{"type":"integer","exclusiveMinimum":0},"matures_at":{"type":"string","format":"date-time"},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","numerator","denominator","availability","reason"]}]},"research.tierA":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","enum":["people","messages","meetings","deals"]},"value":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["entities"]},"value":{"type":["integer","null"],"minimum":0},"ambiguous_receipts":{"type":"integer","minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","ambiguous_receipts","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["money"]},"value":{"type":["array","null"],"items":{"type":"object","properties":{"currency":{"type":["string","null"],"minLength":1},"amount":{"type":"number"},"deals":{"type":"integer","exclusiveMinimum":0}},"required":["currency","amount","deals"]}},"unpriced":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","unpriced","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["ratio"]},"value":{"type":["number","null"]},"numerator":{"type":["integer","null"],"minimum":0},"denominator":{"type":["integer","null"],"minimum":0},"horizon_days":{"type":"integer","exclusiveMinimum":0},"matures_at":{"type":"string","format":"date-time"},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","numerator","denominator","availability","reason"]}]},"research.tierB":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","enum":["people","messages","meetings","deals"]},"value":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["entities"]},"value":{"type":["integer","null"],"minimum":0},"ambiguous_receipts":{"type":"integer","minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","ambiguous_receipts","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["money"]},"value":{"type":["array","null"],"items":{"type":"object","properties":{"currency":{"type":["string","null"],"minLength":1},"amount":{"type":"number"},"deals":{"type":"integer","exclusiveMinimum":0}},"required":["currency","amount","deals"]}},"unpriced":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","unpriced","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["ratio"]},"value":{"type":["number","null"]},"numerator":{"type":["integer","null"],"minimum":0},"denominator":{"type":["integer","null"],"minimum":0},"horizon_days":{"type":"integer","exclusiveMinimum":0},"matures_at":{"type":"string","format":"date-time"},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","numerator","denominator","availability","reason"]}]},"research.tierAB":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","enum":["people","messages","meetings","deals"]},"value":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["entities"]},"value":{"type":["integer","null"],"minimum":0},"ambiguous_receipts":{"type":"integer","minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","ambiguous_receipts","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["money"]},"value":{"type":["array","null"],"items":{"type":"object","properties":{"currency":{"type":["string","null"],"minLength":1},"amount":{"type":"number"},"deals":{"type":"integer","exclusiveMinimum":0}},"required":["currency","amount","deals"]}},"unpriced":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","unpriced","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["ratio"]},"value":{"type":["number","null"]},"numerator":{"type":["integer","null"],"minimum":0},"denominator":{"type":["integer","null"],"minimum":0},"horizon_days":{"type":"integer","exclusiveMinimum":0},"matures_at":{"type":"string","format":"date-time"},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","numerator","denominator","availability","reason"]}]},"research.tierC":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","enum":["people","messages","meetings","deals"]},"value":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["entities"]},"value":{"type":["integer","null"],"minimum":0},"ambiguous_receipts":{"type":"integer","minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","ambiguous_receipts","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["money"]},"value":{"type":["array","null"],"items":{"type":"object","properties":{"currency":{"type":["string","null"],"minLength":1},"amount":{"type":"number"},"deals":{"type":"integer","exclusiveMinimum":0}},"required":["currency","amount","deals"]}},"unpriced":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","unpriced","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["ratio"]},"value":{"type":["number","null"]},"numerator":{"type":["integer","null"],"minimum":0},"denominator":{"type":["integer","null"],"minimum":0},"horizon_days":{"type":"integer","exclusiveMinimum":0},"matures_at":{"type":"string","format":"date-time"},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","numerator","denominator","availability","reason"]}]},"research.unclassified":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","enum":["people","messages","meetings","deals"]},"value":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["entities"]},"value":{"type":["integer","null"],"minimum":0},"ambiguous_receipts":{"type":"integer","minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","ambiguous_receipts","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["money"]},"value":{"type":["array","null"],"items":{"type":"object","properties":{"currency":{"type":["string","null"],"minLength":1},"amount":{"type":"number"},"deals":{"type":"integer","exclusiveMinimum":0}},"required":["currency","amount","deals"]}},"unpriced":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","unpriced","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["ratio"]},"value":{"type":["number","null"]},"numerator":{"type":["integer","null"],"minimum":0},"denominator":{"type":["integer","null"],"minimum":0},"horizon_days":{"type":"integer","exclusiveMinimum":0},"matures_at":{"type":"string","format":"date-time"},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","numerator","denominator","availability","reason"]}]},"research.quality":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","enum":["people","messages","meetings","deals"]},"value":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["entities"]},"value":{"type":["integer","null"],"minimum":0},"ambiguous_receipts":{"type":"integer","minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","ambiguous_receipts","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["money"]},"value":{"type":["array","null"],"items":{"type":"object","properties":{"currency":{"type":["string","null"],"minLength":1},"amount":{"type":"number"},"deals":{"type":"integer","exclusiveMinimum":0}},"required":["currency","amount","deals"]}},"unpriced":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","unpriced","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["ratio"]},"value":{"type":["number","null"]},"numerator":{"type":["integer","null"],"minimum":0},"denominator":{"type":["integer","null"],"minimum":0},"horizon_days":{"type":"integer","exclusiveMinimum":0},"matures_at":{"type":"string","format":"date-time"},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","numerator","denominator","availability","reason"]}]},"discovery.suppressedBeforeResearch":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","enum":["people","messages","meetings","deals"]},"value":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["entities"]},"value":{"type":["integer","null"],"minimum":0},"ambiguous_receipts":{"type":"integer","minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","ambiguous_receipts","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["money"]},"value":{"type":["array","null"],"items":{"type":"object","properties":{"currency":{"type":["string","null"],"minLength":1},"amount":{"type":"number"},"deals":{"type":"integer","exclusiveMinimum":0}},"required":["currency","amount","deals"]}},"unpriced":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","unpriced","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["ratio"]},"value":{"type":["number","null"]},"numerator":{"type":["integer","null"],"minimum":0},"denominator":{"type":["integer","null"],"minimum":0},"horizon_days":{"type":"integer","exclusiveMinimum":0},"matures_at":{"type":"string","format":"date-time"},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","numerator","denominator","availability","reason"]}]},"crm.companiesCreated":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","enum":["people","messages","meetings","deals"]},"value":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["entities"]},"value":{"type":["integer","null"],"minimum":0},"ambiguous_receipts":{"type":"integer","minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","ambiguous_receipts","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["money"]},"value":{"type":["array","null"],"items":{"type":"object","properties":{"currency":{"type":["string","null"],"minLength":1},"amount":{"type":"number"},"deals":{"type":"integer","exclusiveMinimum":0}},"required":["currency","amount","deals"]}},"unpriced":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","unpriced","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["ratio"]},"value":{"type":["number","null"]},"numerator":{"type":["integer","null"],"minimum":0},"denominator":{"type":["integer","null"],"minimum":0},"horizon_days":{"type":"integer","exclusiveMinimum":0},"matures_at":{"type":"string","format":"date-time"},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","numerator","denominator","availability","reason"]}]},"crm.companiesEnriched":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","enum":["people","messages","meetings","deals"]},"value":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["entities"]},"value":{"type":["integer","null"],"minimum":0},"ambiguous_receipts":{"type":"integer","minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","ambiguous_receipts","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["money"]},"value":{"type":["array","null"],"items":{"type":"object","properties":{"currency":{"type":["string","null"],"minLength":1},"amount":{"type":"number"},"deals":{"type":"integer","exclusiveMinimum":0}},"required":["currency","amount","deals"]}},"unpriced":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","unpriced","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["ratio"]},"value":{"type":["number","null"]},"numerator":{"type":["integer","null"],"minimum":0},"denominator":{"type":["integer","null"],"minimum":0},"horizon_days":{"type":"integer","exclusiveMinimum":0},"matures_at":{"type":"string","format":"date-time"},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","numerator","denominator","availability","reason"]}]},"crm.contactsCreated":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","enum":["people","messages","meetings","deals"]},"value":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["entities"]},"value":{"type":["integer","null"],"minimum":0},"ambiguous_receipts":{"type":"integer","minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","ambiguous_receipts","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["money"]},"value":{"type":["array","null"],"items":{"type":"object","properties":{"currency":{"type":["string","null"],"minLength":1},"amount":{"type":"number"},"deals":{"type":"integer","exclusiveMinimum":0}},"required":["currency","amount","deals"]}},"unpriced":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","unpriced","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["ratio"]},"value":{"type":["number","null"]},"numerator":{"type":["integer","null"],"minimum":0},"denominator":{"type":["integer","null"],"minimum":0},"horizon_days":{"type":"integer","exclusiveMinimum":0},"matures_at":{"type":"string","format":"date-time"},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","numerator","denominator","availability","reason"]}]},"crm.contactsEnriched":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","enum":["people","messages","meetings","deals"]},"value":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["entities"]},"value":{"type":["integer","null"],"minimum":0},"ambiguous_receipts":{"type":"integer","minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","ambiguous_receipts","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["money"]},"value":{"type":["array","null"],"items":{"type":"object","properties":{"currency":{"type":["string","null"],"minLength":1},"amount":{"type":"number"},"deals":{"type":"integer","exclusiveMinimum":0}},"required":["currency","amount","deals"]}},"unpriced":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","unpriced","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["ratio"]},"value":{"type":["number","null"]},"numerator":{"type":["integer","null"],"minimum":0},"denominator":{"type":["integer","null"],"minimum":0},"horizon_days":{"type":"integer","exclusiveMinimum":0},"matures_at":{"type":"string","format":"date-time"},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","numerator","denominator","availability","reason"]}]},"pipeline.meetingsBooked":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","enum":["people","messages","meetings","deals"]},"value":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["entities"]},"value":{"type":["integer","null"],"minimum":0},"ambiguous_receipts":{"type":"integer","minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","ambiguous_receipts","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["money"]},"value":{"type":["array","null"],"items":{"type":"object","properties":{"currency":{"type":["string","null"],"minLength":1},"amount":{"type":"number"},"deals":{"type":"integer","exclusiveMinimum":0}},"required":["currency","amount","deals"]}},"unpriced":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","unpriced","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["ratio"]},"value":{"type":["number","null"]},"numerator":{"type":["integer","null"],"minimum":0},"denominator":{"type":["integer","null"],"minimum":0},"horizon_days":{"type":"integer","exclusiveMinimum":0},"matures_at":{"type":"string","format":"date-time"},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","numerator","denominator","availability","reason"]}]},"pipeline.dealsCreated":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","enum":["people","messages","meetings","deals"]},"value":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["entities"]},"value":{"type":["integer","null"],"minimum":0},"ambiguous_receipts":{"type":"integer","minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","ambiguous_receipts","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["money"]},"value":{"type":["array","null"],"items":{"type":"object","properties":{"currency":{"type":["string","null"],"minLength":1},"amount":{"type":"number"},"deals":{"type":"integer","exclusiveMinimum":0}},"required":["currency","amount","deals"]}},"unpriced":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","unpriced","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["ratio"]},"value":{"type":["number","null"]},"numerator":{"type":["integer","null"],"minimum":0},"denominator":{"type":["integer","null"],"minimum":0},"horizon_days":{"type":"integer","exclusiveMinimum":0},"matures_at":{"type":"string","format":"date-time"},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","numerator","denominator","availability","reason"]}]},"pipeline.dealsWon":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","enum":["people","messages","meetings","deals"]},"value":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["entities"]},"value":{"type":["integer","null"],"minimum":0},"ambiguous_receipts":{"type":"integer","minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","ambiguous_receipts","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["money"]},"value":{"type":["array","null"],"items":{"type":"object","properties":{"currency":{"type":["string","null"],"minLength":1},"amount":{"type":"number"},"deals":{"type":"integer","exclusiveMinimum":0}},"required":["currency","amount","deals"]}},"unpriced":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","unpriced","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["ratio"]},"value":{"type":["number","null"]},"numerator":{"type":["integer","null"],"minimum":0},"denominator":{"type":["integer","null"],"minimum":0},"horizon_days":{"type":"integer","exclusiveMinimum":0},"matures_at":{"type":"string","format":"date-time"},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","numerator","denominator","availability","reason"]}]},"pipeline.createdDealValue":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","enum":["people","messages","meetings","deals"]},"value":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["entities"]},"value":{"type":["integer","null"],"minimum":0},"ambiguous_receipts":{"type":"integer","minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","ambiguous_receipts","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["money"]},"value":{"type":["array","null"],"items":{"type":"object","properties":{"currency":{"type":["string","null"],"minLength":1},"amount":{"type":"number"},"deals":{"type":"integer","exclusiveMinimum":0}},"required":["currency","amount","deals"]}},"unpriced":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","unpriced","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["ratio"]},"value":{"type":["number","null"]},"numerator":{"type":["integer","null"],"minimum":0},"denominator":{"type":["integer","null"],"minimum":0},"horizon_days":{"type":"integer","exclusiveMinimum":0},"matures_at":{"type":"string","format":"date-time"},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","numerator","denominator","availability","reason"]}]},"pipeline.wonDealValue":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","enum":["people","messages","meetings","deals"]},"value":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["entities"]},"value":{"type":["integer","null"],"minimum":0},"ambiguous_receipts":{"type":"integer","minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","ambiguous_receipts","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["money"]},"value":{"type":["array","null"],"items":{"type":"object","properties":{"currency":{"type":["string","null"],"minLength":1},"amount":{"type":"number"},"deals":{"type":"integer","exclusiveMinimum":0}},"required":["currency","amount","deals"]}},"unpriced":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","unpriced","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["ratio"]},"value":{"type":["number","null"]},"numerator":{"type":["integer","null"],"minimum":0},"denominator":{"type":["integer","null"],"minimum":0},"horizon_days":{"type":"integer","exclusiveMinimum":0},"matures_at":{"type":"string","format":"date-time"},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","numerator","denominator","availability","reason"]}]},"pipeline.linkedin.meetingsBooked":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","enum":["people","messages","meetings","deals"]},"value":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["entities"]},"value":{"type":["integer","null"],"minimum":0},"ambiguous_receipts":{"type":"integer","minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","ambiguous_receipts","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["money"]},"value":{"type":["array","null"],"items":{"type":"object","properties":{"currency":{"type":["string","null"],"minLength":1},"amount":{"type":"number"},"deals":{"type":"integer","exclusiveMinimum":0}},"required":["currency","amount","deals"]}},"unpriced":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","unpriced","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["ratio"]},"value":{"type":["number","null"]},"numerator":{"type":["integer","null"],"minimum":0},"denominator":{"type":["integer","null"],"minimum":0},"horizon_days":{"type":"integer","exclusiveMinimum":0},"matures_at":{"type":"string","format":"date-time"},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","numerator","denominator","availability","reason"]}]},"pipeline.linkedin.dealsCreated":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","enum":["people","messages","meetings","deals"]},"value":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["entities"]},"value":{"type":["integer","null"],"minimum":0},"ambiguous_receipts":{"type":"integer","minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","ambiguous_receipts","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["money"]},"value":{"type":["array","null"],"items":{"type":"object","properties":{"currency":{"type":["string","null"],"minLength":1},"amount":{"type":"number"},"deals":{"type":"integer","exclusiveMinimum":0}},"required":["currency","amount","deals"]}},"unpriced":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","unpriced","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["ratio"]},"value":{"type":["number","null"]},"numerator":{"type":["integer","null"],"minimum":0},"denominator":{"type":["integer","null"],"minimum":0},"horizon_days":{"type":"integer","exclusiveMinimum":0},"matures_at":{"type":"string","format":"date-time"},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","numerator","denominator","availability","reason"]}]},"pipeline.linkedin.dealsWon":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","enum":["people","messages","meetings","deals"]},"value":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["entities"]},"value":{"type":["integer","null"],"minimum":0},"ambiguous_receipts":{"type":"integer","minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","ambiguous_receipts","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["money"]},"value":{"type":["array","null"],"items":{"type":"object","properties":{"currency":{"type":["string","null"],"minLength":1},"amount":{"type":"number"},"deals":{"type":"integer","exclusiveMinimum":0}},"required":["currency","amount","deals"]}},"unpriced":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","unpriced","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["ratio"]},"value":{"type":["number","null"]},"numerator":{"type":["integer","null"],"minimum":0},"denominator":{"type":["integer","null"],"minimum":0},"horizon_days":{"type":"integer","exclusiveMinimum":0},"matures_at":{"type":"string","format":"date-time"},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","numerator","denominator","availability","reason"]}]},"pipeline.linkedin.createdDealValue":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","enum":["people","messages","meetings","deals"]},"value":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["entities"]},"value":{"type":["integer","null"],"minimum":0},"ambiguous_receipts":{"type":"integer","minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","ambiguous_receipts","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["money"]},"value":{"type":["array","null"],"items":{"type":"object","properties":{"currency":{"type":["string","null"],"minLength":1},"amount":{"type":"number"},"deals":{"type":"integer","exclusiveMinimum":0}},"required":["currency","amount","deals"]}},"unpriced":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","unpriced","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["ratio"]},"value":{"type":["number","null"]},"numerator":{"type":["integer","null"],"minimum":0},"denominator":{"type":["integer","null"],"minimum":0},"horizon_days":{"type":"integer","exclusiveMinimum":0},"matures_at":{"type":"string","format":"date-time"},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","numerator","denominator","availability","reason"]}]},"pipeline.linkedin.wonDealValue":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","enum":["people","messages","meetings","deals"]},"value":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["entities"]},"value":{"type":["integer","null"],"minimum":0},"ambiguous_receipts":{"type":"integer","minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","ambiguous_receipts","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["money"]},"value":{"type":["array","null"],"items":{"type":"object","properties":{"currency":{"type":["string","null"],"minLength":1},"amount":{"type":"number"},"deals":{"type":"integer","exclusiveMinimum":0}},"required":["currency","amount","deals"]}},"unpriced":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","unpriced","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["ratio"]},"value":{"type":["number","null"]},"numerator":{"type":["integer","null"],"minimum":0},"denominator":{"type":["integer","null"],"minimum":0},"horizon_days":{"type":"integer","exclusiveMinimum":0},"matures_at":{"type":"string","format":"date-time"},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","numerator","denominator","availability","reason"]}]},"pipeline.email.meetingsBooked":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","enum":["people","messages","meetings","deals"]},"value":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["entities"]},"value":{"type":["integer","null"],"minimum":0},"ambiguous_receipts":{"type":"integer","minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","ambiguous_receipts","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["money"]},"value":{"type":["array","null"],"items":{"type":"object","properties":{"currency":{"type":["string","null"],"minLength":1},"amount":{"type":"number"},"deals":{"type":"integer","exclusiveMinimum":0}},"required":["currency","amount","deals"]}},"unpriced":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","unpriced","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["ratio"]},"value":{"type":["number","null"]},"numerator":{"type":["integer","null"],"minimum":0},"denominator":{"type":["integer","null"],"minimum":0},"horizon_days":{"type":"integer","exclusiveMinimum":0},"matures_at":{"type":"string","format":"date-time"},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","numerator","denominator","availability","reason"]}]},"pipeline.email.dealsCreated":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","enum":["people","messages","meetings","deals"]},"value":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["entities"]},"value":{"type":["integer","null"],"minimum":0},"ambiguous_receipts":{"type":"integer","minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","ambiguous_receipts","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["money"]},"value":{"type":["array","null"],"items":{"type":"object","properties":{"currency":{"type":["string","null"],"minLength":1},"amount":{"type":"number"},"deals":{"type":"integer","exclusiveMinimum":0}},"required":["currency","amount","deals"]}},"unpriced":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","unpriced","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["ratio"]},"value":{"type":["number","null"]},"numerator":{"type":["integer","null"],"minimum":0},"denominator":{"type":["integer","null"],"minimum":0},"horizon_days":{"type":"integer","exclusiveMinimum":0},"matures_at":{"type":"string","format":"date-time"},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","numerator","denominator","availability","reason"]}]},"pipeline.email.dealsWon":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","enum":["people","messages","meetings","deals"]},"value":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["entities"]},"value":{"type":["integer","null"],"minimum":0},"ambiguous_receipts":{"type":"integer","minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","ambiguous_receipts","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["money"]},"value":{"type":["array","null"],"items":{"type":"object","properties":{"currency":{"type":["string","null"],"minLength":1},"amount":{"type":"number"},"deals":{"type":"integer","exclusiveMinimum":0}},"required":["currency","amount","deals"]}},"unpriced":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","unpriced","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["ratio"]},"value":{"type":["number","null"]},"numerator":{"type":["integer","null"],"minimum":0},"denominator":{"type":["integer","null"],"minimum":0},"horizon_days":{"type":"integer","exclusiveMinimum":0},"matures_at":{"type":"string","format":"date-time"},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","numerator","denominator","availability","reason"]}]},"pipeline.email.createdDealValue":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","enum":["people","messages","meetings","deals"]},"value":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["entities"]},"value":{"type":["integer","null"],"minimum":0},"ambiguous_receipts":{"type":"integer","minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","ambiguous_receipts","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["money"]},"value":{"type":["array","null"],"items":{"type":"object","properties":{"currency":{"type":["string","null"],"minLength":1},"amount":{"type":"number"},"deals":{"type":"integer","exclusiveMinimum":0}},"required":["currency","amount","deals"]}},"unpriced":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","unpriced","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["ratio"]},"value":{"type":["number","null"]},"numerator":{"type":["integer","null"],"minimum":0},"denominator":{"type":["integer","null"],"minimum":0},"horizon_days":{"type":"integer","exclusiveMinimum":0},"matures_at":{"type":"string","format":"date-time"},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","numerator","denominator","availability","reason"]}]},"pipeline.email.wonDealValue":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","enum":["people","messages","meetings","deals"]},"value":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["entities"]},"value":{"type":["integer","null"],"minimum":0},"ambiguous_receipts":{"type":"integer","minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","ambiguous_receipts","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["money"]},"value":{"type":["array","null"],"items":{"type":"object","properties":{"currency":{"type":["string","null"],"minLength":1},"amount":{"type":"number"},"deals":{"type":"integer","exclusiveMinimum":0}},"required":["currency","amount","deals"]}},"unpriced":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","unpriced","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["ratio"]},"value":{"type":["number","null"]},"numerator":{"type":["integer","null"],"minimum":0},"denominator":{"type":["integer","null"],"minimum":0},"horizon_days":{"type":"integer","exclusiveMinimum":0},"matures_at":{"type":"string","format":"date-time"},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","numerator","denominator","availability","reason"]}]},"conversion.connectionAccepted":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","enum":["people","messages","meetings","deals"]},"value":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["entities"]},"value":{"type":["integer","null"],"minimum":0},"ambiguous_receipts":{"type":"integer","minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","ambiguous_receipts","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["money"]},"value":{"type":["array","null"],"items":{"type":"object","properties":{"currency":{"type":["string","null"],"minLength":1},"amount":{"type":"number"},"deals":{"type":"integer","exclusiveMinimum":0}},"required":["currency","amount","deals"]}},"unpriced":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","unpriced","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["ratio"]},"value":{"type":["number","null"]},"numerator":{"type":["integer","null"],"minimum":0},"denominator":{"type":["integer","null"],"minimum":0},"horizon_days":{"type":"integer","exclusiveMinimum":0},"matures_at":{"type":"string","format":"date-time"},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","numerator","denominator","availability","reason"]}]},"conversion.linkedin.replied":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","enum":["people","messages","meetings","deals"]},"value":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["entities"]},"value":{"type":["integer","null"],"minimum":0},"ambiguous_receipts":{"type":"integer","minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","ambiguous_receipts","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["money"]},"value":{"type":["array","null"],"items":{"type":"object","properties":{"currency":{"type":["string","null"],"minLength":1},"amount":{"type":"number"},"deals":{"type":"integer","exclusiveMinimum":0}},"required":["currency","amount","deals"]}},"unpriced":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","unpriced","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["ratio"]},"value":{"type":["number","null"]},"numerator":{"type":["integer","null"],"minimum":0},"denominator":{"type":["integer","null"],"minimum":0},"horizon_days":{"type":"integer","exclusiveMinimum":0},"matures_at":{"type":"string","format":"date-time"},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","numerator","denominator","availability","reason"]}]},"conversion.email.replied":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","enum":["people","messages","meetings","deals"]},"value":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["entities"]},"value":{"type":["integer","null"],"minimum":0},"ambiguous_receipts":{"type":"integer","minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","ambiguous_receipts","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["money"]},"value":{"type":["array","null"],"items":{"type":"object","properties":{"currency":{"type":["string","null"],"minLength":1},"amount":{"type":"number"},"deals":{"type":"integer","exclusiveMinimum":0}},"required":["currency","amount","deals"]}},"unpriced":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","unpriced","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["ratio"]},"value":{"type":["number","null"]},"numerator":{"type":["integer","null"],"minimum":0},"denominator":{"type":["integer","null"],"minimum":0},"horizon_days":{"type":"integer","exclusiveMinimum":0},"matures_at":{"type":"string","format":"date-time"},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","numerator","denominator","availability","reason"]}]},"conversion.meeting":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","enum":["people","messages","meetings","deals"]},"value":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["entities"]},"value":{"type":["integer","null"],"minimum":0},"ambiguous_receipts":{"type":"integer","minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","ambiguous_receipts","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["money"]},"value":{"type":["array","null"],"items":{"type":"object","properties":{"currency":{"type":["string","null"],"minLength":1},"amount":{"type":"number"},"deals":{"type":"integer","exclusiveMinimum":0}},"required":["currency","amount","deals"]}},"unpriced":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","unpriced","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["ratio"]},"value":{"type":["number","null"]},"numerator":{"type":["integer","null"],"minimum":0},"denominator":{"type":["integer","null"],"minimum":0},"horizon_days":{"type":"integer","exclusiveMinimum":0},"matures_at":{"type":"string","format":"date-time"},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","numerator","denominator","availability","reason"]}]},"conversion.won":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","enum":["people","messages","meetings","deals"]},"value":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["entities"]},"value":{"type":["integer","null"],"minimum":0},"ambiguous_receipts":{"type":"integer","minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","ambiguous_receipts","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["money"]},"value":{"type":["array","null"],"items":{"type":"object","properties":{"currency":{"type":["string","null"],"minLength":1},"amount":{"type":"number"},"deals":{"type":"integer","exclusiveMinimum":0}},"required":["currency","amount","deals"]}},"unpriced":{"type":["integer","null"],"minimum":0},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","unpriced","availability","reason"]},{"type":"object","properties":{"unit":{"type":"string","enum":["ratio"]},"value":{"type":["number","null"]},"numerator":{"type":["integer","null"],"minimum":0},"denominator":{"type":["integer","null"],"minimum":0},"horizon_days":{"type":"integer","exclusiveMinimum":0},"matures_at":{"type":"string","format":"date-time"},"availability":{"type":"string","enum":["complete","partial","unavailable","not_applicable","collecting"]},"reason":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z_]*$"}},"required":["unit","value","numerator","denominator","availability","reason"]}]}},"required":["linkedin.connectionsSent","linkedin.connectionsAccepted","linkedin.peopleMessaged","linkedin.peopleReplied","email.messagesSent","email.peopleEmailed","email.peopleBounced","email.peopleBlocked","email.peopleReplied","pipeline.meetingsBooked","pipeline.dealsCreated","pipeline.dealsWon","pipeline.createdDealValue","pipeline.wonDealValue","pipeline.linkedin.meetingsBooked","pipeline.linkedin.dealsCreated","pipeline.linkedin.dealsWon","pipeline.linkedin.createdDealValue","pipeline.linkedin.wonDealValue","pipeline.email.meetingsBooked","pipeline.email.dealsCreated","pipeline.email.dealsWon","pipeline.email.createdDealValue","pipeline.email.wonDealValue","conversion.connectionAccepted","conversion.linkedin.replied","conversion.email.replied","conversion.meeting","conversion.won"]}},"required":["workspace_id","period","observed_at","senders","sources","period_closed","metrics"]}}}},"400":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/workspace/crm/preferences":{"get":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"responses":{"200":{"description":"Read what Lifty writes to the selected CRM besides mapped fields: research notes (none or on_complete), conversations (none, on_reply or all) and their channels (email, linkedin), with the version to change them. A disconnected CRM keeps its choices. Without a CRM returns CRM_NOT_SELECTED. Read-only.","content":{"application/json":{"schema":{"type":"object","properties":{"version":{"type":"integer","exclusiveMinimum":0},"provider":{"type":"string","enum":["hubspot","attio"]},"research":{"type":"object","properties":{"mode":{"type":"string","enum":["none","on_complete"],"description":"on_complete writes a research note when a lead's research completes; none writes no research notes."}},"required":["mode"]},"conversation":{"oneOf":[{"type":"object","properties":{"mode":{"type":"string","enum":["none"]}},"required":["mode"]},{"type":"object","properties":{"mode":{"type":"string","enum":["on_reply","all"]},"channels":{"type":"array","items":{"type":"string","enum":["email","linkedin"]},"minItems":1,"maxItems":2,"description":"Which conversations go to the CRM: email, linkedin or both, each once."}},"required":["mode","channels"]}]},"updated_at":{"type":["string","null"],"format":"date-time"},"updated_by":{"type":["string","null"],"format":"uuid"}},"required":["version","provider","research","conversation","updated_at","updated_by"]}}}},"400":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}},"patch":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"expected_version":{"type":"integer","exclusiveMinimum":0},"research":{"type":"object","properties":{"mode":{"type":"string","enum":["none","on_complete"],"description":"on_complete writes a research note when a lead's research completes; none writes no research notes."}},"required":["mode"],"additionalProperties":false},"conversation":{"type":"object","properties":{"mode":{"type":"string","enum":["none","on_reply","all"],"description":"all writes every sent message and reply; on_reply starts once the lead replies; none writes no conversations."},"channels":{"type":"array","items":{"type":"string","enum":["email","linkedin"]},"minItems":1,"maxItems":2,"description":"Which conversations go to the CRM: email, linkedin or both, each once."}},"additionalProperties":false}},"required":["expected_version"],"additionalProperties":false}}}},"responses":{"200":{"description":"Change research notes, conversations or their channels with expected_version. Omitted choices keep their saved value and channels replaces the list. Turning conversations on from none needs channels. Applies to future CRM writes only: notes and conversations already in the CRM stay. Does not start a CRM sync, outreach or research.","content":{"application/json":{"schema":{"type":"object","properties":{"version":{"type":"integer","exclusiveMinimum":0},"provider":{"type":"string","enum":["hubspot","attio"]},"research":{"type":"object","properties":{"mode":{"type":"string","enum":["none","on_complete"],"description":"on_complete writes a research note when a lead's research completes; none writes no research notes."}},"required":["mode"]},"conversation":{"oneOf":[{"type":"object","properties":{"mode":{"type":"string","enum":["none"]}},"required":["mode"]},{"type":"object","properties":{"mode":{"type":"string","enum":["on_reply","all"]},"channels":{"type":"array","items":{"type":"string","enum":["email","linkedin"]},"minItems":1,"maxItems":2,"description":"Which conversations go to the CRM: email, linkedin or both, each once."}},"required":["mode","channels"]}]},"updated_at":{"type":["string","null"],"format":"date-time"},"updated_by":{"type":["string","null"],"format":"uuid"}},"required":["version","provider","research","conversation","updated_at","updated_by"]}}}},"400":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/workspace/crm/automatic-sync":{"get":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"responses":{"200":{"description":"Read whether Lifty writes to the CRM on its own (automatic sync on or paused; new connections start paused), the waiting leads, the sync writing now and the next step. Read test_sync_status for the latest test.","content":{"application/json":{"schema":{"type":"object","properties":{"version":{"type":"integer","exclusiveMinimum":0,"description":"Send as expected_version to change automatic sync."},"provider":{"type":"string","enum":["hubspot","attio"]},"connected":{"type":"boolean","description":"The CRM is connected and needs no reconnection."},"automatic_sync":{"type":"string","enum":["on","paused"],"description":"on: Lifty writes qualified leads, research, notes and activity to the CRM as they happen. paused: nothing is written on its own; leads wait. New connections start paused."},"updated_at":{"type":["string","null"],"format":"date-time"},"updated_by":{"type":["string","null"],"format":"uuid","description":"Who last changed it; null for the rollout default or a new connection."},"waiting_leads":{"type":"integer","minimum":0,"description":"Qualified leads not yet in the CRM: what turning automatic sync on writes first."},"sync_run":{"type":["object","null"],"properties":{"run_ref":{"type":"string","format":"uuid"},"state":{"type":"string","enum":["queued","running"]},"requested_leads":{"type":"integer","exclusiveMinimum":0}},"required":["run_ref","state","requested_leads"],"description":"The CRM sync that is writing leads right now; read crm_sync_status for its receipt."},"next_step":{"type":"string","enum":["reconnect_crm","run_test_sync","turn_on_automatic_sync","none"]}},"required":["version","provider","connected","automatic_sync","updated_at","updated_by","waiting_leads","sync_run","next_step"]}}}},"400":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"503":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}},"patch":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"expected_version":{"type":"integer","exclusiveMinimum":0},"automatic_sync":{"type":"string","enum":["on","paused"]}},"required":["expected_version","automatic_sync"],"additionalProperties":false}}}},"responses":{"200":{"description":"Turn automatic sync on (writes the waiting leads first; catch_up is that sync) or pause every CRM write Lifty makes on its own, with expected_version.","content":{"application/json":{"schema":{"type":"object","properties":{"version":{"type":"integer","exclusiveMinimum":0,"description":"Send as expected_version to change automatic sync."},"provider":{"type":"string","enum":["hubspot","attio"]},"connected":{"type":"boolean","description":"The CRM is connected and needs no reconnection."},"automatic_sync":{"type":"string","enum":["on","paused"],"description":"on: Lifty writes qualified leads, research, notes and activity to the CRM as they happen. paused: nothing is written on its own; leads wait. New connections start paused."},"updated_at":{"type":["string","null"],"format":"date-time"},"updated_by":{"type":["string","null"],"format":"uuid","description":"Who last changed it; null for the rollout default or a new connection."},"waiting_leads":{"type":"integer","minimum":0,"description":"Qualified leads not yet in the CRM: what turning automatic sync on writes first."},"sync_run":{"type":["object","null"],"properties":{"run_ref":{"type":"string","format":"uuid"},"state":{"type":"string","enum":["queued","running"]},"requested_leads":{"type":"integer","exclusiveMinimum":0}},"required":["run_ref","state","requested_leads"],"description":"The CRM sync that is writing leads right now; read crm_sync_status for its receipt."},"next_step":{"type":"string","enum":["reconnect_crm","run_test_sync","turn_on_automatic_sync","none"]},"changed":{"type":"boolean","description":"false when the saved state already matched; no version was added."},"catch_up":{"anyOf":[{"type":"object","properties":{"state":{"type":"string","enum":["queued","running"]},"run_ref":{"type":"string","format":"uuid"},"requested_leads":{"type":"integer","exclusiveMinimum":0},"created":{"type":"boolean"}},"required":["state","run_ref","requested_leads","created"]},{"type":"object","properties":{"state":{"type":"string","enum":["none","busy","not_connected"]}},"required":["state"]},{"type":"null"}],"description":"Turning automatic sync on starts the sync of the waiting leads: its run_ref, or none (nothing waits), busy (another run must finish; the redrive writes them later) or not_connected."}},"required":["version","provider","connected","automatic_sync","updated_at","updated_by","waiting_leads","sync_run","next_step","changed","catch_up"]}}}},"400":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"503":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/workspace/crm/test-sync":{"post":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"lead_refs":{"type":"array","items":{"type":"string","format":"uuid"},"minItems":1,"maxItems":5}},"additionalProperties":false}}}},"responses":{"200":{"description":"Write up to five leads (omit lead_refs to let Lifty pick) to the CRM with the current settings, even while automatic sync is paused. Never turns it on.","content":{"application/json":{"schema":{"type":"object","properties":{"state":{"type":"string","enum":["queued","running"]},"run_ref":{"type":"string","format":"uuid"},"lead_refs":{"type":"array","items":{"type":"string","format":"uuid"},"minItems":1,"maxItems":5},"created":{"type":"boolean","description":"false when the same test was already running and was reattached."}},"required":["state","run_ref","lead_refs","created"]}}}},"400":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"503":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}},"get":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":false,"name":"run_ref","in":"query"},{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"responses":{"200":{"description":"Read a test by run_ref (or latest), records and per-field results. Tests never enable automatic sync. After success, read automatic sync; if paused, state the waiting count and ask to enable it. Require the founder's explicit yes.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"state":{"type":"string","enum":["none"]}},"required":["state"]},{"type":"object","properties":{"run_ref":{"type":"string","format":"uuid"},"state":{"type":"string","enum":["queued","running","succeeded","failed"]},"lead_refs":{"type":"array","items":{"type":"string","format":"uuid"},"minItems":1,"maxItems":5},"created_at":{"type":"string","format":"date-time"},"started_at":{"type":["string","null"],"format":"date-time"},"completed_at":{"type":["string","null"],"format":"date-time"},"error_code":{"type":["string","null"]},"settings_changed":{"type":"boolean","description":"The CRM settings changed since this test ran; offer to rerun the same lead_refs."},"results":{"type":["object","null"],"properties":{"version":{"type":"number","enum":[1]},"provider":{"type":"string","enum":["hubspot","attio"]},"leads":{"type":"array","items":{"type":"object","properties":{"lead_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"company":{"type":["string","null"]},"contact":{"type":"object","properties":{"record_id":{"type":["string","null"],"minLength":1,"maxLength":200},"url":{"type":["string","null"],"format":"uri"},"found":{"type":"boolean"}},"required":["record_id","url","found"]},"company_record":{"type":"object","properties":{"record_id":{"type":["string","null"],"minLength":1,"maxLength":200},"url":{"type":["string","null"],"format":"uri"},"found":{"type":"boolean"}},"required":["record_id","url","found"]},"fields":{"type":"array","items":{"type":"object","properties":{"object":{"type":"string","enum":["contact","company"]},"field":{"type":"string","minLength":1,"maxLength":200},"label":{"type":["string","null"],"maxLength":300},"mapping_ref":{"type":"string","minLength":1,"maxLength":100},"source":{"type":"string","maxLength":1000},"result":{"type":"string","enum":["written","kept","skipped"]},"reason":{"type":["string","null"],"enum":["research_found_nothing","no_value","research_unavailable","set_by_outreach","field_missing_in_crm","record_missing","record_unreadable","not_written","only_if_empty","create_only","managed_enum_transition",null]},"value":{"type":["string","null"]},"crm_value":{"type":["string","null"]}},"required":["object","field","label","mapping_ref","source","result","reason","value","crm_value"]},"maxItems":400}},"required":["lead_ref","name","company","contact","company_record","fields"]},"maxItems":5}},"required":["version","provider","leads"],"description":"Per lead and mapped field, read back from the CRM after the test: written (the CRM holds Lifty's value), kept (the field's write rule kept the CRM value; reason is the rule) or skipped (reason says why)."}},"required":["run_ref","state","lead_refs","created_at","started_at","completed_at","error_code","settings_changed","results"]}]}}}},"400":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"503":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/workspace/customer-exclusions":{"get":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"responses":{"200":{"description":"Read total saved and founder-uploaded customer domain/email counts, the latest founder CSV import revision, accepted/rejected rows with reasons, founder-upload added/removed counts and candidates excluded. Total saved domains include CRM and manual protections. source_choice separately reports the founder's explicit CRM, file or neither choice; connecting a CRM does not enable customer reads. crm_refresh reports freshness for enabled CRM sources, with each source's last attempt and success. Null reads are unknown. Read-only; unavailable does not mean an empty list.","content":{"application/json":{"schema":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"revision":{"type":["string","null"],"pattern":"^[a-f0-9]{64}$"},"imported_at":{"type":["string","null"],"format":"date-time"},"domain_count":{"type":"integer","minimum":0},"email_count":{"type":"integer","minimum":0},"uploaded_domain_count":{"type":"integer","minimum":0},"uploaded_email_count":{"type":"integer","minimum":0},"accepted_rows":{"type":"integer","minimum":0},"rejected_count":{"type":"integer","minimum":0},"rejected_rows":{"type":"array","items":{"type":"object","properties":{"row":{"type":"integer","exclusiveMinimum":0},"reason":{"type":"string","enum":["invalid_domain","invalid_email","free_mail_domain","missing_identity","column_count","malformed_csv"]}},"required":["row","reason"]},"maxItems":10000},"added_domains":{"type":"integer","minimum":0},"removed_domains":{"type":"integer","minimum":0},"added_emails":{"type":"integer","minimum":0},"removed_emails":{"type":"integer","minimum":0},"candidates_excluded":{"type":"integer","minimum":0},"crm_refresh":{"type":["object","null"],"properties":{"state":{"type":"string","enum":["fresh","stale","missing","not_required"]},"reason":{"type":["string","null"],"maxLength":100},"crm_scope":{"type":"string","enum":["connected","disconnected","never_connected"]},"provider":{"type":["string","null"],"enum":["hubspot","attio",null]},"active_outreach":{"type":"boolean"},"fresh_within_hours":{"type":"integer","exclusiveMinimum":0},"checked_at":{"type":"string","format":"date-time"},"last_attempt_at":{"type":["string","null"],"format":"date-time"},"last_attempt_status":{"type":["string","null"],"enum":["succeeded","provider_failed","skipped",null]},"last_skip_reason":{"type":["string","null"],"maxLength":100},"sources":{"type":"array","items":{"type":"object","properties":{"source":{"type":"string","enum":["crm_closed_won","crm_customer","crm_open_deal"]},"required":{"type":"boolean"},"last_status":{"type":["string","null"],"enum":["ok","failed","skipped","unsupported","off",null]},"last_attempt_at":{"type":["string","null"],"format":"date-time"},"last_success_at":{"type":["string","null"],"format":"date-time"},"fresh":{"type":"boolean"},"stored_domains":{"type":"integer","minimum":0}},"required":["source","required","last_status","last_attempt_at","last_success_at","fresh","stored_domains"]}}},"required":["state","reason","crm_scope","provider","active_outreach","fresh_within_hours","checked_at","last_attempt_at","last_attempt_status","last_skip_reason","sources"]},"source_choice":{"type":["object","null"],"properties":{"workspace_ref":{"type":"string","format":"uuid"},"mode":{"type":"string","enum":["unselected","crm","file","none"]},"provider":{"type":["string","null"],"enum":["hubspot","attio",null]},"sources":{"type":"array","items":{"type":"string","enum":["crm_closed_won","crm_customer","crm_open_deal"]},"maxItems":3},"version":{"type":"integer","minimum":0},"updated_at":{"type":["string","null"],"format":"date-time"},"refresh_pending":{"type":"boolean"}},"required":["workspace_ref","mode","provider","sources","version","updated_at","refresh_pending"]}},"required":["workspace_ref","revision","imported_at","domain_count","email_count","uploaded_domain_count","uploaded_email_count","accepted_rows","rejected_count","rejected_rows","added_domains","removed_domains","added_emails","removed_emails","candidates_excluded","crm_refresh","source_choice"]}}}},"400":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/workspace/customer-exclusions/entries":{"get":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","maxLength":200},"required":false,"name":"q","in":"query"},{"schema":{"type":"string","minLength":3,"maxLength":512,"pattern":"^[de]:"},"required":false,"name":"cursor","in":"query"},{"schema":{"type":"integer","minimum":1,"maximum":100},"required":false,"name":"limit","in":"query"},{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"responses":{"200":{"description":"Search saved customer exclusions by company name, domain or exact email address text. Each entry includes its saved sources. Pass next_cursor unchanged for the next page of the same search.","content":{"application/json":{"schema":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"items":{"type":"array","items":{"type":"object","properties":{"identity":{"type":"string","minLength":1},"company_name":{"type":["string","null"]},"sources":{"type":"array","items":{"type":"string","enum":["crm_closed_won","crm_customer","crm_open_deal","manual","founder_upload"]},"minItems":1,"maxItems":2}},"required":["identity","company_name","sources"],"additionalProperties":false},"maxItems":100},"next_cursor":{"type":["string","null"],"minLength":3,"maxLength":512,"pattern":"^[de]:"}},"required":["workspace_ref","items","next_cursor"],"additionalProperties":false}}}},"400":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/workspace/customer-exclusions/import":{"post":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"csv":{"type":"string","minLength":1,"maxLength":131072,"description":"UTF-8 CSV, at most 128 KiB and 5000 data rows, with domain/company_domain/website and/or email columns. Replaces the founder-uploaded list; a header-only CSV clears it."}},"required":["csv"],"additionalProperties":false}}}},"responses":{"200":{"description":"Replace this workspace's founder-uploaded customers from a CSV of company domains and/or exact emails. Deduplicates case/scheme/www domain variants; free-mail hosts protect only exact emails. Rejected rows contain row numbers and reasons. Returns saved counts and added/removed counts; a header-only CSV clears the founder upload. CRM/manual protections remain. Does not change source choice, grant customer-data access, acquire leads, call a provider, resume research or send outreach.","content":{"application/json":{"schema":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"revision":{"type":["string","null"],"pattern":"^[a-f0-9]{64}$"},"imported_at":{"type":["string","null"],"format":"date-time"},"domain_count":{"type":"integer","minimum":0},"email_count":{"type":"integer","minimum":0},"uploaded_domain_count":{"type":"integer","minimum":0},"uploaded_email_count":{"type":"integer","minimum":0},"accepted_rows":{"type":"integer","minimum":0},"rejected_count":{"type":"integer","minimum":0},"rejected_rows":{"type":"array","items":{"type":"object","properties":{"row":{"type":"integer","exclusiveMinimum":0},"reason":{"type":"string","enum":["invalid_domain","invalid_email","free_mail_domain","missing_identity","column_count","malformed_csv"]}},"required":["row","reason"]},"maxItems":10000},"added_domains":{"type":"integer","minimum":0},"removed_domains":{"type":"integer","minimum":0},"added_emails":{"type":"integer","minimum":0},"removed_emails":{"type":"integer","minimum":0},"candidates_excluded":{"type":"integer","minimum":0}},"required":["workspace_ref","revision","imported_at","domain_count","email_count","uploaded_domain_count","uploaded_email_count","accepted_rows","rejected_count","rejected_rows","added_domains","removed_domains","added_emails","removed_emails","candidates_excluded"]}}}},"400":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/workspace/customer-exclusions/source-choice":{"get":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"responses":{"200":{"description":"Read the founder's explicit customer-source choice and current version, independently of CRM connection or provider grants. Unselected means no choice has been saved and authorizes no CRM customer reads. CRM lists the selected sources; file and none enable no CRM reads. All saved exclusions remain enforced. Read-only; unavailable is unknown, never consent.","content":{"application/json":{"schema":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"mode":{"type":"string","enum":["unselected","crm","file","none"]},"provider":{"type":["string","null"],"enum":["hubspot","attio",null]},"sources":{"type":"array","items":{"type":"string","enum":["crm_closed_won","crm_customer","crm_open_deal"]},"maxItems":3},"version":{"type":"integer","minimum":0},"updated_at":{"type":["string","null"],"format":"date-time"},"refresh_pending":{"type":"boolean"}},"required":["workspace_ref","mode","provider","sources","version","updated_at","refresh_pending"]}}}},"400":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}},"post":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"mode":{"type":"string","enum":["crm","file","none"]},"provider":{"type":["string","null"],"enum":["hubspot","attio",null]},"sources":{"type":"array","items":{"type":"string","enum":["crm_closed_won","crm_customer","crm_open_deal"]},"maxItems":3},"expected_version":{"type":"integer","minimum":0}},"required":["mode","provider","sources","expected_version"],"additionalProperties":false}}}},"responses":{"200":{"description":"Save the founder's explicit choice using expected_version from source-choice GET. CRM requires the current provider and each authorized source once; file and none require a null provider and no CRM sources. Enabling CRM queues a durable refresh; only enabled required sources can hold new Journey starts or activation when stale. File/none stop CRM customer reads and preserve every saved exclusion. Uploads can complement CRM without changing this choice. Does not activate or resume outreach. After an uncertain response read the saved choice before retrying.","content":{"application/json":{"schema":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"mode":{"type":"string","enum":["unselected","crm","file","none"]},"provider":{"type":["string","null"],"enum":["hubspot","attio",null]},"sources":{"type":"array","items":{"type":"string","enum":["crm_closed_won","crm_customer","crm_open_deal"]},"maxItems":3},"version":{"type":"integer","minimum":0},"updated_at":{"type":["string","null"],"format":"date-time"},"refresh_pending":{"type":"boolean"}},"required":["workspace_ref","mode","provider","sources","version","updated_at","refresh_pending"]}}}},"400":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/workspace/records":{"get":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":false,"name":"lead_ref","in":"query"},{"schema":{"type":"string","format":"uuid"},"required":false,"name":"meeting_cursor","in":"query"},{"schema":{"type":"string","format":"uuid"},"required":false,"name":"deal_cursor","in":"query"},{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"responses":{"200":{"description":"Read the meetings and deals recorded in Lifty (200 per page for each kind; pass the corresponding next cursor to continue) and can_record, false while a CRM is selected. With lead_ref: that lead's records, open deals at its company and hold, the wait on its first contact. Read-only.","content":{"application/json":{"schema":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"crm_provider":{"type":["string","null"],"pattern":"^[a-z][a-z0-9_]{0,62}$"},"can_record":{"type":"boolean"},"meetings":{"type":"array","items":{"type":"object","properties":{"meeting_ref":{"type":"string","format":"uuid"},"source":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,62}$"},"title":{"type":["string","null"]},"starts_at":{"type":"string","format":"date-time"},"ends_at":{"type":["string","null"],"format":"date-time"},"outcome":{"type":"string","enum":["scheduled","completed","no_show","canceled"]},"booked_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"leads":{"type":"array","items":{"type":"object","properties":{"lead_ref":{"type":"string","format":"uuid"},"name":{"type":["string","null"]},"email":{"type":["string","null"]},"company":{"type":["string","null"]}},"required":["lead_ref","name","email","company"]}}},"required":["meeting_ref","source","title","starts_at","ends_at","outcome","booked_at","updated_at","leads"]},"maxItems":200},"deals":{"type":"array","items":{"type":"object","properties":{"deal_ref":{"type":"string","format":"uuid"},"source":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,62}$"},"name":{"type":"string"},"status":{"type":"string","enum":["open","won","lost"]},"stage":{"type":["string","null"]},"amount":{"type":["number","null"]},"currency":{"type":["string","null"]},"company_domain":{"type":["string","null"]},"opened_at":{"type":"string","format":"date-time"},"closed_at":{"type":["string","null"],"format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"leads":{"type":"array","items":{"type":"object","properties":{"lead_ref":{"type":"string","format":"uuid"},"name":{"type":["string","null"]},"email":{"type":["string","null"]},"company":{"type":["string","null"]}},"required":["lead_ref","name","email","company"]}}},"required":["deal_ref","source","name","status","stage","amount","currency","company_domain","opened_at","closed_at","updated_at","leads"]},"maxItems":200},"hold":{"type":["object","null"],"properties":{"reason":{"type":"string","enum":["crm_recent_activity"]},"source":{"type":"string","enum":["lifty_record"]},"kind":{"type":"string","enum":["meeting","deal_open","deal_won","deal_lost","company_open_deal"]},"record_ref":{"type":"string","format":"uuid"},"record_at":{"type":"string","format":"date-time"},"until":{"type":["string","null"],"format":"date-time"},"indefinite":{"type":"boolean"}},"required":["reason","source","kind","record_ref","record_at","until","indefinite"]},"next_meeting_cursor":{"type":["string","null"],"format":"uuid"},"next_deal_cursor":{"type":["string","null"],"format":"uuid"}},"required":["workspace_ref","crm_provider","can_record","meetings","deals","hold","next_meeting_cursor","next_deal_cursor"]}}}},"400":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/workspace/records/meetings":{"post":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"meeting_ref":{"type":"string","format":"uuid","description":"Set to edit; send every field."},"request_id":{"type":"string","format":"uuid","description":"On create, generate a UUID once and reuse it for retries of that creation."},"expected_updated_at":{"type":"string","format":"date-time","description":"On edit or delete, send the updated_at you read."},"lead_refs":{"type":"array","items":{"type":"string","format":"uuid"},"maxItems":20},"people":{"type":"array","items":{"type":"object","properties":{"email":{"type":"string","maxLength":254,"format":"email"},"first_name":{"type":"string","maxLength":200},"last_name":{"type":"string","maxLength":200},"company_name":{"type":"string","maxLength":300},"company_domain":{"type":"string","maxLength":300}},"required":["email"],"additionalProperties":false,"description":"Someone not yet a lead, by email."},"maxItems":20},"starts_at":{"type":"string","format":"date-time"},"ends_at":{"type":"string","format":"date-time"},"title":{"type":"string","maxLength":300},"outcome":{"type":"string","enum":["scheduled","completed","no_show","canceled"]}},"required":["starts_at"],"additionalProperties":false}}}},"responses":{"200":{"description":"Record a meeting with leads or new people, or edit one. Holds their first contact for 90 days after it; a contacted lead becomes Meeting booked. Creating a new record is refused with CRM_RECORDS_IN_CRM while a CRM is selected. Sends nothing.","content":{"application/json":{"schema":{"type":"object","properties":{"meeting_ref":{"type":"string","format":"uuid"},"source":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,62}$"},"title":{"type":["string","null"]},"starts_at":{"type":"string","format":"date-time"},"ends_at":{"type":["string","null"],"format":"date-time"},"outcome":{"type":"string","enum":["scheduled","completed","no_show","canceled"]},"booked_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"leads":{"type":"array","items":{"type":"object","properties":{"lead_ref":{"type":"string","format":"uuid"},"name":{"type":["string","null"]},"email":{"type":["string","null"]},"company":{"type":["string","null"]}},"required":["lead_ref","name","email","company"]}}},"required":["meeting_ref","source","title","starts_at","ends_at","outcome","booked_at","updated_at","leads"]}}}},"400":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/workspace/records/meetings/delete":{"post":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"meeting_ref":{"type":"string","format":"uuid"},"expected_updated_at":{"type":"string","format":"date-time","description":"On edit or delete, send the updated_at you read."}},"required":["meeting_ref"],"additionalProperties":false}}}},"responses":{"200":{"description":"Delete a meeting recorded by mistake, after the founder confirms. Its holds end at once.","content":{"application/json":{"schema":{"type":"object","properties":{"meeting_ref":{"type":"string","format":"uuid"},"deleted":{"type":"boolean","enum":[true]}},"required":["meeting_ref","deleted"]}}}},"400":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/workspace/records/deals":{"post":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"deal_ref":{"type":"string","format":"uuid","description":"Set to edit; send every field."},"name":{"type":"string","minLength":1,"maxLength":300},"status":{"type":"string","enum":["open","won","lost"]},"request_id":{"type":"string","format":"uuid","description":"On create, generate a UUID once and reuse it for retries of that creation."},"expected_updated_at":{"type":"string","format":"date-time","description":"On edit or delete, send the updated_at you read."},"lead_refs":{"type":"array","items":{"type":"string","format":"uuid"},"maxItems":20},"people":{"type":"array","items":{"type":"object","properties":{"email":{"type":"string","maxLength":254,"format":"email"},"first_name":{"type":"string","maxLength":200},"last_name":{"type":"string","maxLength":200},"company_name":{"type":"string","maxLength":300},"company_domain":{"type":"string","maxLength":300}},"required":["email"],"additionalProperties":false,"description":"Someone not yet a lead, by email."},"maxItems":20},"company_domain":{"type":"string","maxLength":300},"amount":{"type":"number","minimum":0,"exclusiveMaximum":10000000000000},"currency":{"type":"string","pattern":"^[A-Za-z]{3}$"},"opened_at":{"type":"string","format":"date-time"},"closed_at":{"type":"string","format":"date-time"}},"required":["name"],"additionalProperties":false}}}},"responses":{"200":{"description":"Record a deal with leads, new people or a company domain, or edit one (status won or lost closes it). Open holds its people and company; won excludes the company. Creating a new record is refused with CRM_RECORDS_IN_CRM while a CRM is selected. Sends nothing.","content":{"application/json":{"schema":{"type":"object","properties":{"deal_ref":{"type":"string","format":"uuid"},"source":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,62}$"},"name":{"type":"string"},"status":{"type":"string","enum":["open","won","lost"]},"stage":{"type":["string","null"]},"amount":{"type":["number","null"]},"currency":{"type":["string","null"]},"company_domain":{"type":["string","null"]},"opened_at":{"type":"string","format":"date-time"},"closed_at":{"type":["string","null"],"format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"leads":{"type":"array","items":{"type":"object","properties":{"lead_ref":{"type":"string","format":"uuid"},"name":{"type":["string","null"]},"email":{"type":["string","null"]},"company":{"type":["string","null"]}},"required":["lead_ref","name","email","company"]}}},"required":["deal_ref","source","name","status","stage","amount","currency","company_domain","opened_at","closed_at","updated_at","leads"]}}}},"400":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/workspace/records/deals/delete":{"post":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"deal_ref":{"type":"string","format":"uuid"},"expected_updated_at":{"type":"string","format":"date-time","description":"On edit or delete, send the updated_at you read."}},"required":["deal_ref"],"additionalProperties":false}}}},"responses":{"200":{"description":"Delete a deal recorded by mistake, after the founder confirms. Its holds and won exclusion end at once.","content":{"application/json":{"schema":{"type":"object","properties":{"deal_ref":{"type":"string","format":"uuid"},"deleted":{"type":"boolean","enum":[true]}},"required":["deal_ref","deleted"]}}}},"400":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/workspace/journeys/{journey_ref}/retire":{"post":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"journey_ref","in":"path"},{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"confirm":{"type":"boolean","enum":[true]}},"required":["confirm"],"additionalProperties":false}}}},"responses":{"200":{"description":"Irreversibly retire this Journey after explicit confirmation. It admits no new leads; the segment passes them to the next qualifying segment. Pausing Campaigns instead holds new leads. Existing runs retain their pins. Repeating retirement returns the same retired Journey.","content":{"application/json":{"schema":{"type":"object","properties":{"workspace":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string","minLength":1,"maxLength":200},"state":{"type":"string","minLength":1}},"required":["workspace_ref","name","state"]},"journey":{"type":"object","properties":{"journey_ref":{"type":"string","format":"uuid"},"version":{"type":"integer","exclusiveMinimum":0},"name":{"type":"string","minLength":1,"maxLength":200},"active_revision":{"type":["object","null"],"properties":{"revision_ref":{"type":"string","format":"uuid"},"digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"content":{"type":"object","properties":{"audience":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","enum":["qualified"]}},"required":["kind"]},{"type":"object","properties":{"kind":{"type":"string","enum":["static"]},"lead_refs":{"type":"array","items":{"type":"string","format":"uuid"},"minItems":1,"maxItems":500}},"required":["kind","lead_refs"]},{"type":"object","properties":{"kind":{"type":"string","enum":["conference"]},"list_ref":{"type":"string","format":"uuid"}},"required":["kind","list_ref"]}]},"stops":{"type":"array","items":{"type":"string","enum":["reply","meeting_booked","suppression","manual_stop"]}}},"required":["audience","stops"]},"created_at":{"type":"string","format":"date-time"},"approval":{"type":["object","null"],"properties":{"actor_ref":{"type":"string","format":"uuid"},"approved_at":{"type":"string","format":"date-time"}},"required":["actor_ref","approved_at"]}},"required":["revision_ref","digest","content","created_at","approval"]},"draft_revision":{"type":"object","properties":{"revision_ref":{"type":"string","format":"uuid"},"digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"content":{"type":"object","properties":{"audience":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","enum":["qualified"]}},"required":["kind"]},{"type":"object","properties":{"kind":{"type":"string","enum":["static"]},"lead_refs":{"type":"array","items":{"type":"string","format":"uuid"},"minItems":1,"maxItems":500}},"required":["kind","lead_refs"]},{"type":"object","properties":{"kind":{"type":"string","enum":["conference"]},"list_ref":{"type":"string","format":"uuid"}},"required":["kind","list_ref"]}]},"stops":{"type":"array","items":{"type":"string","enum":["reply","meeting_booked","suppression","manual_stop"]}}},"required":["audience","stops"]},"created_at":{"type":"string","format":"date-time"},"approval":{"type":["object","null"],"properties":{"actor_ref":{"type":"string","format":"uuid"},"approved_at":{"type":"string","format":"date-time"}},"required":["actor_ref","approved_at"]}},"required":["revision_ref","digest","content","created_at","approval"]},"revisions":{"type":"array","items":{"type":"object","properties":{"revision_ref":{"type":"string","format":"uuid"},"digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"content":{"type":"object","properties":{"audience":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","enum":["qualified"]}},"required":["kind"]},{"type":"object","properties":{"kind":{"type":"string","enum":["static"]},"lead_refs":{"type":"array","items":{"type":"string","format":"uuid"},"minItems":1,"maxItems":500}},"required":["kind","lead_refs"]},{"type":"object","properties":{"kind":{"type":"string","enum":["conference"]},"list_ref":{"type":"string","format":"uuid"}},"required":["kind","list_ref"]}]},"stops":{"type":"array","items":{"type":"string","enum":["reply","meeting_booked","suppression","manual_stop"]}}},"required":["audience","stops"]},"created_at":{"type":"string","format":"date-time"},"approval":{"type":["object","null"],"properties":{"actor_ref":{"type":"string","format":"uuid"},"approved_at":{"type":"string","format":"date-time"}},"required":["actor_ref","approved_at"]}},"required":["revision_ref","digest","content","created_at","approval"]},"maxItems":100},"campaigns":{"type":"array","items":{"type":"object","properties":{"campaign_ref":{"type":"string","format":"uuid"},"journey_ref":{"type":"string","format":"uuid"},"channel":{"type":"string","enum":["email","linkedin"]},"version":{"type":"integer","exclusiveMinimum":0},"name":{"type":"string","minLength":1,"maxLength":200},"state":{"type":"string","enum":["inactive","active","paused"]},"active_revision":{"type":["object","null"],"properties":{"revision_ref":{"type":"string","format":"uuid"},"digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"approval":{"anyOf":[{"type":"object","properties":{"actor_ref":{"type":"string","format":"uuid"},"approved_at":{"type":"string","format":"date-time"}},"required":["actor_ref","approved_at"]},{"type":"object","properties":{"actor_ref":{"type":"null"},"approved_at":{"type":"string","format":"date-time"},"origin":{"type":"string","enum":["slack"]},"decision_ref":{"type":"string","format":"uuid"},"source_decision_ref":{"type":"string","format":"uuid"},"proposal_ref":{"type":"string","format":"uuid"},"option_ref":{"type":"string","format":"uuid"},"slack":{"type":"object","properties":{"user_id":{"type":"string","minLength":1},"team_id":{"type":"string","minLength":1},"channel_id":{"type":"string","minLength":1},"message_ts":{"type":"string","minLength":1}},"required":["user_id","team_id","channel_id","message_ts"]}},"required":["actor_ref","approved_at","origin","decision_ref","source_decision_ref","proposal_ref","option_ref","slack"]},{"type":"object","properties":{"actor_ref":{"type":"null"},"approved_at":{"type":"string","format":"date-time"},"origin":{"type":"string","enum":["system"]},"decision_ref":{"type":"string","format":"uuid"},"source_decision_ref":{"type":"string","format":"uuid"},"proposal_ref":{"type":"string","format":"uuid"},"option_ref":{"type":"string","format":"uuid"},"system":{"type":"object","properties":{"policy":{"type":"string","minLength":1}},"required":["policy"]}},"required":["actor_ref","approved_at","origin","decision_ref","source_decision_ref","proposal_ref","option_ref","system"]},{"type":"null"}]}},"required":["revision_ref","digest","approval"]},"draft_revision":{"type":"object","properties":{"revision_ref":{"type":"string","format":"uuid"},"digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"approval":{"anyOf":[{"type":"object","properties":{"actor_ref":{"type":"string","format":"uuid"},"approved_at":{"type":"string","format":"date-time"}},"required":["actor_ref","approved_at"]},{"type":"object","properties":{"actor_ref":{"type":"null"},"approved_at":{"type":"string","format":"date-time"},"origin":{"type":"string","enum":["slack"]},"decision_ref":{"type":"string","format":"uuid"},"source_decision_ref":{"type":"string","format":"uuid"},"proposal_ref":{"type":"string","format":"uuid"},"option_ref":{"type":"string","format":"uuid"},"slack":{"type":"object","properties":{"user_id":{"type":"string","minLength":1},"team_id":{"type":"string","minLength":1},"channel_id":{"type":"string","minLength":1},"message_ts":{"type":"string","minLength":1}},"required":["user_id","team_id","channel_id","message_ts"]}},"required":["actor_ref","approved_at","origin","decision_ref","source_decision_ref","proposal_ref","option_ref","slack"]},{"type":"object","properties":{"actor_ref":{"type":"null"},"approved_at":{"type":"string","format":"date-time"},"origin":{"type":"string","enum":["system"]},"decision_ref":{"type":"string","format":"uuid"},"source_decision_ref":{"type":"string","format":"uuid"},"proposal_ref":{"type":"string","format":"uuid"},"option_ref":{"type":"string","format":"uuid"},"system":{"type":"object","properties":{"policy":{"type":"string","minLength":1}},"required":["policy"]}},"required":["actor_ref","approved_at","origin","decision_ref","source_decision_ref","proposal_ref","option_ref","system"]},{"type":"null"}]}},"required":["revision_ref","digest","approval"]}},"required":["campaign_ref","journey_ref","channel","version","name","state","active_revision","draft_revision"]},"maxItems":100},"executable_version":{"type":["object","null"],"properties":{"executable_version_ref":{"type":"string","format":"uuid"},"digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"created_at":{"type":"string","format":"date-time"},"journey":{"type":"object","properties":{"revision_ref":{"type":"string","format":"uuid"},"digest":{"type":"string","pattern":"^[a-f0-9]{64}$"}},"required":["revision_ref","digest"]},"campaigns":{"type":"array","items":{"type":"object","properties":{"campaign_ref":{"type":"string","format":"uuid"},"channel":{"type":"string","enum":["email","linkedin"]},"revision":{"type":"object","properties":{"revision_ref":{"type":"string","format":"uuid"},"digest":{"type":"string","pattern":"^[a-f0-9]{64}$"}},"required":["revision_ref","digest"]}},"required":["campaign_ref","channel","revision"]},"minItems":1,"maxItems":2},"graph":{"type":"object","properties":{"status":{"type":"string","enum":["compiling","compiled"]}},"required":["status"]}},"required":["executable_version_ref","digest","created_at","journey","campaigns","graph"]},"segment_id":{"type":"string","format":"uuid"},"segment_name":{"type":"string","minLength":1,"maxLength":120},"retired_at":{"type":"string","format":"date-time","description":"When the Journey was retired; absent while it is not."},"retired_by":{"type":["string","null"],"format":"uuid","description":"The member who retired it; absent while it is not retired."},"leads_in_progress":{"type":"integer","minimum":0,"description":"Leads still in the retired Journey, who keep getting their remaining messages; 0 once the last one finishes. Absent while it is not retired."}},"required":["journey_ref","version","name","active_revision","draft_revision","revisions","campaigns","executable_version"]}},"required":["workspace","journey"]}}}},"400":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/workspace/journeys":{"get":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":100},"required":false,"name":"limit","in":"query"},{"schema":{"type":"string","format":"uuid"},"required":false,"name":"cursor","in":"query"},{"schema":{"type":"string","format":"uuid"},"required":false,"name":"segment_id","in":"query"},{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"responses":{"200":{"description":"Read saved Journeys in the selected workspace with their selected revision and executable version; with several segments each names its segment, and segment_id filters. Unknown reads are unavailable, not an empty audience.","content":{"application/json":{"schema":{"type":"object","properties":{"workspace":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string","minLength":1,"maxLength":200},"state":{"type":"string","minLength":1}},"required":["workspace_ref","name","state"]},"journeys":{"type":"array","items":{"type":"object","properties":{"journey_ref":{"type":"string","format":"uuid"},"version":{"type":"integer","exclusiveMinimum":0},"name":{"type":"string","minLength":1,"maxLength":200},"active_revision":{"type":["object","null"],"properties":{"revision_ref":{"type":"string","format":"uuid"},"digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"approval":{"type":["object","null"],"properties":{"actor_ref":{"type":"string","format":"uuid"},"approved_at":{"type":"string","format":"date-time"}},"required":["actor_ref","approved_at"]}},"required":["revision_ref","digest","approval"]},"draft_revision":{"type":"object","properties":{"revision_ref":{"type":"string","format":"uuid"},"digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"approval":{"type":["object","null"],"properties":{"actor_ref":{"type":"string","format":"uuid"},"approved_at":{"type":"string","format":"date-time"}},"required":["actor_ref","approved_at"]}},"required":["revision_ref","digest","approval"]},"executable_version":{"type":["object","null"],"properties":{"executable_version_ref":{"type":"string","format":"uuid"},"digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"created_at":{"type":"string","format":"date-time"},"journey":{"type":"object","properties":{"revision_ref":{"type":"string","format":"uuid"},"digest":{"type":"string","pattern":"^[a-f0-9]{64}$"}},"required":["revision_ref","digest"]},"campaigns":{"type":"array","items":{"type":"object","properties":{"campaign_ref":{"type":"string","format":"uuid"},"channel":{"type":"string","enum":["email","linkedin"]},"revision":{"type":"object","properties":{"revision_ref":{"type":"string","format":"uuid"},"digest":{"type":"string","pattern":"^[a-f0-9]{64}$"}},"required":["revision_ref","digest"]}},"required":["campaign_ref","channel","revision"]},"minItems":1,"maxItems":2},"graph":{"type":"object","properties":{"status":{"type":"string","enum":["compiling","compiled"]}},"required":["status"]}},"required":["executable_version_ref","digest","created_at","journey","campaigns","graph"]},"segment_id":{"type":"string","format":"uuid"},"segment_name":{"type":"string","minLength":1,"maxLength":120},"retired_at":{"type":"string","format":"date-time","description":"When the Journey was retired; absent while it is not."},"retired_by":{"type":["string","null"],"format":"uuid","description":"The member who retired it; absent while it is not retired."},"leads_in_progress":{"type":"integer","minimum":0,"description":"Leads still in the retired Journey, who keep getting their remaining messages; 0 once the last one finishes. Absent while it is not retired."}},"required":["journey_ref","version","name","active_revision","draft_revision","executable_version"]},"maxItems":100},"next_cursor":{"type":["string","null"],"format":"uuid"}},"required":["workspace","journeys","next_cursor"]}}}},"400":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}},"post":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":false,"name":"segment_id","in":"query"},{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"policy":{"type":"object","properties":{"audience":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","enum":["qualified"]}},"required":["kind"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["static"]},"lead_refs":{"type":"array","items":{"type":"string","format":"uuid"},"minItems":1,"maxItems":500}},"required":["kind","lead_refs"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["conference"]},"list_ref":{"type":"string","format":"uuid"}},"required":["kind","list_ref"],"additionalProperties":false}]},"stops":{"type":"array","items":{"type":"string","enum":["reply","meeting_booked","suppression","manual_stop"]}}},"required":["audience","stops"],"additionalProperties":false}},"required":["name","policy"],"additionalProperties":false}}}},"responses":{"201":{"description":"Save a Journey audience and shared stops as a draft; query segment_id selects its segment. Qualified uses Searches; static names explicit leads, never a sample; conference names a finite Prospecting list_ref. No approval or activation.","content":{"application/json":{"schema":{"type":"object","properties":{"workspace":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string","minLength":1,"maxLength":200},"state":{"type":"string","minLength":1}},"required":["workspace_ref","name","state"]},"journey":{"type":"object","properties":{"journey_ref":{"type":"string","format":"uuid"},"version":{"type":"integer","exclusiveMinimum":0},"name":{"type":"string","minLength":1,"maxLength":200},"active_revision":{"type":["object","null"],"properties":{"revision_ref":{"type":"string","format":"uuid"},"digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"content":{"type":"object","properties":{"audience":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","enum":["qualified"]}},"required":["kind"]},{"type":"object","properties":{"kind":{"type":"string","enum":["static"]},"lead_refs":{"type":"array","items":{"type":"string","format":"uuid"},"minItems":1,"maxItems":500}},"required":["kind","lead_refs"]},{"type":"object","properties":{"kind":{"type":"string","enum":["conference"]},"list_ref":{"type":"string","format":"uuid"}},"required":["kind","list_ref"]}]},"stops":{"type":"array","items":{"type":"string","enum":["reply","meeting_booked","suppression","manual_stop"]}}},"required":["audience","stops"]},"created_at":{"type":"string","format":"date-time"},"approval":{"type":["object","null"],"properties":{"actor_ref":{"type":"string","format":"uuid"},"approved_at":{"type":"string","format":"date-time"}},"required":["actor_ref","approved_at"]}},"required":["revision_ref","digest","content","created_at","approval"]},"draft_revision":{"type":"object","properties":{"revision_ref":{"type":"string","format":"uuid"},"digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"content":{"type":"object","properties":{"audience":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","enum":["qualified"]}},"required":["kind"]},{"type":"object","properties":{"kind":{"type":"string","enum":["static"]},"lead_refs":{"type":"array","items":{"type":"string","format":"uuid"},"minItems":1,"maxItems":500}},"required":["kind","lead_refs"]},{"type":"object","properties":{"kind":{"type":"string","enum":["conference"]},"list_ref":{"type":"string","format":"uuid"}},"required":["kind","list_ref"]}]},"stops":{"type":"array","items":{"type":"string","enum":["reply","meeting_booked","suppression","manual_stop"]}}},"required":["audience","stops"]},"created_at":{"type":"string","format":"date-time"},"approval":{"type":["object","null"],"properties":{"actor_ref":{"type":"string","format":"uuid"},"approved_at":{"type":"string","format":"date-time"}},"required":["actor_ref","approved_at"]}},"required":["revision_ref","digest","content","created_at","approval"]},"revisions":{"type":"array","items":{"type":"object","properties":{"revision_ref":{"type":"string","format":"uuid"},"digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"content":{"type":"object","properties":{"audience":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","enum":["qualified"]}},"required":["kind"]},{"type":"object","properties":{"kind":{"type":"string","enum":["static"]},"lead_refs":{"type":"array","items":{"type":"string","format":"uuid"},"minItems":1,"maxItems":500}},"required":["kind","lead_refs"]},{"type":"object","properties":{"kind":{"type":"string","enum":["conference"]},"list_ref":{"type":"string","format":"uuid"}},"required":["kind","list_ref"]}]},"stops":{"type":"array","items":{"type":"string","enum":["reply","meeting_booked","suppression","manual_stop"]}}},"required":["audience","stops"]},"created_at":{"type":"string","format":"date-time"},"approval":{"type":["object","null"],"properties":{"actor_ref":{"type":"string","format":"uuid"},"approved_at":{"type":"string","format":"date-time"}},"required":["actor_ref","approved_at"]}},"required":["revision_ref","digest","content","created_at","approval"]},"maxItems":100},"campaigns":{"type":"array","items":{"type":"object","properties":{"campaign_ref":{"type":"string","format":"uuid"},"journey_ref":{"type":"string","format":"uuid"},"channel":{"type":"string","enum":["email","linkedin"]},"version":{"type":"integer","exclusiveMinimum":0},"name":{"type":"string","minLength":1,"maxLength":200},"state":{"type":"string","enum":["inactive","active","paused"]},"active_revision":{"type":["object","null"],"properties":{"revision_ref":{"type":"string","format":"uuid"},"digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"approval":{"anyOf":[{"type":"object","properties":{"actor_ref":{"type":"string","format":"uuid"},"approved_at":{"type":"string","format":"date-time"}},"required":["actor_ref","approved_at"]},{"type":"object","properties":{"actor_ref":{"type":"null"},"approved_at":{"type":"string","format":"date-time"},"origin":{"type":"string","enum":["slack"]},"decision_ref":{"type":"string","format":"uuid"},"source_decision_ref":{"type":"string","format":"uuid"},"proposal_ref":{"type":"string","format":"uuid"},"option_ref":{"type":"string","format":"uuid"},"slack":{"type":"object","properties":{"user_id":{"type":"string","minLength":1},"team_id":{"type":"string","minLength":1},"channel_id":{"type":"string","minLength":1},"message_ts":{"type":"string","minLength":1}},"required":["user_id","team_id","channel_id","message_ts"]}},"required":["actor_ref","approved_at","origin","decision_ref","source_decision_ref","proposal_ref","option_ref","slack"]},{"type":"object","properties":{"actor_ref":{"type":"null"},"approved_at":{"type":"string","format":"date-time"},"origin":{"type":"string","enum":["system"]},"decision_ref":{"type":"string","format":"uuid"},"source_decision_ref":{"type":"string","format":"uuid"},"proposal_ref":{"type":"string","format":"uuid"},"option_ref":{"type":"string","format":"uuid"},"system":{"type":"object","properties":{"policy":{"type":"string","minLength":1}},"required":["policy"]}},"required":["actor_ref","approved_at","origin","decision_ref","source_decision_ref","proposal_ref","option_ref","system"]},{"type":"null"}]}},"required":["revision_ref","digest","approval"]},"draft_revision":{"type":"object","properties":{"revision_ref":{"type":"string","format":"uuid"},"digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"approval":{"anyOf":[{"type":"object","properties":{"actor_ref":{"type":"string","format":"uuid"},"approved_at":{"type":"string","format":"date-time"}},"required":["actor_ref","approved_at"]},{"type":"object","properties":{"actor_ref":{"type":"null"},"approved_at":{"type":"string","format":"date-time"},"origin":{"type":"string","enum":["slack"]},"decision_ref":{"type":"string","format":"uuid"},"source_decision_ref":{"type":"string","format":"uuid"},"proposal_ref":{"type":"string","format":"uuid"},"option_ref":{"type":"string","format":"uuid"},"slack":{"type":"object","properties":{"user_id":{"type":"string","minLength":1},"team_id":{"type":"string","minLength":1},"channel_id":{"type":"string","minLength":1},"message_ts":{"type":"string","minLength":1}},"required":["user_id","team_id","channel_id","message_ts"]}},"required":["actor_ref","approved_at","origin","decision_ref","source_decision_ref","proposal_ref","option_ref","slack"]},{"type":"object","properties":{"actor_ref":{"type":"null"},"approved_at":{"type":"string","format":"date-time"},"origin":{"type":"string","enum":["system"]},"decision_ref":{"type":"string","format":"uuid"},"source_decision_ref":{"type":"string","format":"uuid"},"proposal_ref":{"type":"string","format":"uuid"},"option_ref":{"type":"string","format":"uuid"},"system":{"type":"object","properties":{"policy":{"type":"string","minLength":1}},"required":["policy"]}},"required":["actor_ref","approved_at","origin","decision_ref","source_decision_ref","proposal_ref","option_ref","system"]},{"type":"null"}]}},"required":["revision_ref","digest","approval"]}},"required":["campaign_ref","journey_ref","channel","version","name","state","active_revision","draft_revision"]},"maxItems":100},"executable_version":{"type":["object","null"],"properties":{"executable_version_ref":{"type":"string","format":"uuid"},"digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"created_at":{"type":"string","format":"date-time"},"journey":{"type":"object","properties":{"revision_ref":{"type":"string","format":"uuid"},"digest":{"type":"string","pattern":"^[a-f0-9]{64}$"}},"required":["revision_ref","digest"]},"campaigns":{"type":"array","items":{"type":"object","properties":{"campaign_ref":{"type":"string","format":"uuid"},"channel":{"type":"string","enum":["email","linkedin"]},"revision":{"type":"object","properties":{"revision_ref":{"type":"string","format":"uuid"},"digest":{"type":"string","pattern":"^[a-f0-9]{64}$"}},"required":["revision_ref","digest"]}},"required":["campaign_ref","channel","revision"]},"minItems":1,"maxItems":2},"graph":{"type":"object","properties":{"status":{"type":"string","enum":["compiling","compiled"]}},"required":["status"]}},"required":["executable_version_ref","digest","created_at","journey","campaigns","graph"]},"segment_id":{"type":"string","format":"uuid"},"segment_name":{"type":"string","minLength":1,"maxLength":120},"retired_at":{"type":"string","format":"date-time","description":"When the Journey was retired; absent while it is not."},"retired_by":{"type":["string","null"],"format":"uuid","description":"The member who retired it; absent while it is not retired."},"leads_in_progress":{"type":"integer","minimum":0,"description":"Leads still in the retired Journey, who keep getting their remaining messages; 0 once the last one finishes. Absent while it is not retired."}},"required":["journey_ref","version","name","active_revision","draft_revision","revisions","campaigns","executable_version"]}},"required":["workspace","journey"]}}}},"400":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/workspace/journeys/{journey_ref}":{"get":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"journey_ref","in":"path"},{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"responses":{"200":{"description":"Read one Journey: audience and shared stops, draft and approval history, participating Campaigns and the executable version used for new Journey starts. Does not generate or change work.","content":{"application/json":{"schema":{"type":"object","properties":{"workspace":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string","minLength":1,"maxLength":200},"state":{"type":"string","minLength":1}},"required":["workspace_ref","name","state"]},"journey":{"type":"object","properties":{"journey_ref":{"type":"string","format":"uuid"},"version":{"type":"integer","exclusiveMinimum":0},"name":{"type":"string","minLength":1,"maxLength":200},"active_revision":{"type":["object","null"],"properties":{"revision_ref":{"type":"string","format":"uuid"},"digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"content":{"type":"object","properties":{"audience":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","enum":["qualified"]}},"required":["kind"]},{"type":"object","properties":{"kind":{"type":"string","enum":["static"]},"lead_refs":{"type":"array","items":{"type":"string","format":"uuid"},"minItems":1,"maxItems":500}},"required":["kind","lead_refs"]},{"type":"object","properties":{"kind":{"type":"string","enum":["conference"]},"list_ref":{"type":"string","format":"uuid"}},"required":["kind","list_ref"]}]},"stops":{"type":"array","items":{"type":"string","enum":["reply","meeting_booked","suppression","manual_stop"]}}},"required":["audience","stops"]},"created_at":{"type":"string","format":"date-time"},"approval":{"type":["object","null"],"properties":{"actor_ref":{"type":"string","format":"uuid"},"approved_at":{"type":"string","format":"date-time"}},"required":["actor_ref","approved_at"]}},"required":["revision_ref","digest","content","created_at","approval"]},"draft_revision":{"type":"object","properties":{"revision_ref":{"type":"string","format":"uuid"},"digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"content":{"type":"object","properties":{"audience":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","enum":["qualified"]}},"required":["kind"]},{"type":"object","properties":{"kind":{"type":"string","enum":["static"]},"lead_refs":{"type":"array","items":{"type":"string","format":"uuid"},"minItems":1,"maxItems":500}},"required":["kind","lead_refs"]},{"type":"object","properties":{"kind":{"type":"string","enum":["conference"]},"list_ref":{"type":"string","format":"uuid"}},"required":["kind","list_ref"]}]},"stops":{"type":"array","items":{"type":"string","enum":["reply","meeting_booked","suppression","manual_stop"]}}},"required":["audience","stops"]},"created_at":{"type":"string","format":"date-time"},"approval":{"type":["object","null"],"properties":{"actor_ref":{"type":"string","format":"uuid"},"approved_at":{"type":"string","format":"date-time"}},"required":["actor_ref","approved_at"]}},"required":["revision_ref","digest","content","created_at","approval"]},"revisions":{"type":"array","items":{"type":"object","properties":{"revision_ref":{"type":"string","format":"uuid"},"digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"content":{"type":"object","properties":{"audience":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","enum":["qualified"]}},"required":["kind"]},{"type":"object","properties":{"kind":{"type":"string","enum":["static"]},"lead_refs":{"type":"array","items":{"type":"string","format":"uuid"},"minItems":1,"maxItems":500}},"required":["kind","lead_refs"]},{"type":"object","properties":{"kind":{"type":"string","enum":["conference"]},"list_ref":{"type":"string","format":"uuid"}},"required":["kind","list_ref"]}]},"stops":{"type":"array","items":{"type":"string","enum":["reply","meeting_booked","suppression","manual_stop"]}}},"required":["audience","stops"]},"created_at":{"type":"string","format":"date-time"},"approval":{"type":["object","null"],"properties":{"actor_ref":{"type":"string","format":"uuid"},"approved_at":{"type":"string","format":"date-time"}},"required":["actor_ref","approved_at"]}},"required":["revision_ref","digest","content","created_at","approval"]},"maxItems":100},"campaigns":{"type":"array","items":{"type":"object","properties":{"campaign_ref":{"type":"string","format":"uuid"},"journey_ref":{"type":"string","format":"uuid"},"channel":{"type":"string","enum":["email","linkedin"]},"version":{"type":"integer","exclusiveMinimum":0},"name":{"type":"string","minLength":1,"maxLength":200},"state":{"type":"string","enum":["inactive","active","paused"]},"active_revision":{"type":["object","null"],"properties":{"revision_ref":{"type":"string","format":"uuid"},"digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"approval":{"anyOf":[{"type":"object","properties":{"actor_ref":{"type":"string","format":"uuid"},"approved_at":{"type":"string","format":"date-time"}},"required":["actor_ref","approved_at"]},{"type":"object","properties":{"actor_ref":{"type":"null"},"approved_at":{"type":"string","format":"date-time"},"origin":{"type":"string","enum":["slack"]},"decision_ref":{"type":"string","format":"uuid"},"source_decision_ref":{"type":"string","format":"uuid"},"proposal_ref":{"type":"string","format":"uuid"},"option_ref":{"type":"string","format":"uuid"},"slack":{"type":"object","properties":{"user_id":{"type":"string","minLength":1},"team_id":{"type":"string","minLength":1},"channel_id":{"type":"string","minLength":1},"message_ts":{"type":"string","minLength":1}},"required":["user_id","team_id","channel_id","message_ts"]}},"required":["actor_ref","approved_at","origin","decision_ref","source_decision_ref","proposal_ref","option_ref","slack"]},{"type":"object","properties":{"actor_ref":{"type":"null"},"approved_at":{"type":"string","format":"date-time"},"origin":{"type":"string","enum":["system"]},"decision_ref":{"type":"string","format":"uuid"},"source_decision_ref":{"type":"string","format":"uuid"},"proposal_ref":{"type":"string","format":"uuid"},"option_ref":{"type":"string","format":"uuid"},"system":{"type":"object","properties":{"policy":{"type":"string","minLength":1}},"required":["policy"]}},"required":["actor_ref","approved_at","origin","decision_ref","source_decision_ref","proposal_ref","option_ref","system"]},{"type":"null"}]}},"required":["revision_ref","digest","approval"]},"draft_revision":{"type":"object","properties":{"revision_ref":{"type":"string","format":"uuid"},"digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"approval":{"anyOf":[{"type":"object","properties":{"actor_ref":{"type":"string","format":"uuid"},"approved_at":{"type":"string","format":"date-time"}},"required":["actor_ref","approved_at"]},{"type":"object","properties":{"actor_ref":{"type":"null"},"approved_at":{"type":"string","format":"date-time"},"origin":{"type":"string","enum":["slack"]},"decision_ref":{"type":"string","format":"uuid"},"source_decision_ref":{"type":"string","format":"uuid"},"proposal_ref":{"type":"string","format":"uuid"},"option_ref":{"type":"string","format":"uuid"},"slack":{"type":"object","properties":{"user_id":{"type":"string","minLength":1},"team_id":{"type":"string","minLength":1},"channel_id":{"type":"string","minLength":1},"message_ts":{"type":"string","minLength":1}},"required":["user_id","team_id","channel_id","message_ts"]}},"required":["actor_ref","approved_at","origin","decision_ref","source_decision_ref","proposal_ref","option_ref","slack"]},{"type":"object","properties":{"actor_ref":{"type":"null"},"approved_at":{"type":"string","format":"date-time"},"origin":{"type":"string","enum":["system"]},"decision_ref":{"type":"string","format":"uuid"},"source_decision_ref":{"type":"string","format":"uuid"},"proposal_ref":{"type":"string","format":"uuid"},"option_ref":{"type":"string","format":"uuid"},"system":{"type":"object","properties":{"policy":{"type":"string","minLength":1}},"required":["policy"]}},"required":["actor_ref","approved_at","origin","decision_ref","source_decision_ref","proposal_ref","option_ref","system"]},{"type":"null"}]}},"required":["revision_ref","digest","approval"]}},"required":["campaign_ref","journey_ref","channel","version","name","state","active_revision","draft_revision"]},"maxItems":100},"executable_version":{"type":["object","null"],"properties":{"executable_version_ref":{"type":"string","format":"uuid"},"digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"created_at":{"type":"string","format":"date-time"},"journey":{"type":"object","properties":{"revision_ref":{"type":"string","format":"uuid"},"digest":{"type":"string","pattern":"^[a-f0-9]{64}$"}},"required":["revision_ref","digest"]},"campaigns":{"type":"array","items":{"type":"object","properties":{"campaign_ref":{"type":"string","format":"uuid"},"channel":{"type":"string","enum":["email","linkedin"]},"revision":{"type":"object","properties":{"revision_ref":{"type":"string","format":"uuid"},"digest":{"type":"string","pattern":"^[a-f0-9]{64}$"}},"required":["revision_ref","digest"]}},"required":["campaign_ref","channel","revision"]},"minItems":1,"maxItems":2},"graph":{"type":"object","properties":{"status":{"type":"string","enum":["compiling","compiled"]}},"required":["status"]}},"required":["executable_version_ref","digest","created_at","journey","campaigns","graph"]},"segment_id":{"type":"string","format":"uuid"},"segment_name":{"type":"string","minLength":1,"maxLength":120},"retired_at":{"type":"string","format":"date-time","description":"When the Journey was retired; absent while it is not."},"retired_by":{"type":["string","null"],"format":"uuid","description":"The member who retired it; absent while it is not retired."},"leads_in_progress":{"type":"integer","minimum":0,"description":"Leads still in the retired Journey, who keep getting their remaining messages; 0 once the last one finishes. Absent while it is not retired."}},"required":["journey_ref","version","name","active_revision","draft_revision","revisions","campaigns","executable_version"]}},"required":["workspace","journey"]}}}},"400":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/workspace/journeys/{journey_ref}/draft":{"patch":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"journey_ref","in":"path"},{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"expected_version":{"type":"integer","exclusiveMinimum":0},"revision_ref":{"type":"string","format":"uuid"},"changes":{"type":"object","properties":{"audience":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","enum":["qualified"]}},"required":["kind"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["static"]},"lead_refs":{"type":"array","items":{"type":"string","format":"uuid"},"minItems":1,"maxItems":500}},"required":["kind","lead_refs"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["conference"]},"list_ref":{"type":"string","format":"uuid"}},"required":["kind","list_ref"],"additionalProperties":false}]},"stops":{"type":"array","items":{"type":"string","enum":["reply","meeting_booked","suppression","manual_stop"]}}},"additionalProperties":false}},"required":["expected_version","revision_ref","changes"],"additionalProperties":false}}}},"responses":{"200":{"description":"Append a Journey draft with expected_version and its exact source revision_ref. Saving never pauses or activates work; started Journeys keep their executable versions.","content":{"application/json":{"schema":{"type":"object","properties":{"workspace":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string","minLength":1,"maxLength":200},"state":{"type":"string","minLength":1}},"required":["workspace_ref","name","state"]},"journey":{"type":"object","properties":{"journey_ref":{"type":"string","format":"uuid"},"version":{"type":"integer","exclusiveMinimum":0},"name":{"type":"string","minLength":1,"maxLength":200},"active_revision":{"type":["object","null"],"properties":{"revision_ref":{"type":"string","format":"uuid"},"digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"content":{"type":"object","properties":{"audience":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","enum":["qualified"]}},"required":["kind"]},{"type":"object","properties":{"kind":{"type":"string","enum":["static"]},"lead_refs":{"type":"array","items":{"type":"string","format":"uuid"},"minItems":1,"maxItems":500}},"required":["kind","lead_refs"]},{"type":"object","properties":{"kind":{"type":"string","enum":["conference"]},"list_ref":{"type":"string","format":"uuid"}},"required":["kind","list_ref"]}]},"stops":{"type":"array","items":{"type":"string","enum":["reply","meeting_booked","suppression","manual_stop"]}}},"required":["audience","stops"]},"created_at":{"type":"string","format":"date-time"},"approval":{"type":["object","null"],"properties":{"actor_ref":{"type":"string","format":"uuid"},"approved_at":{"type":"string","format":"date-time"}},"required":["actor_ref","approved_at"]}},"required":["revision_ref","digest","content","created_at","approval"]},"draft_revision":{"type":"object","properties":{"revision_ref":{"type":"string","format":"uuid"},"digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"content":{"type":"object","properties":{"audience":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","enum":["qualified"]}},"required":["kind"]},{"type":"object","properties":{"kind":{"type":"string","enum":["static"]},"lead_refs":{"type":"array","items":{"type":"string","format":"uuid"},"minItems":1,"maxItems":500}},"required":["kind","lead_refs"]},{"type":"object","properties":{"kind":{"type":"string","enum":["conference"]},"list_ref":{"type":"string","format":"uuid"}},"required":["kind","list_ref"]}]},"stops":{"type":"array","items":{"type":"string","enum":["reply","meeting_booked","suppression","manual_stop"]}}},"required":["audience","stops"]},"created_at":{"type":"string","format":"date-time"},"approval":{"type":["object","null"],"properties":{"actor_ref":{"type":"string","format":"uuid"},"approved_at":{"type":"string","format":"date-time"}},"required":["actor_ref","approved_at"]}},"required":["revision_ref","digest","content","created_at","approval"]},"revisions":{"type":"array","items":{"type":"object","properties":{"revision_ref":{"type":"string","format":"uuid"},"digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"content":{"type":"object","properties":{"audience":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","enum":["qualified"]}},"required":["kind"]},{"type":"object","properties":{"kind":{"type":"string","enum":["static"]},"lead_refs":{"type":"array","items":{"type":"string","format":"uuid"},"minItems":1,"maxItems":500}},"required":["kind","lead_refs"]},{"type":"object","properties":{"kind":{"type":"string","enum":["conference"]},"list_ref":{"type":"string","format":"uuid"}},"required":["kind","list_ref"]}]},"stops":{"type":"array","items":{"type":"string","enum":["reply","meeting_booked","suppression","manual_stop"]}}},"required":["audience","stops"]},"created_at":{"type":"string","format":"date-time"},"approval":{"type":["object","null"],"properties":{"actor_ref":{"type":"string","format":"uuid"},"approved_at":{"type":"string","format":"date-time"}},"required":["actor_ref","approved_at"]}},"required":["revision_ref","digest","content","created_at","approval"]},"maxItems":100},"campaigns":{"type":"array","items":{"type":"object","properties":{"campaign_ref":{"type":"string","format":"uuid"},"journey_ref":{"type":"string","format":"uuid"},"channel":{"type":"string","enum":["email","linkedin"]},"version":{"type":"integer","exclusiveMinimum":0},"name":{"type":"string","minLength":1,"maxLength":200},"state":{"type":"string","enum":["inactive","active","paused"]},"active_revision":{"type":["object","null"],"properties":{"revision_ref":{"type":"string","format":"uuid"},"digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"approval":{"anyOf":[{"type":"object","properties":{"actor_ref":{"type":"string","format":"uuid"},"approved_at":{"type":"string","format":"date-time"}},"required":["actor_ref","approved_at"]},{"type":"object","properties":{"actor_ref":{"type":"null"},"approved_at":{"type":"string","format":"date-time"},"origin":{"type":"string","enum":["slack"]},"decision_ref":{"type":"string","format":"uuid"},"source_decision_ref":{"type":"string","format":"uuid"},"proposal_ref":{"type":"string","format":"uuid"},"option_ref":{"type":"string","format":"uuid"},"slack":{"type":"object","properties":{"user_id":{"type":"string","minLength":1},"team_id":{"type":"string","minLength":1},"channel_id":{"type":"string","minLength":1},"message_ts":{"type":"string","minLength":1}},"required":["user_id","team_id","channel_id","message_ts"]}},"required":["actor_ref","approved_at","origin","decision_ref","source_decision_ref","proposal_ref","option_ref","slack"]},{"type":"object","properties":{"actor_ref":{"type":"null"},"approved_at":{"type":"string","format":"date-time"},"origin":{"type":"string","enum":["system"]},"decision_ref":{"type":"string","format":"uuid"},"source_decision_ref":{"type":"string","format":"uuid"},"proposal_ref":{"type":"string","format":"uuid"},"option_ref":{"type":"string","format":"uuid"},"system":{"type":"object","properties":{"policy":{"type":"string","minLength":1}},"required":["policy"]}},"required":["actor_ref","approved_at","origin","decision_ref","source_decision_ref","proposal_ref","option_ref","system"]},{"type":"null"}]}},"required":["revision_ref","digest","approval"]},"draft_revision":{"type":"object","properties":{"revision_ref":{"type":"string","format":"uuid"},"digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"approval":{"anyOf":[{"type":"object","properties":{"actor_ref":{"type":"string","format":"uuid"},"approved_at":{"type":"string","format":"date-time"}},"required":["actor_ref","approved_at"]},{"type":"object","properties":{"actor_ref":{"type":"null"},"approved_at":{"type":"string","format":"date-time"},"origin":{"type":"string","enum":["slack"]},"decision_ref":{"type":"string","format":"uuid"},"source_decision_ref":{"type":"string","format":"uuid"},"proposal_ref":{"type":"string","format":"uuid"},"option_ref":{"type":"string","format":"uuid"},"slack":{"type":"object","properties":{"user_id":{"type":"string","minLength":1},"team_id":{"type":"string","minLength":1},"channel_id":{"type":"string","minLength":1},"message_ts":{"type":"string","minLength":1}},"required":["user_id","team_id","channel_id","message_ts"]}},"required":["actor_ref","approved_at","origin","decision_ref","source_decision_ref","proposal_ref","option_ref","slack"]},{"type":"object","properties":{"actor_ref":{"type":"null"},"approved_at":{"type":"string","format":"date-time"},"origin":{"type":"string","enum":["system"]},"decision_ref":{"type":"string","format":"uuid"},"source_decision_ref":{"type":"string","format":"uuid"},"proposal_ref":{"type":"string","format":"uuid"},"option_ref":{"type":"string","format":"uuid"},"system":{"type":"object","properties":{"policy":{"type":"string","minLength":1}},"required":["policy"]}},"required":["actor_ref","approved_at","origin","decision_ref","source_decision_ref","proposal_ref","option_ref","system"]},{"type":"null"}]}},"required":["revision_ref","digest","approval"]}},"required":["campaign_ref","journey_ref","channel","version","name","state","active_revision","draft_revision"]},"maxItems":100},"executable_version":{"type":["object","null"],"properties":{"executable_version_ref":{"type":"string","format":"uuid"},"digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"created_at":{"type":"string","format":"date-time"},"journey":{"type":"object","properties":{"revision_ref":{"type":"string","format":"uuid"},"digest":{"type":"string","pattern":"^[a-f0-9]{64}$"}},"required":["revision_ref","digest"]},"campaigns":{"type":"array","items":{"type":"object","properties":{"campaign_ref":{"type":"string","format":"uuid"},"channel":{"type":"string","enum":["email","linkedin"]},"revision":{"type":"object","properties":{"revision_ref":{"type":"string","format":"uuid"},"digest":{"type":"string","pattern":"^[a-f0-9]{64}$"}},"required":["revision_ref","digest"]}},"required":["campaign_ref","channel","revision"]},"minItems":1,"maxItems":2},"graph":{"type":"object","properties":{"status":{"type":"string","enum":["compiling","compiled"]}},"required":["status"]}},"required":["executable_version_ref","digest","created_at","journey","campaigns","graph"]},"segment_id":{"type":"string","format":"uuid"},"segment_name":{"type":"string","minLength":1,"maxLength":120},"retired_at":{"type":"string","format":"date-time","description":"When the Journey was retired; absent while it is not."},"retired_by":{"type":["string","null"],"format":"uuid","description":"The member who retired it; absent while it is not retired."},"leads_in_progress":{"type":"integer","minimum":0,"description":"Leads still in the retired Journey, who keep getting their remaining messages; 0 once the last one finishes. Absent while it is not retired."}},"required":["journey_ref","version","name","active_revision","draft_revision","revisions","campaigns","executable_version"]}},"required":["workspace","journey"]}}}},"400":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/workspace/journeys/{journey_ref}/publish":{"post":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"journey_ref","in":"path"},{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"revision_ref":{"type":"string","format":"uuid"},"digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"expected_version":{"type":"integer","exclusiveMinimum":0}},"required":["revision_ref","digest","expected_version"],"additionalProperties":false}}}},"responses":{"200":{"description":"Approve one exact Journey revision and digest. Records actor and time only; does not activate, start Journeys or authorize sending.","content":{"application/json":{"schema":{"type":"object","properties":{"workspace":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string","minLength":1,"maxLength":200},"state":{"type":"string","minLength":1}},"required":["workspace_ref","name","state"]},"journey":{"type":"object","properties":{"journey_ref":{"type":"string","format":"uuid"},"version":{"type":"integer","exclusiveMinimum":0},"name":{"type":"string","minLength":1,"maxLength":200},"active_revision":{"type":["object","null"],"properties":{"revision_ref":{"type":"string","format":"uuid"},"digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"content":{"type":"object","properties":{"audience":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","enum":["qualified"]}},"required":["kind"]},{"type":"object","properties":{"kind":{"type":"string","enum":["static"]},"lead_refs":{"type":"array","items":{"type":"string","format":"uuid"},"minItems":1,"maxItems":500}},"required":["kind","lead_refs"]},{"type":"object","properties":{"kind":{"type":"string","enum":["conference"]},"list_ref":{"type":"string","format":"uuid"}},"required":["kind","list_ref"]}]},"stops":{"type":"array","items":{"type":"string","enum":["reply","meeting_booked","suppression","manual_stop"]}}},"required":["audience","stops"]},"created_at":{"type":"string","format":"date-time"},"approval":{"type":["object","null"],"properties":{"actor_ref":{"type":"string","format":"uuid"},"approved_at":{"type":"string","format":"date-time"}},"required":["actor_ref","approved_at"]}},"required":["revision_ref","digest","content","created_at","approval"]},"draft_revision":{"type":"object","properties":{"revision_ref":{"type":"string","format":"uuid"},"digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"content":{"type":"object","properties":{"audience":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","enum":["qualified"]}},"required":["kind"]},{"type":"object","properties":{"kind":{"type":"string","enum":["static"]},"lead_refs":{"type":"array","items":{"type":"string","format":"uuid"},"minItems":1,"maxItems":500}},"required":["kind","lead_refs"]},{"type":"object","properties":{"kind":{"type":"string","enum":["conference"]},"list_ref":{"type":"string","format":"uuid"}},"required":["kind","list_ref"]}]},"stops":{"type":"array","items":{"type":"string","enum":["reply","meeting_booked","suppression","manual_stop"]}}},"required":["audience","stops"]},"created_at":{"type":"string","format":"date-time"},"approval":{"type":["object","null"],"properties":{"actor_ref":{"type":"string","format":"uuid"},"approved_at":{"type":"string","format":"date-time"}},"required":["actor_ref","approved_at"]}},"required":["revision_ref","digest","content","created_at","approval"]},"revisions":{"type":"array","items":{"type":"object","properties":{"revision_ref":{"type":"string","format":"uuid"},"digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"content":{"type":"object","properties":{"audience":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","enum":["qualified"]}},"required":["kind"]},{"type":"object","properties":{"kind":{"type":"string","enum":["static"]},"lead_refs":{"type":"array","items":{"type":"string","format":"uuid"},"minItems":1,"maxItems":500}},"required":["kind","lead_refs"]},{"type":"object","properties":{"kind":{"type":"string","enum":["conference"]},"list_ref":{"type":"string","format":"uuid"}},"required":["kind","list_ref"]}]},"stops":{"type":"array","items":{"type":"string","enum":["reply","meeting_booked","suppression","manual_stop"]}}},"required":["audience","stops"]},"created_at":{"type":"string","format":"date-time"},"approval":{"type":["object","null"],"properties":{"actor_ref":{"type":"string","format":"uuid"},"approved_at":{"type":"string","format":"date-time"}},"required":["actor_ref","approved_at"]}},"required":["revision_ref","digest","content","created_at","approval"]},"maxItems":100},"campaigns":{"type":"array","items":{"type":"object","properties":{"campaign_ref":{"type":"string","format":"uuid"},"journey_ref":{"type":"string","format":"uuid"},"channel":{"type":"string","enum":["email","linkedin"]},"version":{"type":"integer","exclusiveMinimum":0},"name":{"type":"string","minLength":1,"maxLength":200},"state":{"type":"string","enum":["inactive","active","paused"]},"active_revision":{"type":["object","null"],"properties":{"revision_ref":{"type":"string","format":"uuid"},"digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"approval":{"anyOf":[{"type":"object","properties":{"actor_ref":{"type":"string","format":"uuid"},"approved_at":{"type":"string","format":"date-time"}},"required":["actor_ref","approved_at"]},{"type":"object","properties":{"actor_ref":{"type":"null"},"approved_at":{"type":"string","format":"date-time"},"origin":{"type":"string","enum":["slack"]},"decision_ref":{"type":"string","format":"uuid"},"source_decision_ref":{"type":"string","format":"uuid"},"proposal_ref":{"type":"string","format":"uuid"},"option_ref":{"type":"string","format":"uuid"},"slack":{"type":"object","properties":{"user_id":{"type":"string","minLength":1},"team_id":{"type":"string","minLength":1},"channel_id":{"type":"string","minLength":1},"message_ts":{"type":"string","minLength":1}},"required":["user_id","team_id","channel_id","message_ts"]}},"required":["actor_ref","approved_at","origin","decision_ref","source_decision_ref","proposal_ref","option_ref","slack"]},{"type":"object","properties":{"actor_ref":{"type":"null"},"approved_at":{"type":"string","format":"date-time"},"origin":{"type":"string","enum":["system"]},"decision_ref":{"type":"string","format":"uuid"},"source_decision_ref":{"type":"string","format":"uuid"},"proposal_ref":{"type":"string","format":"uuid"},"option_ref":{"type":"string","format":"uuid"},"system":{"type":"object","properties":{"policy":{"type":"string","minLength":1}},"required":["policy"]}},"required":["actor_ref","approved_at","origin","decision_ref","source_decision_ref","proposal_ref","option_ref","system"]},{"type":"null"}]}},"required":["revision_ref","digest","approval"]},"draft_revision":{"type":"object","properties":{"revision_ref":{"type":"string","format":"uuid"},"digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"approval":{"anyOf":[{"type":"object","properties":{"actor_ref":{"type":"string","format":"uuid"},"approved_at":{"type":"string","format":"date-time"}},"required":["actor_ref","approved_at"]},{"type":"object","properties":{"actor_ref":{"type":"null"},"approved_at":{"type":"string","format":"date-time"},"origin":{"type":"string","enum":["slack"]},"decision_ref":{"type":"string","format":"uuid"},"source_decision_ref":{"type":"string","format":"uuid"},"proposal_ref":{"type":"string","format":"uuid"},"option_ref":{"type":"string","format":"uuid"},"slack":{"type":"object","properties":{"user_id":{"type":"string","minLength":1},"team_id":{"type":"string","minLength":1},"channel_id":{"type":"string","minLength":1},"message_ts":{"type":"string","minLength":1}},"required":["user_id","team_id","channel_id","message_ts"]}},"required":["actor_ref","approved_at","origin","decision_ref","source_decision_ref","proposal_ref","option_ref","slack"]},{"type":"object","properties":{"actor_ref":{"type":"null"},"approved_at":{"type":"string","format":"date-time"},"origin":{"type":"string","enum":["system"]},"decision_ref":{"type":"string","format":"uuid"},"source_decision_ref":{"type":"string","format":"uuid"},"proposal_ref":{"type":"string","format":"uuid"},"option_ref":{"type":"string","format":"uuid"},"system":{"type":"object","properties":{"policy":{"type":"string","minLength":1}},"required":["policy"]}},"required":["actor_ref","approved_at","origin","decision_ref","source_decision_ref","proposal_ref","option_ref","system"]},{"type":"null"}]}},"required":["revision_ref","digest","approval"]}},"required":["campaign_ref","journey_ref","channel","version","name","state","active_revision","draft_revision"]},"maxItems":100},"executable_version":{"type":["object","null"],"properties":{"executable_version_ref":{"type":"string","format":"uuid"},"digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"created_at":{"type":"string","format":"date-time"},"journey":{"type":"object","properties":{"revision_ref":{"type":"string","format":"uuid"},"digest":{"type":"string","pattern":"^[a-f0-9]{64}$"}},"required":["revision_ref","digest"]},"campaigns":{"type":"array","items":{"type":"object","properties":{"campaign_ref":{"type":"string","format":"uuid"},"channel":{"type":"string","enum":["email","linkedin"]},"revision":{"type":"object","properties":{"revision_ref":{"type":"string","format":"uuid"},"digest":{"type":"string","pattern":"^[a-f0-9]{64}$"}},"required":["revision_ref","digest"]}},"required":["campaign_ref","channel","revision"]},"minItems":1,"maxItems":2},"graph":{"type":"object","properties":{"status":{"type":"string","enum":["compiling","compiled"]}},"required":["status"]}},"required":["executable_version_ref","digest","created_at","journey","campaigns","graph"]},"segment_id":{"type":"string","format":"uuid"},"segment_name":{"type":"string","minLength":1,"maxLength":120},"retired_at":{"type":"string","format":"date-time","description":"When the Journey was retired; absent while it is not."},"retired_by":{"type":["string","null"],"format":"uuid","description":"The member who retired it; absent while it is not retired."},"leads_in_progress":{"type":"integer","minimum":0,"description":"Leads still in the retired Journey, who keep getting their remaining messages; 0 once the last one finishes. Absent while it is not retired."}},"required":["journey_ref","version","name","active_revision","draft_revision","revisions","campaigns","executable_version"]}},"required":["workspace","journey"]}}}},"400":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/workspace/journeys/{journey_ref}/activate":{"post":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"journey_ref","in":"path"},{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"revision_ref":{"type":"string","format":"uuid"},"digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"expected_version":{"type":"integer","exclusiveMinimum":0}},"required":["revision_ref","digest","expected_version"],"additionalProperties":false}}}},"responses":{"200":{"description":"Select one exact approved Journey revision for new Journey starts. Its executable version is derived from that revision and each activated Campaign's selected revision; started Journeys keep theirs. Campaign intent is unchanged. The existing scheduled runtime may contact external recipients through active Campaigns, subject to account, readiness and safety gates. The receipt confirms saved selection, not compilation or delivery.","content":{"application/json":{"schema":{"type":"object","properties":{"workspace":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string","minLength":1,"maxLength":200},"state":{"type":"string","minLength":1}},"required":["workspace_ref","name","state"]},"journey":{"type":"object","properties":{"journey_ref":{"type":"string","format":"uuid"},"version":{"type":"integer","exclusiveMinimum":0},"name":{"type":"string","minLength":1,"maxLength":200},"active_revision":{"type":["object","null"],"properties":{"revision_ref":{"type":"string","format":"uuid"},"digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"content":{"type":"object","properties":{"audience":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","enum":["qualified"]}},"required":["kind"]},{"type":"object","properties":{"kind":{"type":"string","enum":["static"]},"lead_refs":{"type":"array","items":{"type":"string","format":"uuid"},"minItems":1,"maxItems":500}},"required":["kind","lead_refs"]},{"type":"object","properties":{"kind":{"type":"string","enum":["conference"]},"list_ref":{"type":"string","format":"uuid"}},"required":["kind","list_ref"]}]},"stops":{"type":"array","items":{"type":"string","enum":["reply","meeting_booked","suppression","manual_stop"]}}},"required":["audience","stops"]},"created_at":{"type":"string","format":"date-time"},"approval":{"type":["object","null"],"properties":{"actor_ref":{"type":"string","format":"uuid"},"approved_at":{"type":"string","format":"date-time"}},"required":["actor_ref","approved_at"]}},"required":["revision_ref","digest","content","created_at","approval"]},"draft_revision":{"type":"object","properties":{"revision_ref":{"type":"string","format":"uuid"},"digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"content":{"type":"object","properties":{"audience":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","enum":["qualified"]}},"required":["kind"]},{"type":"object","properties":{"kind":{"type":"string","enum":["static"]},"lead_refs":{"type":"array","items":{"type":"string","format":"uuid"},"minItems":1,"maxItems":500}},"required":["kind","lead_refs"]},{"type":"object","properties":{"kind":{"type":"string","enum":["conference"]},"list_ref":{"type":"string","format":"uuid"}},"required":["kind","list_ref"]}]},"stops":{"type":"array","items":{"type":"string","enum":["reply","meeting_booked","suppression","manual_stop"]}}},"required":["audience","stops"]},"created_at":{"type":"string","format":"date-time"},"approval":{"type":["object","null"],"properties":{"actor_ref":{"type":"string","format":"uuid"},"approved_at":{"type":"string","format":"date-time"}},"required":["actor_ref","approved_at"]}},"required":["revision_ref","digest","content","created_at","approval"]},"revisions":{"type":"array","items":{"type":"object","properties":{"revision_ref":{"type":"string","format":"uuid"},"digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"content":{"type":"object","properties":{"audience":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","enum":["qualified"]}},"required":["kind"]},{"type":"object","properties":{"kind":{"type":"string","enum":["static"]},"lead_refs":{"type":"array","items":{"type":"string","format":"uuid"},"minItems":1,"maxItems":500}},"required":["kind","lead_refs"]},{"type":"object","properties":{"kind":{"type":"string","enum":["conference"]},"list_ref":{"type":"string","format":"uuid"}},"required":["kind","list_ref"]}]},"stops":{"type":"array","items":{"type":"string","enum":["reply","meeting_booked","suppression","manual_stop"]}}},"required":["audience","stops"]},"created_at":{"type":"string","format":"date-time"},"approval":{"type":["object","null"],"properties":{"actor_ref":{"type":"string","format":"uuid"},"approved_at":{"type":"string","format":"date-time"}},"required":["actor_ref","approved_at"]}},"required":["revision_ref","digest","content","created_at","approval"]},"maxItems":100},"campaigns":{"type":"array","items":{"type":"object","properties":{"campaign_ref":{"type":"string","format":"uuid"},"journey_ref":{"type":"string","format":"uuid"},"channel":{"type":"string","enum":["email","linkedin"]},"version":{"type":"integer","exclusiveMinimum":0},"name":{"type":"string","minLength":1,"maxLength":200},"state":{"type":"string","enum":["inactive","active","paused"]},"active_revision":{"type":["object","null"],"properties":{"revision_ref":{"type":"string","format":"uuid"},"digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"approval":{"anyOf":[{"type":"object","properties":{"actor_ref":{"type":"string","format":"uuid"},"approved_at":{"type":"string","format":"date-time"}},"required":["actor_ref","approved_at"]},{"type":"object","properties":{"actor_ref":{"type":"null"},"approved_at":{"type":"string","format":"date-time"},"origin":{"type":"string","enum":["slack"]},"decision_ref":{"type":"string","format":"uuid"},"source_decision_ref":{"type":"string","format":"uuid"},"proposal_ref":{"type":"string","format":"uuid"},"option_ref":{"type":"string","format":"uuid"},"slack":{"type":"object","properties":{"user_id":{"type":"string","minLength":1},"team_id":{"type":"string","minLength":1},"channel_id":{"type":"string","minLength":1},"message_ts":{"type":"string","minLength":1}},"required":["user_id","team_id","channel_id","message_ts"]}},"required":["actor_ref","approved_at","origin","decision_ref","source_decision_ref","proposal_ref","option_ref","slack"]},{"type":"object","properties":{"actor_ref":{"type":"null"},"approved_at":{"type":"string","format":"date-time"},"origin":{"type":"string","enum":["system"]},"decision_ref":{"type":"string","format":"uuid"},"source_decision_ref":{"type":"string","format":"uuid"},"proposal_ref":{"type":"string","format":"uuid"},"option_ref":{"type":"string","format":"uuid"},"system":{"type":"object","properties":{"policy":{"type":"string","minLength":1}},"required":["policy"]}},"required":["actor_ref","approved_at","origin","decision_ref","source_decision_ref","proposal_ref","option_ref","system"]},{"type":"null"}]}},"required":["revision_ref","digest","approval"]},"draft_revision":{"type":"object","properties":{"revision_ref":{"type":"string","format":"uuid"},"digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"approval":{"anyOf":[{"type":"object","properties":{"actor_ref":{"type":"string","format":"uuid"},"approved_at":{"type":"string","format":"date-time"}},"required":["actor_ref","approved_at"]},{"type":"object","properties":{"actor_ref":{"type":"null"},"approved_at":{"type":"string","format":"date-time"},"origin":{"type":"string","enum":["slack"]},"decision_ref":{"type":"string","format":"uuid"},"source_decision_ref":{"type":"string","format":"uuid"},"proposal_ref":{"type":"string","format":"uuid"},"option_ref":{"type":"string","format":"uuid"},"slack":{"type":"object","properties":{"user_id":{"type":"string","minLength":1},"team_id":{"type":"string","minLength":1},"channel_id":{"type":"string","minLength":1},"message_ts":{"type":"string","minLength":1}},"required":["user_id","team_id","channel_id","message_ts"]}},"required":["actor_ref","approved_at","origin","decision_ref","source_decision_ref","proposal_ref","option_ref","slack"]},{"type":"object","properties":{"actor_ref":{"type":"null"},"approved_at":{"type":"string","format":"date-time"},"origin":{"type":"string","enum":["system"]},"decision_ref":{"type":"string","format":"uuid"},"source_decision_ref":{"type":"string","format":"uuid"},"proposal_ref":{"type":"string","format":"uuid"},"option_ref":{"type":"string","format":"uuid"},"system":{"type":"object","properties":{"policy":{"type":"string","minLength":1}},"required":["policy"]}},"required":["actor_ref","approved_at","origin","decision_ref","source_decision_ref","proposal_ref","option_ref","system"]},{"type":"null"}]}},"required":["revision_ref","digest","approval"]}},"required":["campaign_ref","journey_ref","channel","version","name","state","active_revision","draft_revision"]},"maxItems":100},"executable_version":{"type":["object","null"],"properties":{"executable_version_ref":{"type":"string","format":"uuid"},"digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"created_at":{"type":"string","format":"date-time"},"journey":{"type":"object","properties":{"revision_ref":{"type":"string","format":"uuid"},"digest":{"type":"string","pattern":"^[a-f0-9]{64}$"}},"required":["revision_ref","digest"]},"campaigns":{"type":"array","items":{"type":"object","properties":{"campaign_ref":{"type":"string","format":"uuid"},"channel":{"type":"string","enum":["email","linkedin"]},"revision":{"type":"object","properties":{"revision_ref":{"type":"string","format":"uuid"},"digest":{"type":"string","pattern":"^[a-f0-9]{64}$"}},"required":["revision_ref","digest"]}},"required":["campaign_ref","channel","revision"]},"minItems":1,"maxItems":2},"graph":{"type":"object","properties":{"status":{"type":"string","enum":["compiling","compiled"]}},"required":["status"]}},"required":["executable_version_ref","digest","created_at","journey","campaigns","graph"]},"segment_id":{"type":"string","format":"uuid"},"segment_name":{"type":"string","minLength":1,"maxLength":120},"retired_at":{"type":"string","format":"date-time","description":"When the Journey was retired; absent while it is not."},"retired_by":{"type":["string","null"],"format":"uuid","description":"The member who retired it; absent while it is not retired."},"leads_in_progress":{"type":"integer","minimum":0,"description":"Leads still in the retired Journey, who keep getting their remaining messages; 0 once the last one finishes. Absent while it is not retired."}},"required":["journey_ref","version","name","active_revision","draft_revision","revisions","campaigns","executable_version"]}},"required":["workspace","journey"]}}}},"400":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/workspace/review-settings":{"get":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"responses":{"200":{"description":"Read the selected workspace's versioned LinkedIn and email review choices. Each channel approves every new draft or sends routine drafts with a 0%, 10%, 20% or 50% post-send sample; 0% disables sampling. Flagged drafts, replies and follow-ups wait. Only a follow-up after the lead's automatic out-of-office reply sends by itself; one to a message a person wrote waits.","content":{"application/json":{"schema":{"type":"object","properties":{"workspace":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string","minLength":1,"maxLength":200},"state":{"type":"string","minLength":1}},"required":["workspace_ref","name","state"]},"settings":{"type":"object","properties":{"version":{"type":"integer","exclusiveMinimum":0},"linkedin":{"type":"object","properties":{"mode":{"type":"string","enum":["approve_each","send_and_sample"]},"sample_rate":{"anyOf":[{"type":"number","enum":[0]},{"type":"number","enum":[10]},{"type":"number","enum":[20]},{"type":"number","enum":[50]}]}},"required":["mode","sample_rate"]},"email":{"type":"object","properties":{"mode":{"type":"string","enum":["approve_each","send_and_sample"]},"sample_rate":{"anyOf":[{"type":"number","enum":[0]},{"type":"number","enum":[10]},{"type":"number","enum":[20]},{"type":"number","enum":[50]}]}},"required":["mode","sample_rate"]}},"required":["version","linkedin","email"]}},"required":["workspace","settings"]}}}},"400":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}},"patch":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"expected_version":{"type":"integer","exclusiveMinimum":0},"linkedin":{"type":"object","properties":{"mode":{"type":"string","enum":["approve_each","send_and_sample"]},"sample_rate":{"anyOf":[{"type":"number","enum":[0]},{"type":"number","enum":[10]},{"type":"number","enum":[20]},{"type":"number","enum":[50]}]}},"required":["mode","sample_rate"],"additionalProperties":false},"email":{"type":"object","properties":{"mode":{"type":"string","enum":["approve_each","send_and_sample"]},"sample_rate":{"anyOf":[{"type":"number","enum":[0]},{"type":"number","enum":[10]},{"type":"number","enum":[20]},{"type":"number","enum":[50]}]}},"required":["mode","sample_rate"],"additionalProperties":false},"confirm":{"type":"boolean","enum":[true],"description":"The founder's explicit yes to this change, given after you told them what it does to new messages."}},"required":["expected_version","confirm"],"additionalProperties":false}}}},"responses":{"200":{"description":"Save supplied channel review choices with expected_version and confirm:true. Call it only when the founder asked to change how messages are released, after telling them the effect and getting their explicit yes: approve_each makes every new message on that channel, follow-ups included, wait in Review until someone approves it. Never change it during setup or as part of another task. send_and_sample lets future unflagged drafts in already active approved Campaigns automatically send to external recipients under existing account, schedule and safety gates. sample_rate selects confirmed sent messages for later rating; 0% disables sampling. Applies to new drafts only; existing pending drafts still require a decision. Never activates a Campaign or releases its pending messages.","content":{"application/json":{"schema":{"type":"object","properties":{"workspace":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string","minLength":1,"maxLength":200},"state":{"type":"string","minLength":1}},"required":["workspace_ref","name","state"]},"settings":{"type":"object","properties":{"version":{"type":"integer","exclusiveMinimum":0},"linkedin":{"type":"object","properties":{"mode":{"type":"string","enum":["approve_each","send_and_sample"]},"sample_rate":{"anyOf":[{"type":"number","enum":[0]},{"type":"number","enum":[10]},{"type":"number","enum":[20]},{"type":"number","enum":[50]}]}},"required":["mode","sample_rate"]},"email":{"type":"object","properties":{"mode":{"type":"string","enum":["approve_each","send_and_sample"]},"sample_rate":{"anyOf":[{"type":"number","enum":[0]},{"type":"number","enum":[10]},{"type":"number","enum":[20]},{"type":"number","enum":[50]}]}},"required":["mode","sample_rate"]}},"required":["version","linkedin","email"]}},"required":["workspace","settings"]}}}},"400":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/workspace/campaign-review-samples":{"get":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","enum":["linkedin","email"]},"required":false,"name":"channel","in":"query"},{"schema":{"type":"integer","minimum":1,"maximum":100},"required":false,"name":"limit","in":"query"},{"schema":{"type":"string","format":"uuid"},"required":false,"name":"after","in":"query"},{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"responses":{"200":{"description":"Read unrated sampled messages with provider-confirmed delivery only, scoped to the selected workspace. Planned or enrolled work is not a sent sample.","content":{"application/json":{"schema":{"type":"object","properties":{"workspace":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string","minLength":1,"maxLength":200},"state":{"type":"string","minLength":1}},"required":["workspace_ref","name","state"]},"messages":{"type":"array","items":{"type":"object","properties":{"message_ref":{"type":"string","format":"uuid"},"lead_ref":{"type":"string","format":"uuid"},"channel":{"type":"string","enum":["email","linkedin"]},"status":{"type":["string","null"]},"review_status":{"type":["string","null"]},"is_draft":{"type":["boolean","null"]},"content":{"type":"string"},"steps":{"type":["array","null"],"items":{"type":"object","properties":{"position":{"type":"integer","exclusiveMinimum":0},"subject":{"type":["string","null"]},"text":{"type":"string"}},"required":["position","subject","text"]}},"source_message_ref":{"type":["string","null"],"format":"uuid"},"sender_id":{"type":["string","null"],"format":"uuid"},"sender_version":{"type":["integer","null"],"exclusiveMinimum":0},"source_digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"created_at":{"type":"string","format":"date-time"},"account_id":{"type":["string","null"],"format":"uuid"},"sender_name":{"type":["string","null"]},"lead_name":{"type":["string","null"]},"lead_email":{"type":["string","null"]},"lead_linkedin_url":{"type":["string","null"]},"review_reason":{"type":["string","null"]},"action_ref":{"type":["string","null"],"format":"uuid"},"run_ref":{"type":["string","null"],"format":"uuid"},"campaign_ref":{"type":["string","null"],"format":"uuid"},"direction":{"type":"string","enum":["inbound","outbound"]},"delivery_state":{"type":"string","enum":["confirmed","scheduled","planned","unknown"]},"sent_at":{"type":["string","null"],"format":"date-time"},"subject":{"type":["string","null"]},"account_label":{"type":["string","null"]},"not_sent_cause":{"type":["string","null"],"enum":["account_disconnected","sender_unavailable","provider_rejected","unknown",null]},"action_blocked_reason":{"type":["string","null"],"enum":["historical_engine_retired"]},"copy_source":{"type":["string","null"],"minLength":1,"maxLength":100,"description":"Where the saved copy came from. `manual`: the person typed it directly in LinkedIn; Lifty recorded it but did not write or send it."}},"required":["message_ref","lead_ref","channel","status","review_status","is_draft","content","steps","source_message_ref","sender_id","sender_version","source_digest","created_at","account_id","sender_name","lead_name","lead_email","lead_linkedin_url","review_reason","action_ref","run_ref","campaign_ref","direction","delivery_state","sent_at"]},"maxItems":100},"next_after":{"type":["string","null"],"format":"uuid"}},"required":["workspace","messages","next_after"]}}}},"400":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/workspace/campaign-messages/{message_ref}/rating":{"post":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"message_ref","in":"path"},{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"source_digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"rating":{"type":"string","enum":["up","down"]},"note":{"type":"string","minLength":1,"maxLength":200},"learning_scope":{"type":"string","enum":["message","template","voice"]}},"required":["source_digest","rating"],"additionalProperties":false}}}},"responses":{"200":{"description":"Rate one exact confirmed sent sample using its source_digest. Save up/down feedback and an optional note/scope; feedback never changes approved copy. A Campaign or Business voice edit is a separate explicit version-checked operation.","content":{"application/json":{"schema":{"type":"object","properties":{"workspace":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string","minLength":1,"maxLength":200},"state":{"type":"string","minLength":1}},"required":["workspace_ref","name","state"]},"feedback":{"type":"object","properties":{"message_ref":{"type":"string","format":"uuid"},"source_digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"rating":{"type":"string","enum":["up","down"]},"note":{"type":["string","null"]},"learning_scope":{"type":"string","enum":["message","template","voice"]},"rated_at":{"type":"string","format":"date-time"}},"required":["message_ref","source_digest","rating","note","learning_scope","rated_at"]}},"required":["workspace","feedback"]}}}},"400":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/workspace/review-count":{"get":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"responses":{"200":{"description":"Read the selected workspace's waiting Review item count without loading message bodies.","content":{"application/json":{"schema":{"type":"object","properties":{"workspace":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string","minLength":1,"maxLength":200},"state":{"type":"string","minLength":1}},"required":["workspace_ref","name","state"]},"count":{"type":"integer","minimum":0}},"required":["workspace","count"]}}}},"400":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/workspace/reply-turns":{"get":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","enum":["linkedin","email"]},"required":false,"name":"channel","in":"query"},{"schema":{"type":"integer","minimum":1,"maximum":100},"required":false,"name":"limit","in":"query"},{"schema":{"type":"string","format":"uuid"},"required":false,"name":"after","in":"query"},{"schema":{"type":"string","format":"uuid"},"required":false,"name":"sender_id","in":"query"},{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"responses":{"200":{"description":"Read waiting replies and due requested follow-ups with their exact turn version, saved draft, original account and conversation. sender_id filters by who answers: answering_sender_id. original_sender_id is who wrote first and route_unavailable means the original conversation cannot be used. Page with next_after. A foreign sender is 404. Shares the same reply turn as Slack; no duplicate approval store.","content":{"application/json":{"schema":{"type":"object","properties":{"workspace":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string","minLength":1,"maxLength":200},"state":{"type":"string","minLength":1}},"required":["workspace_ref","name","state"]},"turns":{"type":"array","items":{"type":"object","properties":{"turn_ref":{"type":"string","format":"uuid"},"version":{"type":"integer","minimum":0},"lead_ref":{"type":"string","format":"uuid"},"channel":{"type":"string","enum":["email","linkedin"]},"state":{"type":"string","enum":["pending","processing","sending","queued","sent","suppressed","uncertain","failed","superseded"]},"source_digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"draft":{"type":"string"},"account_id":{"type":["string","null"],"format":"uuid"},"sender_id":{"type":["string","null"],"format":"uuid"},"sender_name":{"type":["string","null"]},"lead_name":{"type":["string","null"]},"lead_email":{"type":["string","null"]},"lead_linkedin_url":{"type":["string","null"]},"campaign_ref":{"type":["string","null"],"format":"uuid"},"inbound_text":{"type":"string"},"inbound_at":{"type":"string","format":"date-time"},"follow_up_due_at":{"type":["string","null"],"format":"date-time"},"created_at":{"type":"string","format":"date-time"},"sent_at":{"type":["string","null"],"format":"date-time"},"history":{"type":"array","items":{"type":"object","properties":{"message_ref":{"type":"string","format":"uuid"},"lead_ref":{"type":"string","format":"uuid"},"channel":{"type":"string","enum":["email","linkedin"]},"status":{"type":["string","null"]},"review_status":{"type":["string","null"]},"is_draft":{"type":["boolean","null"]},"content":{"type":"string"},"steps":{"type":["array","null"],"items":{"type":"object","properties":{"position":{"type":"integer","exclusiveMinimum":0},"subject":{"type":["string","null"]},"text":{"type":"string"}},"required":["position","subject","text"]}},"source_message_ref":{"type":["string","null"],"format":"uuid"},"sender_id":{"type":["string","null"],"format":"uuid"},"sender_version":{"type":["integer","null"],"exclusiveMinimum":0},"source_digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"created_at":{"type":"string","format":"date-time"},"account_id":{"type":["string","null"],"format":"uuid"},"sender_name":{"type":["string","null"]},"lead_name":{"type":["string","null"]},"lead_email":{"type":["string","null"]},"lead_linkedin_url":{"type":["string","null"]},"review_reason":{"type":["string","null"]},"action_ref":{"type":["string","null"],"format":"uuid"},"run_ref":{"type":["string","null"],"format":"uuid"},"campaign_ref":{"type":["string","null"],"format":"uuid"},"direction":{"type":"string","enum":["inbound","outbound"]},"delivery_state":{"type":"string","enum":["confirmed","scheduled","planned","unknown"]},"sent_at":{"type":["string","null"],"format":"date-time"},"subject":{"type":["string","null"]},"account_label":{"type":["string","null"]},"not_sent_cause":{"type":["string","null"],"enum":["account_disconnected","sender_unavailable","provider_rejected","unknown",null]},"action_blocked_reason":{"type":["string","null"],"enum":["historical_engine_retired"]},"copy_source":{"type":["string","null"],"minLength":1,"maxLength":100,"description":"Where the saved copy came from. `manual`: the person typed it directly in LinkedIn; Lifty recorded it but did not write or send it."}},"required":["message_ref","lead_ref","channel","status","review_status","is_draft","content","steps","source_message_ref","sender_id","sender_version","source_digest","created_at","account_id","sender_name","lead_name","lead_email","lead_linkedin_url","review_reason","action_ref","run_ref","campaign_ref","direction","delivery_state","sent_at"]},"maxItems":100},"history_complete":{"type":"boolean"},"view":{"type":"object","properties":{"turnId":{"type":"string","format":"uuid"},"channel":{"type":"string","enum":["email","linkedin"]},"version":{"type":"integer","minimum":0},"status":{"type":"string","enum":["received","awaiting_action","queued","processing","sent","suppressed","superseded","uncertain","recovery"]},"label":{"type":"string"},"cause":{"type":["string","null"]},"detail":{"type":["string","null"]},"actions":{"type":"array","items":{"type":"string","enum":["approve","edit","suppress","recover","retry"]}},"draft":{"type":["string","null"]},"approvedText":{"type":["string","null"]},"decidedAt":{"type":["string","null"],"format":"date-time"},"sentAt":{"type":["string","null"],"format":"date-time"},"nextAttemptAt":{"type":["string","null"],"format":"date-time"},"overdueAt":{"type":["string","null"],"format":"date-time"},"validUntil":{"type":["string","null"],"format":"date-time"},"kind":{"type":["string","null"]},"followUpReason":{"type":["string","null"]}},"required":["turnId","channel","version","status","label","cause","detail","actions","draft","approvedText","decidedAt","sentAt","nextAttemptAt","overdueAt"]},"answering_sender_id":{"type":["string","null"],"format":"uuid"},"route_unavailable":{"type":"boolean"},"original_sender_id":{"type":["string","null"],"format":"uuid"},"original_sender_name":{"type":["string","null"]},"segment_id":{"type":["string","null"],"format":"uuid"},"segment_name":{"type":["string","null"]},"group":{"type":"string","enum":["answer_now","close_out","out_of_office_follow_up"]},"intent":{"type":["string","null"],"maxLength":80}},"required":["turn_ref","version","lead_ref","channel","state","source_digest","draft","account_id","sender_id","sender_name","lead_name","lead_email","lead_linkedin_url","campaign_ref","inbound_text","inbound_at","follow_up_due_at","created_at","sent_at","history","history_complete","view"]},"maxItems":100},"next_after":{"type":["string","null"],"format":"uuid"}},"required":["workspace","turns","next_after"]}}}},"400":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/workspace/reply-turn-counts":{"get":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","enum":["linkedin","email"]},"required":false,"name":"channel","in":"query"},{"schema":{"type":"string","format":"uuid"},"required":false,"name":"sender_id","in":"query"},{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"responses":{"200":{"description":"Count the reply queue with the same filter as replies_get, in total and per answering sender, without loading messages. pending waits for a person; sending and uncertain stay separate; route_unavailable is counted too. A foreign sender is 404.","content":{"application/json":{"schema":{"type":"object","properties":{"workspace":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string","minLength":1,"maxLength":200},"state":{"type":"string","minLength":1}},"required":["workspace_ref","name","state"]},"counts":{"type":"object","properties":{"total":{"type":"integer","minimum":0},"pending":{"type":"integer","minimum":0},"sending":{"type":"integer","minimum":0},"uncertain":{"type":"integer","minimum":0},"route_unavailable":{"type":"integer","minimum":0},"answer_now":{"type":"integer","minimum":0},"close_out":{"type":"integer","minimum":0},"senders":{"type":"array","items":{"type":"object","properties":{"sender_id":{"type":["string","null"],"format":"uuid"},"total":{"type":"integer","minimum":0},"pending":{"type":"integer","minimum":0},"sending":{"type":"integer","minimum":0},"uncertain":{"type":"integer","minimum":0},"route_unavailable":{"type":"integer","minimum":0},"answer_now":{"type":"integer","minimum":0},"close_out":{"type":"integer","minimum":0}},"required":["sender_id","total","pending","sending","uncertain","route_unavailable"]},"maxItems":1000}},"required":["total","pending","sending","uncertain","route_unavailable","senders"]}},"required":["workspace","counts"]}}}},"400":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/workspace/reply-turns/{turn_ref}":{"get":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"turn_ref","in":"path"},{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"responses":{"200":{"description":"Read one exact reply turn and its confirmed, queued or uncertain delivery evidence. Unknown routing is never permission to send.","content":{"application/json":{"schema":{"type":"object","properties":{"workspace":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string","minLength":1,"maxLength":200},"state":{"type":"string","minLength":1}},"required":["workspace_ref","name","state"]},"turn":{"type":"object","properties":{"turn_ref":{"type":"string","format":"uuid"},"version":{"type":"integer","minimum":0},"lead_ref":{"type":"string","format":"uuid"},"channel":{"type":"string","enum":["email","linkedin"]},"state":{"type":"string","enum":["pending","processing","sending","queued","sent","suppressed","uncertain","failed","superseded"]},"source_digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"draft":{"type":"string"},"account_id":{"type":["string","null"],"format":"uuid"},"sender_id":{"type":["string","null"],"format":"uuid"},"sender_name":{"type":["string","null"]},"lead_name":{"type":["string","null"]},"lead_email":{"type":["string","null"]},"lead_linkedin_url":{"type":["string","null"]},"campaign_ref":{"type":["string","null"],"format":"uuid"},"inbound_text":{"type":"string"},"inbound_at":{"type":"string","format":"date-time"},"follow_up_due_at":{"type":["string","null"],"format":"date-time"},"created_at":{"type":"string","format":"date-time"},"sent_at":{"type":["string","null"],"format":"date-time"},"history":{"type":"array","items":{"type":"object","properties":{"message_ref":{"type":"string","format":"uuid"},"lead_ref":{"type":"string","format":"uuid"},"channel":{"type":"string","enum":["email","linkedin"]},"status":{"type":["string","null"]},"review_status":{"type":["string","null"]},"is_draft":{"type":["boolean","null"]},"content":{"type":"string"},"steps":{"type":["array","null"],"items":{"type":"object","properties":{"position":{"type":"integer","exclusiveMinimum":0},"subject":{"type":["string","null"]},"text":{"type":"string"}},"required":["position","subject","text"]}},"source_message_ref":{"type":["string","null"],"format":"uuid"},"sender_id":{"type":["string","null"],"format":"uuid"},"sender_version":{"type":["integer","null"],"exclusiveMinimum":0},"source_digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"created_at":{"type":"string","format":"date-time"},"account_id":{"type":["string","null"],"format":"uuid"},"sender_name":{"type":["string","null"]},"lead_name":{"type":["string","null"]},"lead_email":{"type":["string","null"]},"lead_linkedin_url":{"type":["string","null"]},"review_reason":{"type":["string","null"]},"action_ref":{"type":["string","null"],"format":"uuid"},"run_ref":{"type":["string","null"],"format":"uuid"},"campaign_ref":{"type":["string","null"],"format":"uuid"},"direction":{"type":"string","enum":["inbound","outbound"]},"delivery_state":{"type":"string","enum":["confirmed","scheduled","planned","unknown"]},"sent_at":{"type":["string","null"],"format":"date-time"},"subject":{"type":["string","null"]},"account_label":{"type":["string","null"]},"not_sent_cause":{"type":["string","null"],"enum":["account_disconnected","sender_unavailable","provider_rejected","unknown",null]},"action_blocked_reason":{"type":["string","null"],"enum":["historical_engine_retired"]},"copy_source":{"type":["string","null"],"minLength":1,"maxLength":100,"description":"Where the saved copy came from. `manual`: the person typed it directly in LinkedIn; Lifty recorded it but did not write or send it."}},"required":["message_ref","lead_ref","channel","status","review_status","is_draft","content","steps","source_message_ref","sender_id","sender_version","source_digest","created_at","account_id","sender_name","lead_name","lead_email","lead_linkedin_url","review_reason","action_ref","run_ref","campaign_ref","direction","delivery_state","sent_at"]},"maxItems":100},"history_complete":{"type":"boolean"},"view":{"type":"object","properties":{"turnId":{"type":"string","format":"uuid"},"channel":{"type":"string","enum":["email","linkedin"]},"version":{"type":"integer","minimum":0},"status":{"type":"string","enum":["received","awaiting_action","queued","processing","sent","suppressed","superseded","uncertain","recovery"]},"label":{"type":"string"},"cause":{"type":["string","null"]},"detail":{"type":["string","null"]},"actions":{"type":"array","items":{"type":"string","enum":["approve","edit","suppress","recover","retry"]}},"draft":{"type":["string","null"]},"approvedText":{"type":["string","null"]},"decidedAt":{"type":["string","null"],"format":"date-time"},"sentAt":{"type":["string","null"],"format":"date-time"},"nextAttemptAt":{"type":["string","null"],"format":"date-time"},"overdueAt":{"type":["string","null"],"format":"date-time"},"validUntil":{"type":["string","null"],"format":"date-time"},"kind":{"type":["string","null"]},"followUpReason":{"type":["string","null"]}},"required":["turnId","channel","version","status","label","cause","detail","actions","draft","approvedText","decidedAt","sentAt","nextAttemptAt","overdueAt"]},"answering_sender_id":{"type":["string","null"],"format":"uuid"},"route_unavailable":{"type":"boolean"},"original_sender_id":{"type":["string","null"],"format":"uuid"},"original_sender_name":{"type":["string","null"]},"segment_id":{"type":["string","null"],"format":"uuid"},"segment_name":{"type":["string","null"]},"group":{"type":"string","enum":["answer_now","close_out","out_of_office_follow_up"]},"intent":{"type":["string","null"],"maxLength":80}},"required":["turn_ref","version","lead_ref","channel","state","source_digest","draft","account_id","sender_id","sender_name","lead_name","lead_email","lead_linkedin_url","campaign_ref","inbound_text","inbound_at","follow_up_due_at","created_at","sent_at","history","history_complete","view"]}},"required":["workspace","turn"]}}}},"400":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/workspace/reply-turns/{turn_ref}/review":{"post":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"turn_ref","in":"path"},{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"decision_id":{"type":"string","format":"uuid"},"expected_version":{"type":"integer","minimum":0},"action":{"type":"string","enum":["send","skip","recover","retry"]},"text":{"type":"string"},"attachments":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string","minLength":1,"maxLength":1024},"name":{"type":"string","minLength":1,"maxLength":255}},"required":["path","name"],"additionalProperties":false},"minItems":1,"maxItems":5}},"required":["decision_id","expected_version","action"],"additionalProperties":false}}}},"responses":{"202":{"description":"Decide a reply with its expected_version and a caller-generated decision_id reused for retries of identical intent. Send approves the saved draft or edits with optional trimmed text, and may name up to 5 files Review already uploaded to this reply as attachments; this API uploads none. Skip suppresses this turn. Recover/retry use the same command only when view.actions permits. Render returned view label/detail/actions verbatim. Stale is a normal receipt with the current view and no dispatch; queued or uncertain is not sent.","content":{"application/json":{"schema":{"type":"object","properties":{"workspace":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string","minLength":1,"maxLength":200},"state":{"type":"string","minLength":1}},"required":["workspace_ref","name","state"]},"turn":{"type":"object","properties":{"turn_ref":{"type":"string","format":"uuid"},"version":{"type":"integer","minimum":0},"lead_ref":{"type":"string","format":"uuid"},"channel":{"type":"string","enum":["email","linkedin"]},"state":{"type":"string","enum":["pending","processing","sending","queued","sent","suppressed","uncertain","failed","superseded"]},"source_digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"draft":{"type":"string"},"account_id":{"type":["string","null"],"format":"uuid"},"sender_id":{"type":["string","null"],"format":"uuid"},"sender_name":{"type":["string","null"]},"lead_name":{"type":["string","null"]},"lead_email":{"type":["string","null"]},"lead_linkedin_url":{"type":["string","null"]},"campaign_ref":{"type":["string","null"],"format":"uuid"},"inbound_text":{"type":"string"},"inbound_at":{"type":"string","format":"date-time"},"follow_up_due_at":{"type":["string","null"],"format":"date-time"},"created_at":{"type":"string","format":"date-time"},"sent_at":{"type":["string","null"],"format":"date-time"},"history":{"type":"array","items":{"type":"object","properties":{"message_ref":{"type":"string","format":"uuid"},"lead_ref":{"type":"string","format":"uuid"},"channel":{"type":"string","enum":["email","linkedin"]},"status":{"type":["string","null"]},"review_status":{"type":["string","null"]},"is_draft":{"type":["boolean","null"]},"content":{"type":"string"},"steps":{"type":["array","null"],"items":{"type":"object","properties":{"position":{"type":"integer","exclusiveMinimum":0},"subject":{"type":["string","null"]},"text":{"type":"string"}},"required":["position","subject","text"]}},"source_message_ref":{"type":["string","null"],"format":"uuid"},"sender_id":{"type":["string","null"],"format":"uuid"},"sender_version":{"type":["integer","null"],"exclusiveMinimum":0},"source_digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"created_at":{"type":"string","format":"date-time"},"account_id":{"type":["string","null"],"format":"uuid"},"sender_name":{"type":["string","null"]},"lead_name":{"type":["string","null"]},"lead_email":{"type":["string","null"]},"lead_linkedin_url":{"type":["string","null"]},"review_reason":{"type":["string","null"]},"action_ref":{"type":["string","null"],"format":"uuid"},"run_ref":{"type":["string","null"],"format":"uuid"},"campaign_ref":{"type":["string","null"],"format":"uuid"},"direction":{"type":"string","enum":["inbound","outbound"]},"delivery_state":{"type":"string","enum":["confirmed","scheduled","planned","unknown"]},"sent_at":{"type":["string","null"],"format":"date-time"},"subject":{"type":["string","null"]},"account_label":{"type":["string","null"]},"not_sent_cause":{"type":["string","null"],"enum":["account_disconnected","sender_unavailable","provider_rejected","unknown",null]},"action_blocked_reason":{"type":["string","null"],"enum":["historical_engine_retired"]},"copy_source":{"type":["string","null"],"minLength":1,"maxLength":100,"description":"Where the saved copy came from. `manual`: the person typed it directly in LinkedIn; Lifty recorded it but did not write or send it."}},"required":["message_ref","lead_ref","channel","status","review_status","is_draft","content","steps","source_message_ref","sender_id","sender_version","source_digest","created_at","account_id","sender_name","lead_name","lead_email","lead_linkedin_url","review_reason","action_ref","run_ref","campaign_ref","direction","delivery_state","sent_at"]},"maxItems":100},"history_complete":{"type":"boolean"},"view":{"type":"object","properties":{"turnId":{"type":"string","format":"uuid"},"channel":{"type":"string","enum":["email","linkedin"]},"version":{"type":"integer","minimum":0},"status":{"type":"string","enum":["received","awaiting_action","queued","processing","sent","suppressed","superseded","uncertain","recovery"]},"label":{"type":"string"},"cause":{"type":["string","null"]},"detail":{"type":["string","null"]},"actions":{"type":"array","items":{"type":"string","enum":["approve","edit","suppress","recover","retry"]}},"draft":{"type":["string","null"]},"approvedText":{"type":["string","null"]},"decidedAt":{"type":["string","null"],"format":"date-time"},"sentAt":{"type":["string","null"],"format":"date-time"},"nextAttemptAt":{"type":["string","null"],"format":"date-time"},"overdueAt":{"type":["string","null"],"format":"date-time"},"validUntil":{"type":["string","null"],"format":"date-time"},"kind":{"type":["string","null"]},"followUpReason":{"type":["string","null"]}},"required":["turnId","channel","version","status","label","cause","detail","actions","draft","approvedText","decidedAt","sentAt","nextAttemptAt","overdueAt"]},"answering_sender_id":{"type":["string","null"],"format":"uuid"},"route_unavailable":{"type":"boolean"},"original_sender_id":{"type":["string","null"],"format":"uuid"},"original_sender_name":{"type":["string","null"]},"segment_id":{"type":["string","null"],"format":"uuid"},"segment_name":{"type":["string","null"]},"group":{"type":"string","enum":["answer_now","close_out","out_of_office_follow_up"]},"intent":{"type":["string","null"],"maxLength":80}},"required":["turn_ref","version","lead_ref","channel","state","source_digest","draft","account_id","sender_id","sender_name","lead_name","lead_email","lead_linkedin_url","campaign_ref","inbound_text","inbound_at","follow_up_due_at","created_at","sent_at","history","history_complete","view"]},"outcome":{"type":"string","enum":["accepted","replayed","stale"]},"dispatch":{"type":["string","null"],"format":"uuid"},"view":{"type":"object","properties":{"turnId":{"type":"string","format":"uuid"},"channel":{"type":"string","enum":["email","linkedin"]},"version":{"type":"integer","minimum":0},"status":{"type":"string","enum":["received","awaiting_action","queued","processing","sent","suppressed","superseded","uncertain","recovery"]},"label":{"type":"string"},"cause":{"type":["string","null"]},"detail":{"type":["string","null"]},"actions":{"type":"array","items":{"type":"string","enum":["approve","edit","suppress","recover","retry"]}},"draft":{"type":["string","null"]},"approvedText":{"type":["string","null"]},"decidedAt":{"type":["string","null"],"format":"date-time"},"sentAt":{"type":["string","null"],"format":"date-time"},"nextAttemptAt":{"type":["string","null"],"format":"date-time"},"overdueAt":{"type":["string","null"],"format":"date-time"},"validUntil":{"type":["string","null"],"format":"date-time"},"kind":{"type":["string","null"]},"followUpReason":{"type":["string","null"]}},"required":["turnId","channel","version","status","label","cause","detail","actions","draft","approvedText","decidedAt","sentAt","nextAttemptAt","overdueAt"]}},"required":["workspace","turn","outcome","dispatch","view"]}}}},"400":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/workspace/campaign-messages/{message_ref}/rewrite":{"post":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"message_ref","in":"path"},{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"request_ref":{"type":"string","format":"uuid"},"source_digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"expected_review_status":{"type":"string","enum":["pending","approved"]}},"required":["request_ref","source_digest","expected_review_status"],"additionalProperties":false}}}},"responses":{"202":{"description":"Request a new pending draft from one exact pending source_digest with an idempotent request_ref. Preserves earlier bytes and provenance and never approves. Read the source message's rewrite_work until it supplies the exact replacement or a bounded failure; never restart an uncertain job blindly.","content":{"application/json":{"schema":{"type":"object","properties":{"workspace":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string","minLength":1,"maxLength":200},"state":{"type":"string","minLength":1}},"required":["workspace_ref","name","state"]},"message":{"type":"object","properties":{"message_ref":{"type":"string","format":"uuid"},"lead_ref":{"type":"string","format":"uuid"},"channel":{"type":"string","enum":["email","linkedin"]},"status":{"type":["string","null"]},"review_status":{"type":["string","null"]},"is_draft":{"type":["boolean","null"]},"content":{"type":"string"},"steps":{"type":["array","null"],"items":{"type":"object","properties":{"position":{"type":"integer","exclusiveMinimum":0},"subject":{"type":["string","null"]},"text":{"type":"string"}},"required":["position","subject","text"]}},"source_message_ref":{"type":["string","null"],"format":"uuid"},"sender_id":{"type":["string","null"],"format":"uuid"},"sender_version":{"type":["integer","null"],"exclusiveMinimum":0},"source_digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"created_at":{"type":"string","format":"date-time"},"account_id":{"type":["string","null"],"format":"uuid"},"sender_name":{"type":["string","null"]},"lead_name":{"type":["string","null"]},"lead_email":{"type":["string","null"]},"lead_linkedin_url":{"type":["string","null"]},"review_reason":{"type":["string","null"]},"action_ref":{"type":["string","null"],"format":"uuid"},"run_ref":{"type":["string","null"],"format":"uuid"},"campaign_ref":{"type":["string","null"],"format":"uuid"},"direction":{"type":"string","enum":["inbound","outbound"]},"delivery_state":{"type":"string","enum":["confirmed","scheduled","planned","unknown"]},"sent_at":{"type":["string","null"],"format":"date-time"},"subject":{"type":["string","null"]},"account_label":{"type":["string","null"]},"not_sent_cause":{"type":["string","null"],"enum":["account_disconnected","sender_unavailable","provider_rejected","unknown",null]},"action_blocked_reason":{"type":["string","null"],"enum":["historical_engine_retired"]},"copy_source":{"type":["string","null"],"minLength":1,"maxLength":100,"description":"Where the saved copy came from. `manual`: the person typed it directly in LinkedIn; Lifty recorded it but did not write or send it."}},"required":["message_ref","lead_ref","channel","status","review_status","is_draft","content","steps","source_message_ref","sender_id","sender_version","source_digest","created_at","account_id","sender_name","lead_name","lead_email","lead_linkedin_url","review_reason","action_ref","run_ref","campaign_ref","direction","delivery_state","sent_at"]},"history":{"type":"array","items":{"type":"object","properties":{"message_ref":{"type":"string","format":"uuid"},"lead_ref":{"type":"string","format":"uuid"},"channel":{"type":"string","enum":["email","linkedin"]},"status":{"type":["string","null"]},"review_status":{"type":["string","null"]},"is_draft":{"type":["boolean","null"]},"content":{"type":"string"},"steps":{"type":["array","null"],"items":{"type":"object","properties":{"position":{"type":"integer","exclusiveMinimum":0},"subject":{"type":["string","null"]},"text":{"type":"string"}},"required":["position","subject","text"]}},"source_message_ref":{"type":["string","null"],"format":"uuid"},"sender_id":{"type":["string","null"],"format":"uuid"},"sender_version":{"type":["integer","null"],"exclusiveMinimum":0},"source_digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"created_at":{"type":"string","format":"date-time"},"account_id":{"type":["string","null"],"format":"uuid"},"sender_name":{"type":["string","null"]},"lead_name":{"type":["string","null"]},"lead_email":{"type":["string","null"]},"lead_linkedin_url":{"type":["string","null"]},"review_reason":{"type":["string","null"]},"action_ref":{"type":["string","null"],"format":"uuid"},"run_ref":{"type":["string","null"],"format":"uuid"},"campaign_ref":{"type":["string","null"],"format":"uuid"},"direction":{"type":"string","enum":["inbound","outbound"]},"delivery_state":{"type":"string","enum":["confirmed","scheduled","planned","unknown"]},"sent_at":{"type":["string","null"],"format":"date-time"},"subject":{"type":["string","null"]},"account_label":{"type":["string","null"]},"not_sent_cause":{"type":["string","null"],"enum":["account_disconnected","sender_unavailable","provider_rejected","unknown",null]},"action_blocked_reason":{"type":["string","null"],"enum":["historical_engine_retired"]},"copy_source":{"type":["string","null"],"minLength":1,"maxLength":100,"description":"Where the saved copy came from. `manual`: the person typed it directly in LinkedIn; Lifty recorded it but did not write or send it."}},"required":["message_ref","lead_ref","channel","status","review_status","is_draft","content","steps","source_message_ref","sender_id","sender_version","source_digest","created_at","account_id","sender_name","lead_name","lead_email","lead_linkedin_url","review_reason","action_ref","run_ref","campaign_ref","direction","delivery_state","sent_at"]},"maxItems":100},"history_complete":{"type":"boolean"},"revisions":{"type":"array","items":{"type":"object","properties":{"message_ref":{"type":"string","format":"uuid"},"lead_ref":{"type":"string","format":"uuid"},"channel":{"type":"string","enum":["email","linkedin"]},"status":{"type":["string","null"]},"review_status":{"type":["string","null"]},"is_draft":{"type":["boolean","null"]},"content":{"type":"string"},"steps":{"type":["array","null"],"items":{"type":"object","properties":{"position":{"type":"integer","exclusiveMinimum":0},"subject":{"type":["string","null"]},"text":{"type":"string"}},"required":["position","subject","text"]}},"source_message_ref":{"type":["string","null"],"format":"uuid"},"sender_id":{"type":["string","null"],"format":"uuid"},"sender_version":{"type":["integer","null"],"exclusiveMinimum":0},"source_digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"created_at":{"type":"string","format":"date-time"},"account_id":{"type":["string","null"],"format":"uuid"},"sender_name":{"type":["string","null"]},"lead_name":{"type":["string","null"]},"lead_email":{"type":["string","null"]},"lead_linkedin_url":{"type":["string","null"]},"review_reason":{"type":["string","null"]},"action_ref":{"type":["string","null"],"format":"uuid"},"run_ref":{"type":["string","null"],"format":"uuid"},"campaign_ref":{"type":["string","null"],"format":"uuid"},"direction":{"type":"string","enum":["inbound","outbound"]},"delivery_state":{"type":"string","enum":["confirmed","scheduled","planned","unknown"]},"sent_at":{"type":["string","null"],"format":"date-time"},"subject":{"type":["string","null"]},"account_label":{"type":["string","null"]},"not_sent_cause":{"type":["string","null"],"enum":["account_disconnected","sender_unavailable","provider_rejected","unknown",null]},"action_blocked_reason":{"type":["string","null"],"enum":["historical_engine_retired"]},"copy_source":{"type":["string","null"],"minLength":1,"maxLength":100,"description":"Where the saved copy came from. `manual`: the person typed it directly in LinkedIn; Lifty recorded it but did not write or send it."}},"required":["message_ref","lead_ref","channel","status","review_status","is_draft","content","steps","source_message_ref","sender_id","sender_version","source_digest","created_at","account_id","sender_name","lead_name","lead_email","lead_linkedin_url","review_reason","action_ref","run_ref","campaign_ref","direction","delivery_state","sent_at"]},"maxItems":100},"revisions_complete":{"type":"boolean"},"rewrite_work":{"type":["object","null"],"properties":{"work_ref":{"type":"string","format":"uuid"},"message_ref":{"type":"string","format":"uuid"},"source_digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"state":{"type":"string","enum":["queued","running","done","failed","uncertain"]},"replacement_message_ref":{"type":["string","null"],"format":"uuid"},"error_code":{"type":["string","null"],"pattern":"^[A-Za-z][A-Za-z0-9_]{0,79}$"}},"required":["work_ref","message_ref","source_digest","state","replacement_message_ref","error_code"]}},"required":["workspace","message","history","history_complete","revisions","revisions_complete"]}}}},"400":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/workspace/campaign-message-reviews":{"post":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"decisions":{"type":"array","items":{"type":"object","properties":{"message_ref":{"type":"string","format":"uuid"},"source_digest":{"type":"string","pattern":"^[a-f0-9]{64}$"}},"required":["message_ref","source_digest"],"additionalProperties":false},"minItems":1,"maxItems":50}},"required":["decisions"],"additionalProperties":false}}}},"responses":{"200":{"description":"Approve up to 50 waiting LinkedIn or email messages at once, each with the source_digest of its exact reviews_get read; the same batch approval Review uses. Each decision stands alone: approved, or refused with its code while the others proceed. Flagged messages (review_reason set) are refused with OUTREACH_REVIEW_FLAGGED; open them one by one. An already approved, moved or stale message is refused and never approved twice. Approve releases only those bytes for already-active Campaigns under their account, schedule and send checks; it never activates or promises a send.","content":{"application/json":{"schema":{"type":"object","properties":{"workspace":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string","minLength":1,"maxLength":200},"state":{"type":"string","minLength":1}},"required":["workspace_ref","name","state"]},"results":{"type":"array","items":{"type":"object","properties":{"message_ref":{"type":"string","format":"uuid"},"outcome":{"type":"string","enum":["approved","refused"]},"code":{"type":["string","null"],"pattern":"^[A-Za-z][A-Za-z0-9_]{0,79}$"}},"required":["message_ref","outcome","code"]},"minItems":1,"maxItems":50}},"required":["workspace","results"]}}}},"400":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/workspace/leads/{lead_ref}/stop-outreach":{"post":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"lead_ref","in":"path"},{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"request_ref":{"type":"string","format":"uuid"},"confirm":{"type":"boolean","enum":[true]}},"required":["request_ref","confirm"],"additionalProperties":false}}}},"responses":{"202":{"description":"Explicitly stop every proactive LinkedIn and email Campaign for this lead with confirm:true and an idempotent request_ref. Writes the local manual_stop barrier and requests provider cancellation; provider_stops_pending means reconciliation is still required. Inbound replies remain available.","content":{"application/json":{"schema":{"type":"object","properties":{"workspace":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string","minLength":1,"maxLength":200},"state":{"type":"string","minLength":1}},"required":["workspace_ref","name","state"]},"lead_ref":{"type":"string","format":"uuid"},"stopped_at":{"type":"string","format":"date-time"},"provider_stops_pending":{"type":"boolean"}},"required":["workspace","lead_ref","stopped_at","provider_stops_pending"]}}}},"400":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/workspace/leads/reassign":{"post":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"request_ref":{"type":"string","format":"uuid"},"confirm":{"type":"boolean","enum":[true]},"reason":{"type":"string","minLength":1,"maxLength":500},"leads":{"anyOf":[{"type":"object","properties":{"lead_refs":{"type":"array","items":{"type":"string","format":"uuid"},"minItems":1,"maxItems":500}},"required":["lead_refs"],"additionalProperties":false},{"type":"object","properties":{"from_sender_id":{"type":"string","format":"uuid"}},"required":["from_sender_id"],"additionalProperties":false}]},"to":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","enum":["sender"]},"sender_id":{"type":"string","format":"uuid"}},"required":["kind","sender_id"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["round_robin"]}},"required":["kind"],"additionalProperties":false}]}},"required":["request_ref","confirm","reason","leads","to"],"additionalProperties":false}}}},"responses":{"200":{"description":"Move admitted leads whose outreach has not started to another person who takes part, with confirm:true, a reason and an idempotent request_ref (repeating it returns the original receipt). Select lead_refs (up to 500) or from_sender_id (that person's not-started leads); target one sender_id or round_robin among the other participating persons whose accounts cover the lead's channels. Not started means no sent, begun or uncertain outbound on any channel; a lead with any contact is refused with outreach_started and never moves. Each result is reassigned, unchanged or refused with its refusal; remaining counts leads left for another request. A moved lead prepares again with its new person's signature. Contacts nobody.","content":{"application/json":{"schema":{"type":"object","properties":{"workspace":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string","minLength":1,"maxLength":200},"state":{"type":"string","minLength":1}},"required":["workspace_ref","name","state"]},"request_ref":{"type":"string","format":"uuid"},"actor_ref":{"type":"string","format":"uuid"},"reassigned_at":{"type":"string","format":"date-time"},"reason":{"type":"string"},"to":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","enum":["sender"]},"sender_id":{"type":"string","format":"uuid"}},"required":["kind","sender_id"]},{"type":"object","properties":{"kind":{"type":"string","enum":["round_robin"]}},"required":["kind"]}]},"remaining":{"type":"integer","minimum":0},"results":{"type":"array","items":{"type":"object","properties":{"lead_ref":{"type":"string","format":"uuid"},"outcome":{"type":"string","enum":["reassigned","unchanged","refused"]},"from_sender_id":{"type":["string","null"],"format":"uuid"},"to_sender_id":{"type":["string","null"],"format":"uuid"},"refusal":{"type":["string","null"],"enum":["outreach_started","lead_not_found","not_admitted","sender_not_participating","sender_channels_mismatch","no_participating_sender",null]}},"required":["lead_ref","outcome","from_sender_id","to_sender_id","refusal"]},"maxItems":5000}},"required":["workspace","request_ref","actor_ref","reassigned_at","reason","to","remaining","results"]}}}},"400":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/workspace/campaigns/{campaign_ref}/changes/reach":{"get":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"campaign_ref","in":"path"},{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"responses":{"200":{"description":"Count unsent messages and unwritten runs eligible for a Campaign correction.","content":{"application/json":{"schema":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"campaign_ref":{"type":"string","format":"uuid"},"revision_ref":{"type":["string","null"],"format":"uuid"},"channel":{"type":"string","enum":["email","linkedin"]},"offered":{"type":"boolean"},"written":{"type":"integer","minimum":0},"unwritten":{"type":"integer","minimum":0},"moving":{"type":"integer","minimum":0},"versions":{"type":"array","items":{"type":"object","properties":{"revision_ref":{"type":"string","format":"uuid"},"active":{"type":"boolean"},"created_at":{"type":"string","format":"date-time"},"runs":{"type":"integer","minimum":0},"unwritten_can_reach":{"type":"integer","minimum":0},"unwritten_closed":{"type":"integer","minimum":0},"steps":{"type":"array","items":{"type":"object","properties":{"position":{"type":"integer"},"can_send":{"type":"integer","minimum":0}},"required":["position","can_send"]}}},"required":["revision_ref","active","created_at","runs","unwritten_can_reach","unwritten_closed","steps"]}}},"required":["workspace_ref","campaign_ref","revision_ref","channel","offered","written","unwritten"]}}}},"400":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/workspace/campaigns/{campaign_ref}/changes/apply":{"post":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"campaign_ref","in":"path"},{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"confirm":{"type":"boolean","enum":[true]},"revision_ref":{"type":"string","format":"uuid"},"request_ref":{"type":"string","format":"uuid"}},"required":["confirm","revision_ref","request_ref"],"additionalProperties":false}}}},"responses":{"202":{"description":"Show reach and ask first. On confirmation, correct unsent copy and move compatible unwritten runs. Reuse request_ref on retry.","content":{"application/json":{"schema":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"campaign_ref":{"type":"string","format":"uuid"},"revision_ref":{"type":"string","format":"uuid"},"request_ref":{"type":"string","format":"uuid"},"status":{"type":"string","enum":["pending","complete"]},"counts":{"type":"object","additionalProperties":{"type":"integer","minimum":0}},"next_after":{"type":["string","null"],"format":"uuid"},"results":{"type":"array","items":{"type":"object","properties":{"run_ref":{"type":"string","format":"uuid"},"message_ref":{"type":["string","null"],"format":"uuid"},"source_revision":{"type":"string","format":"uuid"},"status":{"type":"string","enum":["queued","changed","repinned","unchanged","already_sending","could_not_change"]},"reason":{"type":["string","null"]},"started_positions":{"type":"array","items":{"type":"integer"}},"replacement_ref":{"type":"string","format":"uuid"},"before":{"anyOf":[{"type":"object","properties":{"text":{"type":"string"}},"required":["text"]},{"type":"object","properties":{"steps":{"type":"array","items":{"type":"object","properties":{"position":{"type":"integer"},"text":{"type":"string"},"subject":{"type":["string","null"]}},"required":["position","text"]}}},"required":["steps"]}]},"after":{"anyOf":[{"type":"object","properties":{"text":{"type":"string"}},"required":["text"]},{"type":"object","properties":{"steps":{"type":"array","items":{"type":"object","properties":{"position":{"type":"integer"},"text":{"type":"string"},"subject":{"type":["string","null"]}},"required":["position","text"]}}},"required":["steps"]}]},"previous_version":{"type":"string","format":"uuid"},"version_ref":{"type":"string","format":"uuid"}},"required":["run_ref","message_ref","source_revision","status"]}}},"required":["workspace_ref","campaign_ref","revision_ref","request_ref","status","counts","next_after","results"]}}}},"400":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/workspace/campaigns/{campaign_ref}/changes/{request_ref}":{"get":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"campaign_ref","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"request_ref","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":false,"name":"after","in":"query"},{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"responses":{"200":{"description":"Read progress and before/after copy. Page with next_after.","content":{"application/json":{"schema":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"campaign_ref":{"type":"string","format":"uuid"},"revision_ref":{"type":"string","format":"uuid"},"request_ref":{"type":"string","format":"uuid"},"status":{"type":"string","enum":["pending","complete"]},"counts":{"type":"object","additionalProperties":{"type":"integer","minimum":0}},"next_after":{"type":["string","null"],"format":"uuid"},"results":{"type":"array","items":{"type":"object","properties":{"run_ref":{"type":"string","format":"uuid"},"message_ref":{"type":["string","null"],"format":"uuid"},"source_revision":{"type":"string","format":"uuid"},"status":{"type":"string","enum":["queued","changed","repinned","unchanged","already_sending","could_not_change"]},"reason":{"type":["string","null"]},"started_positions":{"type":"array","items":{"type":"integer"}},"replacement_ref":{"type":"string","format":"uuid"},"before":{"anyOf":[{"type":"object","properties":{"text":{"type":"string"}},"required":["text"]},{"type":"object","properties":{"steps":{"type":"array","items":{"type":"object","properties":{"position":{"type":"integer"},"text":{"type":"string"},"subject":{"type":["string","null"]}},"required":["position","text"]}}},"required":["steps"]}]},"after":{"anyOf":[{"type":"object","properties":{"text":{"type":"string"}},"required":["text"]},{"type":"object","properties":{"steps":{"type":"array","items":{"type":"object","properties":{"position":{"type":"integer"},"text":{"type":"string"},"subject":{"type":["string","null"]}},"required":["position","text"]}}},"required":["steps"]}]},"previous_version":{"type":"string","format":"uuid"},"version_ref":{"type":"string","format":"uuid"}},"required":["run_ref","message_ref","source_revision","status"]}}},"required":["workspace_ref","campaign_ref","revision_ref","request_ref","status","counts","next_after","results"]}}}},"400":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/workspace/campaign-reviews":{"get":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","enum":["linkedin","email"]},"required":false,"name":"channel","in":"query"},{"schema":{"type":"string","enum":["pending","enroll_failed","approved","suppressed"]},"required":false,"name":"review_status","in":"query"},{"schema":{"type":"integer","minimum":1,"maximum":100},"required":false,"name":"limit","in":"query"},{"schema":{"type":"string","format":"uuid"},"required":false,"name":"after","in":"query"},{"schema":{"type":"string","enum":["true"]},"required":false,"name":"unsent","in":"query"},{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"responses":{"200":{"description":"Read the selected workspace's saved Campaign review queue, including the exact person, account and action. review_status=approved with unsent=true lists what can still change. Paginated, read-only; failed reads stay unavailable. Members and operators use the same workflow.","content":{"application/json":{"schema":{"type":"object","properties":{"workspace":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string","minLength":1,"maxLength":200},"state":{"type":"string","minLength":1}},"required":["workspace_ref","name","state"]},"messages":{"type":"array","items":{"type":"object","properties":{"message_ref":{"type":"string","format":"uuid"},"lead_ref":{"type":"string","format":"uuid"},"channel":{"type":"string","enum":["email","linkedin"]},"status":{"type":["string","null"]},"review_status":{"type":["string","null"]},"is_draft":{"type":["boolean","null"]},"content":{"type":"string"},"steps":{"type":["array","null"],"items":{"type":"object","properties":{"position":{"type":"integer","exclusiveMinimum":0},"subject":{"type":["string","null"]},"text":{"type":"string"}},"required":["position","subject","text"]}},"source_message_ref":{"type":["string","null"],"format":"uuid"},"sender_id":{"type":["string","null"],"format":"uuid"},"sender_version":{"type":["integer","null"],"exclusiveMinimum":0},"source_digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"created_at":{"type":"string","format":"date-time"},"account_id":{"type":["string","null"],"format":"uuid"},"sender_name":{"type":["string","null"]},"lead_name":{"type":["string","null"]},"lead_email":{"type":["string","null"]},"lead_linkedin_url":{"type":["string","null"]},"review_reason":{"type":["string","null"]},"action_ref":{"type":["string","null"],"format":"uuid"},"run_ref":{"type":["string","null"],"format":"uuid"},"campaign_ref":{"type":["string","null"],"format":"uuid"},"direction":{"type":"string","enum":["inbound","outbound"]},"delivery_state":{"type":"string","enum":["confirmed","scheduled","planned","unknown"]},"sent_at":{"type":["string","null"],"format":"date-time"},"subject":{"type":["string","null"]},"account_label":{"type":["string","null"]},"not_sent_cause":{"type":["string","null"],"enum":["account_disconnected","sender_unavailable","provider_rejected","unknown",null]},"action_blocked_reason":{"type":["string","null"],"enum":["historical_engine_retired"]},"copy_source":{"type":["string","null"],"minLength":1,"maxLength":100,"description":"Where the saved copy came from. `manual`: the person typed it directly in LinkedIn; Lifty recorded it but did not write or send it."}},"required":["message_ref","lead_ref","channel","status","review_status","is_draft","content","steps","source_message_ref","sender_id","sender_version","source_digest","created_at","account_id","sender_name","lead_name","lead_email","lead_linkedin_url","review_reason","action_ref","run_ref","campaign_ref","direction","delivery_state","sent_at"]},"maxItems":100},"next_after":{"type":["string","null"],"format":"uuid"}},"required":["workspace","messages","next_after"]}}}},"400":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/workspace/campaign-messages/{message_ref}/review":{"post":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"message_ref","in":"path"},{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"action":{"type":"string","enum":["approve","skip","retry"]},"source_digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"expected_review_status":{"type":"string","enum":["pending","enroll_failed","approved"]},"reason":{"type":"string","minLength":1,"maxLength":2000},"feedback":{"type":"object","properties":{"rating":{"type":"string","enum":["up","down"]},"note":{"type":"string","minLength":1,"maxLength":2000}},"required":["rating","note"],"additionalProperties":false}},"required":["action","source_digest","expected_review_status"],"additionalProperties":false}}}},"responses":{"200":{"description":"Review one exact saved LinkedIn or email message using source_digest and expected_review_status. Approve schedules only the reviewed bytes; it never activates a Campaign. Skip closes only this channel's branch, without global suppression; it also applies to an approved, unsent message. Retry re-checks the account and sender and atomically approves the same bytes only after confirming that no begun, unknown or confirmed send could be replayed.","content":{"application/json":{"schema":{"type":"object","properties":{"workspace":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string","minLength":1,"maxLength":200},"state":{"type":"string","minLength":1}},"required":["workspace_ref","name","state"]},"message":{"type":"object","properties":{"message_ref":{"type":"string","format":"uuid"},"lead_ref":{"type":"string","format":"uuid"},"channel":{"type":"string","enum":["email","linkedin"]},"status":{"type":["string","null"]},"review_status":{"type":["string","null"]},"is_draft":{"type":["boolean","null"]},"content":{"type":"string"},"steps":{"type":["array","null"],"items":{"type":"object","properties":{"position":{"type":"integer","exclusiveMinimum":0},"subject":{"type":["string","null"]},"text":{"type":"string"}},"required":["position","subject","text"]}},"source_message_ref":{"type":["string","null"],"format":"uuid"},"sender_id":{"type":["string","null"],"format":"uuid"},"sender_version":{"type":["integer","null"],"exclusiveMinimum":0},"source_digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"created_at":{"type":"string","format":"date-time"},"account_id":{"type":["string","null"],"format":"uuid"},"sender_name":{"type":["string","null"]},"lead_name":{"type":["string","null"]},"lead_email":{"type":["string","null"]},"lead_linkedin_url":{"type":["string","null"]},"review_reason":{"type":["string","null"]},"action_ref":{"type":["string","null"],"format":"uuid"},"run_ref":{"type":["string","null"],"format":"uuid"},"campaign_ref":{"type":["string","null"],"format":"uuid"},"direction":{"type":"string","enum":["inbound","outbound"]},"delivery_state":{"type":"string","enum":["confirmed","scheduled","planned","unknown"]},"sent_at":{"type":["string","null"],"format":"date-time"},"subject":{"type":["string","null"]},"account_label":{"type":["string","null"]},"not_sent_cause":{"type":["string","null"],"enum":["account_disconnected","sender_unavailable","provider_rejected","unknown",null]},"action_blocked_reason":{"type":["string","null"],"enum":["historical_engine_retired"]},"copy_source":{"type":["string","null"],"minLength":1,"maxLength":100,"description":"Where the saved copy came from. `manual`: the person typed it directly in LinkedIn; Lifty recorded it but did not write or send it."}},"required":["message_ref","lead_ref","channel","status","review_status","is_draft","content","steps","source_message_ref","sender_id","sender_version","source_digest","created_at","account_id","sender_name","lead_name","lead_email","lead_linkedin_url","review_reason","action_ref","run_ref","campaign_ref","direction","delivery_state","sent_at"]},"history":{"type":"array","items":{"type":"object","properties":{"message_ref":{"type":"string","format":"uuid"},"lead_ref":{"type":"string","format":"uuid"},"channel":{"type":"string","enum":["email","linkedin"]},"status":{"type":["string","null"]},"review_status":{"type":["string","null"]},"is_draft":{"type":["boolean","null"]},"content":{"type":"string"},"steps":{"type":["array","null"],"items":{"type":"object","properties":{"position":{"type":"integer","exclusiveMinimum":0},"subject":{"type":["string","null"]},"text":{"type":"string"}},"required":["position","subject","text"]}},"source_message_ref":{"type":["string","null"],"format":"uuid"},"sender_id":{"type":["string","null"],"format":"uuid"},"sender_version":{"type":["integer","null"],"exclusiveMinimum":0},"source_digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"created_at":{"type":"string","format":"date-time"},"account_id":{"type":["string","null"],"format":"uuid"},"sender_name":{"type":["string","null"]},"lead_name":{"type":["string","null"]},"lead_email":{"type":["string","null"]},"lead_linkedin_url":{"type":["string","null"]},"review_reason":{"type":["string","null"]},"action_ref":{"type":["string","null"],"format":"uuid"},"run_ref":{"type":["string","null"],"format":"uuid"},"campaign_ref":{"type":["string","null"],"format":"uuid"},"direction":{"type":"string","enum":["inbound","outbound"]},"delivery_state":{"type":"string","enum":["confirmed","scheduled","planned","unknown"]},"sent_at":{"type":["string","null"],"format":"date-time"},"subject":{"type":["string","null"]},"account_label":{"type":["string","null"]},"not_sent_cause":{"type":["string","null"],"enum":["account_disconnected","sender_unavailable","provider_rejected","unknown",null]},"action_blocked_reason":{"type":["string","null"],"enum":["historical_engine_retired"]},"copy_source":{"type":["string","null"],"minLength":1,"maxLength":100,"description":"Where the saved copy came from. `manual`: the person typed it directly in LinkedIn; Lifty recorded it but did not write or send it."}},"required":["message_ref","lead_ref","channel","status","review_status","is_draft","content","steps","source_message_ref","sender_id","sender_version","source_digest","created_at","account_id","sender_name","lead_name","lead_email","lead_linkedin_url","review_reason","action_ref","run_ref","campaign_ref","direction","delivery_state","sent_at"]},"maxItems":100},"history_complete":{"type":"boolean"},"revisions":{"type":"array","items":{"type":"object","properties":{"message_ref":{"type":"string","format":"uuid"},"lead_ref":{"type":"string","format":"uuid"},"channel":{"type":"string","enum":["email","linkedin"]},"status":{"type":["string","null"]},"review_status":{"type":["string","null"]},"is_draft":{"type":["boolean","null"]},"content":{"type":"string"},"steps":{"type":["array","null"],"items":{"type":"object","properties":{"position":{"type":"integer","exclusiveMinimum":0},"subject":{"type":["string","null"]},"text":{"type":"string"}},"required":["position","subject","text"]}},"source_message_ref":{"type":["string","null"],"format":"uuid"},"sender_id":{"type":["string","null"],"format":"uuid"},"sender_version":{"type":["integer","null"],"exclusiveMinimum":0},"source_digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"created_at":{"type":"string","format":"date-time"},"account_id":{"type":["string","null"],"format":"uuid"},"sender_name":{"type":["string","null"]},"lead_name":{"type":["string","null"]},"lead_email":{"type":["string","null"]},"lead_linkedin_url":{"type":["string","null"]},"review_reason":{"type":["string","null"]},"action_ref":{"type":["string","null"],"format":"uuid"},"run_ref":{"type":["string","null"],"format":"uuid"},"campaign_ref":{"type":["string","null"],"format":"uuid"},"direction":{"type":"string","enum":["inbound","outbound"]},"delivery_state":{"type":"string","enum":["confirmed","scheduled","planned","unknown"]},"sent_at":{"type":["string","null"],"format":"date-time"},"subject":{"type":["string","null"]},"account_label":{"type":["string","null"]},"not_sent_cause":{"type":["string","null"],"enum":["account_disconnected","sender_unavailable","provider_rejected","unknown",null]},"action_blocked_reason":{"type":["string","null"],"enum":["historical_engine_retired"]},"copy_source":{"type":["string","null"],"minLength":1,"maxLength":100,"description":"Where the saved copy came from. `manual`: the person typed it directly in LinkedIn; Lifty recorded it but did not write or send it."}},"required":["message_ref","lead_ref","channel","status","review_status","is_draft","content","steps","source_message_ref","sender_id","sender_version","source_digest","created_at","account_id","sender_name","lead_name","lead_email","lead_linkedin_url","review_reason","action_ref","run_ref","campaign_ref","direction","delivery_state","sent_at"]},"maxItems":100},"revisions_complete":{"type":"boolean"},"rewrite_work":{"type":["object","null"],"properties":{"work_ref":{"type":"string","format":"uuid"},"message_ref":{"type":"string","format":"uuid"},"source_digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"state":{"type":"string","enum":["queued","running","done","failed","uncertain"]},"replacement_message_ref":{"type":["string","null"],"format":"uuid"},"error_code":{"type":["string","null"],"pattern":"^[A-Za-z][A-Za-z0-9_]{0,79}$"}},"required":["work_ref","message_ref","source_digest","state","replacement_message_ref","error_code"]}},"required":["workspace","message","history","history_complete","revisions","revisions_complete"]}}}},"400":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/workspace/campaigns/{campaign_ref}/runtime":{"get":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"campaign_ref","in":"path"},{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"responses":{"200":{"description":"Read started Journeys of this Campaign grouped by the executable version and Campaign revision they retain: started, continuing, prepared and pending, plus recorded gate reasons only. Intent is separate from execution and readiness. No recorded reason does not prove ready; failed reads remain unavailable.","content":{"application/json":{"schema":{"type":"object","properties":{"workspace":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string","minLength":1,"maxLength":200},"state":{"type":"string","minLength":1}},"required":["workspace_ref","name","state"]},"campaign_ref":{"type":"string","format":"uuid"},"intent_active":{"type":"boolean"},"executable_versions":{"type":"array","items":{"type":"object","properties":{"executable_version_ref":{"type":"string","format":"uuid"},"revision_ref":{"type":"string","format":"uuid"},"started_journeys":{"type":"integer","minimum":0},"continuing_journeys":{"type":"integer","minimum":0},"prepared_journeys":{"type":"integer","minimum":0},"pending_journeys":{"type":"integer","minimum":0},"recorded_gate_reasons":{"type":"array","items":{"type":"object","properties":{"reason":{"type":"string","enum":["delay_pending","schedule_pending","delivery_slot_pending","intent_paused","recorded_gate_pending","composition_held"]},"count":{"type":"integer","exclusiveMinimum":0}},"required":["reason","count"]}}},"required":["executable_version_ref","revision_ref","started_journeys","continuing_journeys","prepared_journeys","pending_journeys","recorded_gate_reasons"]}}},"required":["workspace","campaign_ref","intent_active","executable_versions"]}}}},"400":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/workspace/campaign-messages/{message_ref}":{"get":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"message_ref","in":"path"},{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"responses":{"200":{"description":"Read an actual saved per-lead message in the selected workspace. No canonical campaign membership is inferred for historical drafts. Does not generate, approve, activate or send.","content":{"application/json":{"schema":{"type":"object","properties":{"workspace":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string","minLength":1,"maxLength":200},"state":{"type":"string","minLength":1}},"required":["workspace_ref","name","state"]},"message":{"type":"object","properties":{"message_ref":{"type":"string","format":"uuid"},"lead_ref":{"type":"string","format":"uuid"},"channel":{"type":"string","enum":["email","linkedin"]},"status":{"type":["string","null"]},"review_status":{"type":["string","null"]},"is_draft":{"type":["boolean","null"]},"content":{"type":"string"},"steps":{"type":["array","null"],"items":{"type":"object","properties":{"position":{"type":"integer","exclusiveMinimum":0},"subject":{"type":["string","null"]},"text":{"type":"string"}},"required":["position","subject","text"]}},"source_message_ref":{"type":["string","null"],"format":"uuid"},"sender_id":{"type":["string","null"],"format":"uuid"},"sender_version":{"type":["integer","null"],"exclusiveMinimum":0},"source_digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"created_at":{"type":"string","format":"date-time"},"account_id":{"type":["string","null"],"format":"uuid"},"sender_name":{"type":["string","null"]},"lead_name":{"type":["string","null"]},"lead_email":{"type":["string","null"]},"lead_linkedin_url":{"type":["string","null"]},"review_reason":{"type":["string","null"]},"action_ref":{"type":["string","null"],"format":"uuid"},"run_ref":{"type":["string","null"],"format":"uuid"},"campaign_ref":{"type":["string","null"],"format":"uuid"},"direction":{"type":"string","enum":["inbound","outbound"]},"delivery_state":{"type":"string","enum":["confirmed","scheduled","planned","unknown"]},"sent_at":{"type":["string","null"],"format":"date-time"},"subject":{"type":["string","null"]},"account_label":{"type":["string","null"]},"not_sent_cause":{"type":["string","null"],"enum":["account_disconnected","sender_unavailable","provider_rejected","unknown",null]},"action_blocked_reason":{"type":["string","null"],"enum":["historical_engine_retired"]},"copy_source":{"type":["string","null"],"minLength":1,"maxLength":100,"description":"Where the saved copy came from. `manual`: the person typed it directly in LinkedIn; Lifty recorded it but did not write or send it."}},"required":["message_ref","lead_ref","channel","status","review_status","is_draft","content","steps","source_message_ref","sender_id","sender_version","source_digest","created_at","account_id","sender_name","lead_name","lead_email","lead_linkedin_url","review_reason","action_ref","run_ref","campaign_ref","direction","delivery_state","sent_at"]},"history":{"type":"array","items":{"type":"object","properties":{"message_ref":{"type":"string","format":"uuid"},"lead_ref":{"type":"string","format":"uuid"},"channel":{"type":"string","enum":["email","linkedin"]},"status":{"type":["string","null"]},"review_status":{"type":["string","null"]},"is_draft":{"type":["boolean","null"]},"content":{"type":"string"},"steps":{"type":["array","null"],"items":{"type":"object","properties":{"position":{"type":"integer","exclusiveMinimum":0},"subject":{"type":["string","null"]},"text":{"type":"string"}},"required":["position","subject","text"]}},"source_message_ref":{"type":["string","null"],"format":"uuid"},"sender_id":{"type":["string","null"],"format":"uuid"},"sender_version":{"type":["integer","null"],"exclusiveMinimum":0},"source_digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"created_at":{"type":"string","format":"date-time"},"account_id":{"type":["string","null"],"format":"uuid"},"sender_name":{"type":["string","null"]},"lead_name":{"type":["string","null"]},"lead_email":{"type":["string","null"]},"lead_linkedin_url":{"type":["string","null"]},"review_reason":{"type":["string","null"]},"action_ref":{"type":["string","null"],"format":"uuid"},"run_ref":{"type":["string","null"],"format":"uuid"},"campaign_ref":{"type":["string","null"],"format":"uuid"},"direction":{"type":"string","enum":["inbound","outbound"]},"delivery_state":{"type":"string","enum":["confirmed","scheduled","planned","unknown"]},"sent_at":{"type":["string","null"],"format":"date-time"},"subject":{"type":["string","null"]},"account_label":{"type":["string","null"]},"not_sent_cause":{"type":["string","null"],"enum":["account_disconnected","sender_unavailable","provider_rejected","unknown",null]},"action_blocked_reason":{"type":["string","null"],"enum":["historical_engine_retired"]},"copy_source":{"type":["string","null"],"minLength":1,"maxLength":100,"description":"Where the saved copy came from. `manual`: the person typed it directly in LinkedIn; Lifty recorded it but did not write or send it."}},"required":["message_ref","lead_ref","channel","status","review_status","is_draft","content","steps","source_message_ref","sender_id","sender_version","source_digest","created_at","account_id","sender_name","lead_name","lead_email","lead_linkedin_url","review_reason","action_ref","run_ref","campaign_ref","direction","delivery_state","sent_at"]},"maxItems":100},"history_complete":{"type":"boolean"},"revisions":{"type":"array","items":{"type":"object","properties":{"message_ref":{"type":"string","format":"uuid"},"lead_ref":{"type":"string","format":"uuid"},"channel":{"type":"string","enum":["email","linkedin"]},"status":{"type":["string","null"]},"review_status":{"type":["string","null"]},"is_draft":{"type":["boolean","null"]},"content":{"type":"string"},"steps":{"type":["array","null"],"items":{"type":"object","properties":{"position":{"type":"integer","exclusiveMinimum":0},"subject":{"type":["string","null"]},"text":{"type":"string"}},"required":["position","subject","text"]}},"source_message_ref":{"type":["string","null"],"format":"uuid"},"sender_id":{"type":["string","null"],"format":"uuid"},"sender_version":{"type":["integer","null"],"exclusiveMinimum":0},"source_digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"created_at":{"type":"string","format":"date-time"},"account_id":{"type":["string","null"],"format":"uuid"},"sender_name":{"type":["string","null"]},"lead_name":{"type":["string","null"]},"lead_email":{"type":["string","null"]},"lead_linkedin_url":{"type":["string","null"]},"review_reason":{"type":["string","null"]},"action_ref":{"type":["string","null"],"format":"uuid"},"run_ref":{"type":["string","null"],"format":"uuid"},"campaign_ref":{"type":["string","null"],"format":"uuid"},"direction":{"type":"string","enum":["inbound","outbound"]},"delivery_state":{"type":"string","enum":["confirmed","scheduled","planned","unknown"]},"sent_at":{"type":["string","null"],"format":"date-time"},"subject":{"type":["string","null"]},"account_label":{"type":["string","null"]},"not_sent_cause":{"type":["string","null"],"enum":["account_disconnected","sender_unavailable","provider_rejected","unknown",null]},"action_blocked_reason":{"type":["string","null"],"enum":["historical_engine_retired"]},"copy_source":{"type":["string","null"],"minLength":1,"maxLength":100,"description":"Where the saved copy came from. `manual`: the person typed it directly in LinkedIn; Lifty recorded it but did not write or send it."}},"required":["message_ref","lead_ref","channel","status","review_status","is_draft","content","steps","source_message_ref","sender_id","sender_version","source_digest","created_at","account_id","sender_name","lead_name","lead_email","lead_linkedin_url","review_reason","action_ref","run_ref","campaign_ref","direction","delivery_state","sent_at"]},"maxItems":100},"revisions_complete":{"type":"boolean"},"rewrite_work":{"type":["object","null"],"properties":{"work_ref":{"type":"string","format":"uuid"},"message_ref":{"type":"string","format":"uuid"},"source_digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"state":{"type":"string","enum":["queued","running","done","failed","uncertain"]},"replacement_message_ref":{"type":["string","null"],"format":"uuid"},"error_code":{"type":["string","null"],"pattern":"^[A-Za-z][A-Za-z0-9_]{0,79}$"}},"required":["work_ref","message_ref","source_digest","state","replacement_message_ref","error_code"]}},"required":["workspace","message","history","history_complete","revisions","revisions_complete"]}}}},"400":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/workspace/campaign-messages/{message_ref}/revisions":{"post":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"message_ref","in":"path"},{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"request_ref":{"type":"string","format":"uuid"},"source_digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"expected_review_status":{"type":"string","enum":["pending","enroll_failed","approved"]},"changes":{"anyOf":[{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":3000}},"required":["text"],"additionalProperties":false},{"type":"object","properties":{"steps":{"type":"array","items":{"type":"object","properties":{"position":{"type":"integer","minimum":1,"maximum":6},"subject":{"type":"string","minLength":1,"maxLength":300},"text":{"type":"string","minLength":1,"maxLength":20000}},"required":["position","text"],"additionalProperties":false},"minItems":1,"maxItems":6}},"required":["steps"],"additionalProperties":false}]}},"required":["request_ref","source_digest","expected_review_status","changes"],"additionalProperties":false}}}},"responses":{"201":{"description":"Correct an actual still-unapproved per-lead saved draft into a new pending revision using exact source_digest/review state and idempotent request_ref. Preserve old bytes, person/signature, source and template/prompt/library provenance. Existing reviewer approval path applies; never approves or sends. Approved/sent/superseded messages and missing signature pins are rejected.","content":{"application/json":{"schema":{"type":"object","properties":{"workspace":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string","minLength":1,"maxLength":200},"state":{"type":"string","minLength":1}},"required":["workspace_ref","name","state"]},"message":{"type":"object","properties":{"message_ref":{"type":"string","format":"uuid"},"lead_ref":{"type":"string","format":"uuid"},"channel":{"type":"string","enum":["email","linkedin"]},"status":{"type":["string","null"]},"review_status":{"type":["string","null"]},"is_draft":{"type":["boolean","null"]},"content":{"type":"string"},"steps":{"type":["array","null"],"items":{"type":"object","properties":{"position":{"type":"integer","exclusiveMinimum":0},"subject":{"type":["string","null"]},"text":{"type":"string"}},"required":["position","subject","text"]}},"source_message_ref":{"type":["string","null"],"format":"uuid"},"sender_id":{"type":["string","null"],"format":"uuid"},"sender_version":{"type":["integer","null"],"exclusiveMinimum":0},"source_digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"created_at":{"type":"string","format":"date-time"},"account_id":{"type":["string","null"],"format":"uuid"},"sender_name":{"type":["string","null"]},"lead_name":{"type":["string","null"]},"lead_email":{"type":["string","null"]},"lead_linkedin_url":{"type":["string","null"]},"review_reason":{"type":["string","null"]},"action_ref":{"type":["string","null"],"format":"uuid"},"run_ref":{"type":["string","null"],"format":"uuid"},"campaign_ref":{"type":["string","null"],"format":"uuid"},"direction":{"type":"string","enum":["inbound","outbound"]},"delivery_state":{"type":"string","enum":["confirmed","scheduled","planned","unknown"]},"sent_at":{"type":["string","null"],"format":"date-time"},"subject":{"type":["string","null"]},"account_label":{"type":["string","null"]},"not_sent_cause":{"type":["string","null"],"enum":["account_disconnected","sender_unavailable","provider_rejected","unknown",null]},"action_blocked_reason":{"type":["string","null"],"enum":["historical_engine_retired"]},"copy_source":{"type":["string","null"],"minLength":1,"maxLength":100,"description":"Where the saved copy came from. `manual`: the person typed it directly in LinkedIn; Lifty recorded it but did not write or send it."}},"required":["message_ref","lead_ref","channel","status","review_status","is_draft","content","steps","source_message_ref","sender_id","sender_version","source_digest","created_at","account_id","sender_name","lead_name","lead_email","lead_linkedin_url","review_reason","action_ref","run_ref","campaign_ref","direction","delivery_state","sent_at"]},"history":{"type":"array","items":{"type":"object","properties":{"message_ref":{"type":"string","format":"uuid"},"lead_ref":{"type":"string","format":"uuid"},"channel":{"type":"string","enum":["email","linkedin"]},"status":{"type":["string","null"]},"review_status":{"type":["string","null"]},"is_draft":{"type":["boolean","null"]},"content":{"type":"string"},"steps":{"type":["array","null"],"items":{"type":"object","properties":{"position":{"type":"integer","exclusiveMinimum":0},"subject":{"type":["string","null"]},"text":{"type":"string"}},"required":["position","subject","text"]}},"source_message_ref":{"type":["string","null"],"format":"uuid"},"sender_id":{"type":["string","null"],"format":"uuid"},"sender_version":{"type":["integer","null"],"exclusiveMinimum":0},"source_digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"created_at":{"type":"string","format":"date-time"},"account_id":{"type":["string","null"],"format":"uuid"},"sender_name":{"type":["string","null"]},"lead_name":{"type":["string","null"]},"lead_email":{"type":["string","null"]},"lead_linkedin_url":{"type":["string","null"]},"review_reason":{"type":["string","null"]},"action_ref":{"type":["string","null"],"format":"uuid"},"run_ref":{"type":["string","null"],"format":"uuid"},"campaign_ref":{"type":["string","null"],"format":"uuid"},"direction":{"type":"string","enum":["inbound","outbound"]},"delivery_state":{"type":"string","enum":["confirmed","scheduled","planned","unknown"]},"sent_at":{"type":["string","null"],"format":"date-time"},"subject":{"type":["string","null"]},"account_label":{"type":["string","null"]},"not_sent_cause":{"type":["string","null"],"enum":["account_disconnected","sender_unavailable","provider_rejected","unknown",null]},"action_blocked_reason":{"type":["string","null"],"enum":["historical_engine_retired"]},"copy_source":{"type":["string","null"],"minLength":1,"maxLength":100,"description":"Where the saved copy came from. `manual`: the person typed it directly in LinkedIn; Lifty recorded it but did not write or send it."}},"required":["message_ref","lead_ref","channel","status","review_status","is_draft","content","steps","source_message_ref","sender_id","sender_version","source_digest","created_at","account_id","sender_name","lead_name","lead_email","lead_linkedin_url","review_reason","action_ref","run_ref","campaign_ref","direction","delivery_state","sent_at"]},"maxItems":100},"history_complete":{"type":"boolean"},"revisions":{"type":"array","items":{"type":"object","properties":{"message_ref":{"type":"string","format":"uuid"},"lead_ref":{"type":"string","format":"uuid"},"channel":{"type":"string","enum":["email","linkedin"]},"status":{"type":["string","null"]},"review_status":{"type":["string","null"]},"is_draft":{"type":["boolean","null"]},"content":{"type":"string"},"steps":{"type":["array","null"],"items":{"type":"object","properties":{"position":{"type":"integer","exclusiveMinimum":0},"subject":{"type":["string","null"]},"text":{"type":"string"}},"required":["position","subject","text"]}},"source_message_ref":{"type":["string","null"],"format":"uuid"},"sender_id":{"type":["string","null"],"format":"uuid"},"sender_version":{"type":["integer","null"],"exclusiveMinimum":0},"source_digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"created_at":{"type":"string","format":"date-time"},"account_id":{"type":["string","null"],"format":"uuid"},"sender_name":{"type":["string","null"]},"lead_name":{"type":["string","null"]},"lead_email":{"type":["string","null"]},"lead_linkedin_url":{"type":["string","null"]},"review_reason":{"type":["string","null"]},"action_ref":{"type":["string","null"],"format":"uuid"},"run_ref":{"type":["string","null"],"format":"uuid"},"campaign_ref":{"type":["string","null"],"format":"uuid"},"direction":{"type":"string","enum":["inbound","outbound"]},"delivery_state":{"type":"string","enum":["confirmed","scheduled","planned","unknown"]},"sent_at":{"type":["string","null"],"format":"date-time"},"subject":{"type":["string","null"]},"account_label":{"type":["string","null"]},"not_sent_cause":{"type":["string","null"],"enum":["account_disconnected","sender_unavailable","provider_rejected","unknown",null]},"action_blocked_reason":{"type":["string","null"],"enum":["historical_engine_retired"]},"copy_source":{"type":["string","null"],"minLength":1,"maxLength":100,"description":"Where the saved copy came from. `manual`: the person typed it directly in LinkedIn; Lifty recorded it but did not write or send it."}},"required":["message_ref","lead_ref","channel","status","review_status","is_draft","content","steps","source_message_ref","sender_id","sender_version","source_digest","created_at","account_id","sender_name","lead_name","lead_email","lead_linkedin_url","review_reason","action_ref","run_ref","campaign_ref","direction","delivery_state","sent_at"]},"maxItems":100},"revisions_complete":{"type":"boolean"},"rewrite_work":{"type":["object","null"],"properties":{"work_ref":{"type":"string","format":"uuid"},"message_ref":{"type":"string","format":"uuid"},"source_digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"state":{"type":"string","enum":["queued","running","done","failed","uncertain"]},"replacement_message_ref":{"type":["string","null"],"format":"uuid"},"error_code":{"type":["string","null"],"pattern":"^[A-Za-z][A-Za-z0-9_]{0,79}$"}},"required":["work_ref","message_ref","source_digest","state","replacement_message_ref","error_code"]}},"required":["workspace","message","history","history_complete","revisions","revisions_complete"]}}}},"400":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/workspace/campaigns/{campaign_ref}/tests":{"get":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"campaign_ref","in":"path"},{"schema":{"type":"integer","minimum":1,"maximum":100},"required":false,"name":"limit","in":"query"},{"schema":{"type":"string","format":"uuid"},"required":false,"name":"cursor","in":"query"},{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"responses":{"200":{"description":"Discover durable saved test receipts after a lost response or in a fresh session. Paginated summaries contain no output bodies.","content":{"application/json":{"schema":{"type":"object","properties":{"workspace":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string","minLength":1,"maxLength":200},"state":{"type":"string","minLength":1}},"required":["workspace_ref","name","state"]},"tests":{"type":"array","items":{"type":"object","properties":{"test_ref":{"type":"string","format":"uuid"},"request_ref":{"type":"string","format":"uuid"},"campaign_ref":{"type":"string","format":"uuid"},"revision_ref":{"type":"string","format":"uuid"},"digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"baseline_test_ref":{"type":["string","null"],"format":"uuid"},"status":{"type":"string","enum":["queued","running","completed","failed"]},"created_at":{"type":"string","format":"date-time"}},"required":["test_ref","request_ref","campaign_ref","revision_ref","digest","baseline_test_ref","status","created_at"]},"maxItems":100},"next_cursor":{"type":["string","null"],"format":"uuid"}},"required":["workspace","tests","next_cursor"]}}}},"400":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}},"post":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"campaign_ref","in":"path"},{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"revision_ref":{"type":"string","format":"uuid"},"digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"expected_version":{"type":"integer","exclusiveMinimum":0},"request_ref":{"type":"string","format":"uuid"},"sample":{"anyOf":[{"type":"object","properties":{"lead_refs":{"type":"array","items":{"type":"string","format":"uuid"},"minItems":1,"maxItems":20},"opener":{"type":"string","enum":["cold","linkedin_bridge"]}},"required":["lead_refs"],"additionalProperties":false},{"type":"object","properties":{"baseline_test_ref":{"type":"string","format":"uuid"},"opener":{"type":"string","enum":["cold","linkedin_bridge"]}},"required":["baseline_test_ref"],"additionalProperties":false}]}},"required":["revision_ref","digest","expected_version","request_ref","sample"],"additionalProperties":false}}}},"responses":{"202":{"description":"Queue an isolated saved candidate test with exact revision/digest/CAS and idempotent request_ref. Sample at most 20 explicit leads or reuse a completed baseline's exact leads and saved before outputs. Compose after only; disclose changed context. Preview person is provenance, never lead assignment. Does not enroll, approve, activate or send.","content":{"application/json":{"schema":{"type":"object","properties":{"workspace":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string","minLength":1,"maxLength":200},"state":{"type":"string","minLength":1}},"required":["workspace_ref","name","state"]},"test":{"type":"object","properties":{"test_ref":{"type":"string","format":"uuid"},"request_ref":{"type":"string","format":"uuid"},"campaign_ref":{"type":"string","format":"uuid"},"revision_ref":{"type":"string","format":"uuid"},"digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"baseline_test_ref":{"type":["string","null"],"format":"uuid"},"status":{"type":"string","enum":["queued","running","completed","failed"]},"created_at":{"type":"string","format":"date-time"},"samples":{"type":"array","items":{"type":"object","properties":{"lead_ref":{"type":"string","format":"uuid"},"lab_run_ref":{"type":"string","format":"uuid"},"status":{"type":"string","enum":["queued","running","succeeded","failed","canceled"]},"lane":{"type":["string","null"]},"opener":{"type":["string","null"],"enum":["cold","linkedin_bridge",null]},"output":{"type":["object","null"],"properties":{"output_ref":{"type":"string","format":"uuid"},"digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"created_at":{"type":"string","format":"date-time"},"content":{"anyOf":[{"type":"object","properties":{"linkedin_messages":{"type":"array","items":{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":3000}},"required":["text"]},"minItems":1,"maxItems":3}},"required":["linkedin_messages"]},{"type":"object","properties":{"email_steps":{"type":"array","items":{"type":"object","properties":{"subject":{"type":"string","minLength":1,"maxLength":300},"text":{"type":"string","minLength":1,"maxLength":20000},"delay_minutes":{"type":"integer","minimum":0,"maximum":43200}},"required":["subject","text","delay_minutes"]},"minItems":1,"maxItems":5}},"required":["email_steps"]}]},"selection":{"type":"object","properties":{"lane":{"type":["string","null"]},"opener":{"type":["string","null"],"enum":["cold","linkedin_bridge",null]},"template_ids":{"type":"array","items":{"type":"string","minLength":1,"maxLength":100},"minItems":1,"maxItems":5},"approach_type":{"type":"string","enum":["direct","pain","personal","strategic"]}},"required":["lane","opener"]},"context":{"type":"object","properties":{"revision_ref":{"type":"string","format":"uuid"},"digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"profile_version":{"type":"integer","exclusiveMinimum":0},"voice_version":{"type":"integer","minimum":0},"sender_id":{"type":"string","format":"uuid"},"sender_version":{"type":"integer","exclusiveMinimum":0},"prompt_digest":{"type":"string","pattern":"^[a-f0-9]{64}$"}},"required":["revision_ref","digest","profile_version","voice_version","sender_id","sender_version","prompt_digest"]}},"required":["output_ref","digest","created_at","content","selection","context"]},"baseline_output":{"type":["object","null"],"properties":{"output_ref":{"type":"string","format":"uuid"},"digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"created_at":{"type":"string","format":"date-time"},"content":{"anyOf":[{"type":"object","properties":{"linkedin_messages":{"type":"array","items":{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":3000}},"required":["text"]},"minItems":1,"maxItems":3}},"required":["linkedin_messages"]},{"type":"object","properties":{"email_steps":{"type":"array","items":{"type":"object","properties":{"subject":{"type":"string","minLength":1,"maxLength":300},"text":{"type":"string","minLength":1,"maxLength":20000},"delay_minutes":{"type":"integer","minimum":0,"maximum":43200}},"required":["subject","text","delay_minutes"]},"minItems":1,"maxItems":5}},"required":["email_steps"]}]},"selection":{"type":"object","properties":{"lane":{"type":["string","null"]},"opener":{"type":["string","null"],"enum":["cold","linkedin_bridge",null]},"template_ids":{"type":"array","items":{"type":"string","minLength":1,"maxLength":100},"minItems":1,"maxItems":5},"approach_type":{"type":"string","enum":["direct","pain","personal","strategic"]}},"required":["lane","opener"]},"context":{"type":"object","properties":{"revision_ref":{"type":"string","format":"uuid"},"digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"profile_version":{"type":"integer","exclusiveMinimum":0},"voice_version":{"type":"integer","minimum":0},"sender_id":{"type":"string","format":"uuid"},"sender_version":{"type":"integer","exclusiveMinimum":0},"prompt_digest":{"type":"string","pattern":"^[a-f0-9]{64}$"}},"required":["revision_ref","digest","profile_version","voice_version","sender_id","sender_version","prompt_digest"]}},"required":["output_ref","digest","created_at","content","selection","context"]},"changes":{"type":"array","items":{"type":"string","enum":["research_changed","lead_facts_changed","sender_changed","business_changed","composition_context_changed"]}},"failure":{"type":["object","null"],"properties":{"code":{"type":"string","enum":["composition_held","composition_configuration_invalid","composition_context_unavailable","composition_context_mismatch","composition_templates_unavailable","composition_approaches_unavailable","composition_research_mismatch","composition_receipt_invalid","composition_quality_hold","composition_unexpected","composition_lead_data_missing"]},"stage":{"type":"string","enum":["identity","version","sender_identity","compose","signing"]},"position":{"type":"integer","minimum":1,"maximum":5,"description":"The Campaign step involved, when known."},"cause":{"type":"string","pattern":"^[A-Za-z][A-Za-z0-9_.]{0,63}$"},"http_status":{"type":"integer","minimum":100,"maximum":599},"message":{"type":"string","minLength":1,"maxLength":400,"description":"Founder-facing reason to relay; the API adds it."}},"required":["code"]}},"required":["lead_ref","lab_run_ref","status","lane","opener","output","baseline_output","changes"]},"minItems":1,"maxItems":20}},"required":["test_ref","request_ref","campaign_ref","revision_ref","digest","baseline_test_ref","status","created_at","samples"]}},"required":["workspace","test"]}}}},"400":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/workspace/campaigns/{campaign_ref}/tests/{test_ref}":{"get":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"campaign_ref","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"test_ref","in":"path"},{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"responses":{"200":{"description":"Read saved signed test outputs and exact provenance. Pending is authoritative; baseline outputs are never regenerated.","content":{"application/json":{"schema":{"type":"object","properties":{"workspace":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string","minLength":1,"maxLength":200},"state":{"type":"string","minLength":1}},"required":["workspace_ref","name","state"]},"test":{"type":"object","properties":{"test_ref":{"type":"string","format":"uuid"},"request_ref":{"type":"string","format":"uuid"},"campaign_ref":{"type":"string","format":"uuid"},"revision_ref":{"type":"string","format":"uuid"},"digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"baseline_test_ref":{"type":["string","null"],"format":"uuid"},"status":{"type":"string","enum":["queued","running","completed","failed"]},"created_at":{"type":"string","format":"date-time"},"samples":{"type":"array","items":{"type":"object","properties":{"lead_ref":{"type":"string","format":"uuid"},"lab_run_ref":{"type":"string","format":"uuid"},"status":{"type":"string","enum":["queued","running","succeeded","failed","canceled"]},"lane":{"type":["string","null"]},"opener":{"type":["string","null"],"enum":["cold","linkedin_bridge",null]},"output":{"type":["object","null"],"properties":{"output_ref":{"type":"string","format":"uuid"},"digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"created_at":{"type":"string","format":"date-time"},"content":{"anyOf":[{"type":"object","properties":{"linkedin_messages":{"type":"array","items":{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":3000}},"required":["text"]},"minItems":1,"maxItems":3}},"required":["linkedin_messages"]},{"type":"object","properties":{"email_steps":{"type":"array","items":{"type":"object","properties":{"subject":{"type":"string","minLength":1,"maxLength":300},"text":{"type":"string","minLength":1,"maxLength":20000},"delay_minutes":{"type":"integer","minimum":0,"maximum":43200}},"required":["subject","text","delay_minutes"]},"minItems":1,"maxItems":5}},"required":["email_steps"]}]},"selection":{"type":"object","properties":{"lane":{"type":["string","null"]},"opener":{"type":["string","null"],"enum":["cold","linkedin_bridge",null]},"template_ids":{"type":"array","items":{"type":"string","minLength":1,"maxLength":100},"minItems":1,"maxItems":5},"approach_type":{"type":"string","enum":["direct","pain","personal","strategic"]}},"required":["lane","opener"]},"context":{"type":"object","properties":{"revision_ref":{"type":"string","format":"uuid"},"digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"profile_version":{"type":"integer","exclusiveMinimum":0},"voice_version":{"type":"integer","minimum":0},"sender_id":{"type":"string","format":"uuid"},"sender_version":{"type":"integer","exclusiveMinimum":0},"prompt_digest":{"type":"string","pattern":"^[a-f0-9]{64}$"}},"required":["revision_ref","digest","profile_version","voice_version","sender_id","sender_version","prompt_digest"]}},"required":["output_ref","digest","created_at","content","selection","context"]},"baseline_output":{"type":["object","null"],"properties":{"output_ref":{"type":"string","format":"uuid"},"digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"created_at":{"type":"string","format":"date-time"},"content":{"anyOf":[{"type":"object","properties":{"linkedin_messages":{"type":"array","items":{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":3000}},"required":["text"]},"minItems":1,"maxItems":3}},"required":["linkedin_messages"]},{"type":"object","properties":{"email_steps":{"type":"array","items":{"type":"object","properties":{"subject":{"type":"string","minLength":1,"maxLength":300},"text":{"type":"string","minLength":1,"maxLength":20000},"delay_minutes":{"type":"integer","minimum":0,"maximum":43200}},"required":["subject","text","delay_minutes"]},"minItems":1,"maxItems":5}},"required":["email_steps"]}]},"selection":{"type":"object","properties":{"lane":{"type":["string","null"]},"opener":{"type":["string","null"],"enum":["cold","linkedin_bridge",null]},"template_ids":{"type":"array","items":{"type":"string","minLength":1,"maxLength":100},"minItems":1,"maxItems":5},"approach_type":{"type":"string","enum":["direct","pain","personal","strategic"]}},"required":["lane","opener"]},"context":{"type":"object","properties":{"revision_ref":{"type":"string","format":"uuid"},"digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"profile_version":{"type":"integer","exclusiveMinimum":0},"voice_version":{"type":"integer","minimum":0},"sender_id":{"type":"string","format":"uuid"},"sender_version":{"type":"integer","exclusiveMinimum":0},"prompt_digest":{"type":"string","pattern":"^[a-f0-9]{64}$"}},"required":["revision_ref","digest","profile_version","voice_version","sender_id","sender_version","prompt_digest"]}},"required":["output_ref","digest","created_at","content","selection","context"]},"changes":{"type":"array","items":{"type":"string","enum":["research_changed","lead_facts_changed","sender_changed","business_changed","composition_context_changed"]}},"failure":{"type":["object","null"],"properties":{"code":{"type":"string","enum":["composition_held","composition_configuration_invalid","composition_context_unavailable","composition_context_mismatch","composition_templates_unavailable","composition_approaches_unavailable","composition_research_mismatch","composition_receipt_invalid","composition_quality_hold","composition_unexpected","composition_lead_data_missing"]},"stage":{"type":"string","enum":["identity","version","sender_identity","compose","signing"]},"position":{"type":"integer","minimum":1,"maximum":5,"description":"The Campaign step involved, when known."},"cause":{"type":"string","pattern":"^[A-Za-z][A-Za-z0-9_.]{0,63}$"},"http_status":{"type":"integer","minimum":100,"maximum":599},"message":{"type":"string","minLength":1,"maxLength":400,"description":"Founder-facing reason to relay; the API adds it."}},"required":["code"]}},"required":["lead_ref","lab_run_ref","status","lane","opener","output","baseline_output","changes"]},"minItems":1,"maxItems":20}},"required":["test_ref","request_ref","campaign_ref","revision_ref","digest","baseline_test_ref","status","created_at","samples"]}},"required":["workspace","test"]}}}},"400":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/workspace/campaigns":{"get":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":100},"required":false,"name":"limit","in":"query"},{"schema":{"type":"string","format":"uuid"},"required":false,"name":"cursor","in":"query"},{"schema":{"type":"string","format":"uuid"},"required":false,"name":"journey_ref","in":"query"},{"schema":{"type":"string","enum":["linkedin","email"]},"required":false,"name":"channel","in":"query"},{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"responses":{"200":{"description":"Read channel Campaigns, optionally by journey_ref or channel. Uses the selected workspace; no provider selector.","content":{"application/json":{"schema":{"type":"object","properties":{"workspace":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string","minLength":1,"maxLength":200},"state":{"type":"string","minLength":1}},"required":["workspace_ref","name","state"]},"campaigns":{"type":"array","items":{"type":"object","properties":{"campaign_ref":{"type":"string","format":"uuid"},"journey_ref":{"type":"string","format":"uuid"},"channel":{"type":"string","enum":["email","linkedin"]},"version":{"type":"integer","exclusiveMinimum":0},"name":{"type":"string","minLength":1,"maxLength":200},"state":{"type":"string","enum":["inactive","active","paused"]},"active_revision":{"type":["object","null"],"properties":{"revision_ref":{"type":"string","format":"uuid"},"digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"approval":{"anyOf":[{"type":"object","properties":{"actor_ref":{"type":"string","format":"uuid"},"approved_at":{"type":"string","format":"date-time"}},"required":["actor_ref","approved_at"]},{"type":"object","properties":{"actor_ref":{"type":"null"},"approved_at":{"type":"string","format":"date-time"},"origin":{"type":"string","enum":["slack"]},"decision_ref":{"type":"string","format":"uuid"},"source_decision_ref":{"type":"string","format":"uuid"},"proposal_ref":{"type":"string","format":"uuid"},"option_ref":{"type":"string","format":"uuid"},"slack":{"type":"object","properties":{"user_id":{"type":"string","minLength":1},"team_id":{"type":"string","minLength":1},"channel_id":{"type":"string","minLength":1},"message_ts":{"type":"string","minLength":1}},"required":["user_id","team_id","channel_id","message_ts"]}},"required":["actor_ref","approved_at","origin","decision_ref","source_decision_ref","proposal_ref","option_ref","slack"]},{"type":"object","properties":{"actor_ref":{"type":"null"},"approved_at":{"type":"string","format":"date-time"},"origin":{"type":"string","enum":["system"]},"decision_ref":{"type":"string","format":"uuid"},"source_decision_ref":{"type":"string","format":"uuid"},"proposal_ref":{"type":"string","format":"uuid"},"option_ref":{"type":"string","format":"uuid"},"system":{"type":"object","properties":{"policy":{"type":"string","minLength":1}},"required":["policy"]}},"required":["actor_ref","approved_at","origin","decision_ref","source_decision_ref","proposal_ref","option_ref","system"]},{"type":"null"}]}},"required":["revision_ref","digest","approval"]},"draft_revision":{"type":"object","properties":{"revision_ref":{"type":"string","format":"uuid"},"digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"approval":{"anyOf":[{"type":"object","properties":{"actor_ref":{"type":"string","format":"uuid"},"approved_at":{"type":"string","format":"date-time"}},"required":["actor_ref","approved_at"]},{"type":"object","properties":{"actor_ref":{"type":"null"},"approved_at":{"type":"string","format":"date-time"},"origin":{"type":"string","enum":["slack"]},"decision_ref":{"type":"string","format":"uuid"},"source_decision_ref":{"type":"string","format":"uuid"},"proposal_ref":{"type":"string","format":"uuid"},"option_ref":{"type":"string","format":"uuid"},"slack":{"type":"object","properties":{"user_id":{"type":"string","minLength":1},"team_id":{"type":"string","minLength":1},"channel_id":{"type":"string","minLength":1},"message_ts":{"type":"string","minLength":1}},"required":["user_id","team_id","channel_id","message_ts"]}},"required":["actor_ref","approved_at","origin","decision_ref","source_decision_ref","proposal_ref","option_ref","slack"]},{"type":"object","properties":{"actor_ref":{"type":"null"},"approved_at":{"type":"string","format":"date-time"},"origin":{"type":"string","enum":["system"]},"decision_ref":{"type":"string","format":"uuid"},"source_decision_ref":{"type":"string","format":"uuid"},"proposal_ref":{"type":"string","format":"uuid"},"option_ref":{"type":"string","format":"uuid"},"system":{"type":"object","properties":{"policy":{"type":"string","minLength":1}},"required":["policy"]}},"required":["actor_ref","approved_at","origin","decision_ref","source_decision_ref","proposal_ref","option_ref","system"]},{"type":"null"}]}},"required":["revision_ref","digest","approval"]}},"required":["campaign_ref","journey_ref","channel","version","name","state","active_revision","draft_revision"]},"maxItems":100},"next_cursor":{"type":["string","null"],"format":"uuid"}},"required":["workspace","campaigns","next_cursor"]}}}},"400":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}},"post":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"journey_ref":{"type":"string","format":"uuid"},"channel":{"type":"string","enum":["linkedin","email"]},"policy":{"type":"object","properties":{"start":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["journey_start"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["sent"]},"campaign_ref":{"type":"string","format":"uuid"},"step":{"type":"integer","minimum":1,"maximum":10},"after":{"anyOf":[{"type":"object","properties":{"days":{"type":"integer","minimum":0,"maximum":365}},"required":["days"],"additionalProperties":false},{"type":"object","properties":{"business_days":{"type":"integer","minimum":0,"maximum":365}},"required":["business_days"],"additionalProperties":false}]}},"required":["type","campaign_ref","step","after"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["unaccepted"]},"campaign_ref":{"type":"string","format":"uuid"},"after":{"type":"object","properties":{"business_days":{"type":"integer","minimum":0,"maximum":365}},"required":["business_days"],"additionalProperties":false}},"required":["type","campaign_ref","after"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["linkedin_first_dm_skipped"]},"campaign_ref":{"type":"string","format":"uuid"}},"required":["type","campaign_ref"],"additionalProperties":false}]},"minItems":1,"maxItems":3},"steps":{"type":"array","items":{"type":"object","properties":{"position":{"type":"integer","minimum":1,"maximum":5},"delay":{"anyOf":[{"type":"object","properties":{"days":{"type":"integer","minimum":0,"maximum":365}},"required":["days"],"additionalProperties":false},{"type":"object","properties":{"business_days":{"type":"integer","minimum":0,"maximum":365}},"required":["business_days"],"additionalProperties":false}]},"template":{"type":"object","properties":{"subject":{"type":"string","minLength":1,"maxLength":300},"text":{"type":"string","minLength":1,"maxLength":20000},"display_name":{"type":"string","minLength":1,"maxLength":100},"id":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9._-]+$"},"arms":{"type":"array","items":{"type":"string","enum":["direct","pain","personal","strategic"]},"minItems":1,"maxItems":4},"variant":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9._-]+$"},"coverage":{"type":"string","enum":["broad","signal_specific"]},"fit":{"type":"string","minLength":1,"maxLength":2000},"slots_spec":{"type":"string","minLength":1,"maxLength":4000,"description":"Free-form guidance the writer reads about the slots this template's subject and text use. The text defines the slots; this spec never adds or removes one."}},"required":["text"],"additionalProperties":false},"variants":{"type":"array","items":{"type":"object","properties":{"subject":{"type":"string","minLength":1,"maxLength":300},"text":{"type":"string","minLength":1,"maxLength":20000},"display_name":{"type":"string","minLength":1,"maxLength":100},"id":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9._-]+$"},"arms":{"type":"array","items":{"type":"string","enum":["direct","pain","personal","strategic"]},"minItems":1,"maxItems":4},"variant":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9._-]+$"},"coverage":{"type":"string","enum":["broad","signal_specific"]},"fit":{"type":"string","minLength":1,"maxLength":2000},"slots_spec":{"type":"string","minLength":1,"maxLength":4000,"description":"Free-form guidance the writer reads about the slots this template's subject and text use. The text defines the slots; this spec never adds or removes one."},"lane":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,39}$"},"opener":{"type":"string","enum":["cold","linkedin_bridge"]}},"required":["text"],"additionalProperties":false},"minItems":1,"maxItems":40},"writing_instructions":{"type":"string","minLength":1,"maxLength":10000,"description":"Optional guidance for this message in generate mode; preserves campaign-wide instructions and Business voice."}},"required":["position","delay"],"additionalProperties":false},"minItems":1,"maxItems":5,"description":"The saved sequence owns its count. Executable adapter: LinkedIn invitation then 1–3 messages, the first waiting its delay after acceptance; email 1–5 steps with delays up to 30 days or business days."},"compose_mode":{"type":"string","enum":["generate","templates"]},"instructions":{"type":"string","maxLength":30000},"lanes":{"type":"object","properties":{"field":{"type":"string","enum":["title"]},"default":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,39}$"},"rules":{"type":"array","items":{"type":"object","properties":{"lane":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,39}$"},"contains_any":{"type":"array","items":{"type":"string","minLength":1,"maxLength":60},"minItems":1,"maxItems":20},"search_lane_in":{"type":"array","items":{"type":"string","format":"uuid"},"minItems":1,"maxItems":20},"research_field":{"type":"string","minLength":1,"maxLength":100},"equals_any":{"type":"array","items":{"type":"string","minLength":1,"maxLength":60},"minItems":1,"maxItems":20}},"required":["lane"],"additionalProperties":false},"minItems":1,"maxItems":10}},"required":["default","rules"],"additionalProperties":false},"schedule":{"type":"object","properties":{"timezone":{"type":"string","minLength":1,"maxLength":100},"weekdays":{"type":"array","items":{"type":"integer","minimum":1,"maximum":7},"minItems":1,"maxItems":7},"start":{"type":"string","pattern":"^(?:[01]\\d|2[0-3]):[0-5]\\d$"},"end":{"type":"string","pattern":"^(?:[01]\\d|2[0-3]):[0-5]\\d$"}},"required":["timezone","weekdays","start","end"],"additionalProperties":false},"profile_version":{"type":"integer","exclusiveMinimum":0},"voice_version":{"type":"integer","minimum":0}},"required":["start","steps","compose_mode","instructions","schedule","profile_version","voice_version"],"additionalProperties":false}},"required":["name","journey_ref","channel","policy"],"additionalProperties":false}}}},"responses":{"201":{"description":"Save an inactive unapproved channel Campaign draft in a Journey: start rules (journey_start, sent/unaccepted relative to another Campaign, or Email after linkedin_first_dm_skipped), steps, templates or generated-writing instructions, delays and schedule. It names no senders: new Journeys go round-robin to every person with an account on a Journey channel that was not disconnected (email also needs their signature), and each lead keeps one person. Never sends.","content":{"application/json":{"schema":{"type":"object","properties":{"workspace":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string","minLength":1,"maxLength":200},"state":{"type":"string","minLength":1}},"required":["workspace_ref","name","state"]},"campaign":{"type":"object","properties":{"campaign_ref":{"type":"string","format":"uuid"},"journey_ref":{"type":"string","format":"uuid"},"channel":{"type":"string","enum":["email","linkedin"]},"version":{"type":"integer","exclusiveMinimum":0},"name":{"type":"string","minLength":1,"maxLength":200},"state":{"type":"string","enum":["inactive","active","paused"]},"active_revision":{"type":["object","null"],"properties":{"revision_ref":{"type":"string","format":"uuid"},"digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"content":{"type":"object","properties":{"start":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["journey_start"]}},"required":["type"]},{"type":"object","properties":{"type":{"type":"string","enum":["sent"]},"campaign_ref":{"type":"string","format":"uuid"},"step":{"type":"integer","minimum":1,"maximum":10},"after":{"anyOf":[{"type":"object","properties":{"days":{"type":"integer","minimum":0,"maximum":365}},"required":["days"]},{"type":"object","properties":{"business_days":{"type":"integer","minimum":0,"maximum":365}},"required":["business_days"]}]}},"required":["type","campaign_ref","step","after"]},{"type":"object","properties":{"type":{"type":"string","enum":["unaccepted"]},"campaign_ref":{"type":"string","format":"uuid"},"after":{"type":"object","properties":{"business_days":{"type":"integer","minimum":0,"maximum":365}},"required":["business_days"]}},"required":["type","campaign_ref","after"]},{"type":"object","properties":{"type":{"type":"string","enum":["linkedin_first_dm_skipped"]},"campaign_ref":{"type":"string","format":"uuid"}},"required":["type","campaign_ref"]}]},"minItems":1,"maxItems":3},"steps":{"type":"array","items":{"type":"object","properties":{"position":{"type":"integer","minimum":1,"maximum":5},"delay":{"anyOf":[{"type":"object","properties":{"days":{"type":"integer","minimum":0,"maximum":365}},"required":["days"]},{"type":"object","properties":{"business_days":{"type":"integer","minimum":0,"maximum":365}},"required":["business_days"]}]},"template":{"type":"object","properties":{"subject":{"type":"string","minLength":1,"maxLength":300},"text":{"type":"string","minLength":1,"maxLength":20000},"display_name":{"type":"string","minLength":1,"maxLength":100},"id":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9._-]+$"},"arms":{"type":"array","items":{"type":"string","enum":["direct","pain","personal","strategic"]},"minItems":1,"maxItems":4},"variant":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9._-]+$"},"coverage":{"type":"string","enum":["broad","signal_specific"]},"fit":{"type":"string","minLength":1,"maxLength":2000},"slots_spec":{"type":"string","minLength":1,"maxLength":4000,"description":"Free-form guidance the writer reads about the slots this template's subject and text use. The text defines the slots; this spec never adds or removes one."}},"required":["text"]},"variants":{"type":"array","items":{"type":"object","properties":{"subject":{"type":"string","minLength":1,"maxLength":300},"text":{"type":"string","minLength":1,"maxLength":20000},"display_name":{"type":"string","minLength":1,"maxLength":100},"id":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9._-]+$"},"arms":{"type":"array","items":{"type":"string","enum":["direct","pain","personal","strategic"]},"minItems":1,"maxItems":4},"variant":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9._-]+$"},"coverage":{"type":"string","enum":["broad","signal_specific"]},"fit":{"type":"string","minLength":1,"maxLength":2000},"slots_spec":{"type":"string","minLength":1,"maxLength":4000,"description":"Free-form guidance the writer reads about the slots this template's subject and text use. The text defines the slots; this spec never adds or removes one."},"lane":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,39}$"},"opener":{"type":"string","enum":["cold","linkedin_bridge"]}},"required":["text"]},"minItems":1,"maxItems":40},"writing_instructions":{"type":"string","minLength":1,"maxLength":10000,"description":"Optional guidance for this message in generate mode; preserves campaign-wide instructions and Business voice."}},"required":["position","delay"]},"minItems":1,"maxItems":5,"description":"The saved sequence owns its count. Executable adapter: LinkedIn invitation then 1–3 messages, the first waiting its delay after acceptance; email 1–5 steps with delays up to 30 days or business days."},"compose_mode":{"type":"string","enum":["generate","templates"]},"instructions":{"type":"string","maxLength":30000},"lanes":{"type":"object","properties":{"field":{"type":"string","enum":["title"]},"default":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,39}$"},"rules":{"type":"array","items":{"type":"object","properties":{"lane":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,39}$"},"contains_any":{"type":"array","items":{"type":"string","minLength":1,"maxLength":60},"minItems":1,"maxItems":20},"search_lane_in":{"type":"array","items":{"type":"string","format":"uuid"},"minItems":1,"maxItems":20},"research_field":{"type":"string","minLength":1,"maxLength":100},"equals_any":{"type":"array","items":{"type":"string","minLength":1,"maxLength":60},"minItems":1,"maxItems":20}},"required":["lane"]},"minItems":1,"maxItems":10}},"required":["default","rules"]},"schedule":{"type":"object","properties":{"timezone":{"type":"string","minLength":1,"maxLength":100},"weekdays":{"type":"array","items":{"type":"integer","minimum":1,"maximum":7},"minItems":1,"maxItems":7},"start":{"type":"string","pattern":"^(?:[01]\\d|2[0-3]):[0-5]\\d$"},"end":{"type":"string","pattern":"^(?:[01]\\d|2[0-3]):[0-5]\\d$"}},"required":["timezone","weekdays","start","end"]},"profile_version":{"type":"integer","exclusiveMinimum":0},"voice_version":{"type":"integer","minimum":0}},"required":["start","steps","compose_mode","instructions","schedule","profile_version","voice_version"]},"created_at":{"type":"string","format":"date-time"},"approval":{"anyOf":[{"type":"object","properties":{"actor_ref":{"type":"string","format":"uuid"},"approved_at":{"type":"string","format":"date-time"}},"required":["actor_ref","approved_at"]},{"type":"object","properties":{"actor_ref":{"type":"null"},"approved_at":{"type":"string","format":"date-time"},"origin":{"type":"string","enum":["slack"]},"decision_ref":{"type":"string","format":"uuid"},"source_decision_ref":{"type":"string","format":"uuid"},"proposal_ref":{"type":"string","format":"uuid"},"option_ref":{"type":"string","format":"uuid"},"slack":{"type":"object","properties":{"user_id":{"type":"string","minLength":1},"team_id":{"type":"string","minLength":1},"channel_id":{"type":"string","minLength":1},"message_ts":{"type":"string","minLength":1}},"required":["user_id","team_id","channel_id","message_ts"]}},"required":["actor_ref","approved_at","origin","decision_ref","source_decision_ref","proposal_ref","option_ref","slack"]},{"type":"object","properties":{"actor_ref":{"type":"null"},"approved_at":{"type":"string","format":"date-time"},"origin":{"type":"string","enum":["system"]},"decision_ref":{"type":"string","format":"uuid"},"source_decision_ref":{"type":"string","format":"uuid"},"proposal_ref":{"type":"string","format":"uuid"},"option_ref":{"type":"string","format":"uuid"},"system":{"type":"object","properties":{"policy":{"type":"string","minLength":1}},"required":["policy"]}},"required":["actor_ref","approved_at","origin","decision_ref","source_decision_ref","proposal_ref","option_ref","system"]},{"type":"null"}]}},"required":["revision_ref","digest","content","created_at","approval"]},"draft_revision":{"type":"object","properties":{"revision_ref":{"type":"string","format":"uuid"},"digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"content":{"type":"object","properties":{"start":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["journey_start"]}},"required":["type"]},{"type":"object","properties":{"type":{"type":"string","enum":["sent"]},"campaign_ref":{"type":"string","format":"uuid"},"step":{"type":"integer","minimum":1,"maximum":10},"after":{"anyOf":[{"type":"object","properties":{"days":{"type":"integer","minimum":0,"maximum":365}},"required":["days"]},{"type":"object","properties":{"business_days":{"type":"integer","minimum":0,"maximum":365}},"required":["business_days"]}]}},"required":["type","campaign_ref","step","after"]},{"type":"object","properties":{"type":{"type":"string","enum":["unaccepted"]},"campaign_ref":{"type":"string","format":"uuid"},"after":{"type":"object","properties":{"business_days":{"type":"integer","minimum":0,"maximum":365}},"required":["business_days"]}},"required":["type","campaign_ref","after"]},{"type":"object","properties":{"type":{"type":"string","enum":["linkedin_first_dm_skipped"]},"campaign_ref":{"type":"string","format":"uuid"}},"required":["type","campaign_ref"]}]},"minItems":1,"maxItems":3},"steps":{"type":"array","items":{"type":"object","properties":{"position":{"type":"integer","minimum":1,"maximum":5},"delay":{"anyOf":[{"type":"object","properties":{"days":{"type":"integer","minimum":0,"maximum":365}},"required":["days"]},{"type":"object","properties":{"business_days":{"type":"integer","minimum":0,"maximum":365}},"required":["business_days"]}]},"template":{"type":"object","properties":{"subject":{"type":"string","minLength":1,"maxLength":300},"text":{"type":"string","minLength":1,"maxLength":20000},"display_name":{"type":"string","minLength":1,"maxLength":100},"id":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9._-]+$"},"arms":{"type":"array","items":{"type":"string","enum":["direct","pain","personal","strategic"]},"minItems":1,"maxItems":4},"variant":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9._-]+$"},"coverage":{"type":"string","enum":["broad","signal_specific"]},"fit":{"type":"string","minLength":1,"maxLength":2000},"slots_spec":{"type":"string","minLength":1,"maxLength":4000,"description":"Free-form guidance the writer reads about the slots this template's subject and text use. The text defines the slots; this spec never adds or removes one."}},"required":["text"]},"variants":{"type":"array","items":{"type":"object","properties":{"subject":{"type":"string","minLength":1,"maxLength":300},"text":{"type":"string","minLength":1,"maxLength":20000},"display_name":{"type":"string","minLength":1,"maxLength":100},"id":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9._-]+$"},"arms":{"type":"array","items":{"type":"string","enum":["direct","pain","personal","strategic"]},"minItems":1,"maxItems":4},"variant":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9._-]+$"},"coverage":{"type":"string","enum":["broad","signal_specific"]},"fit":{"type":"string","minLength":1,"maxLength":2000},"slots_spec":{"type":"string","minLength":1,"maxLength":4000,"description":"Free-form guidance the writer reads about the slots this template's subject and text use. The text defines the slots; this spec never adds or removes one."},"lane":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,39}$"},"opener":{"type":"string","enum":["cold","linkedin_bridge"]}},"required":["text"]},"minItems":1,"maxItems":40},"writing_instructions":{"type":"string","minLength":1,"maxLength":10000,"description":"Optional guidance for this message in generate mode; preserves campaign-wide instructions and Business voice."}},"required":["position","delay"]},"minItems":1,"maxItems":5,"description":"The saved sequence owns its count. Executable adapter: LinkedIn invitation then 1–3 messages, the first waiting its delay after acceptance; email 1–5 steps with delays up to 30 days or business days."},"compose_mode":{"type":"string","enum":["generate","templates"]},"instructions":{"type":"string","maxLength":30000},"lanes":{"type":"object","properties":{"field":{"type":"string","enum":["title"]},"default":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,39}$"},"rules":{"type":"array","items":{"type":"object","properties":{"lane":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,39}$"},"contains_any":{"type":"array","items":{"type":"string","minLength":1,"maxLength":60},"minItems":1,"maxItems":20},"search_lane_in":{"type":"array","items":{"type":"string","format":"uuid"},"minItems":1,"maxItems":20},"research_field":{"type":"string","minLength":1,"maxLength":100},"equals_any":{"type":"array","items":{"type":"string","minLength":1,"maxLength":60},"minItems":1,"maxItems":20}},"required":["lane"]},"minItems":1,"maxItems":10}},"required":["default","rules"]},"schedule":{"type":"object","properties":{"timezone":{"type":"string","minLength":1,"maxLength":100},"weekdays":{"type":"array","items":{"type":"integer","minimum":1,"maximum":7},"minItems":1,"maxItems":7},"start":{"type":"string","pattern":"^(?:[01]\\d|2[0-3]):[0-5]\\d$"},"end":{"type":"string","pattern":"^(?:[01]\\d|2[0-3]):[0-5]\\d$"}},"required":["timezone","weekdays","start","end"]},"profile_version":{"type":"integer","exclusiveMinimum":0},"voice_version":{"type":"integer","minimum":0}},"required":["start","steps","compose_mode","instructions","schedule","profile_version","voice_version"]},"created_at":{"type":"string","format":"date-time"},"approval":{"anyOf":[{"type":"object","properties":{"actor_ref":{"type":"string","format":"uuid"},"approved_at":{"type":"string","format":"date-time"}},"required":["actor_ref","approved_at"]},{"type":"object","properties":{"actor_ref":{"type":"null"},"approved_at":{"type":"string","format":"date-time"},"origin":{"type":"string","enum":["slack"]},"decision_ref":{"type":"string","format":"uuid"},"source_decision_ref":{"type":"string","format":"uuid"},"proposal_ref":{"type":"string","format":"uuid"},"option_ref":{"type":"string","format":"uuid"},"slack":{"type":"object","properties":{"user_id":{"type":"string","minLength":1},"team_id":{"type":"string","minLength":1},"channel_id":{"type":"string","minLength":1},"message_ts":{"type":"string","minLength":1}},"required":["user_id","team_id","channel_id","message_ts"]}},"required":["actor_ref","approved_at","origin","decision_ref","source_decision_ref","proposal_ref","option_ref","slack"]},{"type":"object","properties":{"actor_ref":{"type":"null"},"approved_at":{"type":"string","format":"date-time"},"origin":{"type":"string","enum":["system"]},"decision_ref":{"type":"string","format":"uuid"},"source_decision_ref":{"type":"string","format":"uuid"},"proposal_ref":{"type":"string","format":"uuid"},"option_ref":{"type":"string","format":"uuid"},"system":{"type":"object","properties":{"policy":{"type":"string","minLength":1}},"required":["policy"]}},"required":["actor_ref","approved_at","origin","decision_ref","source_decision_ref","proposal_ref","option_ref","system"]},{"type":"null"}]}},"required":["revision_ref","digest","content","created_at","approval"]},"revisions":{"type":"array","items":{"type":"object","properties":{"revision_ref":{"type":"string","format":"uuid"},"digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"content":{"type":"object","properties":{"start":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["journey_start"]}},"required":["type"]},{"type":"object","properties":{"type":{"type":"string","enum":["sent"]},"campaign_ref":{"type":"string","format":"uuid"},"step":{"type":"integer","minimum":1,"maximum":10},"after":{"anyOf":[{"type":"object","properties":{"days":{"type":"integer","minimum":0,"maximum":365}},"required":["days"]},{"type":"object","properties":{"business_days":{"type":"integer","minimum":0,"maximum":365}},"required":["business_days"]}]}},"required":["type","campaign_ref","step","after"]},{"type":"object","properties":{"type":{"type":"string","enum":["unaccepted"]},"campaign_ref":{"type":"string","format":"uuid"},"after":{"type":"object","properties":{"business_days":{"type":"integer","minimum":0,"maximum":365}},"required":["business_days"]}},"required":["type","campaign_ref","after"]},{"type":"object","properties":{"type":{"type":"string","enum":["linkedin_first_dm_skipped"]},"campaign_ref":{"type":"string","format":"uuid"}},"required":["type","campaign_ref"]}]},"minItems":1,"maxItems":3},"steps":{"type":"array","items":{"type":"object","properties":{"position":{"type":"integer","minimum":1,"maximum":5},"delay":{"anyOf":[{"type":"object","properties":{"days":{"type":"integer","minimum":0,"maximum":365}},"required":["days"]},{"type":"object","properties":{"business_days":{"type":"integer","minimum":0,"maximum":365}},"required":["business_days"]}]},"template":{"type":"object","properties":{"subject":{"type":"string","minLength":1,"maxLength":300},"text":{"type":"string","minLength":1,"maxLength":20000},"display_name":{"type":"string","minLength":1,"maxLength":100},"id":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9._-]+$"},"arms":{"type":"array","items":{"type":"string","enum":["direct","pain","personal","strategic"]},"minItems":1,"maxItems":4},"variant":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9._-]+$"},"coverage":{"type":"string","enum":["broad","signal_specific"]},"fit":{"type":"string","minLength":1,"maxLength":2000},"slots_spec":{"type":"string","minLength":1,"maxLength":4000,"description":"Free-form guidance the writer reads about the slots this template's subject and text use. The text defines the slots; this spec never adds or removes one."}},"required":["text"]},"variants":{"type":"array","items":{"type":"object","properties":{"subject":{"type":"string","minLength":1,"maxLength":300},"text":{"type":"string","minLength":1,"maxLength":20000},"display_name":{"type":"string","minLength":1,"maxLength":100},"id":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9._-]+$"},"arms":{"type":"array","items":{"type":"string","enum":["direct","pain","personal","strategic"]},"minItems":1,"maxItems":4},"variant":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9._-]+$"},"coverage":{"type":"string","enum":["broad","signal_specific"]},"fit":{"type":"string","minLength":1,"maxLength":2000},"slots_spec":{"type":"string","minLength":1,"maxLength":4000,"description":"Free-form guidance the writer reads about the slots this template's subject and text use. The text defines the slots; this spec never adds or removes one."},"lane":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,39}$"},"opener":{"type":"string","enum":["cold","linkedin_bridge"]}},"required":["text"]},"minItems":1,"maxItems":40},"writing_instructions":{"type":"string","minLength":1,"maxLength":10000,"description":"Optional guidance for this message in generate mode; preserves campaign-wide instructions and Business voice."}},"required":["position","delay"]},"minItems":1,"maxItems":5,"description":"The saved sequence owns its count. Executable adapter: LinkedIn invitation then 1–3 messages, the first waiting its delay after acceptance; email 1–5 steps with delays up to 30 days or business days."},"compose_mode":{"type":"string","enum":["generate","templates"]},"instructions":{"type":"string","maxLength":30000},"lanes":{"type":"object","properties":{"field":{"type":"string","enum":["title"]},"default":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,39}$"},"rules":{"type":"array","items":{"type":"object","properties":{"lane":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,39}$"},"contains_any":{"type":"array","items":{"type":"string","minLength":1,"maxLength":60},"minItems":1,"maxItems":20},"search_lane_in":{"type":"array","items":{"type":"string","format":"uuid"},"minItems":1,"maxItems":20},"research_field":{"type":"string","minLength":1,"maxLength":100},"equals_any":{"type":"array","items":{"type":"string","minLength":1,"maxLength":60},"minItems":1,"maxItems":20}},"required":["lane"]},"minItems":1,"maxItems":10}},"required":["default","rules"]},"schedule":{"type":"object","properties":{"timezone":{"type":"string","minLength":1,"maxLength":100},"weekdays":{"type":"array","items":{"type":"integer","minimum":1,"maximum":7},"minItems":1,"maxItems":7},"start":{"type":"string","pattern":"^(?:[01]\\d|2[0-3]):[0-5]\\d$"},"end":{"type":"string","pattern":"^(?:[01]\\d|2[0-3]):[0-5]\\d$"}},"required":["timezone","weekdays","start","end"]},"profile_version":{"type":"integer","exclusiveMinimum":0},"voice_version":{"type":"integer","minimum":0}},"required":["start","steps","compose_mode","instructions","schedule","profile_version","voice_version"]},"created_at":{"type":"string","format":"date-time"},"approval":{"anyOf":[{"type":"object","properties":{"actor_ref":{"type":"string","format":"uuid"},"approved_at":{"type":"string","format":"date-time"}},"required":["actor_ref","approved_at"]},{"type":"object","properties":{"actor_ref":{"type":"null"},"approved_at":{"type":"string","format":"date-time"},"origin":{"type":"string","enum":["slack"]},"decision_ref":{"type":"string","format":"uuid"},"source_decision_ref":{"type":"string","format":"uuid"},"proposal_ref":{"type":"string","format":"uuid"},"option_ref":{"type":"string","format":"uuid"},"slack":{"type":"object","properties":{"user_id":{"type":"string","minLength":1},"team_id":{"type":"string","minLength":1},"channel_id":{"type":"string","minLength":1},"message_ts":{"type":"string","minLength":1}},"required":["user_id","team_id","channel_id","message_ts"]}},"required":["actor_ref","approved_at","origin","decision_ref","source_decision_ref","proposal_ref","option_ref","slack"]},{"type":"object","properties":{"actor_ref":{"type":"null"},"approved_at":{"type":"string","format":"date-time"},"origin":{"type":"string","enum":["system"]},"decision_ref":{"type":"string","format":"uuid"},"source_decision_ref":{"type":"string","format":"uuid"},"proposal_ref":{"type":"string","format":"uuid"},"option_ref":{"type":"string","format":"uuid"},"system":{"type":"object","properties":{"policy":{"type":"string","minLength":1}},"required":["policy"]}},"required":["actor_ref","approved_at","origin","decision_ref","source_decision_ref","proposal_ref","option_ref","system"]},{"type":"null"}]}},"required":["revision_ref","digest","content","created_at","approval"]},"maxItems":100}},"required":["campaign_ref","journey_ref","channel","version","name","state","active_revision","draft_revision","revisions"]},"slots_spec_warnings":{"type":"object","properties":{"revision_ref":{"type":"string","format":"uuid"},"unused_placeholders":{"type":"array","items":{"type":"object","properties":{"position":{"type":"integer","exclusiveMinimum":0},"template":{"type":["string","null"]},"placeholder":{"type":"string"}},"required":["position","template","placeholder"]},"minItems":1}},"required":["revision_ref","unused_placeholders"],"description":"Placeholders a template's slots_spec names that its own subject and text do not use, in the published revision for publish and the draft otherwise. Warnings only; absent when there are none."}},"required":["workspace","campaign"]}}}},"400":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/workspace/campaigns/{campaign_ref}":{"get":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"campaign_ref","in":"path"},{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"responses":{"200":{"description":"Read one Campaign: start rules, sequence, templates or instructions, delays, schedule, its draft/approval history, the revision selected for new Journey starts and its intent (inactive, active or paused). Account readiness is independent.","content":{"application/json":{"schema":{"type":"object","properties":{"workspace":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string","minLength":1,"maxLength":200},"state":{"type":"string","minLength":1}},"required":["workspace_ref","name","state"]},"campaign":{"type":"object","properties":{"campaign_ref":{"type":"string","format":"uuid"},"journey_ref":{"type":"string","format":"uuid"},"channel":{"type":"string","enum":["email","linkedin"]},"version":{"type":"integer","exclusiveMinimum":0},"name":{"type":"string","minLength":1,"maxLength":200},"state":{"type":"string","enum":["inactive","active","paused"]},"active_revision":{"type":["object","null"],"properties":{"revision_ref":{"type":"string","format":"uuid"},"digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"content":{"type":"object","properties":{"start":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["journey_start"]}},"required":["type"]},{"type":"object","properties":{"type":{"type":"string","enum":["sent"]},"campaign_ref":{"type":"string","format":"uuid"},"step":{"type":"integer","minimum":1,"maximum":10},"after":{"anyOf":[{"type":"object","properties":{"days":{"type":"integer","minimum":0,"maximum":365}},"required":["days"]},{"type":"object","properties":{"business_days":{"type":"integer","minimum":0,"maximum":365}},"required":["business_days"]}]}},"required":["type","campaign_ref","step","after"]},{"type":"object","properties":{"type":{"type":"string","enum":["unaccepted"]},"campaign_ref":{"type":"string","format":"uuid"},"after":{"type":"object","properties":{"business_days":{"type":"integer","minimum":0,"maximum":365}},"required":["business_days"]}},"required":["type","campaign_ref","after"]},{"type":"object","properties":{"type":{"type":"string","enum":["linkedin_first_dm_skipped"]},"campaign_ref":{"type":"string","format":"uuid"}},"required":["type","campaign_ref"]}]},"minItems":1,"maxItems":3},"steps":{"type":"array","items":{"type":"object","properties":{"position":{"type":"integer","minimum":1,"maximum":5},"delay":{"anyOf":[{"type":"object","properties":{"days":{"type":"integer","minimum":0,"maximum":365}},"required":["days"]},{"type":"object","properties":{"business_days":{"type":"integer","minimum":0,"maximum":365}},"required":["business_days"]}]},"template":{"type":"object","properties":{"subject":{"type":"string","minLength":1,"maxLength":300},"text":{"type":"string","minLength":1,"maxLength":20000},"display_name":{"type":"string","minLength":1,"maxLength":100},"id":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9._-]+$"},"arms":{"type":"array","items":{"type":"string","enum":["direct","pain","personal","strategic"]},"minItems":1,"maxItems":4},"variant":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9._-]+$"},"coverage":{"type":"string","enum":["broad","signal_specific"]},"fit":{"type":"string","minLength":1,"maxLength":2000},"slots_spec":{"type":"string","minLength":1,"maxLength":4000,"description":"Free-form guidance the writer reads about the slots this template's subject and text use. The text defines the slots; this spec never adds or removes one."}},"required":["text"]},"variants":{"type":"array","items":{"type":"object","properties":{"subject":{"type":"string","minLength":1,"maxLength":300},"text":{"type":"string","minLength":1,"maxLength":20000},"display_name":{"type":"string","minLength":1,"maxLength":100},"id":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9._-]+$"},"arms":{"type":"array","items":{"type":"string","enum":["direct","pain","personal","strategic"]},"minItems":1,"maxItems":4},"variant":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9._-]+$"},"coverage":{"type":"string","enum":["broad","signal_specific"]},"fit":{"type":"string","minLength":1,"maxLength":2000},"slots_spec":{"type":"string","minLength":1,"maxLength":4000,"description":"Free-form guidance the writer reads about the slots this template's subject and text use. The text defines the slots; this spec never adds or removes one."},"lane":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,39}$"},"opener":{"type":"string","enum":["cold","linkedin_bridge"]}},"required":["text"]},"minItems":1,"maxItems":40},"writing_instructions":{"type":"string","minLength":1,"maxLength":10000,"description":"Optional guidance for this message in generate mode; preserves campaign-wide instructions and Business voice."}},"required":["position","delay"]},"minItems":1,"maxItems":5,"description":"The saved sequence owns its count. Executable adapter: LinkedIn invitation then 1–3 messages, the first waiting its delay after acceptance; email 1–5 steps with delays up to 30 days or business days."},"compose_mode":{"type":"string","enum":["generate","templates"]},"instructions":{"type":"string","maxLength":30000},"lanes":{"type":"object","properties":{"field":{"type":"string","enum":["title"]},"default":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,39}$"},"rules":{"type":"array","items":{"type":"object","properties":{"lane":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,39}$"},"contains_any":{"type":"array","items":{"type":"string","minLength":1,"maxLength":60},"minItems":1,"maxItems":20},"search_lane_in":{"type":"array","items":{"type":"string","format":"uuid"},"minItems":1,"maxItems":20},"research_field":{"type":"string","minLength":1,"maxLength":100},"equals_any":{"type":"array","items":{"type":"string","minLength":1,"maxLength":60},"minItems":1,"maxItems":20}},"required":["lane"]},"minItems":1,"maxItems":10}},"required":["default","rules"]},"schedule":{"type":"object","properties":{"timezone":{"type":"string","minLength":1,"maxLength":100},"weekdays":{"type":"array","items":{"type":"integer","minimum":1,"maximum":7},"minItems":1,"maxItems":7},"start":{"type":"string","pattern":"^(?:[01]\\d|2[0-3]):[0-5]\\d$"},"end":{"type":"string","pattern":"^(?:[01]\\d|2[0-3]):[0-5]\\d$"}},"required":["timezone","weekdays","start","end"]},"profile_version":{"type":"integer","exclusiveMinimum":0},"voice_version":{"type":"integer","minimum":0}},"required":["start","steps","compose_mode","instructions","schedule","profile_version","voice_version"]},"created_at":{"type":"string","format":"date-time"},"approval":{"anyOf":[{"type":"object","properties":{"actor_ref":{"type":"string","format":"uuid"},"approved_at":{"type":"string","format":"date-time"}},"required":["actor_ref","approved_at"]},{"type":"object","properties":{"actor_ref":{"type":"null"},"approved_at":{"type":"string","format":"date-time"},"origin":{"type":"string","enum":["slack"]},"decision_ref":{"type":"string","format":"uuid"},"source_decision_ref":{"type":"string","format":"uuid"},"proposal_ref":{"type":"string","format":"uuid"},"option_ref":{"type":"string","format":"uuid"},"slack":{"type":"object","properties":{"user_id":{"type":"string","minLength":1},"team_id":{"type":"string","minLength":1},"channel_id":{"type":"string","minLength":1},"message_ts":{"type":"string","minLength":1}},"required":["user_id","team_id","channel_id","message_ts"]}},"required":["actor_ref","approved_at","origin","decision_ref","source_decision_ref","proposal_ref","option_ref","slack"]},{"type":"object","properties":{"actor_ref":{"type":"null"},"approved_at":{"type":"string","format":"date-time"},"origin":{"type":"string","enum":["system"]},"decision_ref":{"type":"string","format":"uuid"},"source_decision_ref":{"type":"string","format":"uuid"},"proposal_ref":{"type":"string","format":"uuid"},"option_ref":{"type":"string","format":"uuid"},"system":{"type":"object","properties":{"policy":{"type":"string","minLength":1}},"required":["policy"]}},"required":["actor_ref","approved_at","origin","decision_ref","source_decision_ref","proposal_ref","option_ref","system"]},{"type":"null"}]}},"required":["revision_ref","digest","content","created_at","approval"]},"draft_revision":{"type":"object","properties":{"revision_ref":{"type":"string","format":"uuid"},"digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"content":{"type":"object","properties":{"start":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["journey_start"]}},"required":["type"]},{"type":"object","properties":{"type":{"type":"string","enum":["sent"]},"campaign_ref":{"type":"string","format":"uuid"},"step":{"type":"integer","minimum":1,"maximum":10},"after":{"anyOf":[{"type":"object","properties":{"days":{"type":"integer","minimum":0,"maximum":365}},"required":["days"]},{"type":"object","properties":{"business_days":{"type":"integer","minimum":0,"maximum":365}},"required":["business_days"]}]}},"required":["type","campaign_ref","step","after"]},{"type":"object","properties":{"type":{"type":"string","enum":["unaccepted"]},"campaign_ref":{"type":"string","format":"uuid"},"after":{"type":"object","properties":{"business_days":{"type":"integer","minimum":0,"maximum":365}},"required":["business_days"]}},"required":["type","campaign_ref","after"]},{"type":"object","properties":{"type":{"type":"string","enum":["linkedin_first_dm_skipped"]},"campaign_ref":{"type":"string","format":"uuid"}},"required":["type","campaign_ref"]}]},"minItems":1,"maxItems":3},"steps":{"type":"array","items":{"type":"object","properties":{"position":{"type":"integer","minimum":1,"maximum":5},"delay":{"anyOf":[{"type":"object","properties":{"days":{"type":"integer","minimum":0,"maximum":365}},"required":["days"]},{"type":"object","properties":{"business_days":{"type":"integer","minimum":0,"maximum":365}},"required":["business_days"]}]},"template":{"type":"object","properties":{"subject":{"type":"string","minLength":1,"maxLength":300},"text":{"type":"string","minLength":1,"maxLength":20000},"display_name":{"type":"string","minLength":1,"maxLength":100},"id":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9._-]+$"},"arms":{"type":"array","items":{"type":"string","enum":["direct","pain","personal","strategic"]},"minItems":1,"maxItems":4},"variant":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9._-]+$"},"coverage":{"type":"string","enum":["broad","signal_specific"]},"fit":{"type":"string","minLength":1,"maxLength":2000},"slots_spec":{"type":"string","minLength":1,"maxLength":4000,"description":"Free-form guidance the writer reads about the slots this template's subject and text use. The text defines the slots; this spec never adds or removes one."}},"required":["text"]},"variants":{"type":"array","items":{"type":"object","properties":{"subject":{"type":"string","minLength":1,"maxLength":300},"text":{"type":"string","minLength":1,"maxLength":20000},"display_name":{"type":"string","minLength":1,"maxLength":100},"id":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9._-]+$"},"arms":{"type":"array","items":{"type":"string","enum":["direct","pain","personal","strategic"]},"minItems":1,"maxItems":4},"variant":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9._-]+$"},"coverage":{"type":"string","enum":["broad","signal_specific"]},"fit":{"type":"string","minLength":1,"maxLength":2000},"slots_spec":{"type":"string","minLength":1,"maxLength":4000,"description":"Free-form guidance the writer reads about the slots this template's subject and text use. The text defines the slots; this spec never adds or removes one."},"lane":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,39}$"},"opener":{"type":"string","enum":["cold","linkedin_bridge"]}},"required":["text"]},"minItems":1,"maxItems":40},"writing_instructions":{"type":"string","minLength":1,"maxLength":10000,"description":"Optional guidance for this message in generate mode; preserves campaign-wide instructions and Business voice."}},"required":["position","delay"]},"minItems":1,"maxItems":5,"description":"The saved sequence owns its count. Executable adapter: LinkedIn invitation then 1–3 messages, the first waiting its delay after acceptance; email 1–5 steps with delays up to 30 days or business days."},"compose_mode":{"type":"string","enum":["generate","templates"]},"instructions":{"type":"string","maxLength":30000},"lanes":{"type":"object","properties":{"field":{"type":"string","enum":["title"]},"default":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,39}$"},"rules":{"type":"array","items":{"type":"object","properties":{"lane":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,39}$"},"contains_any":{"type":"array","items":{"type":"string","minLength":1,"maxLength":60},"minItems":1,"maxItems":20},"search_lane_in":{"type":"array","items":{"type":"string","format":"uuid"},"minItems":1,"maxItems":20},"research_field":{"type":"string","minLength":1,"maxLength":100},"equals_any":{"type":"array","items":{"type":"string","minLength":1,"maxLength":60},"minItems":1,"maxItems":20}},"required":["lane"]},"minItems":1,"maxItems":10}},"required":["default","rules"]},"schedule":{"type":"object","properties":{"timezone":{"type":"string","minLength":1,"maxLength":100},"weekdays":{"type":"array","items":{"type":"integer","minimum":1,"maximum":7},"minItems":1,"maxItems":7},"start":{"type":"string","pattern":"^(?:[01]\\d|2[0-3]):[0-5]\\d$"},"end":{"type":"string","pattern":"^(?:[01]\\d|2[0-3]):[0-5]\\d$"}},"required":["timezone","weekdays","start","end"]},"profile_version":{"type":"integer","exclusiveMinimum":0},"voice_version":{"type":"integer","minimum":0}},"required":["start","steps","compose_mode","instructions","schedule","profile_version","voice_version"]},"created_at":{"type":"string","format":"date-time"},"approval":{"anyOf":[{"type":"object","properties":{"actor_ref":{"type":"string","format":"uuid"},"approved_at":{"type":"string","format":"date-time"}},"required":["actor_ref","approved_at"]},{"type":"object","properties":{"actor_ref":{"type":"null"},"approved_at":{"type":"string","format":"date-time"},"origin":{"type":"string","enum":["slack"]},"decision_ref":{"type":"string","format":"uuid"},"source_decision_ref":{"type":"string","format":"uuid"},"proposal_ref":{"type":"string","format":"uuid"},"option_ref":{"type":"string","format":"uuid"},"slack":{"type":"object","properties":{"user_id":{"type":"string","minLength":1},"team_id":{"type":"string","minLength":1},"channel_id":{"type":"string","minLength":1},"message_ts":{"type":"string","minLength":1}},"required":["user_id","team_id","channel_id","message_ts"]}},"required":["actor_ref","approved_at","origin","decision_ref","source_decision_ref","proposal_ref","option_ref","slack"]},{"type":"object","properties":{"actor_ref":{"type":"null"},"approved_at":{"type":"string","format":"date-time"},"origin":{"type":"string","enum":["system"]},"decision_ref":{"type":"string","format":"uuid"},"source_decision_ref":{"type":"string","format":"uuid"},"proposal_ref":{"type":"string","format":"uuid"},"option_ref":{"type":"string","format":"uuid"},"system":{"type":"object","properties":{"policy":{"type":"string","minLength":1}},"required":["policy"]}},"required":["actor_ref","approved_at","origin","decision_ref","source_decision_ref","proposal_ref","option_ref","system"]},{"type":"null"}]}},"required":["revision_ref","digest","content","created_at","approval"]},"revisions":{"type":"array","items":{"type":"object","properties":{"revision_ref":{"type":"string","format":"uuid"},"digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"content":{"type":"object","properties":{"start":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["journey_start"]}},"required":["type"]},{"type":"object","properties":{"type":{"type":"string","enum":["sent"]},"campaign_ref":{"type":"string","format":"uuid"},"step":{"type":"integer","minimum":1,"maximum":10},"after":{"anyOf":[{"type":"object","properties":{"days":{"type":"integer","minimum":0,"maximum":365}},"required":["days"]},{"type":"object","properties":{"business_days":{"type":"integer","minimum":0,"maximum":365}},"required":["business_days"]}]}},"required":["type","campaign_ref","step","after"]},{"type":"object","properties":{"type":{"type":"string","enum":["unaccepted"]},"campaign_ref":{"type":"string","format":"uuid"},"after":{"type":"object","properties":{"business_days":{"type":"integer","minimum":0,"maximum":365}},"required":["business_days"]}},"required":["type","campaign_ref","after"]},{"type":"object","properties":{"type":{"type":"string","enum":["linkedin_first_dm_skipped"]},"campaign_ref":{"type":"string","format":"uuid"}},"required":["type","campaign_ref"]}]},"minItems":1,"maxItems":3},"steps":{"type":"array","items":{"type":"object","properties":{"position":{"type":"integer","minimum":1,"maximum":5},"delay":{"anyOf":[{"type":"object","properties":{"days":{"type":"integer","minimum":0,"maximum":365}},"required":["days"]},{"type":"object","properties":{"business_days":{"type":"integer","minimum":0,"maximum":365}},"required":["business_days"]}]},"template":{"type":"object","properties":{"subject":{"type":"string","minLength":1,"maxLength":300},"text":{"type":"string","minLength":1,"maxLength":20000},"display_name":{"type":"string","minLength":1,"maxLength":100},"id":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9._-]+$"},"arms":{"type":"array","items":{"type":"string","enum":["direct","pain","personal","strategic"]},"minItems":1,"maxItems":4},"variant":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9._-]+$"},"coverage":{"type":"string","enum":["broad","signal_specific"]},"fit":{"type":"string","minLength":1,"maxLength":2000},"slots_spec":{"type":"string","minLength":1,"maxLength":4000,"description":"Free-form guidance the writer reads about the slots this template's subject and text use. The text defines the slots; this spec never adds or removes one."}},"required":["text"]},"variants":{"type":"array","items":{"type":"object","properties":{"subject":{"type":"string","minLength":1,"maxLength":300},"text":{"type":"string","minLength":1,"maxLength":20000},"display_name":{"type":"string","minLength":1,"maxLength":100},"id":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9._-]+$"},"arms":{"type":"array","items":{"type":"string","enum":["direct","pain","personal","strategic"]},"minItems":1,"maxItems":4},"variant":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9._-]+$"},"coverage":{"type":"string","enum":["broad","signal_specific"]},"fit":{"type":"string","minLength":1,"maxLength":2000},"slots_spec":{"type":"string","minLength":1,"maxLength":4000,"description":"Free-form guidance the writer reads about the slots this template's subject and text use. The text defines the slots; this spec never adds or removes one."},"lane":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,39}$"},"opener":{"type":"string","enum":["cold","linkedin_bridge"]}},"required":["text"]},"minItems":1,"maxItems":40},"writing_instructions":{"type":"string","minLength":1,"maxLength":10000,"description":"Optional guidance for this message in generate mode; preserves campaign-wide instructions and Business voice."}},"required":["position","delay"]},"minItems":1,"maxItems":5,"description":"The saved sequence owns its count. Executable adapter: LinkedIn invitation then 1–3 messages, the first waiting its delay after acceptance; email 1–5 steps with delays up to 30 days or business days."},"compose_mode":{"type":"string","enum":["generate","templates"]},"instructions":{"type":"string","maxLength":30000},"lanes":{"type":"object","properties":{"field":{"type":"string","enum":["title"]},"default":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,39}$"},"rules":{"type":"array","items":{"type":"object","properties":{"lane":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,39}$"},"contains_any":{"type":"array","items":{"type":"string","minLength":1,"maxLength":60},"minItems":1,"maxItems":20},"search_lane_in":{"type":"array","items":{"type":"string","format":"uuid"},"minItems":1,"maxItems":20},"research_field":{"type":"string","minLength":1,"maxLength":100},"equals_any":{"type":"array","items":{"type":"string","minLength":1,"maxLength":60},"minItems":1,"maxItems":20}},"required":["lane"]},"minItems":1,"maxItems":10}},"required":["default","rules"]},"schedule":{"type":"object","properties":{"timezone":{"type":"string","minLength":1,"maxLength":100},"weekdays":{"type":"array","items":{"type":"integer","minimum":1,"maximum":7},"minItems":1,"maxItems":7},"start":{"type":"string","pattern":"^(?:[01]\\d|2[0-3]):[0-5]\\d$"},"end":{"type":"string","pattern":"^(?:[01]\\d|2[0-3]):[0-5]\\d$"}},"required":["timezone","weekdays","start","end"]},"profile_version":{"type":"integer","exclusiveMinimum":0},"voice_version":{"type":"integer","minimum":0}},"required":["start","steps","compose_mode","instructions","schedule","profile_version","voice_version"]},"created_at":{"type":"string","format":"date-time"},"approval":{"anyOf":[{"type":"object","properties":{"actor_ref":{"type":"string","format":"uuid"},"approved_at":{"type":"string","format":"date-time"}},"required":["actor_ref","approved_at"]},{"type":"object","properties":{"actor_ref":{"type":"null"},"approved_at":{"type":"string","format":"date-time"},"origin":{"type":"string","enum":["slack"]},"decision_ref":{"type":"string","format":"uuid"},"source_decision_ref":{"type":"string","format":"uuid"},"proposal_ref":{"type":"string","format":"uuid"},"option_ref":{"type":"string","format":"uuid"},"slack":{"type":"object","properties":{"user_id":{"type":"string","minLength":1},"team_id":{"type":"string","minLength":1},"channel_id":{"type":"string","minLength":1},"message_ts":{"type":"string","minLength":1}},"required":["user_id","team_id","channel_id","message_ts"]}},"required":["actor_ref","approved_at","origin","decision_ref","source_decision_ref","proposal_ref","option_ref","slack"]},{"type":"object","properties":{"actor_ref":{"type":"null"},"approved_at":{"type":"string","format":"date-time"},"origin":{"type":"string","enum":["system"]},"decision_ref":{"type":"string","format":"uuid"},"source_decision_ref":{"type":"string","format":"uuid"},"proposal_ref":{"type":"string","format":"uuid"},"option_ref":{"type":"string","format":"uuid"},"system":{"type":"object","properties":{"policy":{"type":"string","minLength":1}},"required":["policy"]}},"required":["actor_ref","approved_at","origin","decision_ref","source_decision_ref","proposal_ref","option_ref","system"]},{"type":"null"}]}},"required":["revision_ref","digest","content","created_at","approval"]},"maxItems":100}},"required":["campaign_ref","journey_ref","channel","version","name","state","active_revision","draft_revision","revisions"]},"slots_spec_warnings":{"type":"object","properties":{"revision_ref":{"type":"string","format":"uuid"},"unused_placeholders":{"type":"array","items":{"type":"object","properties":{"position":{"type":"integer","exclusiveMinimum":0},"template":{"type":["string","null"]},"placeholder":{"type":"string"}},"required":["position","template","placeholder"]},"minItems":1}},"required":["revision_ref","unused_placeholders"],"description":"Placeholders a template's slots_spec names that its own subject and text do not use, in the published revision for publish and the draft otherwise. Warnings only; absent when there are none."}},"required":["workspace","campaign"]}}}},"400":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/workspace/campaigns/{campaign_ref}/draft":{"patch":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"campaign_ref","in":"path"},{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"expected_version":{"type":"integer","exclusiveMinimum":0},"revision_ref":{"type":"string","format":"uuid"},"changes":{"type":"object","properties":{"start":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["journey_start"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["sent"]},"campaign_ref":{"type":"string","format":"uuid"},"step":{"type":"integer","minimum":1,"maximum":10},"after":{"anyOf":[{"type":"object","properties":{"days":{"type":"integer","minimum":0,"maximum":365}},"required":["days"],"additionalProperties":false},{"type":"object","properties":{"business_days":{"type":"integer","minimum":0,"maximum":365}},"required":["business_days"],"additionalProperties":false}]}},"required":["type","campaign_ref","step","after"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["unaccepted"]},"campaign_ref":{"type":"string","format":"uuid"},"after":{"type":"object","properties":{"business_days":{"type":"integer","minimum":0,"maximum":365}},"required":["business_days"],"additionalProperties":false}},"required":["type","campaign_ref","after"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["linkedin_first_dm_skipped"]},"campaign_ref":{"type":"string","format":"uuid"}},"required":["type","campaign_ref"],"additionalProperties":false}]},"minItems":1,"maxItems":3},"steps":{"type":"array","items":{"type":"object","properties":{"position":{"type":"integer","minimum":1,"maximum":5},"delay":{"anyOf":[{"type":"object","properties":{"days":{"type":"integer","minimum":0,"maximum":365}},"required":["days"],"additionalProperties":false},{"type":"object","properties":{"business_days":{"type":"integer","minimum":0,"maximum":365}},"required":["business_days"],"additionalProperties":false}]},"template":{"type":"object","properties":{"subject":{"type":"string","minLength":1,"maxLength":300},"text":{"type":"string","minLength":1,"maxLength":20000},"display_name":{"type":"string","minLength":1,"maxLength":100},"id":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9._-]+$"},"arms":{"type":"array","items":{"type":"string","enum":["direct","pain","personal","strategic"]},"minItems":1,"maxItems":4},"variant":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9._-]+$"},"coverage":{"type":"string","enum":["broad","signal_specific"]},"fit":{"type":"string","minLength":1,"maxLength":2000},"slots_spec":{"type":"string","minLength":1,"maxLength":4000,"description":"Free-form guidance the writer reads about the slots this template's subject and text use. The text defines the slots; this spec never adds or removes one."}},"required":["text"],"additionalProperties":false},"variants":{"type":"array","items":{"type":"object","properties":{"subject":{"type":"string","minLength":1,"maxLength":300},"text":{"type":"string","minLength":1,"maxLength":20000},"display_name":{"type":"string","minLength":1,"maxLength":100},"id":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9._-]+$"},"arms":{"type":"array","items":{"type":"string","enum":["direct","pain","personal","strategic"]},"minItems":1,"maxItems":4},"variant":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9._-]+$"},"coverage":{"type":"string","enum":["broad","signal_specific"]},"fit":{"type":"string","minLength":1,"maxLength":2000},"slots_spec":{"type":"string","minLength":1,"maxLength":4000,"description":"Free-form guidance the writer reads about the slots this template's subject and text use. The text defines the slots; this spec never adds or removes one."},"lane":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,39}$"},"opener":{"type":"string","enum":["cold","linkedin_bridge"]}},"required":["text"],"additionalProperties":false},"minItems":1,"maxItems":40},"writing_instructions":{"type":"string","minLength":1,"maxLength":10000,"description":"Optional guidance for this message in generate mode; preserves campaign-wide instructions and Business voice."}},"required":["position","delay"],"additionalProperties":false},"minItems":1,"maxItems":5,"description":"The saved sequence owns its count. Executable adapter: LinkedIn invitation then 1–3 messages, the first waiting its delay after acceptance; email 1–5 steps with delays up to 30 days or business days."},"compose_mode":{"type":"string","enum":["generate","templates"]},"instructions":{"type":"string","maxLength":30000},"lanes":{"type":["object","null"],"properties":{"field":{"type":"string","enum":["title"]},"default":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,39}$"},"rules":{"type":"array","items":{"type":"object","properties":{"lane":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,39}$"},"contains_any":{"type":"array","items":{"type":"string","minLength":1,"maxLength":60},"minItems":1,"maxItems":20},"search_lane_in":{"type":"array","items":{"type":"string","format":"uuid"},"minItems":1,"maxItems":20},"research_field":{"type":"string","minLength":1,"maxLength":100},"equals_any":{"type":"array","items":{"type":"string","minLength":1,"maxLength":60},"minItems":1,"maxItems":20}},"required":["lane"],"additionalProperties":false},"minItems":1,"maxItems":10}},"required":["default","rules"],"additionalProperties":false},"schedule":{"type":"object","properties":{"timezone":{"type":"string","minLength":1,"maxLength":100},"weekdays":{"type":"array","items":{"type":"integer","minimum":1,"maximum":7},"minItems":1,"maxItems":7},"start":{"type":"string","pattern":"^(?:[01]\\d|2[0-3]):[0-5]\\d$"},"end":{"type":"string","pattern":"^(?:[01]\\d|2[0-3]):[0-5]\\d$"}},"required":["timezone","weekdays","start","end"],"additionalProperties":false},"profile_version":{"type":"integer","exclusiveMinimum":0},"voice_version":{"type":"integer","minimum":0}},"additionalProperties":false}},"required":["expected_version","revision_ref","changes"],"additionalProperties":false}}}},"responses":{"200":{"description":"Save supplied policy changes as a new unapproved immutable draft using expected_version and the current draft revision_ref. Omitted profile_version and voice_version use current confirmed Business revisions. Active approved work continues; pause, readiness and incident holds and started Journeys are unchanged.","content":{"application/json":{"schema":{"type":"object","properties":{"workspace":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string","minLength":1,"maxLength":200},"state":{"type":"string","minLength":1}},"required":["workspace_ref","name","state"]},"campaign":{"type":"object","properties":{"campaign_ref":{"type":"string","format":"uuid"},"journey_ref":{"type":"string","format":"uuid"},"channel":{"type":"string","enum":["email","linkedin"]},"version":{"type":"integer","exclusiveMinimum":0},"name":{"type":"string","minLength":1,"maxLength":200},"state":{"type":"string","enum":["inactive","active","paused"]},"active_revision":{"type":["object","null"],"properties":{"revision_ref":{"type":"string","format":"uuid"},"digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"content":{"type":"object","properties":{"start":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["journey_start"]}},"required":["type"]},{"type":"object","properties":{"type":{"type":"string","enum":["sent"]},"campaign_ref":{"type":"string","format":"uuid"},"step":{"type":"integer","minimum":1,"maximum":10},"after":{"anyOf":[{"type":"object","properties":{"days":{"type":"integer","minimum":0,"maximum":365}},"required":["days"]},{"type":"object","properties":{"business_days":{"type":"integer","minimum":0,"maximum":365}},"required":["business_days"]}]}},"required":["type","campaign_ref","step","after"]},{"type":"object","properties":{"type":{"type":"string","enum":["unaccepted"]},"campaign_ref":{"type":"string","format":"uuid"},"after":{"type":"object","properties":{"business_days":{"type":"integer","minimum":0,"maximum":365}},"required":["business_days"]}},"required":["type","campaign_ref","after"]},{"type":"object","properties":{"type":{"type":"string","enum":["linkedin_first_dm_skipped"]},"campaign_ref":{"type":"string","format":"uuid"}},"required":["type","campaign_ref"]}]},"minItems":1,"maxItems":3},"steps":{"type":"array","items":{"type":"object","properties":{"position":{"type":"integer","minimum":1,"maximum":5},"delay":{"anyOf":[{"type":"object","properties":{"days":{"type":"integer","minimum":0,"maximum":365}},"required":["days"]},{"type":"object","properties":{"business_days":{"type":"integer","minimum":0,"maximum":365}},"required":["business_days"]}]},"template":{"type":"object","properties":{"subject":{"type":"string","minLength":1,"maxLength":300},"text":{"type":"string","minLength":1,"maxLength":20000},"display_name":{"type":"string","minLength":1,"maxLength":100},"id":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9._-]+$"},"arms":{"type":"array","items":{"type":"string","enum":["direct","pain","personal","strategic"]},"minItems":1,"maxItems":4},"variant":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9._-]+$"},"coverage":{"type":"string","enum":["broad","signal_specific"]},"fit":{"type":"string","minLength":1,"maxLength":2000},"slots_spec":{"type":"string","minLength":1,"maxLength":4000,"description":"Free-form guidance the writer reads about the slots this template's subject and text use. The text defines the slots; this spec never adds or removes one."}},"required":["text"]},"variants":{"type":"array","items":{"type":"object","properties":{"subject":{"type":"string","minLength":1,"maxLength":300},"text":{"type":"string","minLength":1,"maxLength":20000},"display_name":{"type":"string","minLength":1,"maxLength":100},"id":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9._-]+$"},"arms":{"type":"array","items":{"type":"string","enum":["direct","pain","personal","strategic"]},"minItems":1,"maxItems":4},"variant":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9._-]+$"},"coverage":{"type":"string","enum":["broad","signal_specific"]},"fit":{"type":"string","minLength":1,"maxLength":2000},"slots_spec":{"type":"string","minLength":1,"maxLength":4000,"description":"Free-form guidance the writer reads about the slots this template's subject and text use. The text defines the slots; this spec never adds or removes one."},"lane":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,39}$"},"opener":{"type":"string","enum":["cold","linkedin_bridge"]}},"required":["text"]},"minItems":1,"maxItems":40},"writing_instructions":{"type":"string","minLength":1,"maxLength":10000,"description":"Optional guidance for this message in generate mode; preserves campaign-wide instructions and Business voice."}},"required":["position","delay"]},"minItems":1,"maxItems":5,"description":"The saved sequence owns its count. Executable adapter: LinkedIn invitation then 1–3 messages, the first waiting its delay after acceptance; email 1–5 steps with delays up to 30 days or business days."},"compose_mode":{"type":"string","enum":["generate","templates"]},"instructions":{"type":"string","maxLength":30000},"lanes":{"type":"object","properties":{"field":{"type":"string","enum":["title"]},"default":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,39}$"},"rules":{"type":"array","items":{"type":"object","properties":{"lane":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,39}$"},"contains_any":{"type":"array","items":{"type":"string","minLength":1,"maxLength":60},"minItems":1,"maxItems":20},"search_lane_in":{"type":"array","items":{"type":"string","format":"uuid"},"minItems":1,"maxItems":20},"research_field":{"type":"string","minLength":1,"maxLength":100},"equals_any":{"type":"array","items":{"type":"string","minLength":1,"maxLength":60},"minItems":1,"maxItems":20}},"required":["lane"]},"minItems":1,"maxItems":10}},"required":["default","rules"]},"schedule":{"type":"object","properties":{"timezone":{"type":"string","minLength":1,"maxLength":100},"weekdays":{"type":"array","items":{"type":"integer","minimum":1,"maximum":7},"minItems":1,"maxItems":7},"start":{"type":"string","pattern":"^(?:[01]\\d|2[0-3]):[0-5]\\d$"},"end":{"type":"string","pattern":"^(?:[01]\\d|2[0-3]):[0-5]\\d$"}},"required":["timezone","weekdays","start","end"]},"profile_version":{"type":"integer","exclusiveMinimum":0},"voice_version":{"type":"integer","minimum":0}},"required":["start","steps","compose_mode","instructions","schedule","profile_version","voice_version"]},"created_at":{"type":"string","format":"date-time"},"approval":{"anyOf":[{"type":"object","properties":{"actor_ref":{"type":"string","format":"uuid"},"approved_at":{"type":"string","format":"date-time"}},"required":["actor_ref","approved_at"]},{"type":"object","properties":{"actor_ref":{"type":"null"},"approved_at":{"type":"string","format":"date-time"},"origin":{"type":"string","enum":["slack"]},"decision_ref":{"type":"string","format":"uuid"},"source_decision_ref":{"type":"string","format":"uuid"},"proposal_ref":{"type":"string","format":"uuid"},"option_ref":{"type":"string","format":"uuid"},"slack":{"type":"object","properties":{"user_id":{"type":"string","minLength":1},"team_id":{"type":"string","minLength":1},"channel_id":{"type":"string","minLength":1},"message_ts":{"type":"string","minLength":1}},"required":["user_id","team_id","channel_id","message_ts"]}},"required":["actor_ref","approved_at","origin","decision_ref","source_decision_ref","proposal_ref","option_ref","slack"]},{"type":"object","properties":{"actor_ref":{"type":"null"},"approved_at":{"type":"string","format":"date-time"},"origin":{"type":"string","enum":["system"]},"decision_ref":{"type":"string","format":"uuid"},"source_decision_ref":{"type":"string","format":"uuid"},"proposal_ref":{"type":"string","format":"uuid"},"option_ref":{"type":"string","format":"uuid"},"system":{"type":"object","properties":{"policy":{"type":"string","minLength":1}},"required":["policy"]}},"required":["actor_ref","approved_at","origin","decision_ref","source_decision_ref","proposal_ref","option_ref","system"]},{"type":"null"}]}},"required":["revision_ref","digest","content","created_at","approval"]},"draft_revision":{"type":"object","properties":{"revision_ref":{"type":"string","format":"uuid"},"digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"content":{"type":"object","properties":{"start":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["journey_start"]}},"required":["type"]},{"type":"object","properties":{"type":{"type":"string","enum":["sent"]},"campaign_ref":{"type":"string","format":"uuid"},"step":{"type":"integer","minimum":1,"maximum":10},"after":{"anyOf":[{"type":"object","properties":{"days":{"type":"integer","minimum":0,"maximum":365}},"required":["days"]},{"type":"object","properties":{"business_days":{"type":"integer","minimum":0,"maximum":365}},"required":["business_days"]}]}},"required":["type","campaign_ref","step","after"]},{"type":"object","properties":{"type":{"type":"string","enum":["unaccepted"]},"campaign_ref":{"type":"string","format":"uuid"},"after":{"type":"object","properties":{"business_days":{"type":"integer","minimum":0,"maximum":365}},"required":["business_days"]}},"required":["type","campaign_ref","after"]},{"type":"object","properties":{"type":{"type":"string","enum":["linkedin_first_dm_skipped"]},"campaign_ref":{"type":"string","format":"uuid"}},"required":["type","campaign_ref"]}]},"minItems":1,"maxItems":3},"steps":{"type":"array","items":{"type":"object","properties":{"position":{"type":"integer","minimum":1,"maximum":5},"delay":{"anyOf":[{"type":"object","properties":{"days":{"type":"integer","minimum":0,"maximum":365}},"required":["days"]},{"type":"object","properties":{"business_days":{"type":"integer","minimum":0,"maximum":365}},"required":["business_days"]}]},"template":{"type":"object","properties":{"subject":{"type":"string","minLength":1,"maxLength":300},"text":{"type":"string","minLength":1,"maxLength":20000},"display_name":{"type":"string","minLength":1,"maxLength":100},"id":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9._-]+$"},"arms":{"type":"array","items":{"type":"string","enum":["direct","pain","personal","strategic"]},"minItems":1,"maxItems":4},"variant":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9._-]+$"},"coverage":{"type":"string","enum":["broad","signal_specific"]},"fit":{"type":"string","minLength":1,"maxLength":2000},"slots_spec":{"type":"string","minLength":1,"maxLength":4000,"description":"Free-form guidance the writer reads about the slots this template's subject and text use. The text defines the slots; this spec never adds or removes one."}},"required":["text"]},"variants":{"type":"array","items":{"type":"object","properties":{"subject":{"type":"string","minLength":1,"maxLength":300},"text":{"type":"string","minLength":1,"maxLength":20000},"display_name":{"type":"string","minLength":1,"maxLength":100},"id":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9._-]+$"},"arms":{"type":"array","items":{"type":"string","enum":["direct","pain","personal","strategic"]},"minItems":1,"maxItems":4},"variant":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9._-]+$"},"coverage":{"type":"string","enum":["broad","signal_specific"]},"fit":{"type":"string","minLength":1,"maxLength":2000},"slots_spec":{"type":"string","minLength":1,"maxLength":4000,"description":"Free-form guidance the writer reads about the slots this template's subject and text use. The text defines the slots; this spec never adds or removes one."},"lane":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,39}$"},"opener":{"type":"string","enum":["cold","linkedin_bridge"]}},"required":["text"]},"minItems":1,"maxItems":40},"writing_instructions":{"type":"string","minLength":1,"maxLength":10000,"description":"Optional guidance for this message in generate mode; preserves campaign-wide instructions and Business voice."}},"required":["position","delay"]},"minItems":1,"maxItems":5,"description":"The saved sequence owns its count. Executable adapter: LinkedIn invitation then 1–3 messages, the first waiting its delay after acceptance; email 1–5 steps with delays up to 30 days or business days."},"compose_mode":{"type":"string","enum":["generate","templates"]},"instructions":{"type":"string","maxLength":30000},"lanes":{"type":"object","properties":{"field":{"type":"string","enum":["title"]},"default":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,39}$"},"rules":{"type":"array","items":{"type":"object","properties":{"lane":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,39}$"},"contains_any":{"type":"array","items":{"type":"string","minLength":1,"maxLength":60},"minItems":1,"maxItems":20},"search_lane_in":{"type":"array","items":{"type":"string","format":"uuid"},"minItems":1,"maxItems":20},"research_field":{"type":"string","minLength":1,"maxLength":100},"equals_any":{"type":"array","items":{"type":"string","minLength":1,"maxLength":60},"minItems":1,"maxItems":20}},"required":["lane"]},"minItems":1,"maxItems":10}},"required":["default","rules"]},"schedule":{"type":"object","properties":{"timezone":{"type":"string","minLength":1,"maxLength":100},"weekdays":{"type":"array","items":{"type":"integer","minimum":1,"maximum":7},"minItems":1,"maxItems":7},"start":{"type":"string","pattern":"^(?:[01]\\d|2[0-3]):[0-5]\\d$"},"end":{"type":"string","pattern":"^(?:[01]\\d|2[0-3]):[0-5]\\d$"}},"required":["timezone","weekdays","start","end"]},"profile_version":{"type":"integer","exclusiveMinimum":0},"voice_version":{"type":"integer","minimum":0}},"required":["start","steps","compose_mode","instructions","schedule","profile_version","voice_version"]},"created_at":{"type":"string","format":"date-time"},"approval":{"anyOf":[{"type":"object","properties":{"actor_ref":{"type":"string","format":"uuid"},"approved_at":{"type":"string","format":"date-time"}},"required":["actor_ref","approved_at"]},{"type":"object","properties":{"actor_ref":{"type":"null"},"approved_at":{"type":"string","format":"date-time"},"origin":{"type":"string","enum":["slack"]},"decision_ref":{"type":"string","format":"uuid"},"source_decision_ref":{"type":"string","format":"uuid"},"proposal_ref":{"type":"string","format":"uuid"},"option_ref":{"type":"string","format":"uuid"},"slack":{"type":"object","properties":{"user_id":{"type":"string","minLength":1},"team_id":{"type":"string","minLength":1},"channel_id":{"type":"string","minLength":1},"message_ts":{"type":"string","minLength":1}},"required":["user_id","team_id","channel_id","message_ts"]}},"required":["actor_ref","approved_at","origin","decision_ref","source_decision_ref","proposal_ref","option_ref","slack"]},{"type":"object","properties":{"actor_ref":{"type":"null"},"approved_at":{"type":"string","format":"date-time"},"origin":{"type":"string","enum":["system"]},"decision_ref":{"type":"string","format":"uuid"},"source_decision_ref":{"type":"string","format":"uuid"},"proposal_ref":{"type":"string","format":"uuid"},"option_ref":{"type":"string","format":"uuid"},"system":{"type":"object","properties":{"policy":{"type":"string","minLength":1}},"required":["policy"]}},"required":["actor_ref","approved_at","origin","decision_ref","source_decision_ref","proposal_ref","option_ref","system"]},{"type":"null"}]}},"required":["revision_ref","digest","content","created_at","approval"]},"revisions":{"type":"array","items":{"type":"object","properties":{"revision_ref":{"type":"string","format":"uuid"},"digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"content":{"type":"object","properties":{"start":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["journey_start"]}},"required":["type"]},{"type":"object","properties":{"type":{"type":"string","enum":["sent"]},"campaign_ref":{"type":"string","format":"uuid"},"step":{"type":"integer","minimum":1,"maximum":10},"after":{"anyOf":[{"type":"object","properties":{"days":{"type":"integer","minimum":0,"maximum":365}},"required":["days"]},{"type":"object","properties":{"business_days":{"type":"integer","minimum":0,"maximum":365}},"required":["business_days"]}]}},"required":["type","campaign_ref","step","after"]},{"type":"object","properties":{"type":{"type":"string","enum":["unaccepted"]},"campaign_ref":{"type":"string","format":"uuid"},"after":{"type":"object","properties":{"business_days":{"type":"integer","minimum":0,"maximum":365}},"required":["business_days"]}},"required":["type","campaign_ref","after"]},{"type":"object","properties":{"type":{"type":"string","enum":["linkedin_first_dm_skipped"]},"campaign_ref":{"type":"string","format":"uuid"}},"required":["type","campaign_ref"]}]},"minItems":1,"maxItems":3},"steps":{"type":"array","items":{"type":"object","properties":{"position":{"type":"integer","minimum":1,"maximum":5},"delay":{"anyOf":[{"type":"object","properties":{"days":{"type":"integer","minimum":0,"maximum":365}},"required":["days"]},{"type":"object","properties":{"business_days":{"type":"integer","minimum":0,"maximum":365}},"required":["business_days"]}]},"template":{"type":"object","properties":{"subject":{"type":"string","minLength":1,"maxLength":300},"text":{"type":"string","minLength":1,"maxLength":20000},"display_name":{"type":"string","minLength":1,"maxLength":100},"id":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9._-]+$"},"arms":{"type":"array","items":{"type":"string","enum":["direct","pain","personal","strategic"]},"minItems":1,"maxItems":4},"variant":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9._-]+$"},"coverage":{"type":"string","enum":["broad","signal_specific"]},"fit":{"type":"string","minLength":1,"maxLength":2000},"slots_spec":{"type":"string","minLength":1,"maxLength":4000,"description":"Free-form guidance the writer reads about the slots this template's subject and text use. The text defines the slots; this spec never adds or removes one."}},"required":["text"]},"variants":{"type":"array","items":{"type":"object","properties":{"subject":{"type":"string","minLength":1,"maxLength":300},"text":{"type":"string","minLength":1,"maxLength":20000},"display_name":{"type":"string","minLength":1,"maxLength":100},"id":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9._-]+$"},"arms":{"type":"array","items":{"type":"string","enum":["direct","pain","personal","strategic"]},"minItems":1,"maxItems":4},"variant":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9._-]+$"},"coverage":{"type":"string","enum":["broad","signal_specific"]},"fit":{"type":"string","minLength":1,"maxLength":2000},"slots_spec":{"type":"string","minLength":1,"maxLength":4000,"description":"Free-form guidance the writer reads about the slots this template's subject and text use. The text defines the slots; this spec never adds or removes one."},"lane":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,39}$"},"opener":{"type":"string","enum":["cold","linkedin_bridge"]}},"required":["text"]},"minItems":1,"maxItems":40},"writing_instructions":{"type":"string","minLength":1,"maxLength":10000,"description":"Optional guidance for this message in generate mode; preserves campaign-wide instructions and Business voice."}},"required":["position","delay"]},"minItems":1,"maxItems":5,"description":"The saved sequence owns its count. Executable adapter: LinkedIn invitation then 1–3 messages, the first waiting its delay after acceptance; email 1–5 steps with delays up to 30 days or business days."},"compose_mode":{"type":"string","enum":["generate","templates"]},"instructions":{"type":"string","maxLength":30000},"lanes":{"type":"object","properties":{"field":{"type":"string","enum":["title"]},"default":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,39}$"},"rules":{"type":"array","items":{"type":"object","properties":{"lane":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,39}$"},"contains_any":{"type":"array","items":{"type":"string","minLength":1,"maxLength":60},"minItems":1,"maxItems":20},"search_lane_in":{"type":"array","items":{"type":"string","format":"uuid"},"minItems":1,"maxItems":20},"research_field":{"type":"string","minLength":1,"maxLength":100},"equals_any":{"type":"array","items":{"type":"string","minLength":1,"maxLength":60},"minItems":1,"maxItems":20}},"required":["lane"]},"minItems":1,"maxItems":10}},"required":["default","rules"]},"schedule":{"type":"object","properties":{"timezone":{"type":"string","minLength":1,"maxLength":100},"weekdays":{"type":"array","items":{"type":"integer","minimum":1,"maximum":7},"minItems":1,"maxItems":7},"start":{"type":"string","pattern":"^(?:[01]\\d|2[0-3]):[0-5]\\d$"},"end":{"type":"string","pattern":"^(?:[01]\\d|2[0-3]):[0-5]\\d$"}},"required":["timezone","weekdays","start","end"]},"profile_version":{"type":"integer","exclusiveMinimum":0},"voice_version":{"type":"integer","minimum":0}},"required":["start","steps","compose_mode","instructions","schedule","profile_version","voice_version"]},"created_at":{"type":"string","format":"date-time"},"approval":{"anyOf":[{"type":"object","properties":{"actor_ref":{"type":"string","format":"uuid"},"approved_at":{"type":"string","format":"date-time"}},"required":["actor_ref","approved_at"]},{"type":"object","properties":{"actor_ref":{"type":"null"},"approved_at":{"type":"string","format":"date-time"},"origin":{"type":"string","enum":["slack"]},"decision_ref":{"type":"string","format":"uuid"},"source_decision_ref":{"type":"string","format":"uuid"},"proposal_ref":{"type":"string","format":"uuid"},"option_ref":{"type":"string","format":"uuid"},"slack":{"type":"object","properties":{"user_id":{"type":"string","minLength":1},"team_id":{"type":"string","minLength":1},"channel_id":{"type":"string","minLength":1},"message_ts":{"type":"string","minLength":1}},"required":["user_id","team_id","channel_id","message_ts"]}},"required":["actor_ref","approved_at","origin","decision_ref","source_decision_ref","proposal_ref","option_ref","slack"]},{"type":"object","properties":{"actor_ref":{"type":"null"},"approved_at":{"type":"string","format":"date-time"},"origin":{"type":"string","enum":["system"]},"decision_ref":{"type":"string","format":"uuid"},"source_decision_ref":{"type":"string","format":"uuid"},"proposal_ref":{"type":"string","format":"uuid"},"option_ref":{"type":"string","format":"uuid"},"system":{"type":"object","properties":{"policy":{"type":"string","minLength":1}},"required":["policy"]}},"required":["actor_ref","approved_at","origin","decision_ref","source_decision_ref","proposal_ref","option_ref","system"]},{"type":"null"}]}},"required":["revision_ref","digest","content","created_at","approval"]},"maxItems":100}},"required":["campaign_ref","journey_ref","channel","version","name","state","active_revision","draft_revision","revisions"]},"slots_spec_warnings":{"type":"object","properties":{"revision_ref":{"type":"string","format":"uuid"},"unused_placeholders":{"type":"array","items":{"type":"object","properties":{"position":{"type":"integer","exclusiveMinimum":0},"template":{"type":["string","null"]},"placeholder":{"type":"string"}},"required":["position","template","placeholder"]},"minItems":1}},"required":["revision_ref","unused_placeholders"],"description":"Placeholders a template's slots_spec names that its own subject and text do not use, in the published revision for publish and the draft otherwise. Warnings only; absent when there are none."}},"required":["workspace","campaign"]}}}},"400":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/workspace/campaigns/{campaign_ref}/publish":{"post":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"campaign_ref","in":"path"},{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"revision_ref":{"type":"string","format":"uuid"},"digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"expected_version":{"type":"integer","exclusiveMinimum":0}},"required":["revision_ref","digest","expected_version"],"additionalProperties":false}}}},"responses":{"200":{"description":"Approve one exact revision/digest; records actor/time. It never activates, resumes or sends.","content":{"application/json":{"schema":{"type":"object","properties":{"workspace":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string","minLength":1,"maxLength":200},"state":{"type":"string","minLength":1}},"required":["workspace_ref","name","state"]},"campaign":{"type":"object","properties":{"campaign_ref":{"type":"string","format":"uuid"},"journey_ref":{"type":"string","format":"uuid"},"channel":{"type":"string","enum":["email","linkedin"]},"version":{"type":"integer","exclusiveMinimum":0},"name":{"type":"string","minLength":1,"maxLength":200},"state":{"type":"string","enum":["inactive","active","paused"]},"active_revision":{"type":["object","null"],"properties":{"revision_ref":{"type":"string","format":"uuid"},"digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"content":{"type":"object","properties":{"start":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["journey_start"]}},"required":["type"]},{"type":"object","properties":{"type":{"type":"string","enum":["sent"]},"campaign_ref":{"type":"string","format":"uuid"},"step":{"type":"integer","minimum":1,"maximum":10},"after":{"anyOf":[{"type":"object","properties":{"days":{"type":"integer","minimum":0,"maximum":365}},"required":["days"]},{"type":"object","properties":{"business_days":{"type":"integer","minimum":0,"maximum":365}},"required":["business_days"]}]}},"required":["type","campaign_ref","step","after"]},{"type":"object","properties":{"type":{"type":"string","enum":["unaccepted"]},"campaign_ref":{"type":"string","format":"uuid"},"after":{"type":"object","properties":{"business_days":{"type":"integer","minimum":0,"maximum":365}},"required":["business_days"]}},"required":["type","campaign_ref","after"]},{"type":"object","properties":{"type":{"type":"string","enum":["linkedin_first_dm_skipped"]},"campaign_ref":{"type":"string","format":"uuid"}},"required":["type","campaign_ref"]}]},"minItems":1,"maxItems":3},"steps":{"type":"array","items":{"type":"object","properties":{"position":{"type":"integer","minimum":1,"maximum":5},"delay":{"anyOf":[{"type":"object","properties":{"days":{"type":"integer","minimum":0,"maximum":365}},"required":["days"]},{"type":"object","properties":{"business_days":{"type":"integer","minimum":0,"maximum":365}},"required":["business_days"]}]},"template":{"type":"object","properties":{"subject":{"type":"string","minLength":1,"maxLength":300},"text":{"type":"string","minLength":1,"maxLength":20000},"display_name":{"type":"string","minLength":1,"maxLength":100},"id":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9._-]+$"},"arms":{"type":"array","items":{"type":"string","enum":["direct","pain","personal","strategic"]},"minItems":1,"maxItems":4},"variant":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9._-]+$"},"coverage":{"type":"string","enum":["broad","signal_specific"]},"fit":{"type":"string","minLength":1,"maxLength":2000},"slots_spec":{"type":"string","minLength":1,"maxLength":4000,"description":"Free-form guidance the writer reads about the slots this template's subject and text use. The text defines the slots; this spec never adds or removes one."}},"required":["text"]},"variants":{"type":"array","items":{"type":"object","properties":{"subject":{"type":"string","minLength":1,"maxLength":300},"text":{"type":"string","minLength":1,"maxLength":20000},"display_name":{"type":"string","minLength":1,"maxLength":100},"id":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9._-]+$"},"arms":{"type":"array","items":{"type":"string","enum":["direct","pain","personal","strategic"]},"minItems":1,"maxItems":4},"variant":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9._-]+$"},"coverage":{"type":"string","enum":["broad","signal_specific"]},"fit":{"type":"string","minLength":1,"maxLength":2000},"slots_spec":{"type":"string","minLength":1,"maxLength":4000,"description":"Free-form guidance the writer reads about the slots this template's subject and text use. The text defines the slots; this spec never adds or removes one."},"lane":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,39}$"},"opener":{"type":"string","enum":["cold","linkedin_bridge"]}},"required":["text"]},"minItems":1,"maxItems":40},"writing_instructions":{"type":"string","minLength":1,"maxLength":10000,"description":"Optional guidance for this message in generate mode; preserves campaign-wide instructions and Business voice."}},"required":["position","delay"]},"minItems":1,"maxItems":5,"description":"The saved sequence owns its count. Executable adapter: LinkedIn invitation then 1–3 messages, the first waiting its delay after acceptance; email 1–5 steps with delays up to 30 days or business days."},"compose_mode":{"type":"string","enum":["generate","templates"]},"instructions":{"type":"string","maxLength":30000},"lanes":{"type":"object","properties":{"field":{"type":"string","enum":["title"]},"default":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,39}$"},"rules":{"type":"array","items":{"type":"object","properties":{"lane":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,39}$"},"contains_any":{"type":"array","items":{"type":"string","minLength":1,"maxLength":60},"minItems":1,"maxItems":20},"search_lane_in":{"type":"array","items":{"type":"string","format":"uuid"},"minItems":1,"maxItems":20},"research_field":{"type":"string","minLength":1,"maxLength":100},"equals_any":{"type":"array","items":{"type":"string","minLength":1,"maxLength":60},"minItems":1,"maxItems":20}},"required":["lane"]},"minItems":1,"maxItems":10}},"required":["default","rules"]},"schedule":{"type":"object","properties":{"timezone":{"type":"string","minLength":1,"maxLength":100},"weekdays":{"type":"array","items":{"type":"integer","minimum":1,"maximum":7},"minItems":1,"maxItems":7},"start":{"type":"string","pattern":"^(?:[01]\\d|2[0-3]):[0-5]\\d$"},"end":{"type":"string","pattern":"^(?:[01]\\d|2[0-3]):[0-5]\\d$"}},"required":["timezone","weekdays","start","end"]},"profile_version":{"type":"integer","exclusiveMinimum":0},"voice_version":{"type":"integer","minimum":0}},"required":["start","steps","compose_mode","instructions","schedule","profile_version","voice_version"]},"created_at":{"type":"string","format":"date-time"},"approval":{"anyOf":[{"type":"object","properties":{"actor_ref":{"type":"string","format":"uuid"},"approved_at":{"type":"string","format":"date-time"}},"required":["actor_ref","approved_at"]},{"type":"object","properties":{"actor_ref":{"type":"null"},"approved_at":{"type":"string","format":"date-time"},"origin":{"type":"string","enum":["slack"]},"decision_ref":{"type":"string","format":"uuid"},"source_decision_ref":{"type":"string","format":"uuid"},"proposal_ref":{"type":"string","format":"uuid"},"option_ref":{"type":"string","format":"uuid"},"slack":{"type":"object","properties":{"user_id":{"type":"string","minLength":1},"team_id":{"type":"string","minLength":1},"channel_id":{"type":"string","minLength":1},"message_ts":{"type":"string","minLength":1}},"required":["user_id","team_id","channel_id","message_ts"]}},"required":["actor_ref","approved_at","origin","decision_ref","source_decision_ref","proposal_ref","option_ref","slack"]},{"type":"object","properties":{"actor_ref":{"type":"null"},"approved_at":{"type":"string","format":"date-time"},"origin":{"type":"string","enum":["system"]},"decision_ref":{"type":"string","format":"uuid"},"source_decision_ref":{"type":"string","format":"uuid"},"proposal_ref":{"type":"string","format":"uuid"},"option_ref":{"type":"string","format":"uuid"},"system":{"type":"object","properties":{"policy":{"type":"string","minLength":1}},"required":["policy"]}},"required":["actor_ref","approved_at","origin","decision_ref","source_decision_ref","proposal_ref","option_ref","system"]},{"type":"null"}]}},"required":["revision_ref","digest","content","created_at","approval"]},"draft_revision":{"type":"object","properties":{"revision_ref":{"type":"string","format":"uuid"},"digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"content":{"type":"object","properties":{"start":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["journey_start"]}},"required":["type"]},{"type":"object","properties":{"type":{"type":"string","enum":["sent"]},"campaign_ref":{"type":"string","format":"uuid"},"step":{"type":"integer","minimum":1,"maximum":10},"after":{"anyOf":[{"type":"object","properties":{"days":{"type":"integer","minimum":0,"maximum":365}},"required":["days"]},{"type":"object","properties":{"business_days":{"type":"integer","minimum":0,"maximum":365}},"required":["business_days"]}]}},"required":["type","campaign_ref","step","after"]},{"type":"object","properties":{"type":{"type":"string","enum":["unaccepted"]},"campaign_ref":{"type":"string","format":"uuid"},"after":{"type":"object","properties":{"business_days":{"type":"integer","minimum":0,"maximum":365}},"required":["business_days"]}},"required":["type","campaign_ref","after"]},{"type":"object","properties":{"type":{"type":"string","enum":["linkedin_first_dm_skipped"]},"campaign_ref":{"type":"string","format":"uuid"}},"required":["type","campaign_ref"]}]},"minItems":1,"maxItems":3},"steps":{"type":"array","items":{"type":"object","properties":{"position":{"type":"integer","minimum":1,"maximum":5},"delay":{"anyOf":[{"type":"object","properties":{"days":{"type":"integer","minimum":0,"maximum":365}},"required":["days"]},{"type":"object","properties":{"business_days":{"type":"integer","minimum":0,"maximum":365}},"required":["business_days"]}]},"template":{"type":"object","properties":{"subject":{"type":"string","minLength":1,"maxLength":300},"text":{"type":"string","minLength":1,"maxLength":20000},"display_name":{"type":"string","minLength":1,"maxLength":100},"id":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9._-]+$"},"arms":{"type":"array","items":{"type":"string","enum":["direct","pain","personal","strategic"]},"minItems":1,"maxItems":4},"variant":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9._-]+$"},"coverage":{"type":"string","enum":["broad","signal_specific"]},"fit":{"type":"string","minLength":1,"maxLength":2000},"slots_spec":{"type":"string","minLength":1,"maxLength":4000,"description":"Free-form guidance the writer reads about the slots this template's subject and text use. The text defines the slots; this spec never adds or removes one."}},"required":["text"]},"variants":{"type":"array","items":{"type":"object","properties":{"subject":{"type":"string","minLength":1,"maxLength":300},"text":{"type":"string","minLength":1,"maxLength":20000},"display_name":{"type":"string","minLength":1,"maxLength":100},"id":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9._-]+$"},"arms":{"type":"array","items":{"type":"string","enum":["direct","pain","personal","strategic"]},"minItems":1,"maxItems":4},"variant":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9._-]+$"},"coverage":{"type":"string","enum":["broad","signal_specific"]},"fit":{"type":"string","minLength":1,"maxLength":2000},"slots_spec":{"type":"string","minLength":1,"maxLength":4000,"description":"Free-form guidance the writer reads about the slots this template's subject and text use. The text defines the slots; this spec never adds or removes one."},"lane":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,39}$"},"opener":{"type":"string","enum":["cold","linkedin_bridge"]}},"required":["text"]},"minItems":1,"maxItems":40},"writing_instructions":{"type":"string","minLength":1,"maxLength":10000,"description":"Optional guidance for this message in generate mode; preserves campaign-wide instructions and Business voice."}},"required":["position","delay"]},"minItems":1,"maxItems":5,"description":"The saved sequence owns its count. Executable adapter: LinkedIn invitation then 1–3 messages, the first waiting its delay after acceptance; email 1–5 steps with delays up to 30 days or business days."},"compose_mode":{"type":"string","enum":["generate","templates"]},"instructions":{"type":"string","maxLength":30000},"lanes":{"type":"object","properties":{"field":{"type":"string","enum":["title"]},"default":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,39}$"},"rules":{"type":"array","items":{"type":"object","properties":{"lane":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,39}$"},"contains_any":{"type":"array","items":{"type":"string","minLength":1,"maxLength":60},"minItems":1,"maxItems":20},"search_lane_in":{"type":"array","items":{"type":"string","format":"uuid"},"minItems":1,"maxItems":20},"research_field":{"type":"string","minLength":1,"maxLength":100},"equals_any":{"type":"array","items":{"type":"string","minLength":1,"maxLength":60},"minItems":1,"maxItems":20}},"required":["lane"]},"minItems":1,"maxItems":10}},"required":["default","rules"]},"schedule":{"type":"object","properties":{"timezone":{"type":"string","minLength":1,"maxLength":100},"weekdays":{"type":"array","items":{"type":"integer","minimum":1,"maximum":7},"minItems":1,"maxItems":7},"start":{"type":"string","pattern":"^(?:[01]\\d|2[0-3]):[0-5]\\d$"},"end":{"type":"string","pattern":"^(?:[01]\\d|2[0-3]):[0-5]\\d$"}},"required":["timezone","weekdays","start","end"]},"profile_version":{"type":"integer","exclusiveMinimum":0},"voice_version":{"type":"integer","minimum":0}},"required":["start","steps","compose_mode","instructions","schedule","profile_version","voice_version"]},"created_at":{"type":"string","format":"date-time"},"approval":{"anyOf":[{"type":"object","properties":{"actor_ref":{"type":"string","format":"uuid"},"approved_at":{"type":"string","format":"date-time"}},"required":["actor_ref","approved_at"]},{"type":"object","properties":{"actor_ref":{"type":"null"},"approved_at":{"type":"string","format":"date-time"},"origin":{"type":"string","enum":["slack"]},"decision_ref":{"type":"string","format":"uuid"},"source_decision_ref":{"type":"string","format":"uuid"},"proposal_ref":{"type":"string","format":"uuid"},"option_ref":{"type":"string","format":"uuid"},"slack":{"type":"object","properties":{"user_id":{"type":"string","minLength":1},"team_id":{"type":"string","minLength":1},"channel_id":{"type":"string","minLength":1},"message_ts":{"type":"string","minLength":1}},"required":["user_id","team_id","channel_id","message_ts"]}},"required":["actor_ref","approved_at","origin","decision_ref","source_decision_ref","proposal_ref","option_ref","slack"]},{"type":"object","properties":{"actor_ref":{"type":"null"},"approved_at":{"type":"string","format":"date-time"},"origin":{"type":"string","enum":["system"]},"decision_ref":{"type":"string","format":"uuid"},"source_decision_ref":{"type":"string","format":"uuid"},"proposal_ref":{"type":"string","format":"uuid"},"option_ref":{"type":"string","format":"uuid"},"system":{"type":"object","properties":{"policy":{"type":"string","minLength":1}},"required":["policy"]}},"required":["actor_ref","approved_at","origin","decision_ref","source_decision_ref","proposal_ref","option_ref","system"]},{"type":"null"}]}},"required":["revision_ref","digest","content","created_at","approval"]},"revisions":{"type":"array","items":{"type":"object","properties":{"revision_ref":{"type":"string","format":"uuid"},"digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"content":{"type":"object","properties":{"start":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["journey_start"]}},"required":["type"]},{"type":"object","properties":{"type":{"type":"string","enum":["sent"]},"campaign_ref":{"type":"string","format":"uuid"},"step":{"type":"integer","minimum":1,"maximum":10},"after":{"anyOf":[{"type":"object","properties":{"days":{"type":"integer","minimum":0,"maximum":365}},"required":["days"]},{"type":"object","properties":{"business_days":{"type":"integer","minimum":0,"maximum":365}},"required":["business_days"]}]}},"required":["type","campaign_ref","step","after"]},{"type":"object","properties":{"type":{"type":"string","enum":["unaccepted"]},"campaign_ref":{"type":"string","format":"uuid"},"after":{"type":"object","properties":{"business_days":{"type":"integer","minimum":0,"maximum":365}},"required":["business_days"]}},"required":["type","campaign_ref","after"]},{"type":"object","properties":{"type":{"type":"string","enum":["linkedin_first_dm_skipped"]},"campaign_ref":{"type":"string","format":"uuid"}},"required":["type","campaign_ref"]}]},"minItems":1,"maxItems":3},"steps":{"type":"array","items":{"type":"object","properties":{"position":{"type":"integer","minimum":1,"maximum":5},"delay":{"anyOf":[{"type":"object","properties":{"days":{"type":"integer","minimum":0,"maximum":365}},"required":["days"]},{"type":"object","properties":{"business_days":{"type":"integer","minimum":0,"maximum":365}},"required":["business_days"]}]},"template":{"type":"object","properties":{"subject":{"type":"string","minLength":1,"maxLength":300},"text":{"type":"string","minLength":1,"maxLength":20000},"display_name":{"type":"string","minLength":1,"maxLength":100},"id":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9._-]+$"},"arms":{"type":"array","items":{"type":"string","enum":["direct","pain","personal","strategic"]},"minItems":1,"maxItems":4},"variant":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9._-]+$"},"coverage":{"type":"string","enum":["broad","signal_specific"]},"fit":{"type":"string","minLength":1,"maxLength":2000},"slots_spec":{"type":"string","minLength":1,"maxLength":4000,"description":"Free-form guidance the writer reads about the slots this template's subject and text use. The text defines the slots; this spec never adds or removes one."}},"required":["text"]},"variants":{"type":"array","items":{"type":"object","properties":{"subject":{"type":"string","minLength":1,"maxLength":300},"text":{"type":"string","minLength":1,"maxLength":20000},"display_name":{"type":"string","minLength":1,"maxLength":100},"id":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9._-]+$"},"arms":{"type":"array","items":{"type":"string","enum":["direct","pain","personal","strategic"]},"minItems":1,"maxItems":4},"variant":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9._-]+$"},"coverage":{"type":"string","enum":["broad","signal_specific"]},"fit":{"type":"string","minLength":1,"maxLength":2000},"slots_spec":{"type":"string","minLength":1,"maxLength":4000,"description":"Free-form guidance the writer reads about the slots this template's subject and text use. The text defines the slots; this spec never adds or removes one."},"lane":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,39}$"},"opener":{"type":"string","enum":["cold","linkedin_bridge"]}},"required":["text"]},"minItems":1,"maxItems":40},"writing_instructions":{"type":"string","minLength":1,"maxLength":10000,"description":"Optional guidance for this message in generate mode; preserves campaign-wide instructions and Business voice."}},"required":["position","delay"]},"minItems":1,"maxItems":5,"description":"The saved sequence owns its count. Executable adapter: LinkedIn invitation then 1–3 messages, the first waiting its delay after acceptance; email 1–5 steps with delays up to 30 days or business days."},"compose_mode":{"type":"string","enum":["generate","templates"]},"instructions":{"type":"string","maxLength":30000},"lanes":{"type":"object","properties":{"field":{"type":"string","enum":["title"]},"default":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,39}$"},"rules":{"type":"array","items":{"type":"object","properties":{"lane":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,39}$"},"contains_any":{"type":"array","items":{"type":"string","minLength":1,"maxLength":60},"minItems":1,"maxItems":20},"search_lane_in":{"type":"array","items":{"type":"string","format":"uuid"},"minItems":1,"maxItems":20},"research_field":{"type":"string","minLength":1,"maxLength":100},"equals_any":{"type":"array","items":{"type":"string","minLength":1,"maxLength":60},"minItems":1,"maxItems":20}},"required":["lane"]},"minItems":1,"maxItems":10}},"required":["default","rules"]},"schedule":{"type":"object","properties":{"timezone":{"type":"string","minLength":1,"maxLength":100},"weekdays":{"type":"array","items":{"type":"integer","minimum":1,"maximum":7},"minItems":1,"maxItems":7},"start":{"type":"string","pattern":"^(?:[01]\\d|2[0-3]):[0-5]\\d$"},"end":{"type":"string","pattern":"^(?:[01]\\d|2[0-3]):[0-5]\\d$"}},"required":["timezone","weekdays","start","end"]},"profile_version":{"type":"integer","exclusiveMinimum":0},"voice_version":{"type":"integer","minimum":0}},"required":["start","steps","compose_mode","instructions","schedule","profile_version","voice_version"]},"created_at":{"type":"string","format":"date-time"},"approval":{"anyOf":[{"type":"object","properties":{"actor_ref":{"type":"string","format":"uuid"},"approved_at":{"type":"string","format":"date-time"}},"required":["actor_ref","approved_at"]},{"type":"object","properties":{"actor_ref":{"type":"null"},"approved_at":{"type":"string","format":"date-time"},"origin":{"type":"string","enum":["slack"]},"decision_ref":{"type":"string","format":"uuid"},"source_decision_ref":{"type":"string","format":"uuid"},"proposal_ref":{"type":"string","format":"uuid"},"option_ref":{"type":"string","format":"uuid"},"slack":{"type":"object","properties":{"user_id":{"type":"string","minLength":1},"team_id":{"type":"string","minLength":1},"channel_id":{"type":"string","minLength":1},"message_ts":{"type":"string","minLength":1}},"required":["user_id","team_id","channel_id","message_ts"]}},"required":["actor_ref","approved_at","origin","decision_ref","source_decision_ref","proposal_ref","option_ref","slack"]},{"type":"object","properties":{"actor_ref":{"type":"null"},"approved_at":{"type":"string","format":"date-time"},"origin":{"type":"string","enum":["system"]},"decision_ref":{"type":"string","format":"uuid"},"source_decision_ref":{"type":"string","format":"uuid"},"proposal_ref":{"type":"string","format":"uuid"},"option_ref":{"type":"string","format":"uuid"},"system":{"type":"object","properties":{"policy":{"type":"string","minLength":1}},"required":["policy"]}},"required":["actor_ref","approved_at","origin","decision_ref","source_decision_ref","proposal_ref","option_ref","system"]},{"type":"null"}]}},"required":["revision_ref","digest","content","created_at","approval"]},"maxItems":100}},"required":["campaign_ref","journey_ref","channel","version","name","state","active_revision","draft_revision","revisions"]},"slots_spec_warnings":{"type":"object","properties":{"revision_ref":{"type":"string","format":"uuid"},"unused_placeholders":{"type":"array","items":{"type":"object","properties":{"position":{"type":"integer","exclusiveMinimum":0},"template":{"type":["string","null"]},"placeholder":{"type":"string"}},"required":["position","template","placeholder"]},"minItems":1}},"required":["revision_ref","unused_placeholders"],"description":"Placeholders a template's slots_spec names that its own subject and text do not use, in the published revision for publish and the draft otherwise. Warnings only; absent when there are none."}},"required":["workspace","campaign"]}}}},"400":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/workspace/campaigns/{campaign_ref}/activate":{"post":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"campaign_ref","in":"path"},{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"revision_ref":{"type":"string","format":"uuid"},"digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"expected_version":{"type":"integer","exclusiveMinimum":0}},"required":["revision_ref","digest","expected_version"],"additionalProperties":false}}}},"responses":{"200":{"description":"Select one exact approved revision for new Journey starts and set active intent, or resume paused work under its retained revisions. A dependent Campaign joins the executable version once its preceding Campaign is activated. The existing scheduled runtime may contact external recipients, including retained pending work, subject to account, readiness and incident gates. The receipt confirms saved intent and selection, not compilation or delivery. blocked_people names each person whose email cannot send yet, with the cause and when it clears; tell the founder, because activation proceeds anyway. Null means Lifty could not read it, not that nobody is blocked. Refused with OUTREACH_CUSTOMER_LIST_NOT_CURRENT when starting or changing intent or revision while the connected CRM's customer list is missing or stale; unchanged active selections are no-ops, and a disconnected CRM retains its saved list. customer_list records the accepted decision.","content":{"application/json":{"schema":{"type":"object","properties":{"workspace":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string","minLength":1,"maxLength":200},"state":{"type":"string","minLength":1}},"required":["workspace_ref","name","state"]},"campaign":{"type":"object","properties":{"campaign_ref":{"type":"string","format":"uuid"},"journey_ref":{"type":"string","format":"uuid"},"channel":{"type":"string","enum":["email","linkedin"]},"version":{"type":"integer","exclusiveMinimum":0},"name":{"type":"string","minLength":1,"maxLength":200},"state":{"type":"string","enum":["inactive","active","paused"]},"active_revision":{"type":["object","null"],"properties":{"revision_ref":{"type":"string","format":"uuid"},"digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"content":{"type":"object","properties":{"start":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["journey_start"]}},"required":["type"]},{"type":"object","properties":{"type":{"type":"string","enum":["sent"]},"campaign_ref":{"type":"string","format":"uuid"},"step":{"type":"integer","minimum":1,"maximum":10},"after":{"anyOf":[{"type":"object","properties":{"days":{"type":"integer","minimum":0,"maximum":365}},"required":["days"]},{"type":"object","properties":{"business_days":{"type":"integer","minimum":0,"maximum":365}},"required":["business_days"]}]}},"required":["type","campaign_ref","step","after"]},{"type":"object","properties":{"type":{"type":"string","enum":["unaccepted"]},"campaign_ref":{"type":"string","format":"uuid"},"after":{"type":"object","properties":{"business_days":{"type":"integer","minimum":0,"maximum":365}},"required":["business_days"]}},"required":["type","campaign_ref","after"]},{"type":"object","properties":{"type":{"type":"string","enum":["linkedin_first_dm_skipped"]},"campaign_ref":{"type":"string","format":"uuid"}},"required":["type","campaign_ref"]}]},"minItems":1,"maxItems":3},"steps":{"type":"array","items":{"type":"object","properties":{"position":{"type":"integer","minimum":1,"maximum":5},"delay":{"anyOf":[{"type":"object","properties":{"days":{"type":"integer","minimum":0,"maximum":365}},"required":["days"]},{"type":"object","properties":{"business_days":{"type":"integer","minimum":0,"maximum":365}},"required":["business_days"]}]},"template":{"type":"object","properties":{"subject":{"type":"string","minLength":1,"maxLength":300},"text":{"type":"string","minLength":1,"maxLength":20000},"display_name":{"type":"string","minLength":1,"maxLength":100},"id":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9._-]+$"},"arms":{"type":"array","items":{"type":"string","enum":["direct","pain","personal","strategic"]},"minItems":1,"maxItems":4},"variant":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9._-]+$"},"coverage":{"type":"string","enum":["broad","signal_specific"]},"fit":{"type":"string","minLength":1,"maxLength":2000},"slots_spec":{"type":"string","minLength":1,"maxLength":4000,"description":"Free-form guidance the writer reads about the slots this template's subject and text use. The text defines the slots; this spec never adds or removes one."}},"required":["text"]},"variants":{"type":"array","items":{"type":"object","properties":{"subject":{"type":"string","minLength":1,"maxLength":300},"text":{"type":"string","minLength":1,"maxLength":20000},"display_name":{"type":"string","minLength":1,"maxLength":100},"id":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9._-]+$"},"arms":{"type":"array","items":{"type":"string","enum":["direct","pain","personal","strategic"]},"minItems":1,"maxItems":4},"variant":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9._-]+$"},"coverage":{"type":"string","enum":["broad","signal_specific"]},"fit":{"type":"string","minLength":1,"maxLength":2000},"slots_spec":{"type":"string","minLength":1,"maxLength":4000,"description":"Free-form guidance the writer reads about the slots this template's subject and text use. The text defines the slots; this spec never adds or removes one."},"lane":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,39}$"},"opener":{"type":"string","enum":["cold","linkedin_bridge"]}},"required":["text"]},"minItems":1,"maxItems":40},"writing_instructions":{"type":"string","minLength":1,"maxLength":10000,"description":"Optional guidance for this message in generate mode; preserves campaign-wide instructions and Business voice."}},"required":["position","delay"]},"minItems":1,"maxItems":5,"description":"The saved sequence owns its count. Executable adapter: LinkedIn invitation then 1–3 messages, the first waiting its delay after acceptance; email 1–5 steps with delays up to 30 days or business days."},"compose_mode":{"type":"string","enum":["generate","templates"]},"instructions":{"type":"string","maxLength":30000},"lanes":{"type":"object","properties":{"field":{"type":"string","enum":["title"]},"default":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,39}$"},"rules":{"type":"array","items":{"type":"object","properties":{"lane":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,39}$"},"contains_any":{"type":"array","items":{"type":"string","minLength":1,"maxLength":60},"minItems":1,"maxItems":20},"search_lane_in":{"type":"array","items":{"type":"string","format":"uuid"},"minItems":1,"maxItems":20},"research_field":{"type":"string","minLength":1,"maxLength":100},"equals_any":{"type":"array","items":{"type":"string","minLength":1,"maxLength":60},"minItems":1,"maxItems":20}},"required":["lane"]},"minItems":1,"maxItems":10}},"required":["default","rules"]},"schedule":{"type":"object","properties":{"timezone":{"type":"string","minLength":1,"maxLength":100},"weekdays":{"type":"array","items":{"type":"integer","minimum":1,"maximum":7},"minItems":1,"maxItems":7},"start":{"type":"string","pattern":"^(?:[01]\\d|2[0-3]):[0-5]\\d$"},"end":{"type":"string","pattern":"^(?:[01]\\d|2[0-3]):[0-5]\\d$"}},"required":["timezone","weekdays","start","end"]},"profile_version":{"type":"integer","exclusiveMinimum":0},"voice_version":{"type":"integer","minimum":0}},"required":["start","steps","compose_mode","instructions","schedule","profile_version","voice_version"]},"created_at":{"type":"string","format":"date-time"},"approval":{"anyOf":[{"type":"object","properties":{"actor_ref":{"type":"string","format":"uuid"},"approved_at":{"type":"string","format":"date-time"}},"required":["actor_ref","approved_at"]},{"type":"object","properties":{"actor_ref":{"type":"null"},"approved_at":{"type":"string","format":"date-time"},"origin":{"type":"string","enum":["slack"]},"decision_ref":{"type":"string","format":"uuid"},"source_decision_ref":{"type":"string","format":"uuid"},"proposal_ref":{"type":"string","format":"uuid"},"option_ref":{"type":"string","format":"uuid"},"slack":{"type":"object","properties":{"user_id":{"type":"string","minLength":1},"team_id":{"type":"string","minLength":1},"channel_id":{"type":"string","minLength":1},"message_ts":{"type":"string","minLength":1}},"required":["user_id","team_id","channel_id","message_ts"]}},"required":["actor_ref","approved_at","origin","decision_ref","source_decision_ref","proposal_ref","option_ref","slack"]},{"type":"object","properties":{"actor_ref":{"type":"null"},"approved_at":{"type":"string","format":"date-time"},"origin":{"type":"string","enum":["system"]},"decision_ref":{"type":"string","format":"uuid"},"source_decision_ref":{"type":"string","format":"uuid"},"proposal_ref":{"type":"string","format":"uuid"},"option_ref":{"type":"string","format":"uuid"},"system":{"type":"object","properties":{"policy":{"type":"string","minLength":1}},"required":["policy"]}},"required":["actor_ref","approved_at","origin","decision_ref","source_decision_ref","proposal_ref","option_ref","system"]},{"type":"null"}]}},"required":["revision_ref","digest","content","created_at","approval"]},"draft_revision":{"type":"object","properties":{"revision_ref":{"type":"string","format":"uuid"},"digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"content":{"type":"object","properties":{"start":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["journey_start"]}},"required":["type"]},{"type":"object","properties":{"type":{"type":"string","enum":["sent"]},"campaign_ref":{"type":"string","format":"uuid"},"step":{"type":"integer","minimum":1,"maximum":10},"after":{"anyOf":[{"type":"object","properties":{"days":{"type":"integer","minimum":0,"maximum":365}},"required":["days"]},{"type":"object","properties":{"business_days":{"type":"integer","minimum":0,"maximum":365}},"required":["business_days"]}]}},"required":["type","campaign_ref","step","after"]},{"type":"object","properties":{"type":{"type":"string","enum":["unaccepted"]},"campaign_ref":{"type":"string","format":"uuid"},"after":{"type":"object","properties":{"business_days":{"type":"integer","minimum":0,"maximum":365}},"required":["business_days"]}},"required":["type","campaign_ref","after"]},{"type":"object","properties":{"type":{"type":"string","enum":["linkedin_first_dm_skipped"]},"campaign_ref":{"type":"string","format":"uuid"}},"required":["type","campaign_ref"]}]},"minItems":1,"maxItems":3},"steps":{"type":"array","items":{"type":"object","properties":{"position":{"type":"integer","minimum":1,"maximum":5},"delay":{"anyOf":[{"type":"object","properties":{"days":{"type":"integer","minimum":0,"maximum":365}},"required":["days"]},{"type":"object","properties":{"business_days":{"type":"integer","minimum":0,"maximum":365}},"required":["business_days"]}]},"template":{"type":"object","properties":{"subject":{"type":"string","minLength":1,"maxLength":300},"text":{"type":"string","minLength":1,"maxLength":20000},"display_name":{"type":"string","minLength":1,"maxLength":100},"id":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9._-]+$"},"arms":{"type":"array","items":{"type":"string","enum":["direct","pain","personal","strategic"]},"minItems":1,"maxItems":4},"variant":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9._-]+$"},"coverage":{"type":"string","enum":["broad","signal_specific"]},"fit":{"type":"string","minLength":1,"maxLength":2000},"slots_spec":{"type":"string","minLength":1,"maxLength":4000,"description":"Free-form guidance the writer reads about the slots this template's subject and text use. The text defines the slots; this spec never adds or removes one."}},"required":["text"]},"variants":{"type":"array","items":{"type":"object","properties":{"subject":{"type":"string","minLength":1,"maxLength":300},"text":{"type":"string","minLength":1,"maxLength":20000},"display_name":{"type":"string","minLength":1,"maxLength":100},"id":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9._-]+$"},"arms":{"type":"array","items":{"type":"string","enum":["direct","pain","personal","strategic"]},"minItems":1,"maxItems":4},"variant":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9._-]+$"},"coverage":{"type":"string","enum":["broad","signal_specific"]},"fit":{"type":"string","minLength":1,"maxLength":2000},"slots_spec":{"type":"string","minLength":1,"maxLength":4000,"description":"Free-form guidance the writer reads about the slots this template's subject and text use. The text defines the slots; this spec never adds or removes one."},"lane":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,39}$"},"opener":{"type":"string","enum":["cold","linkedin_bridge"]}},"required":["text"]},"minItems":1,"maxItems":40},"writing_instructions":{"type":"string","minLength":1,"maxLength":10000,"description":"Optional guidance for this message in generate mode; preserves campaign-wide instructions and Business voice."}},"required":["position","delay"]},"minItems":1,"maxItems":5,"description":"The saved sequence owns its count. Executable adapter: LinkedIn invitation then 1–3 messages, the first waiting its delay after acceptance; email 1–5 steps with delays up to 30 days or business days."},"compose_mode":{"type":"string","enum":["generate","templates"]},"instructions":{"type":"string","maxLength":30000},"lanes":{"type":"object","properties":{"field":{"type":"string","enum":["title"]},"default":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,39}$"},"rules":{"type":"array","items":{"type":"object","properties":{"lane":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,39}$"},"contains_any":{"type":"array","items":{"type":"string","minLength":1,"maxLength":60},"minItems":1,"maxItems":20},"search_lane_in":{"type":"array","items":{"type":"string","format":"uuid"},"minItems":1,"maxItems":20},"research_field":{"type":"string","minLength":1,"maxLength":100},"equals_any":{"type":"array","items":{"type":"string","minLength":1,"maxLength":60},"minItems":1,"maxItems":20}},"required":["lane"]},"minItems":1,"maxItems":10}},"required":["default","rules"]},"schedule":{"type":"object","properties":{"timezone":{"type":"string","minLength":1,"maxLength":100},"weekdays":{"type":"array","items":{"type":"integer","minimum":1,"maximum":7},"minItems":1,"maxItems":7},"start":{"type":"string","pattern":"^(?:[01]\\d|2[0-3]):[0-5]\\d$"},"end":{"type":"string","pattern":"^(?:[01]\\d|2[0-3]):[0-5]\\d$"}},"required":["timezone","weekdays","start","end"]},"profile_version":{"type":"integer","exclusiveMinimum":0},"voice_version":{"type":"integer","minimum":0}},"required":["start","steps","compose_mode","instructions","schedule","profile_version","voice_version"]},"created_at":{"type":"string","format":"date-time"},"approval":{"anyOf":[{"type":"object","properties":{"actor_ref":{"type":"string","format":"uuid"},"approved_at":{"type":"string","format":"date-time"}},"required":["actor_ref","approved_at"]},{"type":"object","properties":{"actor_ref":{"type":"null"},"approved_at":{"type":"string","format":"date-time"},"origin":{"type":"string","enum":["slack"]},"decision_ref":{"type":"string","format":"uuid"},"source_decision_ref":{"type":"string","format":"uuid"},"proposal_ref":{"type":"string","format":"uuid"},"option_ref":{"type":"string","format":"uuid"},"slack":{"type":"object","properties":{"user_id":{"type":"string","minLength":1},"team_id":{"type":"string","minLength":1},"channel_id":{"type":"string","minLength":1},"message_ts":{"type":"string","minLength":1}},"required":["user_id","team_id","channel_id","message_ts"]}},"required":["actor_ref","approved_at","origin","decision_ref","source_decision_ref","proposal_ref","option_ref","slack"]},{"type":"object","properties":{"actor_ref":{"type":"null"},"approved_at":{"type":"string","format":"date-time"},"origin":{"type":"string","enum":["system"]},"decision_ref":{"type":"string","format":"uuid"},"source_decision_ref":{"type":"string","format":"uuid"},"proposal_ref":{"type":"string","format":"uuid"},"option_ref":{"type":"string","format":"uuid"},"system":{"type":"object","properties":{"policy":{"type":"string","minLength":1}},"required":["policy"]}},"required":["actor_ref","approved_at","origin","decision_ref","source_decision_ref","proposal_ref","option_ref","system"]},{"type":"null"}]}},"required":["revision_ref","digest","content","created_at","approval"]},"revisions":{"type":"array","items":{"type":"object","properties":{"revision_ref":{"type":"string","format":"uuid"},"digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"content":{"type":"object","properties":{"start":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["journey_start"]}},"required":["type"]},{"type":"object","properties":{"type":{"type":"string","enum":["sent"]},"campaign_ref":{"type":"string","format":"uuid"},"step":{"type":"integer","minimum":1,"maximum":10},"after":{"anyOf":[{"type":"object","properties":{"days":{"type":"integer","minimum":0,"maximum":365}},"required":["days"]},{"type":"object","properties":{"business_days":{"type":"integer","minimum":0,"maximum":365}},"required":["business_days"]}]}},"required":["type","campaign_ref","step","after"]},{"type":"object","properties":{"type":{"type":"string","enum":["unaccepted"]},"campaign_ref":{"type":"string","format":"uuid"},"after":{"type":"object","properties":{"business_days":{"type":"integer","minimum":0,"maximum":365}},"required":["business_days"]}},"required":["type","campaign_ref","after"]},{"type":"object","properties":{"type":{"type":"string","enum":["linkedin_first_dm_skipped"]},"campaign_ref":{"type":"string","format":"uuid"}},"required":["type","campaign_ref"]}]},"minItems":1,"maxItems":3},"steps":{"type":"array","items":{"type":"object","properties":{"position":{"type":"integer","minimum":1,"maximum":5},"delay":{"anyOf":[{"type":"object","properties":{"days":{"type":"integer","minimum":0,"maximum":365}},"required":["days"]},{"type":"object","properties":{"business_days":{"type":"integer","minimum":0,"maximum":365}},"required":["business_days"]}]},"template":{"type":"object","properties":{"subject":{"type":"string","minLength":1,"maxLength":300},"text":{"type":"string","minLength":1,"maxLength":20000},"display_name":{"type":"string","minLength":1,"maxLength":100},"id":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9._-]+$"},"arms":{"type":"array","items":{"type":"string","enum":["direct","pain","personal","strategic"]},"minItems":1,"maxItems":4},"variant":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9._-]+$"},"coverage":{"type":"string","enum":["broad","signal_specific"]},"fit":{"type":"string","minLength":1,"maxLength":2000},"slots_spec":{"type":"string","minLength":1,"maxLength":4000,"description":"Free-form guidance the writer reads about the slots this template's subject and text use. The text defines the slots; this spec never adds or removes one."}},"required":["text"]},"variants":{"type":"array","items":{"type":"object","properties":{"subject":{"type":"string","minLength":1,"maxLength":300},"text":{"type":"string","minLength":1,"maxLength":20000},"display_name":{"type":"string","minLength":1,"maxLength":100},"id":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9._-]+$"},"arms":{"type":"array","items":{"type":"string","enum":["direct","pain","personal","strategic"]},"minItems":1,"maxItems":4},"variant":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9._-]+$"},"coverage":{"type":"string","enum":["broad","signal_specific"]},"fit":{"type":"string","minLength":1,"maxLength":2000},"slots_spec":{"type":"string","minLength":1,"maxLength":4000,"description":"Free-form guidance the writer reads about the slots this template's subject and text use. The text defines the slots; this spec never adds or removes one."},"lane":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,39}$"},"opener":{"type":"string","enum":["cold","linkedin_bridge"]}},"required":["text"]},"minItems":1,"maxItems":40},"writing_instructions":{"type":"string","minLength":1,"maxLength":10000,"description":"Optional guidance for this message in generate mode; preserves campaign-wide instructions and Business voice."}},"required":["position","delay"]},"minItems":1,"maxItems":5,"description":"The saved sequence owns its count. Executable adapter: LinkedIn invitation then 1–3 messages, the first waiting its delay after acceptance; email 1–5 steps with delays up to 30 days or business days."},"compose_mode":{"type":"string","enum":["generate","templates"]},"instructions":{"type":"string","maxLength":30000},"lanes":{"type":"object","properties":{"field":{"type":"string","enum":["title"]},"default":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,39}$"},"rules":{"type":"array","items":{"type":"object","properties":{"lane":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,39}$"},"contains_any":{"type":"array","items":{"type":"string","minLength":1,"maxLength":60},"minItems":1,"maxItems":20},"search_lane_in":{"type":"array","items":{"type":"string","format":"uuid"},"minItems":1,"maxItems":20},"research_field":{"type":"string","minLength":1,"maxLength":100},"equals_any":{"type":"array","items":{"type":"string","minLength":1,"maxLength":60},"minItems":1,"maxItems":20}},"required":["lane"]},"minItems":1,"maxItems":10}},"required":["default","rules"]},"schedule":{"type":"object","properties":{"timezone":{"type":"string","minLength":1,"maxLength":100},"weekdays":{"type":"array","items":{"type":"integer","minimum":1,"maximum":7},"minItems":1,"maxItems":7},"start":{"type":"string","pattern":"^(?:[01]\\d|2[0-3]):[0-5]\\d$"},"end":{"type":"string","pattern":"^(?:[01]\\d|2[0-3]):[0-5]\\d$"}},"required":["timezone","weekdays","start","end"]},"profile_version":{"type":"integer","exclusiveMinimum":0},"voice_version":{"type":"integer","minimum":0}},"required":["start","steps","compose_mode","instructions","schedule","profile_version","voice_version"]},"created_at":{"type":"string","format":"date-time"},"approval":{"anyOf":[{"type":"object","properties":{"actor_ref":{"type":"string","format":"uuid"},"approved_at":{"type":"string","format":"date-time"}},"required":["actor_ref","approved_at"]},{"type":"object","properties":{"actor_ref":{"type":"null"},"approved_at":{"type":"string","format":"date-time"},"origin":{"type":"string","enum":["slack"]},"decision_ref":{"type":"string","format":"uuid"},"source_decision_ref":{"type":"string","format":"uuid"},"proposal_ref":{"type":"string","format":"uuid"},"option_ref":{"type":"string","format":"uuid"},"slack":{"type":"object","properties":{"user_id":{"type":"string","minLength":1},"team_id":{"type":"string","minLength":1},"channel_id":{"type":"string","minLength":1},"message_ts":{"type":"string","minLength":1}},"required":["user_id","team_id","channel_id","message_ts"]}},"required":["actor_ref","approved_at","origin","decision_ref","source_decision_ref","proposal_ref","option_ref","slack"]},{"type":"object","properties":{"actor_ref":{"type":"null"},"approved_at":{"type":"string","format":"date-time"},"origin":{"type":"string","enum":["system"]},"decision_ref":{"type":"string","format":"uuid"},"source_decision_ref":{"type":"string","format":"uuid"},"proposal_ref":{"type":"string","format":"uuid"},"option_ref":{"type":"string","format":"uuid"},"system":{"type":"object","properties":{"policy":{"type":"string","minLength":1}},"required":["policy"]}},"required":["actor_ref","approved_at","origin","decision_ref","source_decision_ref","proposal_ref","option_ref","system"]},{"type":"null"}]}},"required":["revision_ref","digest","content","created_at","approval"]},"maxItems":100}},"required":["campaign_ref","journey_ref","channel","version","name","state","active_revision","draft_revision","revisions"]},"slots_spec_warnings":{"type":"object","properties":{"revision_ref":{"type":"string","format":"uuid"},"unused_placeholders":{"type":"array","items":{"type":"object","properties":{"position":{"type":"integer","exclusiveMinimum":0},"template":{"type":["string","null"]},"placeholder":{"type":"string"}},"required":["position","template","placeholder"]},"minItems":1}},"required":["revision_ref","unused_placeholders"],"description":"Placeholders a template's slots_spec names that its own subject and text do not use, in the published revision for publish and the draft otherwise. Warnings only; absent when there are none."},"journey":{"type":"object","properties":{"journey_ref":{"type":"string","format":"uuid"},"version":{"type":"integer","exclusiveMinimum":0},"name":{"type":"string","minLength":1,"maxLength":200},"active_revision":{"type":["object","null"],"properties":{"revision_ref":{"type":"string","format":"uuid"},"digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"content":{"type":"object","properties":{"audience":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","enum":["qualified"]}},"required":["kind"]},{"type":"object","properties":{"kind":{"type":"string","enum":["static"]},"lead_refs":{"type":"array","items":{"type":"string","format":"uuid"},"minItems":1,"maxItems":500}},"required":["kind","lead_refs"]},{"type":"object","properties":{"kind":{"type":"string","enum":["conference"]},"list_ref":{"type":"string","format":"uuid"}},"required":["kind","list_ref"]}]},"stops":{"type":"array","items":{"type":"string","enum":["reply","meeting_booked","suppression","manual_stop"]}}},"required":["audience","stops"]},"created_at":{"type":"string","format":"date-time"},"approval":{"type":["object","null"],"properties":{"actor_ref":{"type":"string","format":"uuid"},"approved_at":{"type":"string","format":"date-time"}},"required":["actor_ref","approved_at"]}},"required":["revision_ref","digest","content","created_at","approval"]},"draft_revision":{"type":"object","properties":{"revision_ref":{"type":"string","format":"uuid"},"digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"content":{"type":"object","properties":{"audience":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","enum":["qualified"]}},"required":["kind"]},{"type":"object","properties":{"kind":{"type":"string","enum":["static"]},"lead_refs":{"type":"array","items":{"type":"string","format":"uuid"},"minItems":1,"maxItems":500}},"required":["kind","lead_refs"]},{"type":"object","properties":{"kind":{"type":"string","enum":["conference"]},"list_ref":{"type":"string","format":"uuid"}},"required":["kind","list_ref"]}]},"stops":{"type":"array","items":{"type":"string","enum":["reply","meeting_booked","suppression","manual_stop"]}}},"required":["audience","stops"]},"created_at":{"type":"string","format":"date-time"},"approval":{"type":["object","null"],"properties":{"actor_ref":{"type":"string","format":"uuid"},"approved_at":{"type":"string","format":"date-time"}},"required":["actor_ref","approved_at"]}},"required":["revision_ref","digest","content","created_at","approval"]},"revisions":{"type":"array","items":{"type":"object","properties":{"revision_ref":{"type":"string","format":"uuid"},"digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"content":{"type":"object","properties":{"audience":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","enum":["qualified"]}},"required":["kind"]},{"type":"object","properties":{"kind":{"type":"string","enum":["static"]},"lead_refs":{"type":"array","items":{"type":"string","format":"uuid"},"minItems":1,"maxItems":500}},"required":["kind","lead_refs"]},{"type":"object","properties":{"kind":{"type":"string","enum":["conference"]},"list_ref":{"type":"string","format":"uuid"}},"required":["kind","list_ref"]}]},"stops":{"type":"array","items":{"type":"string","enum":["reply","meeting_booked","suppression","manual_stop"]}}},"required":["audience","stops"]},"created_at":{"type":"string","format":"date-time"},"approval":{"type":["object","null"],"properties":{"actor_ref":{"type":"string","format":"uuid"},"approved_at":{"type":"string","format":"date-time"}},"required":["actor_ref","approved_at"]}},"required":["revision_ref","digest","content","created_at","approval"]},"maxItems":100},"campaigns":{"type":"array","items":{"type":"object","properties":{"campaign_ref":{"type":"string","format":"uuid"},"journey_ref":{"type":"string","format":"uuid"},"channel":{"type":"string","enum":["email","linkedin"]},"version":{"type":"integer","exclusiveMinimum":0},"name":{"type":"string","minLength":1,"maxLength":200},"state":{"type":"string","enum":["inactive","active","paused"]},"active_revision":{"type":["object","null"],"properties":{"revision_ref":{"type":"string","format":"uuid"},"digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"approval":{"anyOf":[{"type":"object","properties":{"actor_ref":{"type":"string","format":"uuid"},"approved_at":{"type":"string","format":"date-time"}},"required":["actor_ref","approved_at"]},{"type":"object","properties":{"actor_ref":{"type":"null"},"approved_at":{"type":"string","format":"date-time"},"origin":{"type":"string","enum":["slack"]},"decision_ref":{"type":"string","format":"uuid"},"source_decision_ref":{"type":"string","format":"uuid"},"proposal_ref":{"type":"string","format":"uuid"},"option_ref":{"type":"string","format":"uuid"},"slack":{"type":"object","properties":{"user_id":{"type":"string","minLength":1},"team_id":{"type":"string","minLength":1},"channel_id":{"type":"string","minLength":1},"message_ts":{"type":"string","minLength":1}},"required":["user_id","team_id","channel_id","message_ts"]}},"required":["actor_ref","approved_at","origin","decision_ref","source_decision_ref","proposal_ref","option_ref","slack"]},{"type":"object","properties":{"actor_ref":{"type":"null"},"approved_at":{"type":"string","format":"date-time"},"origin":{"type":"string","enum":["system"]},"decision_ref":{"type":"string","format":"uuid"},"source_decision_ref":{"type":"string","format":"uuid"},"proposal_ref":{"type":"string","format":"uuid"},"option_ref":{"type":"string","format":"uuid"},"system":{"type":"object","properties":{"policy":{"type":"string","minLength":1}},"required":["policy"]}},"required":["actor_ref","approved_at","origin","decision_ref","source_decision_ref","proposal_ref","option_ref","system"]},{"type":"null"}]}},"required":["revision_ref","digest","approval"]},"draft_revision":{"type":"object","properties":{"revision_ref":{"type":"string","format":"uuid"},"digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"approval":{"anyOf":[{"type":"object","properties":{"actor_ref":{"type":"string","format":"uuid"},"approved_at":{"type":"string","format":"date-time"}},"required":["actor_ref","approved_at"]},{"type":"object","properties":{"actor_ref":{"type":"null"},"approved_at":{"type":"string","format":"date-time"},"origin":{"type":"string","enum":["slack"]},"decision_ref":{"type":"string","format":"uuid"},"source_decision_ref":{"type":"string","format":"uuid"},"proposal_ref":{"type":"string","format":"uuid"},"option_ref":{"type":"string","format":"uuid"},"slack":{"type":"object","properties":{"user_id":{"type":"string","minLength":1},"team_id":{"type":"string","minLength":1},"channel_id":{"type":"string","minLength":1},"message_ts":{"type":"string","minLength":1}},"required":["user_id","team_id","channel_id","message_ts"]}},"required":["actor_ref","approved_at","origin","decision_ref","source_decision_ref","proposal_ref","option_ref","slack"]},{"type":"object","properties":{"actor_ref":{"type":"null"},"approved_at":{"type":"string","format":"date-time"},"origin":{"type":"string","enum":["system"]},"decision_ref":{"type":"string","format":"uuid"},"source_decision_ref":{"type":"string","format":"uuid"},"proposal_ref":{"type":"string","format":"uuid"},"option_ref":{"type":"string","format":"uuid"},"system":{"type":"object","properties":{"policy":{"type":"string","minLength":1}},"required":["policy"]}},"required":["actor_ref","approved_at","origin","decision_ref","source_decision_ref","proposal_ref","option_ref","system"]},{"type":"null"}]}},"required":["revision_ref","digest","approval"]}},"required":["campaign_ref","journey_ref","channel","version","name","state","active_revision","draft_revision"]},"maxItems":100},"executable_version":{"type":["object","null"],"properties":{"executable_version_ref":{"type":"string","format":"uuid"},"digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"created_at":{"type":"string","format":"date-time"},"journey":{"type":"object","properties":{"revision_ref":{"type":"string","format":"uuid"},"digest":{"type":"string","pattern":"^[a-f0-9]{64}$"}},"required":["revision_ref","digest"]},"campaigns":{"type":"array","items":{"type":"object","properties":{"campaign_ref":{"type":"string","format":"uuid"},"channel":{"type":"string","enum":["email","linkedin"]},"revision":{"type":"object","properties":{"revision_ref":{"type":"string","format":"uuid"},"digest":{"type":"string","pattern":"^[a-f0-9]{64}$"}},"required":["revision_ref","digest"]}},"required":["campaign_ref","channel","revision"]},"minItems":1,"maxItems":2},"graph":{"type":"object","properties":{"status":{"type":"string","enum":["compiling","compiled"]}},"required":["status"]}},"required":["executable_version_ref","digest","created_at","journey","campaigns","graph"]},"segment_id":{"type":"string","format":"uuid"},"segment_name":{"type":"string","minLength":1,"maxLength":120},"retired_at":{"type":"string","format":"date-time","description":"When the Journey was retired; absent while it is not."},"retired_by":{"type":["string","null"],"format":"uuid","description":"The member who retired it; absent while it is not retired."},"leads_in_progress":{"type":"integer","minimum":0,"description":"Leads still in the retired Journey, who keep getting their remaining messages; 0 once the last one finishes. Absent while it is not retired."}},"required":["journey_ref","version","name","active_revision","draft_revision","revisions","campaigns","executable_version"]},"change_reach":{"type":["object","null"],"properties":{"workspace_ref":{"type":"string","format":"uuid"},"campaign_ref":{"type":"string","format":"uuid"},"revision_ref":{"type":["string","null"],"format":"uuid"},"channel":{"type":"string","enum":["email","linkedin"]},"offered":{"type":"boolean"},"written":{"type":"integer","minimum":0},"unwritten":{"type":"integer","minimum":0},"moving":{"type":"integer","minimum":0},"versions":{"type":"array","items":{"type":"object","properties":{"revision_ref":{"type":"string","format":"uuid"},"active":{"type":"boolean"},"created_at":{"type":"string","format":"date-time"},"runs":{"type":"integer","minimum":0},"unwritten_can_reach":{"type":"integer","minimum":0},"unwritten_closed":{"type":"integer","minimum":0},"steps":{"type":"array","items":{"type":"object","properties":{"position":{"type":"integer"},"can_send":{"type":"integer","minimum":0}},"required":["position","can_send"]}}},"required":["revision_ref","active","created_at","runs","unwritten_can_reach","unwritten_closed","steps"]}}},"required":["workspace_ref","campaign_ref","revision_ref","channel","offered","written","unwritten"]},"customer_list":{"type":"object","properties":{"state":{"type":"string","enum":["fresh","stale","missing","not_required"]},"reason":{"type":["string","null"],"maxLength":100},"checked_at":{"type":"string","format":"date-time"}},"required":["state","reason","checked_at"]},"blocked_people":{"type":["array","null"],"items":{"type":"object","properties":{"sender_id":{"type":"string","format":"uuid"},"name":{"type":"string","minLength":1},"cause":{"type":"string","minLength":1},"label":{"type":"string","minLength":1},"clears_on":{"type":["string","null"],"format":"date"},"owner":{"type":"string","enum":["member","lifty","none"]},"action":{"type":"string","enum":["none","wait","lifty_review","contact_lift","reconnect","resume_account","resume_sender","turn_on_sender","resume_campaigns","resume_campaign","set_mailbox_use","add_signature"]},"since":{"type":["string","null"],"format":"date-time"},"review_by":{"type":["string","null"],"format":"date-time"},"waiting_journeys":{"type":["integer","null"],"minimum":0}},"required":["sender_id","name","cause","label","clears_on","owner","action","since","review_by","waiting_journeys"]},"maxItems":1000}},"required":["workspace","campaign","journey","blocked_people"]}}}},"400":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/workspace/campaigns/{campaign_ref}/pause":{"post":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"campaign_ref","in":"path"},{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"expected_version":{"type":"integer","exclusiveMinimum":0},"reason":{"type":"string","minLength":1,"maxLength":200},"resumed_by":{"type":"string","enum":["lifty","founder"]}},"required":["expected_version"],"additionalProperties":false}}}},"responses":{"200":{"description":"Pause every automatic step of this Campaign in every started Journey, including follow-ups. Only a LIFT admin passes reason, which the founder reads in their notice, and resumed_by (founder needs reason). Pending work and history remain; begun or unknown effects reconcile. Other channels continue where their start rules permit. Does not claim provider stop confirmation.","content":{"application/json":{"schema":{"type":"object","properties":{"workspace":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string","minLength":1,"maxLength":200},"state":{"type":"string","minLength":1}},"required":["workspace_ref","name","state"]},"campaign":{"type":"object","properties":{"campaign_ref":{"type":"string","format":"uuid"},"journey_ref":{"type":"string","format":"uuid"},"channel":{"type":"string","enum":["email","linkedin"]},"version":{"type":"integer","exclusiveMinimum":0},"name":{"type":"string","minLength":1,"maxLength":200},"state":{"type":"string","enum":["inactive","active","paused"]},"active_revision":{"type":["object","null"],"properties":{"revision_ref":{"type":"string","format":"uuid"},"digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"content":{"type":"object","properties":{"start":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["journey_start"]}},"required":["type"]},{"type":"object","properties":{"type":{"type":"string","enum":["sent"]},"campaign_ref":{"type":"string","format":"uuid"},"step":{"type":"integer","minimum":1,"maximum":10},"after":{"anyOf":[{"type":"object","properties":{"days":{"type":"integer","minimum":0,"maximum":365}},"required":["days"]},{"type":"object","properties":{"business_days":{"type":"integer","minimum":0,"maximum":365}},"required":["business_days"]}]}},"required":["type","campaign_ref","step","after"]},{"type":"object","properties":{"type":{"type":"string","enum":["unaccepted"]},"campaign_ref":{"type":"string","format":"uuid"},"after":{"type":"object","properties":{"business_days":{"type":"integer","minimum":0,"maximum":365}},"required":["business_days"]}},"required":["type","campaign_ref","after"]},{"type":"object","properties":{"type":{"type":"string","enum":["linkedin_first_dm_skipped"]},"campaign_ref":{"type":"string","format":"uuid"}},"required":["type","campaign_ref"]}]},"minItems":1,"maxItems":3},"steps":{"type":"array","items":{"type":"object","properties":{"position":{"type":"integer","minimum":1,"maximum":5},"delay":{"anyOf":[{"type":"object","properties":{"days":{"type":"integer","minimum":0,"maximum":365}},"required":["days"]},{"type":"object","properties":{"business_days":{"type":"integer","minimum":0,"maximum":365}},"required":["business_days"]}]},"template":{"type":"object","properties":{"subject":{"type":"string","minLength":1,"maxLength":300},"text":{"type":"string","minLength":1,"maxLength":20000},"display_name":{"type":"string","minLength":1,"maxLength":100},"id":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9._-]+$"},"arms":{"type":"array","items":{"type":"string","enum":["direct","pain","personal","strategic"]},"minItems":1,"maxItems":4},"variant":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9._-]+$"},"coverage":{"type":"string","enum":["broad","signal_specific"]},"fit":{"type":"string","minLength":1,"maxLength":2000},"slots_spec":{"type":"string","minLength":1,"maxLength":4000,"description":"Free-form guidance the writer reads about the slots this template's subject and text use. The text defines the slots; this spec never adds or removes one."}},"required":["text"]},"variants":{"type":"array","items":{"type":"object","properties":{"subject":{"type":"string","minLength":1,"maxLength":300},"text":{"type":"string","minLength":1,"maxLength":20000},"display_name":{"type":"string","minLength":1,"maxLength":100},"id":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9._-]+$"},"arms":{"type":"array","items":{"type":"string","enum":["direct","pain","personal","strategic"]},"minItems":1,"maxItems":4},"variant":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9._-]+$"},"coverage":{"type":"string","enum":["broad","signal_specific"]},"fit":{"type":"string","minLength":1,"maxLength":2000},"slots_spec":{"type":"string","minLength":1,"maxLength":4000,"description":"Free-form guidance the writer reads about the slots this template's subject and text use. The text defines the slots; this spec never adds or removes one."},"lane":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,39}$"},"opener":{"type":"string","enum":["cold","linkedin_bridge"]}},"required":["text"]},"minItems":1,"maxItems":40},"writing_instructions":{"type":"string","minLength":1,"maxLength":10000,"description":"Optional guidance for this message in generate mode; preserves campaign-wide instructions and Business voice."}},"required":["position","delay"]},"minItems":1,"maxItems":5,"description":"The saved sequence owns its count. Executable adapter: LinkedIn invitation then 1–3 messages, the first waiting its delay after acceptance; email 1–5 steps with delays up to 30 days or business days."},"compose_mode":{"type":"string","enum":["generate","templates"]},"instructions":{"type":"string","maxLength":30000},"lanes":{"type":"object","properties":{"field":{"type":"string","enum":["title"]},"default":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,39}$"},"rules":{"type":"array","items":{"type":"object","properties":{"lane":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,39}$"},"contains_any":{"type":"array","items":{"type":"string","minLength":1,"maxLength":60},"minItems":1,"maxItems":20},"search_lane_in":{"type":"array","items":{"type":"string","format":"uuid"},"minItems":1,"maxItems":20},"research_field":{"type":"string","minLength":1,"maxLength":100},"equals_any":{"type":"array","items":{"type":"string","minLength":1,"maxLength":60},"minItems":1,"maxItems":20}},"required":["lane"]},"minItems":1,"maxItems":10}},"required":["default","rules"]},"schedule":{"type":"object","properties":{"timezone":{"type":"string","minLength":1,"maxLength":100},"weekdays":{"type":"array","items":{"type":"integer","minimum":1,"maximum":7},"minItems":1,"maxItems":7},"start":{"type":"string","pattern":"^(?:[01]\\d|2[0-3]):[0-5]\\d$"},"end":{"type":"string","pattern":"^(?:[01]\\d|2[0-3]):[0-5]\\d$"}},"required":["timezone","weekdays","start","end"]},"profile_version":{"type":"integer","exclusiveMinimum":0},"voice_version":{"type":"integer","minimum":0}},"required":["start","steps","compose_mode","instructions","schedule","profile_version","voice_version"]},"created_at":{"type":"string","format":"date-time"},"approval":{"anyOf":[{"type":"object","properties":{"actor_ref":{"type":"string","format":"uuid"},"approved_at":{"type":"string","format":"date-time"}},"required":["actor_ref","approved_at"]},{"type":"object","properties":{"actor_ref":{"type":"null"},"approved_at":{"type":"string","format":"date-time"},"origin":{"type":"string","enum":["slack"]},"decision_ref":{"type":"string","format":"uuid"},"source_decision_ref":{"type":"string","format":"uuid"},"proposal_ref":{"type":"string","format":"uuid"},"option_ref":{"type":"string","format":"uuid"},"slack":{"type":"object","properties":{"user_id":{"type":"string","minLength":1},"team_id":{"type":"string","minLength":1},"channel_id":{"type":"string","minLength":1},"message_ts":{"type":"string","minLength":1}},"required":["user_id","team_id","channel_id","message_ts"]}},"required":["actor_ref","approved_at","origin","decision_ref","source_decision_ref","proposal_ref","option_ref","slack"]},{"type":"object","properties":{"actor_ref":{"type":"null"},"approved_at":{"type":"string","format":"date-time"},"origin":{"type":"string","enum":["system"]},"decision_ref":{"type":"string","format":"uuid"},"source_decision_ref":{"type":"string","format":"uuid"},"proposal_ref":{"type":"string","format":"uuid"},"option_ref":{"type":"string","format":"uuid"},"system":{"type":"object","properties":{"policy":{"type":"string","minLength":1}},"required":["policy"]}},"required":["actor_ref","approved_at","origin","decision_ref","source_decision_ref","proposal_ref","option_ref","system"]},{"type":"null"}]}},"required":["revision_ref","digest","content","created_at","approval"]},"draft_revision":{"type":"object","properties":{"revision_ref":{"type":"string","format":"uuid"},"digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"content":{"type":"object","properties":{"start":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["journey_start"]}},"required":["type"]},{"type":"object","properties":{"type":{"type":"string","enum":["sent"]},"campaign_ref":{"type":"string","format":"uuid"},"step":{"type":"integer","minimum":1,"maximum":10},"after":{"anyOf":[{"type":"object","properties":{"days":{"type":"integer","minimum":0,"maximum":365}},"required":["days"]},{"type":"object","properties":{"business_days":{"type":"integer","minimum":0,"maximum":365}},"required":["business_days"]}]}},"required":["type","campaign_ref","step","after"]},{"type":"object","properties":{"type":{"type":"string","enum":["unaccepted"]},"campaign_ref":{"type":"string","format":"uuid"},"after":{"type":"object","properties":{"business_days":{"type":"integer","minimum":0,"maximum":365}},"required":["business_days"]}},"required":["type","campaign_ref","after"]},{"type":"object","properties":{"type":{"type":"string","enum":["linkedin_first_dm_skipped"]},"campaign_ref":{"type":"string","format":"uuid"}},"required":["type","campaign_ref"]}]},"minItems":1,"maxItems":3},"steps":{"type":"array","items":{"type":"object","properties":{"position":{"type":"integer","minimum":1,"maximum":5},"delay":{"anyOf":[{"type":"object","properties":{"days":{"type":"integer","minimum":0,"maximum":365}},"required":["days"]},{"type":"object","properties":{"business_days":{"type":"integer","minimum":0,"maximum":365}},"required":["business_days"]}]},"template":{"type":"object","properties":{"subject":{"type":"string","minLength":1,"maxLength":300},"text":{"type":"string","minLength":1,"maxLength":20000},"display_name":{"type":"string","minLength":1,"maxLength":100},"id":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9._-]+$"},"arms":{"type":"array","items":{"type":"string","enum":["direct","pain","personal","strategic"]},"minItems":1,"maxItems":4},"variant":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9._-]+$"},"coverage":{"type":"string","enum":["broad","signal_specific"]},"fit":{"type":"string","minLength":1,"maxLength":2000},"slots_spec":{"type":"string","minLength":1,"maxLength":4000,"description":"Free-form guidance the writer reads about the slots this template's subject and text use. The text defines the slots; this spec never adds or removes one."}},"required":["text"]},"variants":{"type":"array","items":{"type":"object","properties":{"subject":{"type":"string","minLength":1,"maxLength":300},"text":{"type":"string","minLength":1,"maxLength":20000},"display_name":{"type":"string","minLength":1,"maxLength":100},"id":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9._-]+$"},"arms":{"type":"array","items":{"type":"string","enum":["direct","pain","personal","strategic"]},"minItems":1,"maxItems":4},"variant":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9._-]+$"},"coverage":{"type":"string","enum":["broad","signal_specific"]},"fit":{"type":"string","minLength":1,"maxLength":2000},"slots_spec":{"type":"string","minLength":1,"maxLength":4000,"description":"Free-form guidance the writer reads about the slots this template's subject and text use. The text defines the slots; this spec never adds or removes one."},"lane":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,39}$"},"opener":{"type":"string","enum":["cold","linkedin_bridge"]}},"required":["text"]},"minItems":1,"maxItems":40},"writing_instructions":{"type":"string","minLength":1,"maxLength":10000,"description":"Optional guidance for this message in generate mode; preserves campaign-wide instructions and Business voice."}},"required":["position","delay"]},"minItems":1,"maxItems":5,"description":"The saved sequence owns its count. Executable adapter: LinkedIn invitation then 1–3 messages, the first waiting its delay after acceptance; email 1–5 steps with delays up to 30 days or business days."},"compose_mode":{"type":"string","enum":["generate","templates"]},"instructions":{"type":"string","maxLength":30000},"lanes":{"type":"object","properties":{"field":{"type":"string","enum":["title"]},"default":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,39}$"},"rules":{"type":"array","items":{"type":"object","properties":{"lane":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,39}$"},"contains_any":{"type":"array","items":{"type":"string","minLength":1,"maxLength":60},"minItems":1,"maxItems":20},"search_lane_in":{"type":"array","items":{"type":"string","format":"uuid"},"minItems":1,"maxItems":20},"research_field":{"type":"string","minLength":1,"maxLength":100},"equals_any":{"type":"array","items":{"type":"string","minLength":1,"maxLength":60},"minItems":1,"maxItems":20}},"required":["lane"]},"minItems":1,"maxItems":10}},"required":["default","rules"]},"schedule":{"type":"object","properties":{"timezone":{"type":"string","minLength":1,"maxLength":100},"weekdays":{"type":"array","items":{"type":"integer","minimum":1,"maximum":7},"minItems":1,"maxItems":7},"start":{"type":"string","pattern":"^(?:[01]\\d|2[0-3]):[0-5]\\d$"},"end":{"type":"string","pattern":"^(?:[01]\\d|2[0-3]):[0-5]\\d$"}},"required":["timezone","weekdays","start","end"]},"profile_version":{"type":"integer","exclusiveMinimum":0},"voice_version":{"type":"integer","minimum":0}},"required":["start","steps","compose_mode","instructions","schedule","profile_version","voice_version"]},"created_at":{"type":"string","format":"date-time"},"approval":{"anyOf":[{"type":"object","properties":{"actor_ref":{"type":"string","format":"uuid"},"approved_at":{"type":"string","format":"date-time"}},"required":["actor_ref","approved_at"]},{"type":"object","properties":{"actor_ref":{"type":"null"},"approved_at":{"type":"string","format":"date-time"},"origin":{"type":"string","enum":["slack"]},"decision_ref":{"type":"string","format":"uuid"},"source_decision_ref":{"type":"string","format":"uuid"},"proposal_ref":{"type":"string","format":"uuid"},"option_ref":{"type":"string","format":"uuid"},"slack":{"type":"object","properties":{"user_id":{"type":"string","minLength":1},"team_id":{"type":"string","minLength":1},"channel_id":{"type":"string","minLength":1},"message_ts":{"type":"string","minLength":1}},"required":["user_id","team_id","channel_id","message_ts"]}},"required":["actor_ref","approved_at","origin","decision_ref","source_decision_ref","proposal_ref","option_ref","slack"]},{"type":"object","properties":{"actor_ref":{"type":"null"},"approved_at":{"type":"string","format":"date-time"},"origin":{"type":"string","enum":["system"]},"decision_ref":{"type":"string","format":"uuid"},"source_decision_ref":{"type":"string","format":"uuid"},"proposal_ref":{"type":"string","format":"uuid"},"option_ref":{"type":"string","format":"uuid"},"system":{"type":"object","properties":{"policy":{"type":"string","minLength":1}},"required":["policy"]}},"required":["actor_ref","approved_at","origin","decision_ref","source_decision_ref","proposal_ref","option_ref","system"]},{"type":"null"}]}},"required":["revision_ref","digest","content","created_at","approval"]},"revisions":{"type":"array","items":{"type":"object","properties":{"revision_ref":{"type":"string","format":"uuid"},"digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"content":{"type":"object","properties":{"start":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["journey_start"]}},"required":["type"]},{"type":"object","properties":{"type":{"type":"string","enum":["sent"]},"campaign_ref":{"type":"string","format":"uuid"},"step":{"type":"integer","minimum":1,"maximum":10},"after":{"anyOf":[{"type":"object","properties":{"days":{"type":"integer","minimum":0,"maximum":365}},"required":["days"]},{"type":"object","properties":{"business_days":{"type":"integer","minimum":0,"maximum":365}},"required":["business_days"]}]}},"required":["type","campaign_ref","step","after"]},{"type":"object","properties":{"type":{"type":"string","enum":["unaccepted"]},"campaign_ref":{"type":"string","format":"uuid"},"after":{"type":"object","properties":{"business_days":{"type":"integer","minimum":0,"maximum":365}},"required":["business_days"]}},"required":["type","campaign_ref","after"]},{"type":"object","properties":{"type":{"type":"string","enum":["linkedin_first_dm_skipped"]},"campaign_ref":{"type":"string","format":"uuid"}},"required":["type","campaign_ref"]}]},"minItems":1,"maxItems":3},"steps":{"type":"array","items":{"type":"object","properties":{"position":{"type":"integer","minimum":1,"maximum":5},"delay":{"anyOf":[{"type":"object","properties":{"days":{"type":"integer","minimum":0,"maximum":365}},"required":["days"]},{"type":"object","properties":{"business_days":{"type":"integer","minimum":0,"maximum":365}},"required":["business_days"]}]},"template":{"type":"object","properties":{"subject":{"type":"string","minLength":1,"maxLength":300},"text":{"type":"string","minLength":1,"maxLength":20000},"display_name":{"type":"string","minLength":1,"maxLength":100},"id":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9._-]+$"},"arms":{"type":"array","items":{"type":"string","enum":["direct","pain","personal","strategic"]},"minItems":1,"maxItems":4},"variant":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9._-]+$"},"coverage":{"type":"string","enum":["broad","signal_specific"]},"fit":{"type":"string","minLength":1,"maxLength":2000},"slots_spec":{"type":"string","minLength":1,"maxLength":4000,"description":"Free-form guidance the writer reads about the slots this template's subject and text use. The text defines the slots; this spec never adds or removes one."}},"required":["text"]},"variants":{"type":"array","items":{"type":"object","properties":{"subject":{"type":"string","minLength":1,"maxLength":300},"text":{"type":"string","minLength":1,"maxLength":20000},"display_name":{"type":"string","minLength":1,"maxLength":100},"id":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9._-]+$"},"arms":{"type":"array","items":{"type":"string","enum":["direct","pain","personal","strategic"]},"minItems":1,"maxItems":4},"variant":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9._-]+$"},"coverage":{"type":"string","enum":["broad","signal_specific"]},"fit":{"type":"string","minLength":1,"maxLength":2000},"slots_spec":{"type":"string","minLength":1,"maxLength":4000,"description":"Free-form guidance the writer reads about the slots this template's subject and text use. The text defines the slots; this spec never adds or removes one."},"lane":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,39}$"},"opener":{"type":"string","enum":["cold","linkedin_bridge"]}},"required":["text"]},"minItems":1,"maxItems":40},"writing_instructions":{"type":"string","minLength":1,"maxLength":10000,"description":"Optional guidance for this message in generate mode; preserves campaign-wide instructions and Business voice."}},"required":["position","delay"]},"minItems":1,"maxItems":5,"description":"The saved sequence owns its count. Executable adapter: LinkedIn invitation then 1–3 messages, the first waiting its delay after acceptance; email 1–5 steps with delays up to 30 days or business days."},"compose_mode":{"type":"string","enum":["generate","templates"]},"instructions":{"type":"string","maxLength":30000},"lanes":{"type":"object","properties":{"field":{"type":"string","enum":["title"]},"default":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,39}$"},"rules":{"type":"array","items":{"type":"object","properties":{"lane":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,39}$"},"contains_any":{"type":"array","items":{"type":"string","minLength":1,"maxLength":60},"minItems":1,"maxItems":20},"search_lane_in":{"type":"array","items":{"type":"string","format":"uuid"},"minItems":1,"maxItems":20},"research_field":{"type":"string","minLength":1,"maxLength":100},"equals_any":{"type":"array","items":{"type":"string","minLength":1,"maxLength":60},"minItems":1,"maxItems":20}},"required":["lane"]},"minItems":1,"maxItems":10}},"required":["default","rules"]},"schedule":{"type":"object","properties":{"timezone":{"type":"string","minLength":1,"maxLength":100},"weekdays":{"type":"array","items":{"type":"integer","minimum":1,"maximum":7},"minItems":1,"maxItems":7},"start":{"type":"string","pattern":"^(?:[01]\\d|2[0-3]):[0-5]\\d$"},"end":{"type":"string","pattern":"^(?:[01]\\d|2[0-3]):[0-5]\\d$"}},"required":["timezone","weekdays","start","end"]},"profile_version":{"type":"integer","exclusiveMinimum":0},"voice_version":{"type":"integer","minimum":0}},"required":["start","steps","compose_mode","instructions","schedule","profile_version","voice_version"]},"created_at":{"type":"string","format":"date-time"},"approval":{"anyOf":[{"type":"object","properties":{"actor_ref":{"type":"string","format":"uuid"},"approved_at":{"type":"string","format":"date-time"}},"required":["actor_ref","approved_at"]},{"type":"object","properties":{"actor_ref":{"type":"null"},"approved_at":{"type":"string","format":"date-time"},"origin":{"type":"string","enum":["slack"]},"decision_ref":{"type":"string","format":"uuid"},"source_decision_ref":{"type":"string","format":"uuid"},"proposal_ref":{"type":"string","format":"uuid"},"option_ref":{"type":"string","format":"uuid"},"slack":{"type":"object","properties":{"user_id":{"type":"string","minLength":1},"team_id":{"type":"string","minLength":1},"channel_id":{"type":"string","minLength":1},"message_ts":{"type":"string","minLength":1}},"required":["user_id","team_id","channel_id","message_ts"]}},"required":["actor_ref","approved_at","origin","decision_ref","source_decision_ref","proposal_ref","option_ref","slack"]},{"type":"object","properties":{"actor_ref":{"type":"null"},"approved_at":{"type":"string","format":"date-time"},"origin":{"type":"string","enum":["system"]},"decision_ref":{"type":"string","format":"uuid"},"source_decision_ref":{"type":"string","format":"uuid"},"proposal_ref":{"type":"string","format":"uuid"},"option_ref":{"type":"string","format":"uuid"},"system":{"type":"object","properties":{"policy":{"type":"string","minLength":1}},"required":["policy"]}},"required":["actor_ref","approved_at","origin","decision_ref","source_decision_ref","proposal_ref","option_ref","system"]},{"type":"null"}]}},"required":["revision_ref","digest","content","created_at","approval"]},"maxItems":100}},"required":["campaign_ref","journey_ref","channel","version","name","state","active_revision","draft_revision","revisions"]},"slots_spec_warnings":{"type":"object","properties":{"revision_ref":{"type":"string","format":"uuid"},"unused_placeholders":{"type":"array","items":{"type":"object","properties":{"position":{"type":"integer","exclusiveMinimum":0},"template":{"type":["string","null"]},"placeholder":{"type":"string"}},"required":["position","template","placeholder"]},"minItems":1}},"required":["revision_ref","unused_placeholders"],"description":"Placeholders a template's slots_spec names that its own subject and text do not use, in the published revision for publish and the draft otherwise. Warnings only; absent when there are none."}},"required":["workspace","campaign"]}}}},"400":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/workspace/sends":{"get":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":false,"name":"campaign_ref","in":"query"},{"schema":{"type":"string","format":"uuid"},"required":false,"name":"lead_ref","in":"query"},{"schema":{"type":"string","enum":["linkedin","email"]},"required":false,"name":"channel","in":"query"},{"schema":{"type":"string","format":"date-time"},"required":false,"name":"start","in":"query"},{"schema":{"type":"string","format":"date-time"},"required":false,"name":"end","in":"query"},{"schema":{"type":"integer","minimum":1,"maximum":100},"required":false,"name":"limit","in":"query"},{"schema":{"type":"string","format":"uuid"},"required":false,"name":"after","in":"query"},{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"responses":{"200":{"description":"Read what Lifty sent in the selected workspace, newest first: confirmed LinkedIn invitations, LinkedIn messages and email steps, the same events the weekly reports count, each with the person, sender, Campaign, step and the text that went out. Filter by campaign_ref, lead_ref, channel and start/end (start included, end excluded), page with next_after; read-only.","content":{"application/json":{"schema":{"type":"object","properties":{"workspace":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string","minLength":1,"maxLength":200},"state":{"type":"string","minLength":1}},"required":["workspace_ref","name","state"]},"sends":{"type":"array","items":{"type":"object","properties":{"event_ref":{"type":"string","format":"uuid"},"kind":{"type":"string","enum":["invitation","linkedin_message","email"]},"channel":{"type":"string","enum":["linkedin","email"]},"sent_at":{"type":"string","format":"date-time"},"lead_ref":{"type":"string","format":"uuid"},"lead_name":{"type":["string","null"]},"company_name":{"type":["string","null"]},"sender_ref":{"type":["string","null"],"format":"uuid"},"sender_name":{"type":["string","null"]},"campaign_ref":{"type":["string","null"],"format":"uuid"},"step":{"type":["integer","null"],"minimum":0},"template_id":{"type":["string","null"]},"message_ref":{"type":["string","null"],"format":"uuid"},"subject":{"type":["string","null"]},"text":{"type":["string","null"]},"attribution_basis":{"type":"string","enum":["immutable_send","reply","unknown"]}},"required":["event_ref","kind","channel","sent_at","lead_ref","lead_name","company_name","sender_ref","sender_name","campaign_ref","step","template_id","message_ref","subject","text","attribution_basis"]},"maxItems":100},"next_after":{"type":["string","null"],"format":"uuid"}},"required":["workspace","sends","next_after"]}}}},"400":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/workspace/leads/{lead_ref}/journey":{"get":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"lead_ref","in":"path"},{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"responses":{"200":{"description":"Read the Journey this lead actually entered from its latest canonical run, ordered by entered_at then run ID, newest first, including terminal history. Null means no canonical run. Never predicts a destination from grades or current Journey intent; failed reads remain unavailable.","content":{"application/json":{"schema":{"type":"object","properties":{"workspace":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string","minLength":1,"maxLength":200},"state":{"type":"string","minLength":1}},"required":["workspace_ref","name","state"]},"lead_ref":{"type":"string","format":"uuid"},"entered_journey":{"type":["object","null"],"properties":{"run_ref":{"type":"string","format":"uuid"},"journey_ref":{"type":"string","format":"uuid"},"journey_name":{"type":"string","minLength":1,"maxLength":200},"segment_id":{"type":"string","format":"uuid"},"segment_name":{"type":"string","minLength":1,"maxLength":120},"entered_at":{"type":"string","format":"date-time"}},"required":["run_ref","journey_ref","journey_name","segment_id","segment_name","entered_at"]}},"required":["workspace","lead_ref","entered_journey"]}}}},"400":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"422":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed resource error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/workspace/sample-review":{"get":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid","description":"Segment to read or change (segments_get). Required for writes with several segments."},"required":false,"description":"Segment to read or change (segments_get). Required for writes with several segments.","name":"segment_id","in":"query"},{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"responses":{"200":{"description":"Calibration sample","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"state":{"type":"string","enum":["none"]}},"required":["state"]},{"type":"object","properties":{"state":{"type":"string","enum":["queued","running","succeeded","failed"]},"run_ref":{"type":"string","minLength":1},"requested_leads":{"type":"integer","exclusiveMinimum":0},"leads_discovered":{"type":["integer","null"],"minimum":0},"calibration_policy":{"type":"string","enum":["tier_a_v1","qualified_ab_v1","researched_v1"]},"leads_researched":{"type":["integer","null"],"minimum":0},"error_code":{"type":["string","null"],"enum":["calibration_sample_incomplete","calibration_review_required","research_failed","search_exhausted","targeting_matched_nobody","research_limit_reached",null]},"started_at":{"type":"string","minLength":1},"completed_at":{"type":["string","null"]},"reviewed_at":{"type":["string","null"]},"workspace":{"type":"object","properties":{"workspace_ref":{"type":"string","minLength":1},"name":{"type":"string","minLength":1}},"required":["workspace_ref","name"]},"leads":{"type":["array","null"],"items":{"type":"object","properties":{"name":{"type":"string"},"title":{"type":["string","null"]},"company":{"type":["string","null"]},"linkedin_url":{"type":["string","null"]},"lead_ref":{"type":["string","null"],"format":"uuid"},"research_url":{"type":["string","null"]},"research_available":{"type":"boolean"},"tier":{"type":["string","null"]},"fit_rationale":{"type":["string","null"]},"stage":{"type":["string","null"]}},"required":["name","title","company","linkedin_url","tier","fit_rationale","stage"]}},"lanes":{"type":["array","null"],"items":{"type":"object","properties":{"lane_ref":{"type":"string","minLength":1},"label":{"type":["string","null"],"description":"The lane's current display name (its targeting label); null until it has one. Show it with lane_id."},"matching_people":{"type":"integer","minimum":0},"personas":{"type":"array","items":{"type":"object","properties":{"persona_ref":{"type":"string","minLength":1},"name":{"type":"string"},"matching_people":{"type":"integer","minimum":0}},"required":["persona_ref","name","matching_people"]}}},"required":["lane_ref","matching_people","personas"]}},"research_mode":{"type":"string","enum":["server","local"]},"research_until":{"type":["string","null"]}},"required":["state","run_ref","requested_leads","leads_discovered","leads_researched","error_code","started_at","completed_at","reviewed_at","workspace","leads"]}]}}}},"400":{"description":"Typed error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"504":{"description":"Typed error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}},"post":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid","description":"Segment to read or change (segments_get). Required for writes with several segments."},"required":false,"description":"Segment to read or change (segments_get). Required for writes with several segments.","name":"segment_id","in":"query"},{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"research":{"type":"string","enum":["server","local"]}},"additionalProperties":false}}}},"responses":{"200":{"description":"Calibration sample","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"run_ref":{"type":"string","minLength":1},"requested_leads":{"type":"integer","exclusiveMinimum":0},"workspace":{"type":"object","properties":{"workspace_ref":{"type":"string","minLength":1},"name":{"type":"string","minLength":1}},"required":["workspace_ref","name"]},"attempt":{"type":"integer","minimum":0},"state":{"type":"string","enum":["queued","running"]},"created":{"type":"boolean"},"calibration_policy":{"type":"string","enum":["tier_a_v1","qualified_ab_v1","researched_v1"]},"research_mode":{"type":"string","enum":["local"]}},"required":["run_ref","requested_leads","workspace","state","created"]},{"type":"object","properties":{"run_ref":{"type":"string","minLength":1},"requested_leads":{"type":"integer","exclusiveMinimum":0},"workspace":{"type":"object","properties":{"workspace_ref":{"type":"string","minLength":1},"name":{"type":"string","minLength":1}},"required":["workspace_ref","name"]},"attempt":{"type":"integer","minimum":0},"state":{"type":"string","enum":["failed"]},"created":{"type":"boolean","enum":[false]},"calibration_policy":{"type":"string","enum":["qualified_ab_v1"]},"error_code":{"type":"string","enum":["calibration_review_required"]}},"required":["run_ref","requested_leads","workspace","state","created","calibration_policy","error_code"]}]}}}},"400":{"description":"Typed error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"504":{"description":"Typed error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/workspace/runs/progress":{"get":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"run_ref","in":"query"},{"schema":{"type":"string","pattern":"^rp1_[a-f0-9]{64}$"},"required":false,"name":"cursor","in":"query"},{"schema":{"type":["integer","null"],"minimum":0,"maximum":25,"default":25},"required":false,"name":"wait_seconds","in":"query"},{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"responses":{"200":{"description":"Calibration sample","content":{"application/json":{"schema":{"type":"object","properties":{"run_ref":{"type":"string","format":"uuid"},"attempt":{"type":"integer","minimum":0},"workspace_ref":{"type":"string","format":"uuid"},"state":{"type":"string","enum":["queued","running","succeeded","failed"]},"requested_leads":{"type":"integer","minimum":1,"maximum":25},"leads_discovered":{"type":"integer","minimum":0},"leads_researched":{"type":"integer","minimum":0,"maximum":25},"error_code":{"type":["string","null"],"enum":["calibration_sample_incomplete","calibration_review_required","research_failed","search_exhausted","targeting_matched_nobody","research_limit_reached",null]},"leads":{"type":"array","items":{"type":"object","properties":{"lead_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"company":{"type":["string","null"]},"research_available":{"type":"boolean"},"tier":{"type":["string","null"]},"fit_rationale":{"type":["string","null"]},"linkedin_url":{"type":["string","null"]},"local_research":{"type":["string","null"],"enum":["accepted","recorded","failed",null]}},"required":["lead_ref","name","company","research_available","tier","fit_rationale","linkedin_url"]},"maxItems":25},"cursor":{"type":"string","pattern":"^rp1_[a-f0-9]{64}$"},"changed":{"type":"boolean"},"terminal":{"type":"boolean"}},"required":["run_ref","attempt","workspace_ref","state","requested_leads","leads_discovered","leads_researched","error_code","leads","cursor","changed","terminal"]}}}},"400":{"description":"Typed error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"504":{"description":"Typed error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/workspace/sample-review/confirm":{"post":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"run_ref":{"type":"string","format":"uuid"}},"required":["run_ref"],"additionalProperties":false}}}},"responses":{"200":{"description":"Calibration sample","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"state":{"type":"string","enum":["none"]}},"required":["state"]},{"type":"object","properties":{"state":{"type":"string","enum":["queued","running","succeeded","failed"]},"run_ref":{"type":"string","minLength":1},"requested_leads":{"type":"integer","exclusiveMinimum":0},"leads_discovered":{"type":["integer","null"],"minimum":0},"calibration_policy":{"type":"string","enum":["tier_a_v1","qualified_ab_v1","researched_v1"]},"leads_researched":{"type":["integer","null"],"minimum":0},"error_code":{"type":["string","null"],"enum":["calibration_sample_incomplete","calibration_review_required","research_failed","search_exhausted","targeting_matched_nobody","research_limit_reached",null]},"started_at":{"type":"string","minLength":1},"completed_at":{"type":["string","null"]},"reviewed_at":{"type":["string","null"]},"workspace":{"type":"object","properties":{"workspace_ref":{"type":"string","minLength":1},"name":{"type":"string","minLength":1}},"required":["workspace_ref","name"]},"leads":{"type":["array","null"],"items":{"type":"object","properties":{"name":{"type":"string"},"title":{"type":["string","null"]},"company":{"type":["string","null"]},"linkedin_url":{"type":["string","null"]},"lead_ref":{"type":["string","null"],"format":"uuid"},"research_url":{"type":["string","null"]},"research_available":{"type":"boolean"},"tier":{"type":["string","null"]},"fit_rationale":{"type":["string","null"]},"stage":{"type":["string","null"]}},"required":["name","title","company","linkedin_url","tier","fit_rationale","stage"]}},"lanes":{"type":["array","null"],"items":{"type":"object","properties":{"lane_ref":{"type":"string","minLength":1},"label":{"type":["string","null"],"description":"The lane's current display name (its targeting label); null until it has one. Show it with lane_id."},"matching_people":{"type":"integer","minimum":0},"personas":{"type":"array","items":{"type":"object","properties":{"persona_ref":{"type":"string","minLength":1},"name":{"type":"string"},"matching_people":{"type":"integer","minimum":0}},"required":["persona_ref","name","matching_people"]}}},"required":["lane_ref","matching_people","personas"]}},"research_mode":{"type":"string","enum":["server","local"]},"research_until":{"type":["string","null"]}},"required":["state","run_ref","requested_leads","leads_discovered","leads_researched","error_code","started_at","completed_at","reviewed_at","workspace","leads"]}]}}}},"400":{"description":"Typed error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"504":{"description":"Typed error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/workspace/sample-review/local-research":{"get":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"run_ref","in":"query"},{"schema":{"type":"string","format":"uuid","description":"The sample's segment; optional."},"required":false,"description":"The sample's segment; optional.","name":"segment_id","in":"query"},{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"responses":{"200":{"description":"Calibration sample","content":{"application/json":{"schema":{"type":"object","properties":{"run_ref":{"type":"string","format":"uuid"},"attempt":{"type":"integer","minimum":0},"state":{"type":"string","enum":["queued","running","succeeded","failed"]},"research_mode":{"type":"string","enum":["server","local"]},"open":{"type":"boolean"},"research_until":{"type":["string","null"]},"leads":{"type":"array","items":{"type":"object","properties":{"lead_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"title":{"type":["string","null"]},"linkedin_url":{"type":["string","null"]},"location":{"type":["string","null"]},"company":{"type":"object","properties":{"name":{"type":["string","null"]},"domain":{"type":["string","null"]},"website":{"type":["string","null"]},"linkedin_url":{"type":["string","null"]},"industry":{"type":["string","null"]},"employees":{"type":["integer","null"]},"headquarters":{"type":["string","null"]}},"required":["name","domain","website","linkedin_url","industry","employees","headquarters"]},"research_available":{"type":"boolean"}},"required":["lead_ref","name","title","linkedin_url","location","company","research_available"]},"maxItems":25},"criteria":{"type":["object","null"],"properties":{"version":{"type":"integer","minimum":0},"text":{"type":["string","null"]},"research_fields":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*){0,4}$"},"description":{"type":"string","minLength":1,"maxLength":2000},"type":{"type":"string","enum":["text","number","boolean","list","object"]}},"required":["key","description","type"],"additionalProperties":false},"maxItems":100}},"required":["version","text","research_fields"],"additionalProperties":false}},"required":["run_ref","attempt","state","research_mode","open","research_until","leads","criteria"]}}}},"400":{"description":"Typed error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"504":{"description":"Typed error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}},"post":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid","description":"Segment to read or change (segments_get). Required for writes with several segments."},"required":false,"description":"Segment to read or change (segments_get). Required for writes with several segments.","name":"segment_id","in":"query"},{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"run_ref":{"type":"string","format":"uuid"},"lead_ref":{"type":"string","format":"uuid"},"research":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"company":{"type":"string","minLength":1,"maxLength":300},"role":{"type":"string","maxLength":300},"grade":{"type":"string","enum":["A","B","C"]},"fit_rationale":{"type":"string","minLength":1,"maxLength":2000},"confidence":{"type":"number","minimum":0,"maximum":1},"research_quality":{"type":"string","enum":["high","medium","low"]},"summary":{"type":"string","minLength":1,"maxLength":4000},"signals":{"type":"string","maxLength":4000},"company_summary":{"type":"string","maxLength":4000},"industry":{"type":"string","maxLength":200},"company_size":{"type":"string","maxLength":100},"recent_activity":{"type":"array","items":{"type":"string","minLength":1,"maxLength":1000},"maxItems":10},"talking_points":{"type":"array","items":{"type":"string","minLength":1,"maxLength":1000},"maxItems":10},"pain_points":{"type":"array","items":{"type":"string","minLength":1,"maxLength":1000},"maxItems":10},"sources":{"type":"array","items":{"type":"string","maxLength":2000,"format":"uri"},"minItems":1,"maxItems":20},"research_fields":{"type":"object","additionalProperties":{"anyOf":[{"type":"string","maxLength":4000},{"type":"number"},{"type":"boolean"},{"type":"array","items":{"type":"string","maxLength":1000},"maxItems":50},{"type":"object","additionalProperties":{}}]}}},"required":["name","company","role","grade","fit_rationale","confidence","research_quality","summary","signals","company_summary","industry","company_size","recent_activity","talking_points","pain_points","sources"],"additionalProperties":false}},"required":["run_ref","lead_ref","research"],"additionalProperties":false}}}},"responses":{"202":{"description":"Calibration sample","content":{"application/json":{"schema":{"type":"object","properties":{"accepted":{"type":"boolean","enum":[true]},"run_ref":{"type":"string","format":"uuid"},"lead_ref":{"type":"string","format":"uuid"},"state":{"type":"string","enum":["accepted","recorded","failed"]}},"required":["accepted","run_ref","lead_ref"]}}}},"400":{"description":"Typed error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"504":{"description":"Typed error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/workspace/sample-review/local-research/close":{"post":{"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","maxLength":100},"required":false,"name":"x-lifty-workspace","in":"header"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"run_ref":{"type":"string","format":"uuid"}},"required":["run_ref"],"additionalProperties":false}}}},"responses":{"200":{"description":"Calibration sample","content":{"application/json":{"schema":{"type":"object","properties":{"run_ref":{"type":"string","format":"uuid"},"closed":{"type":"boolean"},"research_until":{"type":["string","null"]}},"required":["run_ref","closed","research_until"]}}}},"400":{"description":"Typed error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"Typed error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"Typed error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"Typed error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Typed error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"Typed error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"Typed error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"504":{"description":"Typed error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"suggestion":{"type":"string"}},"required":["code","path","message","suggestion"],"additionalProperties":false}},"current_version":{"type":"integer","minimum":0},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"stale_sources":{"type":"array","items":{"type":"string"}},"workspaces":{"type":"array","items":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["workspace_ref","name","slug"],"additionalProperties":false}},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string","format":"date-time"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}}}},"/v1/support/tickets":{"post":{"operationId":"support_ticket_create","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","minLength":1,"maxLength":8000,"description":"What the client saw."},"description":{"type":"string","minLength":1,"maxLength":8000,"description":"What Lifty already checked."},"priority":{"type":"string","enum":["P0","P1","P2","P3"],"description":"P0: wrong outreach is going out, or a client can see another client's data; P1: outreach stopped or a connection is broken; P2: wrong or degraded data, or another issue; P3: a question, feature request or cosmetic issue."},"ref_link":{"type":"string","maxLength":2000,"format":"uri"},"title":{"type":"string","minLength":1,"maxLength":200},"requester_email":{"type":"string","maxLength":320,"format":"email","description":"Required for staff filing on a client's behalf."},"reply_channel":{"type":"string","enum":["email","manual"],"description":"Required for staff; founders always receive email and agent turns use their conversation."}},"required":["message","description","priority"],"additionalProperties":false}}}},"responses":{"200":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"ticket_number":{"type":"integer","exclusiveMinimum":0},"promise":{"type":"string","enum":["A person from our team will reply within 4 business hours (Monday to Friday)."]}},"required":["ticket_number","promise"]}}}},"400":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"503":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}},"parameters":[{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}]}},"/v1/support/tickets/messages":{"post":{"operationId":"support_ticket_add","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"ticket_number":{"type":"integer","exclusiveMinimum":0},"message":{"type":"string","minLength":1,"maxLength":8000}},"required":["ticket_number","message"],"additionalProperties":false}}}},"responses":{"200":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"ticket_number":{"type":"integer","exclusiveMinimum":0},"promise":{"type":"string","enum":["A person from our team will reply within 4 business hours (Monday to Friday)."]}},"required":["ticket_number","promise"]}}}},"400":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"404":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"413":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"429":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"502":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"503":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}},"parameters":[{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}]}},"/v1/notifications/timing/{type_code}":{"get":{"operationId":"getNotificationTiming","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","maxLength":100,"pattern":"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)+$"},"required":true,"name":"type_code","in":"path"},{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}],"responses":{"200":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"workspaceId":{"type":["string","null"],"format":"uuid"},"typeCode":{"type":"string","maxLength":100,"pattern":"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)+$"},"editable":{"type":"boolean"},"effective":{"anyOf":[{"type":"object","properties":{"kind":{"type":"string","enum":["immediate"]}},"required":["kind"]},{"type":"object","properties":{"kind":{"type":"string","enum":["delay"]},"delayMinutes":{"type":"integer","minimum":1,"maximum":525600}},"required":["kind","delayMinutes"]},{"type":"object","properties":{"kind":{"type":"string","enum":["calendar"]},"frequency":{"type":"string","enum":["daily"]},"hour":{"type":"integer","minimum":0,"maximum":23},"minute":{"type":"integer","minimum":0,"maximum":59},"timezone":{"type":"string","minLength":1,"maxLength":100}},"required":["kind","frequency","hour","minute","timezone"]},{"type":"object","properties":{"kind":{"type":"string","enum":["calendar"]},"frequency":{"type":"string","enum":["weekly"]},"weekday":{"type":"integer","minimum":0,"maximum":6},"hour":{"type":"integer","minimum":0,"maximum":23},"minute":{"type":"integer","minimum":0,"maximum":59},"timezone":{"type":"string","minLength":1,"maxLength":100}},"required":["kind","frequency","weekday","hour","minute","timezone"]}]},"global":{"type":"object","properties":{"timing":{"anyOf":[{"type":"object","properties":{"kind":{"type":"string","enum":["immediate"]}},"required":["kind"]},{"type":"object","properties":{"kind":{"type":"string","enum":["delay"]},"delayMinutes":{"type":"integer","minimum":1,"maximum":525600}},"required":["kind","delayMinutes"]},{"type":"object","properties":{"kind":{"type":"string","enum":["calendar"]},"frequency":{"type":"string","enum":["daily"]},"hour":{"type":"integer","minimum":0,"maximum":23},"minute":{"type":"integer","minimum":0,"maximum":59},"timezone":{"type":"string","minLength":1,"maxLength":100}},"required":["kind","frequency","hour","minute","timezone"]},{"type":"object","properties":{"kind":{"type":"string","enum":["calendar"]},"frequency":{"type":"string","enum":["weekly"]},"weekday":{"type":"integer","minimum":0,"maximum":6},"hour":{"type":"integer","minimum":0,"maximum":23},"minute":{"type":"integer","minimum":0,"maximum":59},"timezone":{"type":"string","minLength":1,"maxLength":100}},"required":["kind","frequency","weekday","hour","minute","timezone"]}]},"version":{"type":"integer","minimum":0}},"required":["timing","version"]},"workspace":{"type":["object","null"],"properties":{"timing":{"anyOf":[{"type":"object","properties":{"kind":{"type":"string","enum":["immediate"]}},"required":["kind"]},{"type":"object","properties":{"kind":{"type":"string","enum":["delay"]},"delayMinutes":{"type":"integer","minimum":1,"maximum":525600}},"required":["kind","delayMinutes"]},{"type":"object","properties":{"kind":{"type":"string","enum":["calendar"]},"frequency":{"type":"string","enum":["daily"]},"hour":{"type":"integer","minimum":0,"maximum":23},"minute":{"type":"integer","minimum":0,"maximum":59},"timezone":{"type":"string","minLength":1,"maxLength":100}},"required":["kind","frequency","hour","minute","timezone"]},{"type":"object","properties":{"kind":{"type":"string","enum":["calendar"]},"frequency":{"type":"string","enum":["weekly"]},"weekday":{"type":"integer","minimum":0,"maximum":6},"hour":{"type":"integer","minimum":0,"maximum":23},"minute":{"type":"integer","minimum":0,"maximum":59},"timezone":{"type":"string","minLength":1,"maxLength":100}},"required":["kind","frequency","weekday","hour","minute","timezone"]},{"type":"null"}]},"version":{"type":"integer","minimum":0}},"required":["timing","version"]}},"required":["workspaceId","typeCode","editable","effective","global","workspace"]}}}},"400":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"Unsupported client contract; update the installed CLI and skill."}}}},"/v1/notifications/controls":{"put":{"operationId":"setNotificationControls","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"enabled":{"type":"boolean"},"sources":{"type":"array","items":{"type":"string","enum":["email","linkedin"]},"minItems":1,"maxItems":2},"channels":{"type":"array","items":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,63}$"},"minItems":1,"maxItems":32},"expected_version":{"type":"integer","minimum":0}},"required":["enabled","sources","channels","expected_version"],"additionalProperties":false}}}},"responses":{"200":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"slack":{"oneOf":[{"type":"object","properties":{"status":{"type":"string","enum":["not_connected"]}},"required":["status"]},{"type":"object","properties":{"status":{"type":"string","enum":["connected"]},"team_id":{"type":"string","minLength":1},"team_name":{"type":"string","minLength":1},"reconnect_required":{"type":"boolean"}},"required":["status","team_id","team_name","reconnect_required"]}]},"channels":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,63}$"},"name":{"type":"string","minLength":1},"interactive":{"type":"boolean"},"capabilities":{"type":"array","items":{"type":"string"}}},"required":["code","name","interactive","capabilities"]}},"connections":{"type":"object","additionalProperties":{"oneOf":[{"type":"object","properties":{"status":{"type":"string","enum":["not_connected"]}},"required":["status"]},{"type":"object","properties":{"status":{"type":"string","enum":["connected"]},"tenant_id":{"type":"string","minLength":1},"tenant_name":{"type":"string","minLength":1},"reconnect_required":{"type":"boolean"}},"required":["status","tenant_id","tenant_name","reconnect_required"]}]}},"types":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100,"pattern":"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)+$"},"name":{"type":"string"},"channels":{"type":"array","items":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,63}$"}},"default_on":{"type":"boolean"},"paused":{"type":"boolean"},"email_fallback":{"type":"boolean"},"email_mode":{"type":"string","enum":["off","always","fallback"]},"delivery":{"type":"object","properties":{"sends":{"type":"boolean"},"reason":{"type":["string","null"],"pattern":"^[a-z][a-z_]{0,63}$"},"destinations":{"type":"array","items":{"type":"object","properties":{"destination_ref":{"type":"string","format":"uuid"},"sends":{"type":"boolean"},"role":{"type":["string","null"],"enum":["primary","fallback",null]},"reason":{"type":["string","null"],"pattern":"^[a-z][a-z_]{0,63}$"}},"required":["destination_ref","sends","role","reason"]}}},"required":["sends","reason","destinations"]}},"required":["code","name","channels","default_on","paused","email_fallback"]}},"destinations":{"type":"array","items":{"type":"object","properties":{"destination_ref":{"type":"string","format":"uuid"},"channel":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,63}$"},"address":{"type":["string","null"]},"name":{"type":["string","null"]},"active":{"type":"boolean"},"types":{"type":"array","items":{"type":"string","maxLength":100,"pattern":"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)+$"}}},"required":["destination_ref","channel","address","name","active","types"]}},"controls":{"type":"object","properties":{"global":{"type":"object","properties":{"enabled":{"type":"boolean"},"sources":{"type":"array","items":{"type":"string","enum":["email","linkedin"]},"minItems":1,"maxItems":2},"channels":{"type":"array","items":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,63}$"},"maxItems":32},"version":{"type":"integer","minimum":0}},"required":["enabled","sources","channels","version"]},"workspace":{"type":"object","properties":{"enabled":{"type":"boolean"},"sources":{"type":"array","items":{"type":"string","enum":["email","linkedin"]},"minItems":1,"maxItems":2},"channels":{"type":"array","items":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,63}$"},"maxItems":32},"version":{"type":"integer","minimum":0}},"required":["enabled","sources","channels","version"]}},"required":["global","workspace"]}},"required":["workspace_ref","slack","types","destinations"]}}}},"400":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}},"parameters":[{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}]}},"/v1/notifications/preferences":{"put":{"operationId":"setNotificationPreferences","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"notification_type":{"type":"string","maxLength":100,"pattern":"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)+$"},"channels":{"type":"array","items":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,63}$"},"maxItems":32},"destination_refs":{"type":"object","additionalProperties":{"type":"string","format":"uuid"}},"email_mode":{"type":"string","enum":["always","fallback"]}},"required":["notification_type","channels","destination_refs"],"additionalProperties":false}}}},"responses":{"200":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"slack":{"oneOf":[{"type":"object","properties":{"status":{"type":"string","enum":["not_connected"]}},"required":["status"]},{"type":"object","properties":{"status":{"type":"string","enum":["connected"]},"team_id":{"type":"string","minLength":1},"team_name":{"type":"string","minLength":1},"reconnect_required":{"type":"boolean"}},"required":["status","team_id","team_name","reconnect_required"]}]},"channels":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,63}$"},"name":{"type":"string","minLength":1},"interactive":{"type":"boolean"},"capabilities":{"type":"array","items":{"type":"string"}}},"required":["code","name","interactive","capabilities"]}},"connections":{"type":"object","additionalProperties":{"oneOf":[{"type":"object","properties":{"status":{"type":"string","enum":["not_connected"]}},"required":["status"]},{"type":"object","properties":{"status":{"type":"string","enum":["connected"]},"tenant_id":{"type":"string","minLength":1},"tenant_name":{"type":"string","minLength":1},"reconnect_required":{"type":"boolean"}},"required":["status","tenant_id","tenant_name","reconnect_required"]}]}},"types":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100,"pattern":"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)+$"},"name":{"type":"string"},"channels":{"type":"array","items":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,63}$"}},"default_on":{"type":"boolean"},"paused":{"type":"boolean"},"email_fallback":{"type":"boolean"},"email_mode":{"type":"string","enum":["off","always","fallback"]},"delivery":{"type":"object","properties":{"sends":{"type":"boolean"},"reason":{"type":["string","null"],"pattern":"^[a-z][a-z_]{0,63}$"},"destinations":{"type":"array","items":{"type":"object","properties":{"destination_ref":{"type":"string","format":"uuid"},"sends":{"type":"boolean"},"role":{"type":["string","null"],"enum":["primary","fallback",null]},"reason":{"type":["string","null"],"pattern":"^[a-z][a-z_]{0,63}$"}},"required":["destination_ref","sends","role","reason"]}}},"required":["sends","reason","destinations"]}},"required":["code","name","channels","default_on","paused","email_fallback"]}},"destinations":{"type":"array","items":{"type":"object","properties":{"destination_ref":{"type":"string","format":"uuid"},"channel":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,63}$"},"address":{"type":["string","null"]},"name":{"type":["string","null"]},"active":{"type":"boolean"},"types":{"type":"array","items":{"type":"string","maxLength":100,"pattern":"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)+$"}}},"required":["destination_ref","channel","address","name","active","types"]}},"controls":{"type":"object","properties":{"global":{"type":"object","properties":{"enabled":{"type":"boolean"},"sources":{"type":"array","items":{"type":"string","enum":["email","linkedin"]},"minItems":1,"maxItems":2},"channels":{"type":"array","items":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,63}$"},"maxItems":32},"version":{"type":"integer","minimum":0}},"required":["enabled","sources","channels","version"]},"workspace":{"type":"object","properties":{"enabled":{"type":"boolean"},"sources":{"type":"array","items":{"type":"string","enum":["email","linkedin"]},"minItems":1,"maxItems":2},"channels":{"type":"array","items":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,63}$"},"maxItems":32},"version":{"type":"integer","minimum":0}},"required":["enabled","sources","channels","version"]}},"required":["global","workspace"]}},"required":["workspace_ref","slack","types","destinations"]}}}},"400":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}},"parameters":[{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}]}},"/v1/notifications/email-mode":{"put":{"operationId":"setNotificationEmailMode","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"notification_type":{"type":"string","maxLength":100,"pattern":"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)+$"},"email_mode":{"type":"string","enum":["off","always","fallback"]}},"required":["notification_type","email_mode"],"additionalProperties":false}}}},"responses":{"200":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"workspace_ref":{"type":"string","format":"uuid"},"slack":{"oneOf":[{"type":"object","properties":{"status":{"type":"string","enum":["not_connected"]}},"required":["status"]},{"type":"object","properties":{"status":{"type":"string","enum":["connected"]},"team_id":{"type":"string","minLength":1},"team_name":{"type":"string","minLength":1},"reconnect_required":{"type":"boolean"}},"required":["status","team_id","team_name","reconnect_required"]}]},"channels":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,63}$"},"name":{"type":"string","minLength":1},"interactive":{"type":"boolean"},"capabilities":{"type":"array","items":{"type":"string"}}},"required":["code","name","interactive","capabilities"]}},"connections":{"type":"object","additionalProperties":{"oneOf":[{"type":"object","properties":{"status":{"type":"string","enum":["not_connected"]}},"required":["status"]},{"type":"object","properties":{"status":{"type":"string","enum":["connected"]},"tenant_id":{"type":"string","minLength":1},"tenant_name":{"type":"string","minLength":1},"reconnect_required":{"type":"boolean"}},"required":["status","tenant_id","tenant_name","reconnect_required"]}]}},"types":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100,"pattern":"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)+$"},"name":{"type":"string"},"channels":{"type":"array","items":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,63}$"}},"default_on":{"type":"boolean"},"paused":{"type":"boolean"},"email_fallback":{"type":"boolean"},"email_mode":{"type":"string","enum":["off","always","fallback"]},"delivery":{"type":"object","properties":{"sends":{"type":"boolean"},"reason":{"type":["string","null"],"pattern":"^[a-z][a-z_]{0,63}$"},"destinations":{"type":"array","items":{"type":"object","properties":{"destination_ref":{"type":"string","format":"uuid"},"sends":{"type":"boolean"},"role":{"type":["string","null"],"enum":["primary","fallback",null]},"reason":{"type":["string","null"],"pattern":"^[a-z][a-z_]{0,63}$"}},"required":["destination_ref","sends","role","reason"]}}},"required":["sends","reason","destinations"]}},"required":["code","name","channels","default_on","paused","email_fallback"]}},"destinations":{"type":"array","items":{"type":"object","properties":{"destination_ref":{"type":"string","format":"uuid"},"channel":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,63}$"},"address":{"type":["string","null"]},"name":{"type":["string","null"]},"active":{"type":"boolean"},"types":{"type":"array","items":{"type":"string","maxLength":100,"pattern":"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)+$"}}},"required":["destination_ref","channel","address","name","active","types"]}},"controls":{"type":"object","properties":{"global":{"type":"object","properties":{"enabled":{"type":"boolean"},"sources":{"type":"array","items":{"type":"string","enum":["email","linkedin"]},"minItems":1,"maxItems":2},"channels":{"type":"array","items":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,63}$"},"maxItems":32},"version":{"type":"integer","minimum":0}},"required":["enabled","sources","channels","version"]},"workspace":{"type":"object","properties":{"enabled":{"type":"boolean"},"sources":{"type":"array","items":{"type":"string","enum":["email","linkedin"]},"minItems":1,"maxItems":2},"channels":{"type":"array","items":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,63}$"},"maxItems":32},"version":{"type":"integer","minimum":0}},"required":["enabled","sources","channels","version"]}},"required":["global","workspace"]}},"required":["workspace_ref","slack","types","destinations"]}}}},"400":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}},"parameters":[{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}]}},"/v1/notifications/timing":{"put":{"operationId":"setNotificationTiming","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"notification_type":{"type":"string","maxLength":100,"pattern":"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)+$"},"expected_version":{"type":"integer","minimum":0},"timing":{"anyOf":[{"type":"object","properties":{"kind":{"type":"string","enum":["immediate"]}},"required":["kind"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["delay"]},"delayMinutes":{"type":"integer","minimum":1,"maximum":525600}},"required":["kind","delayMinutes"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["calendar"]},"frequency":{"type":"string","enum":["daily"]},"hour":{"type":"integer","minimum":0,"maximum":23},"minute":{"type":"integer","minimum":0,"maximum":59},"timezone":{"type":"string","minLength":1,"maxLength":100}},"required":["kind","frequency","hour","minute","timezone"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["calendar"]},"frequency":{"type":"string","enum":["weekly"]},"weekday":{"type":"integer","minimum":0,"maximum":6},"hour":{"type":"integer","minimum":0,"maximum":23},"minute":{"type":"integer","minimum":0,"maximum":59},"timezone":{"type":"string","minLength":1,"maxLength":100}},"required":["kind","frequency","weekday","hour","minute","timezone"],"additionalProperties":false},{"type":"null"}]}},"required":["notification_type","expected_version","timing"],"additionalProperties":false}}}},"responses":{"200":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"workspaceId":{"type":["string","null"],"format":"uuid"},"typeCode":{"type":"string","maxLength":100,"pattern":"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)+$"},"editable":{"type":"boolean"},"effective":{"anyOf":[{"type":"object","properties":{"kind":{"type":"string","enum":["immediate"]}},"required":["kind"]},{"type":"object","properties":{"kind":{"type":"string","enum":["delay"]},"delayMinutes":{"type":"integer","minimum":1,"maximum":525600}},"required":["kind","delayMinutes"]},{"type":"object","properties":{"kind":{"type":"string","enum":["calendar"]},"frequency":{"type":"string","enum":["daily"]},"hour":{"type":"integer","minimum":0,"maximum":23},"minute":{"type":"integer","minimum":0,"maximum":59},"timezone":{"type":"string","minLength":1,"maxLength":100}},"required":["kind","frequency","hour","minute","timezone"]},{"type":"object","properties":{"kind":{"type":"string","enum":["calendar"]},"frequency":{"type":"string","enum":["weekly"]},"weekday":{"type":"integer","minimum":0,"maximum":6},"hour":{"type":"integer","minimum":0,"maximum":23},"minute":{"type":"integer","minimum":0,"maximum":59},"timezone":{"type":"string","minLength":1,"maxLength":100}},"required":["kind","frequency","weekday","hour","minute","timezone"]}]},"global":{"type":"object","properties":{"timing":{"anyOf":[{"type":"object","properties":{"kind":{"type":"string","enum":["immediate"]}},"required":["kind"]},{"type":"object","properties":{"kind":{"type":"string","enum":["delay"]},"delayMinutes":{"type":"integer","minimum":1,"maximum":525600}},"required":["kind","delayMinutes"]},{"type":"object","properties":{"kind":{"type":"string","enum":["calendar"]},"frequency":{"type":"string","enum":["daily"]},"hour":{"type":"integer","minimum":0,"maximum":23},"minute":{"type":"integer","minimum":0,"maximum":59},"timezone":{"type":"string","minLength":1,"maxLength":100}},"required":["kind","frequency","hour","minute","timezone"]},{"type":"object","properties":{"kind":{"type":"string","enum":["calendar"]},"frequency":{"type":"string","enum":["weekly"]},"weekday":{"type":"integer","minimum":0,"maximum":6},"hour":{"type":"integer","minimum":0,"maximum":23},"minute":{"type":"integer","minimum":0,"maximum":59},"timezone":{"type":"string","minLength":1,"maxLength":100}},"required":["kind","frequency","weekday","hour","minute","timezone"]}]},"version":{"type":"integer","minimum":0}},"required":["timing","version"]},"workspace":{"type":["object","null"],"properties":{"timing":{"anyOf":[{"type":"object","properties":{"kind":{"type":"string","enum":["immediate"]}},"required":["kind"]},{"type":"object","properties":{"kind":{"type":"string","enum":["delay"]},"delayMinutes":{"type":"integer","minimum":1,"maximum":525600}},"required":["kind","delayMinutes"]},{"type":"object","properties":{"kind":{"type":"string","enum":["calendar"]},"frequency":{"type":"string","enum":["daily"]},"hour":{"type":"integer","minimum":0,"maximum":23},"minute":{"type":"integer","minimum":0,"maximum":59},"timezone":{"type":"string","minLength":1,"maxLength":100}},"required":["kind","frequency","hour","minute","timezone"]},{"type":"object","properties":{"kind":{"type":"string","enum":["calendar"]},"frequency":{"type":"string","enum":["weekly"]},"weekday":{"type":"integer","minimum":0,"maximum":6},"hour":{"type":"integer","minimum":0,"maximum":23},"minute":{"type":"integer","minimum":0,"maximum":59},"timezone":{"type":"string","minLength":1,"maxLength":100}},"required":["kind","frequency","weekday","hour","minute","timezone"]},{"type":"null"}]},"version":{"type":"integer","minimum":0}},"required":["timing","version"]}},"required":["workspaceId","typeCode","editable","effective","global","workspace"]}}}},"400":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"401":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"403":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}},"409":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"path":{"type":"string","maxLength":1000},"message":{"type":"string","maxLength":500},"suggestion":{"type":"string","maxLength":1000}},"required":["code","path","message","suggestion"]},"maxItems":20},"segment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"current_version":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0},"resets_at":{"type":"string"}},"required":["code","message"]},"request_id":{"type":"string"}},"required":["error","request_id"]}}}}},"parameters":[{"in":"header","name":"x-lifty-client-contract","required":true,"schema":{"type":"string","enum":["lifty-cli-context.v11"]}}]}}},"webhooks":{}}