{"openapi":"3.1.0","info":{"title":"EvaNeT Workspace API","version":"0.7.0","description":"Token-scoped API for workspace capabilities and private account-owned EvaNeT assistant memory, Realtime voice, and DSH device authorization."},"servers":[{"url":"https://api.evanet.ai"}],"security":[{"bearerAuth":[]}],"paths":{"/api/v1/pi/emf/model":{"get":{"operationId":"getHostedEmfModel","summary":"Discover the bound hosted EMF model","description":"Hosted Pi alpha enrollment and a workspace token with content:read and emf:read are required. Inspect travelPlanning: 1, 2 or 3 before requesting the planning projection; version history and guided creation require capability 3. Authority and workspace IDs identify EMF records, not Platform trip records. The agency header does not narrow this binding.","responses":{"200":{"description":"Authorized model and queries.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HostedEmfModelResponse"}}}},"default":{"$ref":"#/components/responses/ApiError"}},"x-required-scopes":["content:read","emf:read"],"x-required-permissions":["workspace.member","workspace.travel_demo.read","workspace.blank_demo.read"],"x-required-capabilities":[],"x-resource-checks":["pi-alpha-entitlement","current-membership-or-demo-grant","emf-runtime-binding","emf-record-authority"],"x-required-permission-mode":"any","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"none","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/pi/emf/read":{"post":{"operationId":"queryHostedEmf","summary":"Query authorized EMF records using a discovered query ID","description":"Read-only POST. Requires hosted Pi alpha enrollment, content:read and emf:read. Use modelDigest and queryId from discovery; results include stable EMF references, total, offset and limit. Field values follow the discovered model. The agency header does not narrow EMF records.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HostedEmfQueryRequest"}}}},"responses":{"200":{"description":"Authorized, paginated records.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HostedEmfQueryResponse"}}}},"default":{"$ref":"#/components/responses/ApiError"}},"x-required-scopes":["content:read","emf:read"],"x-required-permissions":["workspace.member","workspace.travel_demo.read","workspace.blank_demo.read"],"x-required-capabilities":[],"x-resource-checks":["pi-alpha-entitlement","current-membership-or-demo-grant","emf-runtime-binding","emf-record-authority"],"x-required-permission-mode":"any","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"none","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/pi/emf/workspace-read":{"post":{"operationId":"readHostedEmfWorkspace","summary":"Read current Travel planning or one approved plan version","description":"Published subset: kind travel-planning or travel-plan-version. Requires hosted Pi alpha enrollment, content:read, emf:read and an owner/agent planning-read grant. Mutation scopes are not required to read. Travel planning format 3 adds a bounded version index to v9, and travel-plan-version returns one permission-filtered immutable snapshot with approval provenance. Format 1 and 2 remain accepted. revisions.trip and revisions.finance on the current planning read are command preconditions; historical read revisions are not. No Platform trip IDs are accepted.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HostedEmfWorkspaceReadRequest"}}}},"responses":{"200":{"description":"Current planning projection or selected historical plan version.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HostedEmfWorkspaceReadResponse"}}}},"default":{"$ref":"#/components/responses/ApiError"}},"x-required-scopes":["content:read","emf:read"],"x-required-permissions":["workspace.member","workspace.travel_demo.read","workspace.blank_demo.read"],"x-required-capabilities":[],"x-resource-checks":["pi-alpha-entitlement","current-membership-or-demo-grant","emf-runtime-binding","emf-record-authority"],"x-required-permission-mode":"any","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"none","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/pi/emf/travel-command":{"post":{"operationId":"executeTravelCommand","summary":"Apply a typed travel command through the existing EMF workflow","description":"Requires hosted Pi alpha enrollment, content:read, emf:read, emf:write and emf:approve, current owner/agent membership, and runtime capability. Uses body requestId for actor-bound atomic receipts; Idempotency-Key does not replace it. Preserve the entire body for exact retry, including modelDigest and the appropriate revisions.trip or revisions.finance precondition. SDK commands do not retry automatically. After an ambiguous network/response failure, reuse the same requestId and payload. Published commands are trip-scoped; client-wide retainers are not included. Returns an acknowledgement with resultId for finance commands; refresh the planning read for current state. Approval is staff_on_behalf only. Delivery/evidence/payment commands record attestations; they do not send messages, book suppliers or charge cards. The agency header does not narrow EMF records.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HostedEmfTravelCommandRequest"}}}},"responses":{"200":{"description":"Runtime acknowledgement after an authorized command or exact replay.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HostedEmfCommandResponse"}}}},"default":{"$ref":"#/components/responses/ApiError"}},"x-required-scopes":["content:read","emf:read","emf:write","emf:approve"],"x-required-permissions":["workspace.member","workspace.travel_demo.write"],"x-required-capabilities":[],"x-resource-checks":["pi-alpha-entitlement","current-membership-or-demo-write-grant","emf-runtime-binding","actor-bound-request-receipt"],"x-required-permission-mode":"any","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"write","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/pi/emf/clients/create":{"post":{"operationId":"createHostedEmfClient","summary":"Create an EMF client in the bound Travel v9 workspace","description":"Requires current owner or agent membership, content:read, emf:read and emf:write. requestId is an actor-bound atomic receipt key; retry an uncertain result with the exact same body. This endpoint accepts no Platform client ID.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HostedEmfCreateClientRequest"}}}},"responses":{"200":{"description":"Created or exactly replayed EMF client.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HostedEmfCreateResponse"}}}},"default":{"$ref":"#/components/responses/ApiError"}},"x-required-scopes":["content:read","emf:read","emf:write"],"x-required-permissions":["workspace.member","workspace.travel_demo.write"],"x-required-capabilities":[],"x-resource-checks":["pi-alpha-entitlement","current-membership-or-demo-write-grant","emf-runtime-binding","actor-bound-request-receipt"],"x-required-permission-mode":"any","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"write","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/pi/emf/trips/create":{"post":{"operationId":"createHostedEmfTrip","summary":"Create a Travel v9 trip through the atomic guided EMF flow","description":"Requires current owner or agent membership, content:read, emf:read and emf:write, Travel capability 3, and a ready guided trip blueprint. Client and destination must be EMF references in the bound workspace; Platform IDs are not accepted. requestId preserves atomic exact-command retry semantics. No supplier booking or external message is sent.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HostedEmfCreateTripRequest"}}}},"responses":{"200":{"description":"Created or exactly replayed EMF trip.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HostedEmfCreateResponse"}}}},"default":{"$ref":"#/components/responses/ApiError"}},"x-required-scopes":["content:read","emf:read","emf:write"],"x-required-permissions":["workspace.member","workspace.travel_demo.write"],"x-required-capabilities":[],"x-resource-checks":["pi-alpha-entitlement","current-membership-or-demo-write-grant","emf-runtime-binding","actor-bound-request-receipt"],"x-required-permission-mode":"any","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"write","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/places/catalog":{"get":{"operationId":"readPlaceCatalog","summary":"Read the authorized geography catalog","description":"Requires travel:read and location permission. Exact ids is a JSON-encoded array of 1–20 IDs and requires records mode without after. Index pages contain IDs and updatedAt; records pages include geographic fields.","parameters":[{"name":"mode","in":"query","required":false,"schema":{"type":"string","enum":["index","records"],"default":"index"}},{"name":"after","in":"query","required":false,"schema":{"type":"string"}},{"name":"ids","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Bounded index or records page.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaceCatalogResponse"}}}},"default":{"$ref":"#/components/responses/ApiError"}},"x-required-scopes":["travel:read"],"x-required-permissions":["tool.travel.locations.view"],"x-required-capabilities":["vertical_travel"],"x-resource-checks":["workspace-membership"],"x-evanet-credential-kind":"workspace","x-evanet-approval-class":"none","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/places/knowledge":{"get":{"operationId":"readPlaceKnowledge","summary":"Read revisioned destination knowledge","description":"Requires travel:read and location permission. A matching revision returns unchanged without content.","parameters":[{"name":"placeId","in":"query","required":true,"schema":{"type":"string"}},{"name":"revision","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Source-linked knowledge or unchanged revision.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaceKnowledgeResponse"}}}},"default":{"$ref":"#/components/responses/ApiError"}},"x-required-scopes":["travel:read"],"x-required-permissions":["tool.travel.locations.view"],"x-required-capabilities":["vertical_travel"],"x-resource-checks":["workspace-membership"],"x-evanet-credential-kind":"workspace","x-evanet-approval-class":"none","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/places/library":{"get":{"operationId":"readDestinationLibrary","summary":"Read destination-linked venues, experiences and suppliers","description":"Requires travel:read plus location and supplier permissions. Trip usage is separately permission gated and agency scoped. Supply id for a profile, or search/after for a list; do not combine profile id with list filters. A matching revision returns unchanged. Profiles do not currently include images.","parameters":[{"name":"placeId","in":"query","required":true,"schema":{"type":"string"}},{"name":"kind","in":"query","required":true,"schema":{"type":"string","enum":["venue","experience","supplier"]}},{"name":"id","in":"query","required":false,"schema":{"type":"string"}},{"name":"search","in":"query","required":false,"schema":{"type":"string"}},{"name":"after","in":"query","required":false,"schema":{"type":"string"}},{"name":"revision","in":"query","required":false,"schema":{"type":"string"}},{"$ref":"#/components/parameters/SubOrganization"}],"responses":{"200":{"description":"Authorized profile/list or unchanged revision.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LibraryReadResponse"}}}},"default":{"$ref":"#/components/responses/ApiError"}},"x-required-scopes":["travel:read"],"x-required-permissions":["tool.travel.locations.view","tool.travel.suppliers.view"],"x-required-capabilities":["vertical_travel"],"x-resource-checks":["workspace-membership","sub-organization-visibility"],"x-required-permission-mode":"all","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"none","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/health":{"get":{"operationId":"getHealth","summary":"Public API health","security":[],"responses":{"200":{"description":"API is serving requests.","content":{"application/json":{"schema":{"type":"object","required":["status","service","version"]}}}}},"x-required-scopes":[],"x-required-permissions":[],"x-required-capabilities":[],"x-resource-checks":[],"x-evanet-credential-kind":"none","x-evanet-approval-class":"none","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"bootstrap-or-public","x-evanet-agent-eligible":false}},"/api/v1/openapi.json":{"get":{"operationId":"getOpenApi","summary":"OpenAPI document","security":[],"responses":{"200":{"description":"This OpenAPI document."}},"x-required-scopes":[],"x-required-permissions":[],"x-required-capabilities":[],"x-resource-checks":[],"x-evanet-credential-kind":"none","x-evanet-approval-class":"none","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"bootstrap-or-public","x-evanet-agent-eligible":false}},"/api/v1/pi/workspace/rename":{"post":{"operationId":"renamePiWorkspace","summary":"Rename the authenticated workspace for all members","description":"Requires workspaces:rename and current owner/admin permission. expectedName prevents overwriting a newer name. The original slug and identity are preserved.","tags":["Workspaces"],"parameters":[{"in":"header","name":"Idempotency-Key","required":true,"schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PiWorkspaceRenameRequest"}}}},"responses":{"200":{"description":"Workspace name saved.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PiWorkspaceRenameResponse"}}}},"default":{"$ref":"#/components/responses/ApiError"}},"x-required-scopes":["workspaces:rename"],"x-required-permissions":["workspace.admin","workspace.owner"],"x-required-capabilities":[],"x-resource-checks":["workspace-membership"],"x-required-permission-mode":"any","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"write","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/auth/device":{"post":{"operationId":"startDshDeviceAuthorization","summary":"Start a browser-assisted DSH authorization","description":"Public device-flow endpoint. Returns separate device and display codes; neither appears in the verification URL.","security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DshDeviceStartRequest"}}}},"responses":{"201":{"description":"Authorization request created.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DshDeviceStartResponse"}}}},"default":{"$ref":"#/components/responses/ApiError"}},"x-required-scopes":[],"x-required-permissions":[],"x-required-capabilities":[],"x-resource-checks":["requested-scope-allowlist","expiring-device-code"],"x-evanet-credential-kind":"bootstrap","x-evanet-approval-class":"non-agent","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"bootstrap-or-public","x-evanet-agent-eligible":false}},"/api/v1/auth/device/token":{"post":{"operationId":"exchangeDshDeviceAuthorization","summary":"Poll or exchange a DSH device authorization","description":"Public device-flow endpoint. Pending requests return 202; approved requests return one token bound to the approved workspace or personal account connection exactly once.","security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DshDeviceTokenRequest"}}}},"responses":{"200":{"description":"Approved token granted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DshDeviceTokenResponse"}}}},"202":{"description":"Authorization is still pending.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DshDeviceTokenResponse"}}}},"default":{"$ref":"#/components/responses/ApiError"}},"x-required-scopes":[],"x-required-permissions":[],"x-required-capabilities":[],"x-resource-checks":["one-time-device-code"],"x-evanet-credential-kind":"bootstrap","x-evanet-approval-class":"non-agent","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"bootstrap-or-public","x-evanet-agent-eligible":false}},"/api/v1/auth/device/refresh":{"post":{"operationId":"refreshDshDeviceAuthorization","summary":"Rotate a DSH workspace credential","description":"Public device-flow endpoint. Consumes one workspace-bound refresh grant and returns a new short-lived access token plus a rotated refresh grant. Membership and workspace permissions are rechecked before every rotation.","security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DshDeviceRefreshRequest"}}}},"responses":{"200":{"description":"Workspace credential rotated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DshDeviceRefreshResponse"}}}},"default":{"$ref":"#/components/responses/ApiError"}},"x-required-scopes":[],"x-required-permissions":[],"x-required-capabilities":[],"x-resource-checks":["rotating-refresh-grant"],"x-evanet-credential-kind":"bootstrap","x-evanet-approval-class":"non-agent","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"bootstrap-or-public","x-evanet-agent-eligible":false}},"/api/v1/auth/revoke":{"post":{"operationId":"revokeCurrentToken","summary":"Revoke the calling API token","description":"Requires a currently valid bearer token and revokes that exact token.","responses":{"200":{"description":"Token revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DshTokenRevokeResponse"}}}},"default":{"$ref":"#/components/responses/ApiError"}},"x-evanet-credential-kind":"workspace","x-evanet-approval-class":"non-agent","x-evanet-policy-status":"requires-policy-review","x-evanet-classification":"non-agent","x-evanet-agent-eligible":false}},"/api/v1/workspace":{"get":{"operationId":"getWorkspaceContext","summary":"Current token workspace","parameters":[{"$ref":"#/components/parameters/SubOrganization"}],"responses":{"200":{"description":"Workspace context.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceContextResponse"}}}},"default":{"$ref":"#/components/responses/ApiError"}},"x-required-scopes":[],"x-required-permissions":[],"x-required-capabilities":[],"x-resource-checks":["current-workspace-membership"],"x-evanet-credential-kind":"workspace","x-evanet-approval-class":"none","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/workspaces":{"get":{"operationId":"listPartnerWorkspaces","summary":"List workspaces provisioned by this partner","tags":["Workspaces"],"responses":{"200":{"description":"Partner workspaces.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspacesListResponse"}}}},"default":{"$ref":"#/components/responses/ApiError"}},"x-required-scopes":["workspaces:read"],"x-required-permissions":[],"x-required-capabilities":[],"x-resource-checks":["partner-workspace-binding"],"x-evanet-credential-kind":"partner","x-evanet-approval-class":"none","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v2/workspaces":{"post":{"operationId":"createBlueprintWorkspaceV2","summary":"Create and verify a partner workspace from an exact Blueprint release","tags":["Workspaces"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":8,"maxLength":128}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BlueprintWorkspaceCreateV2Request"}}}},"responses":{"201":{"description":"Workspace authority verified.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BlueprintWorkspaceCreateV2Response"}}}},"202":{"description":"Setup is preparing or needs attention; repeat the same request to resume.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BlueprintWorkspaceCreateV2Response"}}}},"default":{"$ref":"#/components/responses/ApiError"}},"x-required-scopes":["workspaces:provision"],"x-required-permissions":[],"x-required-capabilities":[],"x-resource-checks":["partner-binding","blueprint-release-pin"],"x-evanet-credential-kind":"partner","x-evanet-approval-class":"write","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/workspaces/{workspaceId}":{"get":{"operationId":"getPartnerWorkspace","summary":"Provisioned workspace detail","tags":["Workspaces"],"parameters":[{"name":"workspaceId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Workspace detail.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceDetailResponse"}}}},"default":{"$ref":"#/components/responses/ApiError"}},"x-required-scopes":["workspaces:read"],"x-required-permissions":[],"x-required-capabilities":[],"x-resource-checks":["partner-owned-workspace"],"x-evanet-credential-kind":"partner","x-evanet-approval-class":"none","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/workspaces/{workspaceId}/billing":{"get":{"operationId":"getPartnerWorkspaceBilling","summary":"Billing overview for a provisioned workspace","tags":["Billing"],"parameters":[{"name":"workspaceId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Billing overview.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerBillingOverview"}}}},"default":{"$ref":"#/components/responses/ApiError"}},"x-required-scopes":["billing:read"],"x-required-permissions":[],"x-required-capabilities":[],"x-resource-checks":["partner-owned-workspace"],"x-evanet-credential-kind":"partner","x-evanet-approval-class":"none","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/workspaces/{workspaceId}/billing/seats":{"post":{"operationId":"updatePartnerWorkspaceSeats","summary":"Change the seat allocation","tags":["Billing"],"parameters":[{"name":"workspaceId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SeatsUpdateRequest"}}}},"responses":{"200":{"description":"Seats updated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SeatsUpdateResponse"}}}},"default":{"$ref":"#/components/responses/ApiError"}},"x-required-scopes":["billing:write"],"x-required-permissions":[],"x-required-capabilities":[],"x-resource-checks":["partner-owned-workspace"],"x-evanet-credential-kind":"partner","x-evanet-approval-class":"financial","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/workspaces/{workspaceId}/billing/checkout":{"post":{"operationId":"startPartnerWorkspaceCheckout","summary":"Start a hosted Checkout session (trial to card)","tags":["Billing"],"parameters":[{"name":"workspaceId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Checkout URL.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckoutSessionResponse"}}}},"default":{"$ref":"#/components/responses/ApiError"}},"x-required-scopes":["billing:write"],"x-required-permissions":[],"x-required-capabilities":[],"x-resource-checks":["partner-owned-workspace"],"x-evanet-credential-kind":"partner","x-evanet-approval-class":"financial","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/workspaces/{workspaceId}/billing/invoices":{"get":{"operationId":"listPartnerWorkspaceInvoices","summary":"Invoice mirror for a provisioned workspace","tags":["Billing"],"parameters":[{"name":"workspaceId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Invoice mirror."},"default":{"$ref":"#/components/responses/ApiError"}},"x-required-scopes":["billing:read"],"x-required-permissions":[],"x-required-capabilities":[],"x-resource-checks":["partner-owned-workspace"],"x-evanet-credential-kind":"partner","x-evanet-approval-class":"none","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/realtime/client-secret":{"post":{"operationId":"createRealtimeVoiceSession","summary":"Mint an ephemeral Realtime voice session","description":"Requires voice:read. Identity and workspace come from the bearer token. The response contains only a short-lived OpenAI client secret.","parameters":[{"$ref":"#/components/parameters/SubOrganization"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RealtimeVoiceClientSecretRequest"}}}},"responses":{"200":{"description":"Ephemeral Realtime client secret.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RealtimeVoiceClientSecretResponse"}}}},"default":{"$ref":"#/components/responses/ApiError"}},"x-required-scopes":["voice:read"],"x-required-permissions":["tool.shared.voice.use"],"x-required-capabilities":[],"x-resource-checks":["current-workspace-membership","visible-context-noun","restricted-dsh-voice-agent"],"x-evanet-credential-kind":"workspace","x-evanet-approval-class":"non-agent","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"non-agent","x-evanet-agent-eligible":false}},"/api/v1/realtime/tools/execute":{"post":{"operationId":"executeRealtimeVoiceTool","summary":"Execute one restricted Realtime voice tool","description":"Requires voice:read. Approval-gated tools are advertised and accepted only when the token also has voice:write.","parameters":[{"$ref":"#/components/parameters/SubOrganization"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RealtimeVoiceToolExecuteRequest"}}}},"responses":{"200":{"description":"Bounded tool result.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RealtimeVoiceToolExecuteResponse"}}}},"default":{"$ref":"#/components/responses/ApiError"}},"x-required-scopes":["voice:read"],"x-required-permissions":["tool.shared.voice.use"],"x-required-capabilities":[],"x-resource-checks":["current-workspace-membership","visible-context-noun","voice-write-scope-for-approval-parking","restricted-dsh-voice-agent"],"x-evanet-credential-kind":"workspace","x-evanet-approval-class":"non-agent","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"non-agent","x-evanet-agent-eligible":false}},"/api/v1/personal-assistant":{"get":{"operationId":"getPersonalAssistant","summary":"Get the calling account and personal assistant settings","description":"Requires assistant:read on a personal token. No workspace data is returned.","tags":["Personal assistant"],"responses":{"200":{"description":"Account-owned assistant settings.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PersonalAssistantResponse"}}}},"default":{"$ref":"#/components/responses/ApiError"}},"x-required-scopes":["assistant:read"],"x-required-permissions":[],"x-required-capabilities":[],"x-resource-checks":["current-account-owner"],"x-evanet-credential-kind":"account","x-evanet-approval-class":"none","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false},"patch":{"operationId":"updatePersonalAssistant","summary":"Update personal assistant settings","description":"Requires assistant:write on a personal token. Settings belong only to the calling user.","tags":["Personal assistant"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PersonalAssistantUpdateRequest"}}}},"responses":{"200":{"description":"Updated assistant settings.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PersonalAssistantResponse"}}}},"default":{"$ref":"#/components/responses/ApiError"}},"x-required-scopes":["assistant:write"],"x-required-permissions":[],"x-required-capabilities":[],"x-resource-checks":["current-account-owner","legacy-write-without-idempotency"],"x-evanet-credential-kind":"account","x-evanet-approval-class":"write","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/personal-assistant/memories":{"get":{"operationId":"listPersonalMemories","summary":"List private personal assistant memories","description":"Requires assistant:read on a personal token. Results are account-scoped and never include workspace memory.","tags":["Personal assistant"],"parameters":[{"name":"query","in":"query","required":false,"schema":{"type":"string","maxLength":200}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":200,"default":100}}],"responses":{"200":{"description":"Private personal memories.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PersonalMemoryListResponse"}}}},"default":{"$ref":"#/components/responses/ApiError"}},"x-required-scopes":["assistant:read"],"x-required-permissions":[],"x-required-capabilities":[],"x-resource-checks":["current-account-owner"],"x-evanet-credential-kind":"account","x-evanet-approval-class":"none","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false},"post":{"operationId":"createPersonalMemory","summary":"Remember one explicitly approved personal fact","description":"Requires assistant:write on a personal token. Automatic inference is not accepted by this contract.","tags":["Personal assistant"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PersonalMemoryCreateRequest"}}}},"responses":{"201":{"description":"Personal memory stored.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PersonalMemoryCreateResponse"}}}},"default":{"$ref":"#/components/responses/ApiError"}},"x-required-scopes":["assistant:write"],"x-required-permissions":[],"x-required-capabilities":[],"x-resource-checks":["current-account-owner","legacy-write-without-idempotency"],"x-evanet-credential-kind":"account","x-evanet-approval-class":"write","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/personal-assistant/memories/{memoryId}":{"delete":{"operationId":"forgetPersonalMemory","summary":"Forget one personal memory","description":"Requires assistant:write. The memory must belong to the calling account.","tags":["Personal assistant"],"parameters":[{"name":"memoryId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Personal memory forgotten.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PersonalMemoryDeleteResponse"}}}},"default":{"$ref":"#/components/responses/ApiError"}},"x-required-scopes":["assistant:write"],"x-required-permissions":[],"x-required-capabilities":[],"x-resource-checks":["current-account-owner","owned-memory-id","legacy-write-without-idempotency"],"x-evanet-credential-kind":"account","x-evanet-approval-class":"destructive","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/personal-assistant/memories/all":{"delete":{"operationId":"deleteAllPersonalMemories","summary":"Delete every personal memory for the calling account","description":"Requires assistant:write and the exact destructive confirmation phrase.","tags":["Personal assistant"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PersonalMemoryDeleteAllRequest"}}}},"responses":{"200":{"description":"Personal memories deleted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PersonalMemoryDeleteAllResponse"}}}},"default":{"$ref":"#/components/responses/ApiError"}},"x-required-scopes":["assistant:write"],"x-required-permissions":[],"x-required-capabilities":[],"x-resource-checks":["current-account-owner","legacy-write-without-idempotency"],"x-evanet-credential-kind":"account","x-evanet-approval-class":"destructive","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/personal-assistant/export":{"get":{"operationId":"exportPersonalAssistantData","summary":"Export personal assistant settings and memories","description":"Requires assistant:read. The export is account-scoped and contains no workspace records.","tags":["Personal assistant"],"responses":{"200":{"description":"Personal assistant export.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PersonalMemoryExportResponse"}}}},"default":{"$ref":"#/components/responses/ApiError"}},"x-required-scopes":["assistant:read"],"x-required-permissions":[],"x-required-capabilities":[],"x-resource-checks":["current-account-owner"],"x-evanet-credential-kind":"account","x-evanet-approval-class":"none","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/personal-assistant/realtime/client-secret":{"post":{"operationId":"createPersonalAssistantRealtimeSession","summary":"Mint a personal assistant Realtime voice session","description":"Requires voice:read on a personal token. The agent sees bounded user-approved session context and account-owned memories only.","tags":["Personal assistant"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PersonalVoiceClientSecretRequest"}}}},"responses":{"200":{"description":"Ephemeral personal Realtime client secret.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PersonalVoiceClientSecretResponse"}}}},"default":{"$ref":"#/components/responses/ApiError"}},"x-required-scopes":["voice:read"],"x-required-permissions":[],"x-required-capabilities":[],"x-resource-checks":["current-account-owner","enabled-personal-assistant","restricted-personal-voice-agent"],"x-evanet-credential-kind":"account","x-evanet-approval-class":"non-agent","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"non-agent","x-evanet-agent-eligible":false}},"/api/v1/personal-assistant/realtime/tools/execute":{"post":{"operationId":"executePersonalAssistantRealtimeTool","summary":"Execute one restricted personal assistant tool","description":"Requires voice:read on a personal token. Memory writes still require explicit user intent.","tags":["Personal assistant"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PersonalVoiceToolExecuteRequest"}}}},"responses":{"200":{"description":"Bounded personal tool result.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PersonalVoiceToolExecuteResponse"}}}},"default":{"$ref":"#/components/responses/ApiError"}},"x-required-scopes":["assistant:write"],"x-required-permissions":[],"x-required-capabilities":[],"x-resource-checks":["current-account-owner","enabled-personal-assistant","restricted-personal-voice-agent","legacy-write-without-idempotency"],"x-evanet-credential-kind":"account","x-evanet-approval-class":"non-agent","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"non-agent","x-evanet-agent-eligible":false}},"/api/v1/clients":{"get":{"operationId":"listClients","summary":"List clients","parameters":[{"$ref":"#/components/parameters/SubOrganization"},{"name":"q","in":"query","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":200}}],"responses":{"200":{"description":"Client list.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClientsListResponse"}}}},"default":{"$ref":"#/components/responses/ApiError"}},"x-required-scopes":["travel:read"],"x-required-permissions":["tool.travel.clients.view"],"x-required-capabilities":["vertical_travel"],"x-resource-checks":["current-member","travel-workspace","agency-visible-records","current-source-readback"],"x-evanet-credential-kind":"workspace","x-evanet-approval-class":"none","x-evanet-policy-status":"qualified","x-evanet-classification":"business","x-evanet-agent-eligible":true},"post":{"operationId":"createClient","summary":"Create a client","parameters":[{"$ref":"#/components/parameters/SubOrganization"},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateClientRequest"}}}},"responses":{"201":{"description":"Created client.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateClientResponse"}}}},"default":{"$ref":"#/components/responses/ApiError"}},"x-required-scopes":["travel:write"],"x-required-permissions":["tool.travel.clients.manage"],"x-required-capabilities":["vertical_travel"],"x-resource-checks":["workspace-membership"],"x-evanet-credential-kind":"workspace","x-evanet-approval-class":"write","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/clients/{clientSlug}":{"get":{"operationId":"getClient","summary":"Get a client","parameters":[{"name":"clientSlug","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"$ref":"#/components/parameters/SubOrganization"}],"responses":{"200":{"description":"Client detail.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClientDetailResponse"}}}},"default":{"$ref":"#/components/responses/ApiError"}},"x-required-scopes":["travel:read"],"x-required-permissions":["tool.travel.clients.view"],"x-required-capabilities":["vertical_travel"],"x-resource-checks":["current-member","travel-workspace","agency-visible-record","current-source-readback"],"x-evanet-credential-kind":"workspace","x-evanet-approval-class":"none","x-evanet-policy-status":"qualified","x-evanet-classification":"business","x-evanet-agent-eligible":true},"patch":{"operationId":"updateClient","summary":"Update a client","parameters":[{"name":"clientSlug","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"$ref":"#/components/parameters/SubOrganization"},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateClientRequest"}}}},"responses":{"200":{"description":"Updated client.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateClientResponse"}}}},"default":{"$ref":"#/components/responses/ApiError"}},"x-required-scopes":["travel:write"],"x-required-permissions":["tool.travel.clients.manage"],"x-required-capabilities":["vertical_travel"],"x-resource-checks":["workspace-membership","client-in-workspace"],"x-evanet-credential-kind":"workspace","x-evanet-approval-class":"write","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/trips":{"get":{"operationId":"listTrips","summary":"List trips","parameters":[{"$ref":"#/components/parameters/SubOrganization"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":200}}],"responses":{"200":{"description":"Trip list.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TripsListResponse"}}}},"default":{"$ref":"#/components/responses/ApiError"}},"x-required-scopes":["travel:read"],"x-required-permissions":["tool.travel.trips.view"],"x-required-capabilities":["vertical_travel"],"x-resource-checks":["current-member","travel-workspace","agency-visible-records","current-source-readback"],"x-evanet-credential-kind":"workspace","x-evanet-approval-class":"none","x-evanet-policy-status":"qualified","x-evanet-classification":"business","x-evanet-agent-eligible":true},"post":{"operationId":"createTrip","summary":"Create a trip","parameters":[{"$ref":"#/components/parameters/SubOrganization"},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateTripRequest"}}}},"responses":{"201":{"description":"Created trip.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateTripResponse"}}}},"default":{"$ref":"#/components/responses/ApiError"}},"x-required-scopes":["travel:write"],"x-required-permissions":["tool.travel.trips.manage"],"x-required-capabilities":["vertical_travel"],"x-resource-checks":["workspace-membership"],"x-evanet-credential-kind":"workspace","x-evanet-approval-class":"write","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/trips/{tripId}":{"get":{"operationId":"getTrip","summary":"Get a trip","parameters":[{"name":"tripId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"$ref":"#/components/parameters/SubOrganization"}],"responses":{"200":{"description":"Trip shape.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TripShapeResponse"}}}},"default":{"$ref":"#/components/responses/ApiError"}},"x-required-scopes":["travel:read"],"x-required-permissions":["tool.travel.trips.view"],"x-required-capabilities":["vertical_travel"],"x-resource-checks":["current-member","travel-workspace","agency-visible-record","current-source-readback"],"x-evanet-credential-kind":"workspace","x-evanet-approval-class":"none","x-evanet-policy-status":"qualified","x-evanet-classification":"business","x-evanet-agent-eligible":true}},"/api/v1/trips/{tripId}/itinerary":{"get":{"operationId":"getTripItinerary","summary":"Get a trip itinerary","parameters":[{"name":"tripId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"$ref":"#/components/parameters/SubOrganization"}],"responses":{"200":{"description":"Trip itinerary.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TripItineraryResponse"}}}},"default":{"$ref":"#/components/responses/ApiError"}},"x-required-scopes":["travel:read"],"x-required-permissions":["tool.travel.trips.view"],"x-required-capabilities":["vertical_travel"],"x-resource-checks":["workspace-membership"],"x-evanet-credential-kind":"workspace","x-evanet-approval-class":"none","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/trips/{tripId}/days":{"post":{"operationId":"createTripDay","summary":"Create a trip day","parameters":[{"name":"tripId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"$ref":"#/components/parameters/SubOrganization"},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateTripDayRequest"}}}},"responses":{"201":{"description":"Created trip day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateTripDayResponse"}}}},"default":{"$ref":"#/components/responses/ApiError"}},"x-required-scopes":["travel:write"],"x-required-permissions":["tool.travel.trips.manage"],"x-required-capabilities":["vertical_travel"],"x-resource-checks":["workspace-membership","trip-in-workspace"],"x-evanet-credential-kind":"workspace","x-evanet-approval-class":"write","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/trips/{tripId}/days/{dayId}":{"patch":{"operationId":"updateTripDay","summary":"Update a trip day","parameters":[{"name":"tripId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"dayId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"$ref":"#/components/parameters/SubOrganization"},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateTripDayRequest"}}}},"responses":{"200":{"description":"Updated trip day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateTripDayResponse"}}}},"default":{"$ref":"#/components/responses/ApiError"}},"x-required-scopes":["travel:write"],"x-required-permissions":["tool.travel.trips.manage"],"x-required-capabilities":["vertical_travel"],"x-resource-checks":["workspace-membership","trip-day-in-workspace"],"x-evanet-credential-kind":"workspace","x-evanet-approval-class":"write","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false},"delete":{"operationId":"deleteTripDay","summary":"Delete a trip day","parameters":[{"name":"tripId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"dayId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"$ref":"#/components/parameters/SubOrganization"},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"description":"Deleted trip day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteTripDayResponse"}}}},"default":{"$ref":"#/components/responses/ApiError"}},"x-required-scopes":["travel:write"],"x-required-permissions":["tool.travel.trips.manage"],"x-required-capabilities":["vertical_travel"],"x-resource-checks":["workspace-membership","trip-day-in-workspace"],"x-evanet-credential-kind":"workspace","x-evanet-approval-class":"destructive","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/trips/{tripId}/days/{dayId}/items":{"post":{"operationId":"createItineraryItem","summary":"Create an itinerary item","parameters":[{"name":"tripId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"dayId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"$ref":"#/components/parameters/SubOrganization"},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateItineraryItemRequest"}}}},"responses":{"201":{"description":"Created itinerary item.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateItineraryItemResponse"}}}},"default":{"$ref":"#/components/responses/ApiError"}},"x-required-scopes":["travel:write"],"x-required-permissions":["tool.travel.trips.manage"],"x-required-capabilities":["vertical_travel"],"x-resource-checks":["workspace-membership","trip-day-in-workspace"],"x-evanet-credential-kind":"workspace","x-evanet-approval-class":"write","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/trips/{tripId}/items/{itemId}":{"patch":{"operationId":"updateItineraryItem","summary":"Update an itinerary item","parameters":[{"name":"tripId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"itemId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"$ref":"#/components/parameters/SubOrganization"},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateItineraryItemRequest"}}}},"responses":{"200":{"description":"Updated itinerary item.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateItineraryItemResponse"}}}},"default":{"$ref":"#/components/responses/ApiError"}},"x-required-scopes":["travel:write"],"x-required-permissions":["tool.travel.trips.manage"],"x-required-capabilities":["vertical_travel"],"x-resource-checks":["workspace-membership","itinerary-item-in-workspace"],"x-evanet-credential-kind":"workspace","x-evanet-approval-class":"write","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false},"delete":{"operationId":"deleteItineraryItem","summary":"Delete an itinerary item","parameters":[{"name":"tripId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"itemId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"$ref":"#/components/parameters/SubOrganization"},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"description":"Deleted itinerary item.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteItineraryItemResponse"}}}},"default":{"$ref":"#/components/responses/ApiError"}},"x-required-scopes":["travel:write"],"x-required-permissions":["tool.travel.trips.manage"],"x-required-capabilities":["vertical_travel"],"x-resource-checks":["workspace-membership","itinerary-item-in-workspace"],"x-evanet-credential-kind":"workspace","x-evanet-approval-class":"destructive","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/emf/workspace":{"get":{"operationId":"getEmfWorkspace","summary":"Get the current workspace EMF composition","description":"Requires emf:read. Old and flag-off credentials retain the strict beta.6 read-only envelope; opted-in v2 credentials receive effective capabilities.","tags":["EMF"],"responses":{"200":{"description":"Effective EMF workspace composition.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmfWorkspaceReadResponse"}}}},"default":{"$ref":"#/components/responses/ApiError"}},"x-required-scopes":["emf:read"],"x-required-permissions":["workspace.member"],"x-required-capabilities":[],"x-resource-checks":["workspace-membership","emf-workspace-binding"],"x-evanet-credential-kind":"workspace","x-evanet-approval-class":"none","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/emf/entities/{segment}/rows":{"get":{"operationId":"listEmfRows","summary":"List allowlisted EMF records","description":"Requires emf:read. Values use the beta.6 string compatibility projection.","tags":["EMF"],"parameters":[{"name":"segment","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"q","in":"query","required":false,"schema":{"type":"string","maxLength":200}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":50,"default":25}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"maximum":10000,"default":0}}],"responses":{"200":{"description":"EMF record page.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmfRowsResponse"}}}},"default":{"$ref":"#/components/responses/ApiError"}},"x-required-scopes":["emf:read"],"x-required-permissions":["workspace.member"],"x-required-capabilities":[],"x-resource-checks":["workspace-membership","emf-workspace-binding"],"x-evanet-credential-kind":"workspace","x-evanet-approval-class":"none","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/emf/entities/{segment}/rows/{rowId}":{"get":{"operationId":"getEmfRecordDetail","summary":"Get one typed EMF record detail","description":"Requires emf:read. Restricted fields are omitted and mutation capabilities remain false until later rollout waves.","tags":["EMF"],"parameters":[{"name":"segment","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"rowId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Typed EMF record detail.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmfRecordDetailResponse"}}}},"default":{"$ref":"#/components/responses/ApiError"}},"x-required-scopes":["emf:read"],"x-required-permissions":["workspace.member"],"x-required-capabilities":[],"x-resource-checks":["workspace-membership","emf-workspace-binding"],"x-evanet-credential-kind":"workspace","x-evanet-approval-class":"none","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/emf/operations":{"post":{"operationId":"stageEmfOperation","summary":"Stage a manifest-validated EMF data draft","description":"Requires emf:draft. The server resolves the workspace binding and stages only; direct apply remains disabled during rollout.","tags":["EMF"],"parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubmitEmfOperationRequest"}}}},"responses":{"201":{"description":"Staged EMF draft.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmfDraftResponse"}}}},"default":{"$ref":"#/components/responses/ApiError"}},"x-required-scopes":["emf:draft"],"x-required-permissions":["workspace.member"],"x-required-capabilities":[],"x-resource-checks":["workspace-membership","emf-workspace-binding"],"x-evanet-credential-kind":"workspace","x-evanet-approval-class":"write","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/emf/drafts":{"get":{"operationId":"listEmfDrafts","summary":"List workspace EMF data drafts","description":"Requires emf:draft. Results are strictly workspace-bound.","tags":["EMF"],"parameters":[{"name":"status","in":"query","required":false,"description":"Repeat to include multiple draft statuses.","schema":{"type":"array","maxItems":8,"items":{"type":"string","enum":["pending","committing","committed","discarded","reverted","expired","conflict","failed"]}}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","minLength":1,"maxLength":256}}],"responses":{"200":{"description":"EMF drafts.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmfDraftListResponse"}}}},"default":{"$ref":"#/components/responses/ApiError"}},"x-required-scopes":["emf:read"],"x-required-permissions":["workspace.member"],"x-required-capabilities":[],"x-resource-checks":["workspace-membership","emf-workspace-binding"],"x-evanet-credential-kind":"workspace","x-evanet-approval-class":"none","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/emf/drafts/{draftId}":{"get":{"operationId":"getEmfDraft","summary":"Get one workspace EMF data draft","tags":["EMF"],"parameters":[{"name":"draftId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"EMF draft.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmfDraftResponse"}}}},"default":{"$ref":"#/components/responses/ApiError"}},"x-required-scopes":["emf:read"],"x-required-permissions":["workspace.member"],"x-required-capabilities":[],"x-resource-checks":["workspace-membership","emf-workspace-binding"],"x-evanet-credential-kind":"workspace","x-evanet-approval-class":"none","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false},"patch":{"operationId":"updateEmfDraft","summary":"Edit a pending EMF data draft","tags":["EMF"],"parameters":[{"name":"draftId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmfDraftUpdateRequest"}}}},"responses":{"200":{"description":"Updated EMF draft.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmfDraftResponse"}}}},"default":{"$ref":"#/components/responses/ApiError"}},"x-required-scopes":["emf:draft"],"x-required-permissions":["workspace.member"],"x-required-capabilities":[],"x-resource-checks":["workspace-membership","emf-workspace-binding"],"x-evanet-credential-kind":"workspace","x-evanet-approval-class":"write","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/emf/drafts/{draftId}/action-proof":{"post":{"operationId":"registerEmfDraftActionProof","summary":"Bind a short-lived host action proof to an EMF draft","tags":["EMF"],"parameters":[{"name":"draftId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"$ref":"#/components/parameters/IdempotencyKey"},{"name":"X-Evanet-Desktop-Session-Id","in":"header","required":true,"schema":{"type":"string","minLength":8,"maxLength":256}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmfDraftActionProofRequest"}}}},"responses":{"200":{"description":"Bound action proof.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmfDraftActionProofResponse"}}}},"default":{"$ref":"#/components/responses/ApiError"}},"x-required-scopes":["emf:approve"],"x-required-permissions":["workspace.admin","workspace.owner"],"x-required-capabilities":[],"x-resource-checks":["workspace-membership","emf-draft-in-workspace"],"x-required-permission-mode":"any","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"write","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/emf/drafts/{draftId}/decision":{"post":{"operationId":"decideEmfDraft","summary":"Approve or discard an EMF data draft","description":"Requires emf:approve. Approval requires a host action proof bound to the same user, workspace, draft, and Desktop session.","tags":["EMF"],"parameters":[{"name":"draftId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"$ref":"#/components/parameters/IdempotencyKey"},{"name":"X-Evanet-Desktop-Session-Id","in":"header","required":false,"description":"Required for approve; omitted for discard.","schema":{"type":"string","minLength":8,"maxLength":256}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmfDraftDecisionRequest"}}}},"responses":{"200":{"description":"Decided EMF draft.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmfDraftResponse"}}}},"default":{"$ref":"#/components/responses/ApiError"}},"x-required-scopes":["emf:approve"],"x-required-permissions":["workspace.admin","workspace.owner"],"x-required-capabilities":[],"x-resource-checks":["workspace-membership","emf-draft-in-workspace"],"x-required-permission-mode":"any","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"write","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/deals":{"get":{"operationId":"listDeals","summary":"List workspace deals","tags":["Deals"],"description":"Requires deals:read and tool.deals.deals.view. Archived deals are omitted.","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100,"default":50}}],"responses":{"200":{"description":"Workspace deals.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DealListResponse"}}}},"default":{"$ref":"#/components/responses/ApiError"}},"x-required-scopes":["deals:read"],"x-required-permissions":["tool.deals.deals.view"],"x-required-capabilities":["motive_conviction"],"x-resource-checks":["workspace-membership"],"x-evanet-credential-kind":"workspace","x-evanet-approval-class":"none","x-evanet-policy-status":"qualified","x-evanet-classification":"business","x-evanet-agent-eligible":true},"post":{"operationId":"createDeal","summary":"Create a workspace deal","tags":["Deals"],"description":"Requires deals:write and tool.deals.deals.manage. Workspace comes from the token.","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DealCreateRequest"}}}},"responses":{"201":{"description":"Created deal.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DealDetailResponse"}}}},"default":{"$ref":"#/components/responses/ApiError"}},"x-required-scopes":["deals:write"],"x-required-permissions":["tool.deals.deals.manage"],"x-required-capabilities":["motive_conviction"],"x-resource-checks":["workspace-membership"],"x-evanet-credential-kind":"workspace","x-evanet-approval-class":"write","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/deals/{dealId}":{"get":{"operationId":"getDeal","summary":"Get a workspace deal","tags":["Deals"],"parameters":[{"name":"dealId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Workspace deal.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DealDetailResponse"}}}},"default":{"$ref":"#/components/responses/ApiError"}},"x-required-scopes":["deals:read"],"x-required-permissions":["tool.deals.deals.view"],"x-required-capabilities":["motive_conviction"],"x-resource-checks":["workspace-membership"],"x-evanet-credential-kind":"workspace","x-evanet-approval-class":"none","x-evanet-policy-status":"qualified","x-evanet-classification":"business","x-evanet-agent-eligible":true},"patch":{"operationId":"updateDeal","summary":"Update a workspace deal","tags":["Deals"],"description":"Requires deals:write and tool.deals.deals.manage. Owner must belong to the token workspace.","parameters":[{"name":"dealId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DealUpdateRequest"}}}},"responses":{"200":{"description":"Updated deal.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DealDetailResponse"}}}},"default":{"$ref":"#/components/responses/ApiError"}},"x-required-scopes":["deals:write"],"x-required-permissions":["tool.deals.deals.manage"],"x-required-capabilities":["motive_conviction"],"x-resource-checks":["workspace-membership"],"x-evanet-credential-kind":"workspace","x-evanet-approval-class":"write","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/deals/{dealId}/activities":{"get":{"operationId":"listDealActivities","summary":"List deal notes and interactions","tags":["Deals"],"parameters":[{"name":"dealId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Deal activity.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DealActivityListResponse"}}}},"default":{"$ref":"#/components/responses/ApiError"}},"x-required-scopes":["deals:read"],"x-required-permissions":["tool.deals.deals.view"],"x-required-capabilities":["motive_conviction"],"x-resource-checks":["workspace-membership"],"x-evanet-credential-kind":"workspace","x-evanet-approval-class":"none","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false},"post":{"operationId":"createDealActivity","summary":"Record a dated deal note, call, or meeting","tags":["Deals"],"parameters":[{"name":"dealId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DealActivityCreateRequest"}}}},"responses":{"201":{"description":"Recorded activity.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DealActivityDetailResponse"}}}},"default":{"$ref":"#/components/responses/ApiError"}},"x-required-scopes":["deals:write"],"x-required-permissions":["tool.deals.deals.manage"],"x-required-capabilities":["motive_conviction"],"x-resource-checks":["workspace-membership"],"x-evanet-credential-kind":"workspace","x-evanet-approval-class":"write","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/deals/{dealId}/email-evidence/search-context":{"get":{"operationId":"getDealEmailSearchContext","summary":"Prepare client email search from authorized deal facts","tags":["Deals"],"parameters":[{"name":"dealId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Client search criteria.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailSearchContextResponse"}}}},"default":{"$ref":"#/components/responses/ApiError"}},"x-required-scopes":["deals:read"],"x-required-permissions":["tool.deals.deals.view"],"x-required-capabilities":["motive_conviction"],"x-resource-checks":["workspace-membership","enterprise-operator"],"x-evanet-credential-kind":"workspace","x-evanet-approval-class":"none","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/deals/{dealId}/email-evidence/search":{"get":{"operationId":"searchDealEmails","summary":"Search the actor’s private Gmail threads","tags":["Deals"],"parameters":[{"name":"dealId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"mailboxId","in":"query","required":true,"schema":{"type":"string"}},{"name":"mode","in":"query","schema":{"type":"string","enum":["client","all"],"default":"client"}},{"name":"taskId","in":"query","schema":{"type":"string"}},{"name":"q","in":"query","schema":{"type":"string"}},{"name":"from","in":"query","schema":{"type":"string"}},{"name":"to","in":"query","schema":{"type":"string"}},{"name":"after","in":"query","schema":{"type":"string"}},{"name":"before","in":"query","schema":{"type":"string"}},{"name":"timezone","in":"query","schema":{"type":"string"}},{"name":"cursor","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"Private header results and estimated count.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailSearchResponse"}}}},"default":{"$ref":"#/components/responses/ApiError"}},"x-required-scopes":["deals:read"],"x-required-permissions":["tool.deals.deals.view"],"x-required-capabilities":["motive_conviction"],"x-resource-checks":["workspace-membership","enterprise-operator","personal-mailbox-owner"],"x-evanet-credential-kind":"workspace","x-evanet-approval-class":"none","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/deals/{dealId}/email-evidence/sources":{"get":{"operationId":"getDealEmailSources","summary":"getDealEmailSources","tags":["Deals"],"parameters":[{"name":"dealId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"q","in":"query","schema":{"type":"string","maxLength":100}}],"responses":{"200":{"description":"Authorized email evidence.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailEvidenceSourcesResponse"}}}},"default":{"$ref":"#/components/responses/ApiError"}},"x-required-scopes":["deals:read"],"x-required-permissions":["tool.deals.deals.view"],"x-required-capabilities":["motive_conviction"],"x-resource-checks":["workspace-membership","enterprise-operator","mailbox-owner-or-approved-source"],"x-evanet-credential-kind":"workspace","x-evanet-approval-class":"none","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/deals/{dealId}/email-evidence/thread":{"get":{"operationId":"getDealEmailThread","summary":"getDealEmailThread","tags":["Deals"],"parameters":[{"name":"dealId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"mailboxId","in":"query","required":true,"schema":{"type":"string"}},{"name":"threadId","in":"query","required":true,"schema":{"type":"string"}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string"}},{"name":"source","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Authorized email evidence.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailEvidenceThreadResponse"}}}},"default":{"$ref":"#/components/responses/ApiError"}},"x-required-scopes":["deals:read"],"x-required-permissions":["tool.deals.deals.view"],"x-required-capabilities":["motive_conviction"],"x-resource-checks":["workspace-membership","enterprise-operator","mailbox-owner-or-approved-source"],"x-evanet-credential-kind":"workspace","x-evanet-approval-class":"none","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/deals/{dealId}/email-connections":{"get":{"operationId":"getDealClientEmails","summary":"Read linked client email headers and sync coverage","tags":["Deals"],"parameters":[{"name":"dealId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"maximum":1000000}}],"responses":{"200":{"description":"Client email connection.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClientEmailConnectionsResponse"}}}},"default":{"$ref":"#/components/responses/ApiError"}},"x-required-scopes":["deals:read"],"x-required-permissions":["tool.deals.deals.view"],"x-required-capabilities":["motive_conviction"],"x-resource-checks":["workspace-membership","enterprise-operator","mailbox-owner-or-approved-source"],"x-evanet-credential-kind":"workspace","x-evanet-approval-class":"none","x-evanet-policy-status":"qualified","x-evanet-classification":"business","x-evanet-agent-eligible":true},"post":{"operationId":"connectDealClientEmails","summary":"Link all available and future exact-domain client emails; tasks stay unchanged","tags":["Deals"],"parameters":[{"name":"dealId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClientEmailConnectionEnable"}}}},"responses":{"200":{"description":"Client email connection.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClientEmailConnectionMutationResponse"}}}},"default":{"$ref":"#/components/responses/ApiError"}},"x-required-scopes":["deals:write"],"x-required-permissions":["tool.deals.deals.manage"],"x-required-capabilities":["motive_conviction"],"x-resource-checks":["workspace-membership","enterprise-operator","mailbox-owner-or-approved-source"],"x-evanet-credential-kind":"workspace","x-evanet-approval-class":"write","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/deals/{dealId}/email-connections/preview":{"get":{"operationId":"previewDealClientEmails","summary":"Preview private client email headers without caching a receipt","tags":["Deals"],"parameters":[{"name":"dealId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"mailboxId","in":"query","required":true,"schema":{"type":"string"}},{"name":"domain","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Private header preview.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClientEmailConnectionPreviewResponse"}}}},"default":{"$ref":"#/components/responses/ApiError"}},"x-required-scopes":["deals:read"],"x-required-permissions":["tool.deals.deals.view"],"x-required-capabilities":["motive_conviction"],"x-resource-checks":["workspace-membership","enterprise-operator","mailbox-owner-or-approved-source"],"x-evanet-credential-kind":"workspace","x-evanet-approval-class":"none","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/deals/{dealId}/email-connections/{connectionId}/change":{"post":{"operationId":"changeDealClientEmails","summary":"changeDealClientEmails","tags":["Deals"],"parameters":[{"name":"dealId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"connectionId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClientEmailConnectionChange"}}}},"responses":{"200":{"description":"Client email connection.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClientEmailConnectionMutationResponse"}}}},"default":{"$ref":"#/components/responses/ApiError"}},"x-required-scopes":["deals:write"],"x-required-permissions":["tool.deals.deals.manage"],"x-required-capabilities":["motive_conviction"],"x-resource-checks":["workspace-membership","enterprise-operator","mailbox-owner-or-approved-source"],"x-evanet-credential-kind":"workspace","x-evanet-approval-class":"write","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/deals/{dealId}/email-connections/{connectionId}/sync":{"post":{"operationId":"syncDealClientEmails","summary":"syncDealClientEmails","tags":["Deals"],"parameters":[{"name":"dealId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"connectionId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClientEmailConnectionSync"}}}},"responses":{"200":{"description":"Client email connection.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClientEmailConnectionSyncResponse"}}}},"default":{"$ref":"#/components/responses/ApiError"}},"x-required-scopes":["deals:write"],"x-required-permissions":["tool.deals.deals.manage"],"x-required-capabilities":["motive_conviction"],"x-resource-checks":["workspace-membership","enterprise-operator","mailbox-owner-or-approved-source"],"x-evanet-credential-kind":"workspace","x-evanet-approval-class":"write","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/deals/{dealId}/email-rules":{"get":{"operationId":"getDealEmailRules","summary":"getDealEmailRules","tags":["Deals"],"parameters":[{"name":"dealId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Authorized email evidence.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClientEmailStateResponse"}}}},"default":{"$ref":"#/components/responses/ApiError"}},"x-required-scopes":["deals:read"],"x-required-permissions":["tool.deals.deals.view"],"x-required-capabilities":["motive_conviction"],"x-resource-checks":["workspace-membership","enterprise-operator","mailbox-owner-or-approved-source"],"x-evanet-credential-kind":"workspace","x-evanet-approval-class":"none","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false},"post":{"operationId":"enableDealEmailRule","summary":"enableDealEmailRule","tags":["Deals"],"parameters":[{"name":"dealId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailRuleEnableRequest"}}}},"responses":{"200":{"description":"Authorized email evidence.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClientEmailStateResponse"}}}},"default":{"$ref":"#/components/responses/ApiError"}},"x-required-scopes":["deals:write","tasks:write"],"x-required-permissions":["tool.deals.deals.manage","tool.shared.tasks.manage"],"x-required-capabilities":["motive_conviction"],"x-resource-checks":["workspace-membership","enterprise-operator","mailbox-owner-or-approved-source"],"x-required-permission-mode":"all","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"write","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/deals/{dealId}/email-rules/preview":{"post":{"operationId":"previewDealEmailRule","summary":"previewDealEmailRule","tags":["Deals"],"parameters":[{"name":"dealId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailRuleSelection"}}}},"responses":{"200":{"description":"Authorized email evidence.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailRulePreviewResponse"}}}},"default":{"$ref":"#/components/responses/ApiError"}},"x-required-scopes":["deals:read"],"x-required-permissions":["tool.deals.deals.view"],"x-required-capabilities":["motive_conviction"],"x-resource-checks":["workspace-membership","enterprise-operator","mailbox-owner-or-approved-source"],"x-evanet-credential-kind":"workspace","x-evanet-approval-class":"write","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/deals/{dealId}/email-rules/{ruleId}/pause":{"post":{"operationId":"pauseDealEmailRule","summary":"pauseDealEmailRule","tags":["Deals"],"parameters":[{"name":"dealId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"ruleId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailRulePauseRequest"}}}},"responses":{"200":{"description":"Authorized email evidence.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailRuleIdResponse"}}}},"default":{"$ref":"#/components/responses/ApiError"}},"x-required-scopes":["deals:write","tasks:write"],"x-required-permissions":["tool.deals.deals.manage","tool.shared.tasks.manage"],"x-required-capabilities":["motive_conviction"],"x-resource-checks":["workspace-membership","enterprise-operator","mailbox-owner-or-approved-source"],"x-required-permission-mode":"all","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"write","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/deals/{dealId}/email-rules/{ruleId}/follow-up":{"post":{"operationId":"setDealEmailFollowUp","summary":"setDealEmailFollowUp","tags":["Deals"],"parameters":[{"name":"dealId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"ruleId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailRuleFollowUpRequest"}}}},"responses":{"200":{"description":"Authorized email evidence.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailRuleIdResponse"}}}},"default":{"$ref":"#/components/responses/ApiError"}},"x-required-scopes":["deals:write","tasks:write"],"x-required-permissions":["tool.deals.deals.manage","tool.shared.tasks.manage"],"x-required-capabilities":["motive_conviction"],"x-resource-checks":["workspace-membership","enterprise-operator","mailbox-owner-or-approved-source"],"x-required-permission-mode":"all","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"write","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/deals/{dealId}/email-rules/{ruleId}/reconcile":{"post":{"operationId":"reconcileDealEmailRule","summary":"reconcileDealEmailRule","tags":["Deals"],"parameters":[{"name":"dealId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"ruleId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailRuleReconcileRequest"}}}},"responses":{"200":{"description":"Authorized email evidence.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailRuleReconcileResponse"}}}},"default":{"$ref":"#/components/responses/ApiError"}},"x-required-scopes":["deals:write","tasks:write"],"x-required-permissions":["tool.deals.deals.manage","tool.shared.tasks.manage"],"x-required-capabilities":["motive_conviction"],"x-resource-checks":["workspace-membership","enterprise-operator","mailbox-owner-or-approved-source"],"x-required-permission-mode":"all","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"write","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/deals/{dealId}/email-resolution":{"get":{"operationId":"getDealEmailResolution","summary":"getDealEmailResolution","tags":["Deals"],"parameters":[{"name":"dealId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Authorized email evidence.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClientEmailStateResponse"}}}},"default":{"$ref":"#/components/responses/ApiError"}},"x-required-scopes":["deals:read"],"x-required-permissions":["tool.deals.deals.view"],"x-required-capabilities":["motive_conviction"],"x-resource-checks":["workspace-membership","enterprise-operator","mailbox-owner-or-approved-source"],"x-evanet-credential-kind":"workspace","x-evanet-approval-class":"none","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/deals/{dealId}/planning-context":{"get":{"operationId":"getDealPlanningContext","summary":"Load authorized opportunity facts, tasks, and plan state for assistant or CLI","tags":["Deals"],"parameters":[{"name":"dealId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Authorized planning context.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DealPlanningContextResponse"}}}},"default":{"$ref":"#/components/responses/ApiError"}},"x-required-scopes":["deals:read"],"x-required-permissions":["tool.deals.deals.view"],"x-required-capabilities":["motive_conviction"],"x-resource-checks":["workspace-membership","source-visibility"],"x-evanet-credential-kind":"workspace","x-evanet-approval-class":"none","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/deals/{dealId}/plan":{"get":{"operationId":"getDealPlan","summary":"Read the latest authorized opportunity plan","tags":["Deals"],"description":"Requires deals:read and deal view permission. Evidence access is rechecked on every read.","parameters":[{"name":"dealId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"version","in":"query","required":false,"schema":{"type":"integer","minimum":1}},{"name":"visibility","in":"query","required":false,"schema":{"type":"string","enum":["workspace","enterprise_operator"]}}],"responses":{"200":{"description":"Latest visible plan or null.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DealPlanReadResponse"}}}},"default":{"$ref":"#/components/responses/ApiError"}},"x-required-scopes":["deals:read"],"x-required-permissions":["tool.deals.deals.view"],"x-required-capabilities":["motive_conviction"],"x-resource-checks":["workspace-membership"],"x-evanet-credential-kind":"workspace","x-evanet-approval-class":"none","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false},"post":{"operationId":"generateDealPlan","summary":"Draft a grounded opportunity plan","tags":["Deals"],"description":"Compatibility command. Generates an unpublished draft and returns its ID in planId; review and publish it separately.","parameters":[{"name":"dealId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DealPlanGenerateRequest"}}}},"responses":{"201":{"description":"Unpublished draft ID.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DealPlanIdResponse"}}}},"default":{"$ref":"#/components/responses/ApiError"}},"x-required-scopes":["deals:write"],"x-required-permissions":["tool.deals.deals.manage"],"x-required-capabilities":["motive_conviction"],"x-resource-checks":["workspace-membership"],"x-evanet-credential-kind":"workspace","x-evanet-approval-class":"write","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/deals/{dealId}/plan/versions":{"get":{"operationId":"listDealPlanVersions","summary":"List authorized published plan versions","tags":["Deals"],"parameters":[{"name":"dealId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Version index.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DealPlanVersionIndexResponse"}}}},"default":{"$ref":"#/components/responses/ApiError"}},"x-required-scopes":["deals:read"],"x-required-permissions":["tool.deals.deals.view"],"x-required-capabilities":["motive_conviction"],"x-resource-checks":["workspace-membership"],"x-evanet-credential-kind":"workspace","x-evanet-approval-class":"none","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/deals/{dealId}/plan/draft":{"get":{"operationId":"getDealPlanDraft","summary":"Read the active action-plan draft","tags":["Deals"],"parameters":[{"name":"dealId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Draft or null.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DealPlanDraftResponse"}}}},"default":{"$ref":"#/components/responses/ApiError"}},"x-required-scopes":["deals:read"],"x-required-permissions":["tool.deals.deals.view"],"x-required-capabilities":["motive_conviction"],"x-resource-checks":["workspace-membership"],"x-evanet-credential-kind":"workspace","x-evanet-approval-class":"none","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false},"post":{"operationId":"createDealPlanDraft","summary":"Start or resume an action-plan draft","tags":["Deals"],"parameters":[{"name":"dealId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DealPlanDraftCreateRequest"}}}},"responses":{"201":{"description":"Draft.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DealPlanDraftResponse"}}}},"default":{"$ref":"#/components/responses/ApiError"}},"x-required-scopes":["deals:write"],"x-required-permissions":["tool.deals.deals.manage"],"x-required-capabilities":["motive_conviction"],"x-resource-checks":["workspace-membership"],"x-evanet-credential-kind":"workspace","x-evanet-approval-class":"write","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/deals/{dealId}/plan/draft/save":{"post":{"operationId":"saveDealPlanDraft","summary":"Atomically save ordered draft steps and reviewed context","tags":["Deals"],"parameters":[{"name":"dealId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DealPlanDraftSaveRequest"}}}},"responses":{"200":{"description":"Saved draft; published version and tasks unchanged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DealPlanDraftResponse"}}}},"default":{"$ref":"#/components/responses/ApiError"}},"x-required-scopes":["deals:write"],"x-required-permissions":["tool.deals.deals.manage"],"x-required-capabilities":["motive_conviction"],"x-resource-checks":["workspace-membership"],"x-evanet-credential-kind":"workspace","x-evanet-approval-class":"write","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/deals/{dealId}/plan/draft/context-review":{"get":{"operationId":"getDealPlanDraftContextReview","summary":"Review current authorized draft evidence and task issues","tags":["Deals"],"parameters":[{"name":"dealId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Current evidence and unresolved links.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DealPlanDraftContextReviewResponse"}}}},"default":{"$ref":"#/components/responses/ApiError"}},"x-required-scopes":["deals:read"],"x-required-permissions":["tool.deals.deals.view"],"x-required-capabilities":["motive_conviction"],"x-resource-checks":["workspace-membership"],"x-evanet-credential-kind":"workspace","x-evanet-approval-class":"none","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/deals/{dealId}/plan/draft/changes":{"post":{"operationId":"changeDealPlanDraft","summary":"Add, edit, remove, or move a draft step","tags":["Deals"],"parameters":[{"name":"dealId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DealPlanDraftChangeRequest"}}}},"responses":{"200":{"description":"Updated draft.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DealPlanDraftResponse"}}}},"default":{"$ref":"#/components/responses/ApiError"}},"x-required-scopes":["deals:write"],"x-required-permissions":["tool.deals.deals.manage"],"x-required-capabilities":["motive_conviction"],"x-resource-checks":["workspace-membership"],"x-evanet-credential-kind":"workspace","x-evanet-approval-class":"write","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/deals/{dealId}/plan/draft/review":{"post":{"operationId":"reviewDealPlanDraft","summary":"Review draft changes and bind a digest","tags":["Deals"],"parameters":[{"name":"dealId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DealPlanDraftReviewRequest"}}}},"responses":{"200":{"description":"Reviewed change summary.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DealPlanDraftReviewResponse"}}}},"default":{"$ref":"#/components/responses/ApiError"}},"x-required-scopes":["deals:write"],"x-required-permissions":["tool.deals.deals.manage"],"x-required-capabilities":["motive_conviction"],"x-resource-checks":["workspace-membership"],"x-evanet-credential-kind":"workspace","x-evanet-approval-class":"write","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/deals/{dealId}/plan/draft/publish":{"post":{"operationId":"publishDealPlanDraft","summary":"Publish the reviewed draft as a new version","tags":["Deals"],"parameters":[{"name":"dealId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DealPlanDraftPublishRequest"}}}},"responses":{"200":{"description":"Published version.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DealPlanDraftPublishResponse"}}}},"default":{"$ref":"#/components/responses/ApiError"}},"x-required-scopes":["deals:write"],"x-required-permissions":["tool.deals.deals.manage"],"x-required-capabilities":["motive_conviction"],"x-resource-checks":["workspace-membership"],"x-evanet-credential-kind":"workspace","x-evanet-approval-class":"write","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/deals/{dealId}/plan/draft/discard":{"post":{"operationId":"discardDealPlanDraft","summary":"Discard the active draft","tags":["Deals"],"parameters":[{"name":"dealId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DealPlanDraftDiscardRequest"}}}},"responses":{"200":{"description":"Draft discarded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DealPlanDraftDiscardResponse"}}}},"default":{"$ref":"#/components/responses/ApiError"}},"x-required-scopes":["deals:write"],"x-required-permissions":["tool.deals.deals.manage"],"x-required-capabilities":["motive_conviction"],"x-resource-checks":["workspace-membership"],"x-evanet-credential-kind":"workspace","x-evanet-approval-class":"write","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/deals/{dealId}/plan/{planId}/steps/{stepId}/apply":{"post":{"operationId":"applyDealPlanStep","summary":"Create or link one reviewed plan task","tags":["Deals"],"parameters":[{"name":"dealId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"planId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"stepId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DealPlanApplyRequest"}}}},"responses":{"200":{"description":"Created or linked task ID.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DealPlanTaskResponse"}}}},"default":{"$ref":"#/components/responses/ApiError"}},"x-required-scopes":["deals:write","tasks:write"],"x-required-permissions":["tool.deals.deals.manage","tool.shared.tasks.manage"],"x-required-capabilities":["motive_conviction"],"x-resource-checks":["workspace-membership"],"x-required-permission-mode":"all","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"write","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/deals/{dealId}/plan/{planId}/steps/{stepId}/dismiss":{"post":{"operationId":"dismissDealPlanStep","summary":"Dismiss one suggested step","tags":["Deals"],"parameters":[{"name":"dealId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"planId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"stepId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DealPlanDismissRequest"}}}},"responses":{"200":{"description":"Dismissed step ID.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DealPlanDismissResponse"}}}},"default":{"$ref":"#/components/responses/ApiError"}},"x-required-scopes":["deals:write"],"x-required-permissions":["tool.deals.deals.manage"],"x-required-capabilities":["motive_conviction"],"x-resource-checks":["workspace-membership"],"x-evanet-credential-kind":"workspace","x-evanet-approval-class":"write","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/enterprise/partners":{"get":{"operationId":"listEnterprisePartners","summary":"List EvaNeT partner engagements","tags":["Enterprise Partners"],"description":"Requires partners:read, tool.enterprise.partners.view, and an EvaNeT operator token bound to EvaNeT Enterprise.","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100,"default":50}}],"responses":{"200":{"description":"Partner engagements.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnterprisePartnerListResponse"}}}},"default":{"$ref":"#/components/responses/ApiError"}},"x-required-scopes":["partners:read"],"x-required-permissions":["tool.enterprise.partners.view"],"x-required-capabilities":[],"x-resource-checks":["enterprise-workspace","enterprise-operator"],"x-evanet-credential-kind":"workspace","x-evanet-approval-class":"none","x-evanet-policy-status":"qualified","x-evanet-classification":"business","x-evanet-agent-eligible":true},"post":{"operationId":"createEnterprisePartner","summary":"Create an unsigned partner engagement","tags":["Enterprise Partners"],"description":"Requires partners:write, tool.enterprise.partners.manage, and an EvaNeT Enterprise operator. Creates an unsigned agreement and onboarding checklist.","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnterprisePartnerCreateRequest"}}}},"responses":{"201":{"description":"Created partner engagement.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnterprisePartnerDetailResponse"}}}},"default":{"$ref":"#/components/responses/ApiError"}},"x-required-scopes":["partners:write"],"x-required-permissions":["tool.enterprise.partners.manage"],"x-required-capabilities":[],"x-resource-checks":["enterprise-workspace","enterprise-operator","same-origin-session"],"x-evanet-credential-kind":"workspace","x-evanet-approval-class":"write","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/enterprise/partners/{partnerId}":{"get":{"operationId":"getEnterprisePartner","summary":"Get an EvaNeT partner engagement","tags":["Enterprise Partners"],"description":"Requires partners:read, tool.enterprise.partners.view, and an EvaNeT Enterprise operator.","parameters":[{"name":"partnerId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Partner engagement.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnterprisePartnerDetailResponse"}}}},"default":{"$ref":"#/components/responses/ApiError"}},"x-required-scopes":["partners:read"],"x-required-permissions":["tool.enterprise.partners.view"],"x-required-capabilities":[],"x-resource-checks":["enterprise-workspace","enterprise-operator"],"x-evanet-credential-kind":"workspace","x-evanet-approval-class":"none","x-evanet-policy-status":"qualified","x-evanet-classification":"business","x-evanet-agent-eligible":true},"patch":{"operationId":"updateEnterprisePartner","summary":"Update partner identity, contacts, WhatsApp group, or agreement links","tags":["Enterprise Partners"],"description":"Requires partners:write, tool.enterprise.partners.manage, and an EvaNeT Enterprise operator. contacts replaces the complete contact list. whatsappGroup stores a name and optional external group invite link; null clears it. It does not sync group messages. agreementDealId links the current agreement, not unrelated historical work. Signed status is not changed here.","parameters":[{"name":"partnerId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnterprisePartnerUpdateRequest"}}}},"responses":{"200":{"description":"Updated partner engagement.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnterprisePartnerDetailResponse"}}}},"default":{"$ref":"#/components/responses/ApiError"}},"x-required-scopes":["partners:write"],"x-required-permissions":["tool.enterprise.partners.manage"],"x-required-capabilities":[],"x-resource-checks":["enterprise-workspace","enterprise-operator"],"x-evanet-credential-kind":"workspace","x-evanet-approval-class":"write","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/deals/{dealId}/kpis":{"get":{"operationId":"listDealKpis","summary":"List deal KPIs","tags":["Deals"],"description":"Requires deals:read and tool.deals.momentum.view. Legacy KPI references remain visible.","parameters":[{"name":"dealId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":200,"default":100}}],"responses":{"200":{"description":"Deal KPIs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DealKpiListResponse"}}}},"default":{"$ref":"#/components/responses/ApiError"}},"x-required-scopes":["deals:read"],"x-required-permissions":["tool.deals.momentum.view"],"x-required-capabilities":["motive_momentum"],"x-resource-checks":["workspace-membership"],"x-evanet-credential-kind":"workspace","x-evanet-approval-class":"none","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false},"post":{"operationId":"createDealKpi","summary":"Create a KPI for a linked issue initiative","tags":["Deals"],"description":"Requires deals:write and tool.deals.momentum.kpis.manage. The issue initiative must be linked to this deal.","parameters":[{"name":"dealId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DealKpiCreateRequest"}}}},"responses":{"201":{"description":"Created KPI.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DealKpiDetailResponse"}}}},"default":{"$ref":"#/components/responses/ApiError"}},"x-required-scopes":["deals:write"],"x-required-permissions":["tool.deals.momentum.kpis.manage"],"x-required-capabilities":["motive_momentum"],"x-resource-checks":["workspace-membership"],"x-evanet-credential-kind":"workspace","x-evanet-approval-class":"write","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/deals/{dealId}/kpis/{kpiId}":{"get":{"operationId":"getDealKpi","summary":"Get a deal KPI","tags":["Deals"],"parameters":[{"name":"dealId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"kpiId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Deal KPI.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DealKpiDetailResponse"}}}},"default":{"$ref":"#/components/responses/ApiError"}},"x-required-scopes":["deals:read"],"x-required-permissions":["tool.deals.momentum.view"],"x-required-capabilities":["motive_momentum"],"x-resource-checks":["workspace-membership"],"x-evanet-credential-kind":"workspace","x-evanet-approval-class":"none","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false},"patch":{"operationId":"updateDealKpi","summary":"Update a deal KPI","tags":["Deals"],"description":"Requires deals:write. Legacy KPIs must be migrated before this endpoint can update them.","parameters":[{"name":"dealId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"kpiId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DealKpiUpdateRequest"}}}},"responses":{"200":{"description":"Updated KPI.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DealKpiDetailResponse"}}}},"default":{"$ref":"#/components/responses/ApiError"}},"x-required-scopes":["deals:write"],"x-required-permissions":["tool.deals.momentum.kpis.manage"],"x-required-capabilities":["motive_momentum"],"x-resource-checks":["workspace-membership"],"x-evanet-credential-kind":"workspace","x-evanet-approval-class":"write","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/tasks":{"get":{"operationId":"listTasks","summary":"List workspace tasks","description":"Requires tasks:read. Results are scoped to the token workspace and optional validated sub-organization. Omitting sv leaves the list unfiltered. sv=all returns open issues unless lane or canonical status is also set. Layout, group, and order are saved on views and do not change this list.","parameters":[{"$ref":"#/components/parameters/SubOrganization"},{"name":"q","in":"query","required":false,"schema":{"type":"string"}},{"name":"status","in":"query","required":false,"description":"Comma-separated or repeated canonical task statuses. This is not a user-facing lane.","schema":{"type":"array","maxItems":6,"items":{"type":"string","enum":["queued","running","waiting_human","succeeded","failed","cancelled"]}}},{"name":"sv","in":"query","required":false,"description":"System view: all, active, mine, followups, next-actions, or approvals.","schema":{"type":"string","enum":["all","active","mine","followups","next-actions","approvals"]}},{"name":"lane","in":"query","required":false,"description":"Comma-separated or repeated user-facing lanes: backlog, todo, in_progress, in_review, done, cancelled. A saved view filter.status is a lane and belongs here.","schema":{"type":"array","maxItems":6,"items":{"type":"string","enum":["backlog","todo","in_progress","in_review","done","cancelled"]}}},{"name":"assignee","in":"query","required":false,"description":"me, unassigned, a user id, team:<id>, or agent:<key>.","schema":{"type":"string","minLength":1,"maxLength":256}},{"name":"taskType","in":"query","required":false,"description":"Exact task type, such as followup or workflow.human.","schema":{"type":"string","minLength":1,"maxLength":128}},{"name":"noun","in":"query","required":false,"description":"Linked noun type. Does not require an id. entityKind and entityId stay a pair.","schema":{"type":"string","minLength":1,"maxLength":128}},{"name":"priority","in":"query","required":false,"description":"Priority band.","schema":{"type":"string","enum":["none","low","medium","high","urgent"]}},{"name":"due","in":"query","required":false,"description":"Due bucket.","schema":{"type":"string","enum":["overdue","today","week","none"]}},{"name":"entityKind","in":"query","required":false,"schema":{"type":"string","minLength":1,"maxLength":128}},{"name":"entityId","in":"query","required":false,"schema":{"type":"string","minLength":1,"maxLength":256}},{"name":"parentTaskId","in":"query","required":false,"schema":{"type":"string","minLength":1,"maxLength":256}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","minLength":1,"maxLength":1024}}],"responses":{"200":{"description":"Bounded task list.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TasksListResponse"}}}},"default":{"$ref":"#/components/responses/ApiError"}},"x-required-scopes":["tasks:read"],"x-required-permissions":["tool.shared.tasks.view"],"x-required-capabilities":[],"x-resource-checks":["workspace-membership"],"x-evanet-credential-kind":"workspace","x-evanet-approval-class":"none","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false},"post":{"operationId":"createTask","summary":"Create a shared workspace task","description":"Requires tasks:write and tool.shared.tasks.manage. Workspace ownership is derived from the bearer token.","parameters":[{"$ref":"#/components/parameters/SubOrganization"},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskBoardCreateRequest"}}}},"responses":{"201":{"description":"Created workspace task.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskBoardTaskResponse"}}}},"default":{"$ref":"#/components/responses/ApiError"}},"x-required-scopes":["tasks:write"],"x-required-permissions":["tool.shared.tasks.manage"],"x-required-capabilities":[],"x-resource-checks":["workspace-membership"],"x-evanet-credential-kind":"workspace","x-evanet-approval-class":"write","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/tasks/{taskId}":{"get":{"operationId":"getTask","summary":"Get a workspace task","description":"Requires tasks:read. Returns bounded state, assignment, timing, dependencies, and entity links.","parameters":[{"name":"taskId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"$ref":"#/components/parameters/SubOrganization"}],"responses":{"200":{"description":"Task detail.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskDetailResponse"}}}},"default":{"$ref":"#/components/responses/ApiError"}},"x-required-scopes":["tasks:read"],"x-required-permissions":["tool.shared.tasks.view"],"x-required-capabilities":[],"x-resource-checks":["workspace-membership","workspace-task"],"x-evanet-credential-kind":"workspace","x-evanet-approval-class":"none","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false},"patch":{"operationId":"updateTask","summary":"Update or archive a shared workspace task","description":"Requires tasks:write and tool.shared.tasks.manage. The task must belong to the bearer token workspace. Changing scheduledAt or dueAt shifts finish-to-start successors and rolls the window up to parent issues.","parameters":[{"name":"taskId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"$ref":"#/components/parameters/SubOrganization"},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskBoardUpdateRequest"}}}},"responses":{"200":{"description":"Updated workspace task.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskBoardTaskResponse"}}}},"default":{"$ref":"#/components/responses/ApiError"}},"x-required-scopes":["tasks:write"],"x-required-permissions":["tool.shared.tasks.manage"],"x-required-capabilities":[],"x-resource-checks":["workspace-membership","workspace-task"],"x-evanet-credential-kind":"workspace","x-evanet-approval-class":"write","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false},"delete":{"operationId":"deleteTask","summary":"Delete a workspace task with no remaining links","description":"Requires tasks:write and tool.shared.tasks.manage. Refuses while sub-issues, dependencies, outputs, or entity links remain.","tags":["Tasks"],"parameters":[{"name":"taskId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"description":"Deleted task.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskDeleteResponse"}}}},"default":{"$ref":"#/components/responses/ApiError"}},"x-required-scopes":["tasks:write"],"x-required-permissions":["tool.shared.tasks.manage"],"x-required-capabilities":[],"x-resource-checks":["workspace-membership","workspace-task"],"x-evanet-credential-kind":"workspace","x-evanet-approval-class":"destructive","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/tasks/{taskId}/scheduling":{"get":{"operationId":"getTaskScheduling","summary":"Get task-owned deal scheduling context","description":"Requires tasks:read, tool.shared.tasks.view, and tool.deals.deals.view. Private source URLs are omitted.","tags":["Tasks","Deals"],"parameters":[{"name":"taskId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Task scheduling context.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskSchedulingResponse"}}}},"default":{"$ref":"#/components/responses/ApiError"}},"x-required-scopes":["tasks:read"],"x-required-permissions":["tool.shared.tasks.view","tool.deals.deals.view"],"x-resource-checks":["workspace-task","linked-deal"],"x-required-permission-mode":"all","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"none","x-evanet-policy-status":"reviewed","x-evanet-classification":"business","x-evanet-agent-eligible":false},"patch":{"operationId":"updateTaskScheduling","summary":"Update task-owned deal scheduling context","description":"Requires tasks:write, tool.shared.tasks.manage, and tool.deals.deals.manage. Sent invitation status is recorded by the server.","tags":["Tasks","Deals"],"parameters":[{"name":"taskId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskSchedulingPatchRequest"}}}},"responses":{"200":{"description":"Updated task scheduling context.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskSchedulingResponse"}}}},"default":{"$ref":"#/components/responses/ApiError"}},"x-required-scopes":["tasks:write"],"x-required-permissions":["tool.shared.tasks.manage","tool.deals.deals.manage"],"x-resource-checks":["workspace-task","linked-deal","linked-recipient","source-activity"],"x-required-permission-mode":"all","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"write","x-evanet-policy-status":"reviewed","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/tasks/{taskId}/email-reply":{"get":{"operationId":"getTaskEmailReply","summary":"Get optional task-owned email reply context","description":"Requires tasks:read and deal view permission. Private source URLs are omitted.","tags":["Tasks","Deals"],"parameters":[{"name":"taskId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Task email reply context.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskEmailReplyResponse"}}}},"default":{"$ref":"#/components/responses/ApiError"}},"x-required-scopes":["tasks:read"],"x-required-permissions":["tool.shared.tasks.view","tool.deals.deals.view"],"x-resource-checks":["workspace-task","linked-deal"],"x-required-permission-mode":"all","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"none","x-evanet-policy-status":"reviewed","x-evanet-classification":"business","x-evanet-agent-eligible":false},"patch":{"operationId":"updateTaskEmailReply","summary":"Attach or update email reply context on an open deal task","description":"Requires tasks:write and deal management permission. Converts unbooked scheduling work to ordinary work.","tags":["Tasks","Deals"],"parameters":[{"name":"taskId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskEmailReplyPatchRequest"}}}},"responses":{"200":{"description":"Updated task email reply context.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskEmailReplyResponse"}}}},"default":{"$ref":"#/components/responses/ApiError"}},"x-required-scopes":["tasks:write"],"x-required-permissions":["tool.shared.tasks.manage","tool.deals.deals.manage"],"x-resource-checks":["workspace-task","linked-deal","linked-recipient","source-activity"],"x-required-permission-mode":"all","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"write","x-evanet-policy-status":"reviewed","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/tasks/{taskId}/deal-links":{"post":{"operationId":"linkIssueInitiativeToDeal","summary":"Link an issue initiative to a deal","tags":["Tasks","Deals"],"description":"Requires tasks:write, deals:write, tool.shared.tasks.manage, and tool.deals.deals.manage. Both records must belong to the token workspace.","parameters":[{"name":"taskId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DealLinkRequest"}}}},"responses":{"200":{"description":"Issue with its deal link.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskDetailResponse"}}}},"default":{"$ref":"#/components/responses/ApiError"}},"x-required-scopes":["tasks:write","deals:write"],"x-required-permissions":["tool.shared.tasks.manage","tool.deals.deals.manage"],"x-required-capabilities":["motive_conviction"],"x-resource-checks":["workspace-membership","workspace-task"],"x-required-permission-mode":"all","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"write","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/tasks/{taskId}/deal-links/{dealId}":{"delete":{"operationId":"unlinkIssueInitiativeFromDeal","summary":"Remove an initiative deal link","tags":["Tasks","Deals"],"description":"Requires tasks:write and deals:write. Refuses while a KPI references this initiative and deal.","parameters":[{"name":"taskId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"dealId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"description":"Issue without its deal link.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskDetailResponse"}}}},"default":{"$ref":"#/components/responses/ApiError"}},"x-required-scopes":["tasks:write","deals:write"],"x-required-permissions":["tool.shared.tasks.manage","tool.deals.deals.manage"],"x-required-capabilities":["motive_conviction"],"x-resource-checks":["workspace-membership","workspace-task"],"x-required-permission-mode":"all","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"destructive","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/tasks/{taskId}/actions":{"post":{"operationId":"runTaskAction","summary":"Run a type-specific issue action","description":"Requires tasks:write and tool.shared.tasks.manage. Follow-ups and workflow gates use their writers. complete marks other issues done. cancel, dismiss, decline, and reject cancel them.","tags":["Tasks"],"parameters":[{"name":"taskId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"$ref":"#/components/parameters/SubOrganization"},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskActionRequest"}}}},"responses":{"200":{"description":"Applied issue action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskActionResponse"}}}},"default":{"$ref":"#/components/responses/ApiError"}},"x-required-scopes":["tasks:write"],"x-required-permissions":["tool.shared.tasks.manage"],"x-required-capabilities":[],"x-resource-checks":["workspace-membership","workspace-task"],"x-evanet-credential-kind":"workspace","x-evanet-approval-class":"write","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/tasks/{taskId}/comments":{"post":{"operationId":"addTaskComment","summary":"Comment on a workspace task","description":"Requires tasks:write and tool.shared.tasks.manage. The author is the token user.","tags":["Tasks"],"parameters":[{"name":"taskId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskCommentRequest"}}}},"responses":{"200":{"description":"Recorded task comment.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskCommentResponse"}}}},"default":{"$ref":"#/components/responses/ApiError"}},"x-required-scopes":["tasks:write"],"x-required-permissions":["tool.shared.tasks.manage"],"x-required-capabilities":[],"x-resource-checks":["workspace-membership","workspace-task"],"x-evanet-credential-kind":"workspace","x-evanet-approval-class":"write","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/tasks/{taskId}/dependencies":{"post":{"operationId":"addTaskDependency","summary":"Block a task on another task","description":"Requires tasks:write and tool.shared.tasks.manage. The task cannot start before dependsOnTaskId ends. Successors shift and parent windows roll up.","tags":["Tasks"],"parameters":[{"name":"taskId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskDependencyRequest"}}}},"responses":{"200":{"description":"Recorded task dependency.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskDependencyResponse"}}}},"default":{"$ref":"#/components/responses/ApiError"}},"x-required-scopes":["tasks:write"],"x-required-permissions":["tool.shared.tasks.manage"],"x-required-capabilities":[],"x-resource-checks":["workspace-membership","workspace-task"],"x-evanet-credential-kind":"workspace","x-evanet-approval-class":"write","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/tasks/{taskId}/dependencies/{dependsOnTaskId}":{"delete":{"operationId":"removeTaskDependency","summary":"Remove a task blocker","description":"Requires tasks:write and tool.shared.tasks.manage. Does not pull successor dates backward.","tags":["Tasks"],"parameters":[{"name":"taskId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"dependsOnTaskId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"description":"Removed task dependency.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskDependencyResponse"}}}},"default":{"$ref":"#/components/responses/ApiError"}},"x-required-scopes":["tasks:write"],"x-required-permissions":["tool.shared.tasks.manage"],"x-required-capabilities":[],"x-resource-checks":["workspace-membership","workspace-task"],"x-evanet-credential-kind":"workspace","x-evanet-approval-class":"destructive","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/tasks/{taskId}/evidence":{"get":{"operationId":"getTaskEvidence","summary":"Get a task evidence trail","description":"Requires tasks:read. Returns bounded activity, normalized current output, citations, and artifact metadata; never raw file bodies or tool inputs.","parameters":[{"name":"taskId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"$ref":"#/components/parameters/SubOrganization"}],"responses":{"200":{"description":"Task evidence trail.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskEvidenceResponse"}}}},"default":{"$ref":"#/components/responses/ApiError"}},"x-required-scopes":["tasks:read"],"x-required-permissions":["tool.shared.tasks.view"],"x-required-capabilities":[],"x-resource-checks":["workspace","task","actor-authorized-email-evidence"],"x-evanet-credential-kind":"workspace","x-evanet-approval-class":"none","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/tasks/{taskId}/artifact-uploads":{"post":{"operationId":"createTaskArtifactUpload","summary":"Create a bounded task artifact upload","description":"Requires tasks:write and tool.shared.tasks.manage. Returns a short-lived workspace-scoped PUT URL; finalization verifies the uploaded bytes.","parameters":[{"name":"taskId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"$ref":"#/components/parameters/SubOrganization"},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskArtifactUploadRequest"}}}},"responses":{"200":{"description":"Task artifact upload reservation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskArtifactUploadResponse"}}}},"default":{"$ref":"#/components/responses/ApiError"}},"x-required-scopes":["tasks:write"],"x-required-permissions":["tool.shared.tasks.manage"],"x-required-capabilities":[],"x-resource-checks":["workspace-membership","workspace-task"],"x-evanet-credential-kind":"workspace","x-evanet-approval-class":"write","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/tasks/{taskId}/artifacts":{"post":{"operationId":"finalizeTaskArtifact","summary":"Verify and attach an uploaded artifact to a task","description":"Requires tasks:write and tool.shared.tasks.manage. Verifies workspace ownership, size, content type, and SHA-256 before creating the task association.","parameters":[{"name":"taskId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"$ref":"#/components/parameters/SubOrganization"},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskArtifactFinalizeRequest"}}}},"responses":{"201":{"description":"Verified task artifact.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskArtifactResponse"}}}},"default":{"$ref":"#/components/responses/ApiError"}},"x-required-scopes":["tasks:write"],"x-required-permissions":["tool.shared.tasks.manage"],"x-required-capabilities":[],"x-resource-checks":["workspace-membership","workspace-task"],"x-evanet-credential-kind":"workspace","x-evanet-approval-class":"write","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/tasks/{taskId}/artifacts/{fileId}/filings":{"post":{"operationId":"fileApprovedTaskArtifact","summary":"File a human-approved task artifact","description":"Requires tasks:write and tool.shared.tasks.manage. The artifact must belong to the task and the task must have a recorded approved checkpoint. Callers may use a stable semantic destination instead of an internal folder node id.","parameters":[{"name":"taskId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"fileId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"$ref":"#/components/parameters/SubOrganization"},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskArtifactFilingRequest"}}}},"responses":{"201":{"description":"Filed approved task artifact.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskArtifactFilingResponse"}}}},"default":{"$ref":"#/components/responses/ApiError"}},"x-required-scopes":["tasks:write"],"x-required-permissions":["tool.shared.tasks.manage"],"x-required-capabilities":[],"x-resource-checks":["workspace-membership","workspace-task"],"x-evanet-credential-kind":"workspace","x-evanet-approval-class":"write","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/tasks/{taskId}/executions":{"get":{"operationId":"listTaskExecutions","summary":"List durable execution records for a task","tags":["Tasks"],"parameters":[{"name":"taskId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"$ref":"#/components/parameters/SubOrganization"}],"responses":{"200":{"description":"Task execution history.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskExecutionsListResponse"}}}},"default":{"$ref":"#/components/responses/ApiError"}},"x-required-scopes":["tasks:read"],"x-required-permissions":["tool.shared.tasks.view"],"x-required-capabilities":[],"x-resource-checks":["workspace-membership","workspace-task"],"x-evanet-credential-kind":"workspace","x-evanet-approval-class":"none","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false},"post":{"operationId":"startTaskExecution","summary":"Reserve a durable task execution","description":"Requires tasks:write and tool.shared.tasks.manage. Reserve before launching the provider session.","parameters":[{"name":"taskId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"$ref":"#/components/parameters/SubOrganization"},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskExecutionStartRequest"}}}},"responses":{"201":{"description":"Reserved task execution.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskExecutionResponse"}}}},"default":{"$ref":"#/components/responses/ApiError"}},"x-required-scopes":["tasks:write"],"x-required-permissions":["tool.shared.tasks.manage"],"x-required-capabilities":[],"x-resource-checks":["workspace-membership","workspace-task"],"x-evanet-credential-kind":"workspace","x-evanet-approval-class":"write","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/tasks/{taskId}/executions/{executionId}/session":{"patch":{"operationId":"attachTaskExecutionSession","summary":"Attach a provider session to a task execution","description":"Requires tasks:write and tool.shared.tasks.manage. The backlink is exact and workspace-scoped.","parameters":[{"name":"taskId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"executionId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"$ref":"#/components/parameters/SubOrganization"},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskExecutionAttachSessionRequest"}}}},"responses":{"200":{"description":"Attached task execution session.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskExecutionResponse"}}}},"default":{"$ref":"#/components/responses/ApiError"}},"x-required-scopes":["tasks:write"],"x-required-permissions":["tool.shared.tasks.manage"],"x-required-capabilities":[],"x-resource-checks":["workspace-membership","workspace-task"],"x-evanet-credential-kind":"workspace","x-evanet-approval-class":"write","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/tasks/{taskId}/executions/{executionId}/outcome":{"post":{"operationId":"reportTaskExecutionOutcome","summary":"Settle a task execution","description":"Requires tasks:write and tool.shared.tasks.manage. Records the explicit goal verdict, summary, and bounded evidence.","parameters":[{"name":"taskId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"executionId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"$ref":"#/components/parameters/SubOrganization"},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskExecutionReportRequest"}}}},"responses":{"200":{"description":"Settled task execution.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskExecutionResponse"}}}},"default":{"$ref":"#/components/responses/ApiError"}},"x-required-scopes":["tasks:write"],"x-required-permissions":["tool.shared.tasks.manage"],"x-required-capabilities":[],"x-resource-checks":["workspace-membership","workspace-task"],"x-evanet-credential-kind":"workspace","x-evanet-approval-class":"write","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/tasks/{taskId}/executions/{executionId}/approval-request":{"post":{"operationId":"requestTaskExecutionApproval","summary":"Pause a task execution for human approval","description":"Requires tasks:write and tool.shared.tasks.manage. A pending checkpoint prevents execution settlement until a separate approver decides it.","parameters":[{"name":"taskId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"executionId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"$ref":"#/components/parameters/SubOrganization"},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskApprovalRequest"}}}},"responses":{"200":{"description":"Task is waiting for human approval.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskBoardTaskResponse"}}}},"default":{"$ref":"#/components/responses/ApiError"}},"x-required-scopes":["tasks:write"],"x-required-permissions":["tool.shared.tasks.manage"],"x-required-capabilities":[],"x-resource-checks":["workspace-membership","workspace-task"],"x-evanet-credential-kind":"workspace","x-evanet-approval-class":"write","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/tasks/{taskId}/approval-decision":{"post":{"operationId":"decideTaskApproval","summary":"Approve or reject a pending task checkpoint","description":"Requires the separate tasks:approve scope and tool.shared.tasks.approve permission. The machine tasks:write authority cannot decide its own checkpoint.","parameters":[{"name":"taskId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"$ref":"#/components/parameters/SubOrganization"},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskApprovalDecisionRequest"}}}},"responses":{"200":{"description":"Recorded task approval decision.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskBoardTaskResponse"}}}},"default":{"$ref":"#/components/responses/ApiError"}},"x-required-scopes":["tasks:approve"],"x-required-permissions":["tool.shared.tasks.approve"],"x-required-capabilities":[],"x-resource-checks":["workspace-membership","workspace-task"],"x-evanet-credential-kind":"workspace","x-evanet-approval-class":"write","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/tasks/sessions":{"get":{"operationId":"getTaskBySession","summary":"Resolve the task linked to an exact provider session","description":"Requires tasks:read and tool.shared.tasks.view. Returns null when the workspace-scoped backlink is absent.","parameters":[{"$ref":"#/components/parameters/SubOrganization"},{"name":"provider","in":"query","required":true,"schema":{"type":"string","pattern":"^[a-z0-9][a-z0-9._-]{0,63}$"}},{"name":"sessionId","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":256}}],"responses":{"200":{"description":"Task session backlink.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskSessionLookupResponse"}}}},"default":{"$ref":"#/components/responses/ApiError"}},"x-required-scopes":["tasks:read"],"x-required-permissions":["tool.shared.tasks.view"],"x-required-capabilities":[],"x-resource-checks":["workspace-membership","workspace-session"],"x-evanet-credential-kind":"workspace","x-evanet-approval-class":"none","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/task-views":{"get":{"operationId":"listTaskViews","summary":"List saved issue views","description":"Requires tasks:read and tool.shared.tasks.view. Personal views are visible only to their owner. Shared views are visible to the workspace. Display fields do not filter listTasks.","tags":["Tasks"],"responses":{"200":{"description":"Saved issue views.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskViewsListResponse"}}}},"default":{"$ref":"#/components/responses/ApiError"}},"x-required-scopes":["tasks:read"],"x-required-permissions":["tool.shared.tasks.view"],"x-required-capabilities":[],"x-resource-checks":["workspace-membership"],"x-evanet-credential-kind":"workspace","x-evanet-approval-class":"none","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false},"post":{"operationId":"createTaskView","summary":"Save an issue view","description":"Requires tasks:write and tool.shared.tasks.manage. Filter status is a user-facing lane, matching the page URL. Pass that value as lane when calling listTasks.","tags":["Tasks"],"parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskViewCreateRequest"}}}},"responses":{"201":{"description":"Saved issue view.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskViewResponse"}}}},"default":{"$ref":"#/components/responses/ApiError"}},"x-required-scopes":["tasks:write"],"x-required-permissions":["tool.shared.tasks.manage"],"x-required-capabilities":[],"x-resource-checks":["workspace-membership"],"x-evanet-credential-kind":"workspace","x-evanet-approval-class":"write","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/task-views/{viewId}":{"delete":{"operationId":"deleteTaskView","summary":"Delete a saved issue view","description":"Requires tasks:write and tool.shared.tasks.manage. Only the owner can delete a view. No request body.","tags":["Tasks"],"parameters":[{"name":"viewId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"description":"Deleted issue view.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskViewDeleteResponse"}}}},"default":{"$ref":"#/components/responses/ApiError"}},"x-required-scopes":["tasks:write"],"x-required-permissions":["tool.shared.tasks.manage"],"x-required-capabilities":[],"x-resource-checks":["workspace-membership","saved-view-owner-or-visibility"],"x-evanet-credential-kind":"workspace","x-evanet-approval-class":"destructive","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/task-views/{viewId}/duplicate":{"post":{"operationId":"duplicateTaskView","summary":"Duplicate a saved issue view","description":"Requires tasks:write and tool.shared.tasks.manage. The copy is personal to the caller. No request body.","tags":["Tasks"],"parameters":[{"name":"viewId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"Duplicated issue view.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskViewResponse"}}}},"default":{"$ref":"#/components/responses/ApiError"}},"x-required-scopes":["tasks:write"],"x-required-permissions":["tool.shared.tasks.manage"],"x-required-capabilities":[],"x-resource-checks":["workspace-membership","saved-view-owner-or-visibility"],"x-evanet-credential-kind":"workspace","x-evanet-approval-class":"write","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/task-views/{viewId}/favorite":{"post":{"operationId":"favoriteTaskView","summary":"Favorite or unfavorite a saved issue view","description":"Requires tasks:write and tool.shared.tasks.manage.","tags":["Tasks"],"parameters":[{"name":"viewId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskViewFavoriteRequest"}}}},"responses":{"200":{"description":"Updated issue view favorite.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskViewResponse"}}}},"default":{"$ref":"#/components/responses/ApiError"}},"x-required-scopes":["tasks:write"],"x-required-permissions":["tool.shared.tasks.manage"],"x-required-capabilities":[],"x-resource-checks":["workspace-membership","saved-view-owner-or-visibility"],"x-evanet-credential-kind":"workspace","x-evanet-approval-class":"write","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/scribe/meetings":{"post":{"operationId":"fileScribeMeeting","summary":"File one reviewed desktop transcript into a workspace","description":"Requires meetings:write and workspace.member. The workspace and user always derive from the bearer token; audio is never accepted by this contract.","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FileScribeMeetingRequest"}}}},"responses":{"200":{"description":"Dry run validated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FileScribeMeetingResponse"}}}},"201":{"description":"Transcript filed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FileScribeMeetingResponse"}}}},"default":{"$ref":"#/components/responses/ApiError"}},"x-required-scopes":["meetings:write"],"x-required-permissions":["workspace.member"],"x-required-capabilities":[],"x-resource-checks":["workspace-membership"],"x-evanet-credential-kind":"workspace","x-evanet-approval-class":"write","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/suppliers":{"get":{"operationId":"listSuppliers","summary":"List suppliers","parameters":[{"$ref":"#/components/parameters/SubOrganization"},{"name":"q","in":"query","required":false,"schema":{"type":"string"}},{"name":"type","in":"query","required":false,"schema":{"type":"string"}},{"name":"region","in":"query","required":false,"schema":{"type":"string"}},{"name":"lifecycle","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Supplier list.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuppliersListResponse"}}}},"default":{"$ref":"#/components/responses/ApiError"}},"x-required-scopes":["travel:read"],"x-required-permissions":["tool.travel.suppliers.view"],"x-required-capabilities":["vertical_travel"],"x-resource-checks":["workspace-membership"],"x-evanet-credential-kind":"workspace","x-evanet-approval-class":"none","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/suppliers/{supplierId}":{"get":{"operationId":"getSupplier","summary":"Get a supplier","parameters":[{"name":"supplierId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"$ref":"#/components/parameters/SubOrganization"}],"responses":{"200":{"description":"Supplier detail.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SupplierDetailResponse"}}}},"default":{"$ref":"#/components/responses/ApiError"}},"x-required-scopes":["travel:read"],"x-required-permissions":["tool.travel.suppliers.view"],"x-required-capabilities":["vertical_travel"],"x-resource-checks":["workspace-membership"],"x-evanet-credential-kind":"workspace","x-evanet-approval-class":"none","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/places":{"get":{"operationId":"searchPlaces","summary":"Search places","parameters":[{"$ref":"#/components/parameters/SubOrganization"},{"name":"q","in":"query","required":true,"schema":{"type":"string"}},{"name":"type","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Place results.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlacesSearchResponse"}}}},"default":{"$ref":"#/components/responses/ApiError"}},"x-required-scopes":["travel:read"],"x-required-permissions":["tool.travel.locations.view"],"x-required-capabilities":["vertical_travel"],"x-resource-checks":["workspace-membership"],"x-evanet-credential-kind":"workspace","x-evanet-approval-class":"none","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/invoices":{"get":{"operationId":"listInvoices","summary":"List invoices","parameters":[{"$ref":"#/components/parameters/SubOrganization"},{"name":"status","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Invoice list.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvoicesListResponse"}}}},"default":{"$ref":"#/components/responses/ApiError"}},"x-required-scopes":["travel:read"],"x-required-permissions":["tool.travel.invoices.view"],"x-required-capabilities":["vertical_travel"],"x-resource-checks":["workspace-membership"],"x-evanet-credential-kind":"workspace","x-evanet-approval-class":"none","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false},"post":{"operationId":"createInvoice","summary":"Create an invoice","parameters":[{"$ref":"#/components/parameters/SubOrganization"},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateInvoiceRequest"}}}},"responses":{"201":{"description":"Created invoice.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateInvoiceResponse"}}}},"default":{"$ref":"#/components/responses/ApiError"}},"x-required-scopes":["travel:write"],"x-required-permissions":["tool.travel.invoices.manage"],"x-required-capabilities":["vertical_travel"],"x-resource-checks":["workspace-membership"],"x-evanet-credential-kind":"workspace","x-evanet-approval-class":"write","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/invoices/{invoiceId}":{"get":{"operationId":"getInvoice","summary":"Get an invoice","parameters":[{"name":"invoiceId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"$ref":"#/components/parameters/SubOrganization"}],"responses":{"200":{"description":"Invoice detail.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvoiceDetailResponse"}}}},"default":{"$ref":"#/components/responses/ApiError"}},"x-required-scopes":["travel:read"],"x-required-permissions":["tool.travel.invoices.view"],"x-required-capabilities":["vertical_travel"],"x-resource-checks":["workspace-membership"],"x-evanet-credential-kind":"workspace","x-evanet-approval-class":"none","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/invoices/{invoiceId}/send":{"post":{"operationId":"sendInvoice","summary":"Send an invoice","parameters":[{"name":"invoiceId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"$ref":"#/components/parameters/SubOrganization"},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"description":"Sent invoice.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendInvoiceResponse"}}}},"default":{"$ref":"#/components/responses/ApiError"}},"x-required-scopes":["travel:write"],"x-required-permissions":["tool.travel.invoices.manage"],"x-required-capabilities":["vertical_travel"],"x-resource-checks":["workspace-membership","invoice-in-workspace"],"x-evanet-credential-kind":"workspace","x-evanet-approval-class":"financial","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/commissions":{"get":{"operationId":"getCommissions","summary":"Get commission summary","parameters":[{"$ref":"#/components/parameters/SubOrganization"}],"responses":{"200":{"description":"Commission tracker.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommissionsTrackerResponse"}}}},"default":{"$ref":"#/components/responses/ApiError"}},"x-required-scopes":["travel:read"],"x-required-permissions":["tool.travel.commissions.view"],"x-required-capabilities":["vertical_travel"],"x-resource-checks":["workspace-membership"],"x-evanet-credential-kind":"workspace","x-evanet-approval-class":"none","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/permissions/evaluate":{"post":{"operationId":"evaluatePermissions","summary":"Evaluate workspace permissions","parameters":[{"$ref":"#/components/parameters/SubOrganization"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PermissionsEvaluateRequest"}}}},"responses":{"200":{"description":"Permission evaluation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PermissionsEvaluateResponse"}}}},"default":{"$ref":"#/components/responses/ApiError"}},"x-required-scopes":["travel:read"],"x-required-permissions":[],"x-required-capabilities":[],"x-resource-checks":["current-workspace-tenant","same-user-or-workspace-admin"],"x-evanet-credential-kind":"workspace","x-evanet-approval-class":"non-agent","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"non-agent","x-evanet-agent-eligible":false}},"/api/v1/memory":{"get":{"operationId":"listMemories","summary":"List the caller’s memories","description":"Requires memory:read. Scoped to the token workspace + user; nounType/nounId must be supplied together and recall that noun, otherwise workspace/user memory only. Canonical ua_trip reads include legacy trip rows with the same id. Noun ownership and sub-organization visibility are revalidated per request.","parameters":[{"$ref":"#/components/parameters/SubOrganization"},{"name":"nounType","in":"query","required":false,"schema":{"type":"string","minLength":1,"maxLength":64}},{"name":"nounId","in":"query","required":false,"schema":{"type":"string","minLength":1,"maxLength":256}},{"name":"state","in":"query","required":false,"schema":{"type":"string","enum":["active","needs_review","archived","merged"]}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100,"default":50}}],"responses":{"200":{"description":"Bounded memory list.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MemoryApiListResponse"}}}},"default":{"$ref":"#/components/responses/ApiError"}},"x-required-scopes":["memory:read"],"x-required-permissions":["tool.shared.memory.view"],"x-required-capabilities":[],"x-resource-checks":["workspace-membership","current-user-memory"],"x-evanet-credential-kind":"workspace","x-evanet-approval-class":"none","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false},"post":{"operationId":"createMemory","summary":"Create one memory (save -> active, propose -> needs_review)","description":"Requires memory:write and an Idempotency-Key. Noun-scoped writes validate canonical noun ownership and sub-organization visibility. workspaceId/userId always derive from the token.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MemoryApiCreateRequest"}}}},"responses":{"201":{"description":"Memory created (or an idempotent replay of the original row).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MemoryApiCreateResponse"}}}},"default":{"$ref":"#/components/responses/ApiError"}},"x-required-scopes":["memory:write"],"x-required-permissions":["tool.shared.memory.view"],"x-required-capabilities":[],"x-resource-checks":["workspace-membership","current-user-memory"],"x-evanet-credential-kind":"workspace","x-evanet-approval-class":"write","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/memory/{memoryId}":{"patch":{"operationId":"transitionMemory","summary":"Transition one memory row","description":"Requires memory:write. Valid lifecycle transitions only: needs_review -> active (approve) | archived (deny); active -> archived (forget) | merged. Scoped to the token workspace + user; noun-scoped rows are revalidated and legacy noun types cannot transition.","parameters":[{"name":"memoryId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"$ref":"#/components/parameters/SubOrganization"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MemoryApiTransitionRequest"}}}},"responses":{"200":{"description":"Transitioned memory.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MemoryApiTransitionResponse"}}}},"default":{"$ref":"#/components/responses/ApiError"}},"x-required-scopes":["memory:write"],"x-required-permissions":["tool.shared.memory.view"],"x-required-capabilities":[],"x-resource-checks":["workspace-membership","current-user-memory"],"x-evanet-credential-kind":"workspace","x-evanet-approval-class":"write","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/enterprise/partners/{partnerId}/activity":{"get":{"operationId":"listClientActivity","summary":"Read dated client activity with complete daily counts and paginated events","tags":["Enterprise Clients"],"parameters":[{"name":"partnerId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":256}},{"name":"from","required":true,"schema":{"type":"string","format":"date","description":"Inclusive calendar date; the period may span at most 90 days."},"in":"query"},{"name":"to","required":true,"schema":{"type":"string","format":"date","description":"Inclusive calendar date; the period may span at most 90 days."},"in":"query"},{"name":"timeZone","required":true,"schema":{"type":"string","minLength":1,"maxLength":100,"description":"IANA timezone used for calendar dates and counts."},"in":"query"},{"name":"day","required":false,"schema":{"type":"string","format":"date","description":"Optional date inside the period; filters event details without changing daily counts."},"in":"query"},{"name":"cursor","required":false,"schema":{"type":"string","minLength":1,"maxLength":4096},"in":"query"}],"description":"Requires current Enterprise membership, operator authority, and published scopes and permissions. Writes are idempotent. Device sources retain exact owner, conversation, signing, and revocation checks.","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Read dated client activity with complete daily counts and paginated events","content":{"application/json":{"schema":{"$ref":"#/components/schemas/clientActivityResponseSchema"}}}},"default":{"description":"Bounded error response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}}},"x-required-scopes":["partners:read","deals:read"],"x-required-permissions":["tool.enterprise.partners.view","tool.deals.deals.view"],"x-required-capabilities":["motive_conviction"],"x-resource-checks":["enterprise-workspace","enterprise-operator","workspace-membership","client-engagement-ownership"],"x-required-permission-mode":"all","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"none","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/enterprise/workspaces":{"get":{"operationId":"listWorkspaceGovernance","summary":"listWorkspaceGovernance","tags":["Enterprise Clients"],"parameters":[],"description":"Requires current Enterprise membership, operator authority, and published scopes and permissions. Writes are idempotent. Device sources retain exact owner, conversation, signing, and revocation checks.","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"listWorkspaceGovernance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/workspaceGovernanceResponseSchema"}}}},"default":{"description":"Bounded error response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}}},"x-required-scopes":["partners:read"],"x-required-permissions":["tool.enterprise.partners.view"],"x-required-capabilities":["motive_conviction"],"x-resource-checks":["enterprise-workspace","enterprise-operator","workspace-membership","client-engagement-ownership"],"x-required-permission-mode":"all","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"none","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/enterprise/workspaces/{workspaceId}":{"get":{"operationId":"getWorkspaceGovernance","summary":"getWorkspaceGovernance","tags":["Enterprise Clients"],"parameters":[{"name":"workspaceId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":256}}],"description":"Requires current Enterprise membership, operator authority, and published scopes and permissions. Writes are idempotent. Device sources retain exact owner, conversation, signing, and revocation checks.","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"getWorkspaceGovernance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/workspaceGovernanceResponseSchema"}}}},"default":{"description":"Bounded error response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}}},"x-required-scopes":["partners:read"],"x-required-permissions":["tool.enterprise.partners.view"],"x-required-capabilities":["motive_conviction"],"x-resource-checks":["enterprise-workspace","enterprise-operator","workspace-membership","client-engagement-ownership"],"x-required-permission-mode":"all","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"none","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false},"patch":{"operationId":"updateWorkspaceGovernance","summary":"updateWorkspaceGovernance","tags":["Enterprise Clients"],"parameters":[{"name":"workspaceId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":256}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":1,"maxLength":255}}],"description":"Requires current Enterprise membership, operator authority, and published scopes and permissions. Writes are idempotent. Device sources retain exact owner, conversation, signing, and revocation checks.","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/workspaceGovernanceUpdateSchema"}}}},"responses":{"200":{"description":"updateWorkspaceGovernance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/workspaceGovernanceResponseSchema"}}}},"default":{"description":"Bounded error response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}}},"x-required-scopes":["partners:write"],"x-required-permissions":["tool.enterprise.partners.manage"],"x-required-capabilities":["motive_conviction"],"x-resource-checks":["enterprise-workspace","enterprise-operator","workspace-membership","client-engagement-ownership","same-origin-session"],"x-required-permission-mode":"all","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"write","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/enterprise/partners/{partnerId}/engagements/{engagementId}/page":{"get":{"operationId":"getEngagementPage","summary":"getEngagementPage","tags":["Enterprise Clients"],"parameters":[{"name":"partnerId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":256}},{"name":"engagementId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":256}}],"description":"Requires current Enterprise membership, operator authority, and published scopes and permissions. Writes are idempotent. Device sources retain exact owner, conversation, signing, and revocation checks.","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"getEngagementPage","content":{"application/json":{"schema":{"$ref":"#/components/schemas/engagementPageResponseSchema"}}}},"default":{"description":"Bounded error response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}}},"x-required-scopes":["partners:read","deals:read"],"x-required-permissions":["tool.enterprise.partners.view","tool.deals.deals.view"],"x-required-capabilities":["motive_conviction"],"x-resource-checks":["enterprise-workspace","enterprise-operator","workspace-membership","client-engagement-ownership"],"x-required-permission-mode":"all","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"none","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false},"post":{"operationId":"provisionEngagementPage","summary":"provisionEngagementPage","tags":["Enterprise Clients"],"parameters":[{"name":"partnerId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":256}},{"name":"engagementId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":256}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":1,"maxLength":255}}],"description":"Requires current Enterprise membership, operator authority, and published scopes and permissions. Writes are idempotent. Device sources retain exact owner, conversation, signing, and revocation checks.","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/emptyBriefRequestSchema"}}}},"responses":{"200":{"description":"provisionEngagementPage","content":{"application/json":{"schema":{"$ref":"#/components/schemas/engagementPageResponseSchema"}}}},"201":{"description":"provisionEngagementPage","content":{"application/json":{"schema":{"$ref":"#/components/schemas/engagementPageResponseSchema"}}}},"default":{"description":"Bounded error response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}}},"x-required-scopes":["partners:write","deals:write"],"x-required-permissions":["tool.enterprise.partners.manage","tool.deals.deals.manage"],"x-required-capabilities":["motive_conviction"],"x-resource-checks":["enterprise-workspace","enterprise-operator","workspace-membership","client-engagement-ownership","same-origin-session"],"x-required-permission-mode":"all","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"write","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/enterprise/partners/{partnerId}/engagements/{engagementId}/page/preview":{"get":{"operationId":"previewEngagementPage","summary":"previewEngagementPage","tags":["Enterprise Clients"],"parameters":[{"name":"partnerId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":256}},{"name":"engagementId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":256}}],"description":"Requires current Enterprise membership, operator authority, and published scopes and permissions. Writes are idempotent. Device sources retain exact owner, conversation, signing, and revocation checks.","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"previewEngagementPage","content":{"application/json":{"schema":{"$ref":"#/components/schemas/engagementPagePreviewResponseSchema"}}}},"default":{"description":"Bounded error response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}}},"x-required-scopes":["partners:read","deals:read"],"x-required-permissions":["tool.enterprise.partners.view","tool.deals.deals.view"],"x-required-capabilities":["motive_conviction"],"x-resource-checks":["enterprise-workspace","enterprise-operator","workspace-membership","client-engagement-ownership"],"x-required-permission-mode":"all","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"none","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/enterprise/partners/{partnerId}/engagements/{engagementId}/page/publications":{"post":{"operationId":"publishEngagementPage","summary":"publishEngagementPage","tags":["Enterprise Clients"],"parameters":[{"name":"partnerId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":256}},{"name":"engagementId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":256}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":1,"maxLength":255}}],"description":"Requires current Enterprise membership, operator authority, and published scopes and permissions. Writes are idempotent. Device sources retain exact owner, conversation, signing, and revocation checks.","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/engagementPagePublishRequestSchema"}}}},"responses":{"200":{"description":"publishEngagementPage","content":{"application/json":{"schema":{"$ref":"#/components/schemas/engagementPagePublicationResponseSchema"}}}},"201":{"description":"publishEngagementPage","content":{"application/json":{"schema":{"$ref":"#/components/schemas/engagementPagePublicationResponseSchema"}}}},"default":{"description":"Bounded error response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}}},"x-required-scopes":["partners:write","deals:write"],"x-required-permissions":["tool.enterprise.partners.manage","tool.deals.deals.manage"],"x-required-capabilities":["motive_conviction"],"x-resource-checks":["enterprise-workspace","enterprise-operator","workspace-membership","client-engagement-ownership","same-origin-session"],"x-required-permission-mode":"all","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"write","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/enterprise/brief-reviews/{publicationId}/page":{"get":{"operationId":"getBriefPageReview","summary":"getBriefPageReview","tags":["Enterprise Clients"],"parameters":[{"name":"publicationId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":256}}],"description":"Requires a verified account and an exact active publication-specific reviewer grant. Workspace headers do not grant review access. Reviewer writes recheck revocation before execution and cached replay.","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"getBriefPageReview","content":{"application/json":{"schema":{"$ref":"#/components/schemas/engagementPageReviewResponseSchema"}}}},"default":{"description":"Bounded error response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}}},"x-required-scopes":["reviews:read"],"x-required-permissions":[],"x-required-capabilities":[],"x-resource-checks":["Verified current account identity","Exact active publication reviewer grant","Current review rollout gate","Revocation before execution and replay"],"x-required-permission-mode":"all","x-evanet-credential-kind":"account","x-evanet-approval-class":"none","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/enterprise/partners/{partnerId}/engagements":{"get":{"operationId":"listClientEngagements","summary":"List every engagement for one client","tags":["Enterprise Clients"],"parameters":[{"name":"partnerId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":256}}],"description":"Requires current Enterprise membership, operator authority, and published scopes and permissions. Writes are idempotent. Device sources retain exact owner, conversation, signing, and revocation checks.","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"List every engagement for one client","content":{"application/json":{"schema":{"$ref":"#/components/schemas/clientEngagementListResponseSchema"}}}},"default":{"description":"Bounded error response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}}},"x-required-scopes":["partners:read","deals:read"],"x-required-permissions":["tool.enterprise.partners.view","tool.deals.deals.view"],"x-required-capabilities":["motive_conviction"],"x-resource-checks":["enterprise-workspace","enterprise-operator","workspace-membership","client-engagement-ownership"],"x-required-permission-mode":"all","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"none","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false},"post":{"operationId":"createClientEngagement","summary":"Create another client engagement","tags":["Enterprise Clients"],"parameters":[{"name":"partnerId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":256}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":1,"maxLength":255}}],"description":"Requires current Enterprise membership, operator authority, and published scopes and permissions. Writes are idempotent. Device sources retain exact owner, conversation, signing, and revocation checks.","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/clientEngagementCreateRequestSchema"}}}},"responses":{"200":{"description":"Create another client engagement","content":{"application/json":{"schema":{"$ref":"#/components/schemas/clientEngagementDetailResponseSchema"}}}},"201":{"description":"Create another client engagement","content":{"application/json":{"schema":{"$ref":"#/components/schemas/clientEngagementDetailResponseSchema"}}}},"default":{"description":"Bounded error response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}}},"x-required-scopes":["partners:write","deals:write"],"x-required-permissions":["tool.enterprise.partners.manage","tool.deals.deals.manage"],"x-required-capabilities":["motive_conviction"],"x-resource-checks":["enterprise-workspace","enterprise-operator","workspace-membership","client-engagement-ownership"],"x-required-permission-mode":"all","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"write","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/enterprise/partners/{partnerId}/engagement-links":{"post":{"operationId":"linkClientEngagement","summary":"Link an existing deal to this client","tags":["Enterprise Clients"],"parameters":[{"name":"partnerId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":256}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":1,"maxLength":255}}],"description":"Requires current Enterprise membership, operator authority, and published scopes and permissions. Writes are idempotent. Device sources retain exact owner, conversation, signing, and revocation checks.","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/clientEngagementLinkRequestSchema"}}}},"responses":{"200":{"description":"Link an existing deal to this client","content":{"application/json":{"schema":{"$ref":"#/components/schemas/clientEngagementDetailResponseSchema"}}}},"201":{"description":"Link an existing deal to this client","content":{"application/json":{"schema":{"$ref":"#/components/schemas/clientEngagementDetailResponseSchema"}}}},"default":{"description":"Bounded error response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}}},"x-required-scopes":["partners:write","deals:write"],"x-required-permissions":["tool.enterprise.partners.manage","tool.deals.deals.manage"],"x-required-capabilities":["motive_conviction"],"x-resource-checks":["enterprise-workspace","enterprise-operator","workspace-membership","client-engagement-ownership"],"x-required-permission-mode":"all","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"write","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/enterprise/partners/{partnerId}/engagements/{engagementId}":{"get":{"operationId":"getClientEngagement","summary":"Read one client engagement","tags":["Enterprise Clients"],"parameters":[{"name":"partnerId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":256}},{"name":"engagementId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":256}}],"description":"Requires current Enterprise membership, operator authority, and published scopes and permissions. Writes are idempotent. Device sources retain exact owner, conversation, signing, and revocation checks.","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Read one client engagement","content":{"application/json":{"schema":{"$ref":"#/components/schemas/clientEngagementDetailResponseSchema"}}}},"default":{"description":"Bounded error response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}}},"x-required-scopes":["partners:read","deals:read"],"x-required-permissions":["tool.enterprise.partners.view","tool.deals.deals.view"],"x-required-capabilities":["motive_conviction"],"x-resource-checks":["enterprise-workspace","enterprise-operator","workspace-membership","client-engagement-ownership"],"x-required-permission-mode":"all","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"none","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false},"patch":{"operationId":"updateClientEngagement","summary":"Record delivery status independently of sales stage","tags":["Enterprise Clients"],"parameters":[{"name":"partnerId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":256}},{"name":"engagementId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":256}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":1,"maxLength":255}}],"description":"Requires current Enterprise membership, operator authority, and published scopes and permissions. Writes are idempotent. Device sources retain exact owner, conversation, signing, and revocation checks.","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/clientEngagementUpdateRequestSchema"}}}},"responses":{"200":{"description":"Record delivery status independently of sales stage","content":{"application/json":{"schema":{"$ref":"#/components/schemas/clientEngagementDetailResponseSchema"}}}},"default":{"description":"Bounded error response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}}},"x-required-scopes":["partners:write","deals:write"],"x-required-permissions":["tool.enterprise.partners.manage","tool.deals.deals.manage"],"x-required-capabilities":["motive_conviction"],"x-resource-checks":["enterprise-workspace","enterprise-operator","workspace-membership","client-engagement-ownership"],"x-required-permission-mode":"all","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"write","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/enterprise/partners/{partnerId}/current-engagement":{"post":{"operationId":"selectCurrentClientEngagement","summary":"Choose the client current engagement","tags":["Enterprise Clients"],"parameters":[{"name":"partnerId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":256}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":1,"maxLength":255}}],"description":"Requires current Enterprise membership, operator authority, and published scopes and permissions. Writes are idempotent. Device sources retain exact owner, conversation, signing, and revocation checks.","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/selectCurrentClientEngagementRequestSchema"}}}},"responses":{"200":{"description":"Choose the client current engagement","content":{"application/json":{"schema":{"$ref":"#/components/schemas/clientCurrentEngagementResponseSchema"}}}},"201":{"description":"Choose the client current engagement","content":{"application/json":{"schema":{"$ref":"#/components/schemas/clientCurrentEngagementResponseSchema"}}}},"default":{"description":"Bounded error response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}}},"x-required-scopes":["partners:write","deals:write"],"x-required-permissions":["tool.enterprise.partners.manage","tool.deals.deals.manage"],"x-required-capabilities":["motive_conviction"],"x-resource-checks":["enterprise-workspace","enterprise-operator","workspace-membership","client-engagement-ownership"],"x-required-permission-mode":"all","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"write","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/enterprise/partners/{partnerId}/engagements/{engagementId}/agreements":{"get":{"operationId":"listClientAgreements","summary":"List agreement history for this engagement","tags":["Enterprise Clients"],"parameters":[{"name":"partnerId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":256}},{"name":"engagementId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":256}}],"description":"Requires current Enterprise membership, operator authority, and published scopes and permissions. Writes are idempotent. Device sources retain exact owner, conversation, signing, and revocation checks.","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"List agreement history for this engagement","content":{"application/json":{"schema":{"$ref":"#/components/schemas/clientAgreementListResponseSchema"}}}},"default":{"description":"Bounded error response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}}},"x-required-scopes":["partners:read","deals:read"],"x-required-permissions":["tool.enterprise.partners.view","tool.deals.deals.view"],"x-required-capabilities":["motive_conviction"],"x-resource-checks":["enterprise-workspace","enterprise-operator","workspace-membership","client-engagement-ownership"],"x-required-permission-mode":"all","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"none","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false},"post":{"operationId":"createClientAgreement","summary":"Add a separately identified engagement agreement","tags":["Enterprise Clients"],"parameters":[{"name":"partnerId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":256}},{"name":"engagementId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":256}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":1,"maxLength":255}}],"description":"Requires current Enterprise membership, operator authority, and published scopes and permissions. Writes are idempotent. Device sources retain exact owner, conversation, signing, and revocation checks.","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/clientAgreementCreateRequestSchema"}}}},"responses":{"200":{"description":"Add a separately identified engagement agreement","content":{"application/json":{"schema":{"$ref":"#/components/schemas/clientAgreementDetailResponseSchema"}}}},"201":{"description":"Add a separately identified engagement agreement","content":{"application/json":{"schema":{"$ref":"#/components/schemas/clientAgreementDetailResponseSchema"}}}},"default":{"description":"Bounded error response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}}},"x-required-scopes":["partners:write","deals:write"],"x-required-permissions":["tool.enterprise.partners.manage","tool.deals.deals.manage"],"x-required-capabilities":["motive_conviction"],"x-resource-checks":["enterprise-workspace","enterprise-operator","workspace-membership","client-engagement-ownership"],"x-required-permission-mode":"all","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"write","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/enterprise/partners/{partnerId}/engagements/{engagementId}/agreement-links":{"post":{"operationId":"linkClientAgreement","summary":"Link an existing client agreement without rewriting its history","tags":["Enterprise Clients"],"parameters":[{"name":"partnerId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":256}},{"name":"engagementId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":256}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":1,"maxLength":255}}],"description":"Requires current Enterprise membership, operator authority, and published scopes and permissions. Writes are idempotent. Device sources retain exact owner, conversation, signing, and revocation checks.","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/clientAgreementLinkRequestSchema"}}}},"responses":{"200":{"description":"Link an existing client agreement without rewriting its history","content":{"application/json":{"schema":{"$ref":"#/components/schemas/clientAgreementDetailResponseSchema"}}}},"201":{"description":"Link an existing client agreement without rewriting its history","content":{"application/json":{"schema":{"$ref":"#/components/schemas/clientAgreementDetailResponseSchema"}}}},"default":{"description":"Bounded error response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}}},"x-required-scopes":["partners:write","deals:write"],"x-required-permissions":["tool.enterprise.partners.manage","tool.deals.deals.manage"],"x-required-capabilities":["motive_conviction"],"x-resource-checks":["enterprise-workspace","enterprise-operator","workspace-membership","client-engagement-ownership"],"x-required-permission-mode":"all","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"write","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/enterprise/partners/{partnerId}/engagements/{engagementId}/agreements/{agreementId}":{"get":{"operationId":"getClientAgreement","summary":"Read one engagement agreement","tags":["Enterprise Clients"],"parameters":[{"name":"partnerId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":256}},{"name":"engagementId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":256}},{"name":"agreementId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":256}}],"description":"Requires current Enterprise membership, operator authority, and published scopes and permissions. Writes are idempotent. Device sources retain exact owner, conversation, signing, and revocation checks.","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Read one engagement agreement","content":{"application/json":{"schema":{"$ref":"#/components/schemas/clientAgreementDetailResponseSchema"}}}},"default":{"description":"Bounded error response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}}},"x-required-scopes":["partners:read","deals:read"],"x-required-permissions":["tool.enterprise.partners.view","tool.deals.deals.view"],"x-required-capabilities":["motive_conviction"],"x-resource-checks":["enterprise-workspace","enterprise-operator","workspace-membership","client-engagement-ownership"],"x-required-permission-mode":"all","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"none","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false},"patch":{"operationId":"updateClientAgreement","summary":"Update reviewed agreement terms and evidence","tags":["Enterprise Clients"],"parameters":[{"name":"partnerId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":256}},{"name":"engagementId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":256}},{"name":"agreementId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":256}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":1,"maxLength":255}}],"description":"Requires current Enterprise membership, operator authority, and published scopes and permissions. Writes are idempotent. Device sources retain exact owner, conversation, signing, and revocation checks.","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/clientAgreementUpdateRequestSchema"}}}},"responses":{"200":{"description":"Update reviewed agreement terms and evidence","content":{"application/json":{"schema":{"$ref":"#/components/schemas/clientAgreementDetailResponseSchema"}}}},"default":{"description":"Bounded error response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}}},"x-required-scopes":["partners:write","deals:write"],"x-required-permissions":["tool.enterprise.partners.manage","tool.deals.deals.manage"],"x-required-capabilities":["motive_conviction"],"x-resource-checks":["enterprise-workspace","enterprise-operator","workspace-membership","client-engagement-ownership"],"x-required-permission-mode":"all","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"write","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/enterprise/partners/{partnerId}/engagements/{engagementId}/current-agreement":{"post":{"operationId":"selectClientAgreement","summary":"Select the current agreement without deleting history","tags":["Enterprise Clients"],"parameters":[{"name":"partnerId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":256}},{"name":"engagementId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":256}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":1,"maxLength":255}}],"description":"Requires current Enterprise membership, operator authority, and published scopes and permissions. Writes are idempotent. Device sources retain exact owner, conversation, signing, and revocation checks.","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/selectClientAgreementRequestSchema"}}}},"responses":{"200":{"description":"Select the current agreement without deleting history","content":{"application/json":{"schema":{"$ref":"#/components/schemas/clientSelectedAgreementResponseSchema"}}}},"201":{"description":"Select the current agreement without deleting history","content":{"application/json":{"schema":{"$ref":"#/components/schemas/clientSelectedAgreementResponseSchema"}}}},"default":{"description":"Bounded error response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}}},"x-required-scopes":["partners:write","deals:write"],"x-required-permissions":["tool.enterprise.partners.manage","tool.deals.deals.manage"],"x-required-capabilities":["motive_conviction"],"x-resource-checks":["enterprise-workspace","enterprise-operator","workspace-membership","client-engagement-ownership"],"x-required-permission-mode":"all","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"write","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/enterprise/partners/{partnerId}/engagements/{engagementId}/receipt-confirmations":{"get":{"operationId":"listClientReceiptConfirmations","summary":"Read operator confirmations of funds received","tags":["Enterprise Clients"],"parameters":[{"name":"partnerId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":256}},{"name":"engagementId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":256}}],"description":"Requires current Enterprise membership, operator authority, and published scopes and permissions. Writes are idempotent. Device sources retain exact owner, conversation, signing, and revocation checks.","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Read operator confirmations of funds received","content":{"application/json":{"schema":{"$ref":"#/components/schemas/clientReceiptConfirmationListResponseSchema"}}}},"default":{"description":"Bounded error response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}}},"x-required-scopes":["partners:read","deals:read"],"x-required-permissions":["tool.enterprise.partners.view","tool.deals.deals.view"],"x-required-capabilities":["motive_conviction"],"x-resource-checks":["enterprise-workspace","enterprise-operator","workspace-membership","client-engagement-ownership"],"x-required-permission-mode":"all","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"none","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false},"post":{"operationId":"confirmClientFundsReceived","summary":"Record receipt confirmation without posting a payment","tags":["Enterprise Clients"],"parameters":[{"name":"partnerId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":256}},{"name":"engagementId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":256}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":1,"maxLength":255}}],"description":"Requires current Enterprise membership, operator authority, and published scopes and permissions. Writes are idempotent. Device sources retain exact owner, conversation, signing, and revocation checks.","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/confirmClientFundsReceivedRequestSchema"}}}},"responses":{"200":{"description":"Record receipt confirmation without posting a payment","content":{"application/json":{"schema":{"$ref":"#/components/schemas/clientReceiptConfirmationDetailResponseSchema"}}}},"201":{"description":"Record receipt confirmation without posting a payment","content":{"application/json":{"schema":{"$ref":"#/components/schemas/clientReceiptConfirmationDetailResponseSchema"}}}},"default":{"description":"Bounded error response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}}},"x-required-scopes":["partners:write","deals:write"],"x-required-permissions":["tool.enterprise.partners.manage","tool.deals.deals.manage"],"x-required-capabilities":["motive_conviction"],"x-resource-checks":["enterprise-workspace","enterprise-operator","workspace-membership","client-engagement-ownership"],"x-required-permission-mode":"all","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"write","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/enterprise/partners/{partnerId}/engagements/{engagementId}/documents":{"get":{"operationId":"listClientDocuments","summary":"List classified documents for an engagement","tags":["Enterprise Clients"],"parameters":[{"name":"partnerId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":256}},{"name":"engagementId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":256}}],"description":"Requires current Enterprise membership, operator authority, and published scopes and permissions. Writes are idempotent. Device sources retain exact owner, conversation, signing, and revocation checks.","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"List classified documents for an engagement","content":{"application/json":{"schema":{"$ref":"#/components/schemas/clientDocumentListResponseSchema"}}}},"default":{"description":"Bounded error response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}}},"x-required-scopes":["partners:read","deals:read"],"x-required-permissions":["tool.enterprise.partners.view","tool.deals.deals.view"],"x-required-capabilities":["motive_conviction"],"x-resource-checks":["enterprise-workspace","enterprise-operator","workspace-membership","client-engagement-ownership"],"x-required-permission-mode":"all","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"none","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false},"post":{"operationId":"finalizeClientDocument","summary":"Verify and attach a reserved document","tags":["Enterprise Clients"],"parameters":[{"name":"partnerId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":256}},{"name":"engagementId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":256}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":1,"maxLength":255}}],"description":"Requires current Enterprise membership, operator authority, and published scopes and permissions. Writes are idempotent. Device sources retain exact owner, conversation, signing, and revocation checks.","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/finalizeClientDocumentRequestSchema"}}}},"responses":{"200":{"description":"Verify and attach a reserved document","content":{"application/json":{"schema":{"$ref":"#/components/schemas/finalizeClientDocumentResponseSchema"}}}},"201":{"description":"Verify and attach a reserved document","content":{"application/json":{"schema":{"$ref":"#/components/schemas/finalizeClientDocumentResponseSchema"}}}},"default":{"description":"Bounded error response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}}},"x-required-scopes":["partners:write","deals:write"],"x-required-permissions":["tool.enterprise.partners.manage","tool.deals.deals.manage"],"x-required-capabilities":["motive_conviction"],"x-resource-checks":["enterprise-workspace","enterprise-operator","workspace-membership","client-engagement-ownership"],"x-required-permission-mode":"all","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"write","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/enterprise/partners/{partnerId}/engagements/{engagementId}/document-uploads":{"post":{"operationId":"createClientDocumentUpload","summary":"Reserve a scoped and integrity-bound document upload","tags":["Enterprise Clients"],"parameters":[{"name":"partnerId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":256}},{"name":"engagementId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":256}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":1,"maxLength":255}}],"description":"Requires current Enterprise membership, operator authority, and published scopes and permissions. Writes are idempotent. Device sources retain exact owner, conversation, signing, and revocation checks.","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/createClientDocumentUploadRequestSchema"}}}},"responses":{"200":{"description":"Reserve a scoped and integrity-bound document upload","content":{"application/json":{"schema":{"$ref":"#/components/schemas/createClientDocumentUploadResponseSchema"}}}},"201":{"description":"Reserve a scoped and integrity-bound document upload","content":{"application/json":{"schema":{"$ref":"#/components/schemas/createClientDocumentUploadResponseSchema"}}}},"default":{"description":"Bounded error response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}}},"x-required-scopes":["partners:write","deals:write"],"x-required-permissions":["tool.enterprise.partners.manage","tool.deals.deals.manage"],"x-required-capabilities":["motive_conviction"],"x-resource-checks":["enterprise-workspace","enterprise-operator","workspace-membership","client-engagement-ownership"],"x-required-permission-mode":"all","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"write","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/enterprise/partners/{partnerId}/engagements/{engagementId}/documents/{fileId}":{"get":{"operationId":"getClientDocument","summary":"Read engagement document metadata","tags":["Enterprise Clients"],"parameters":[{"name":"partnerId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":256}},{"name":"engagementId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":256}},{"name":"fileId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":256}}],"description":"Requires current Enterprise membership, operator authority, and published scopes and permissions. Writes are idempotent. Device sources retain exact owner, conversation, signing, and revocation checks.","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Read engagement document metadata","content":{"application/json":{"schema":{"$ref":"#/components/schemas/clientDocumentDetailResponseSchema"}}}},"default":{"description":"Bounded error response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}}},"x-required-scopes":["partners:read","deals:read"],"x-required-permissions":["tool.enterprise.partners.view","tool.deals.deals.view"],"x-required-capabilities":["motive_conviction"],"x-resource-checks":["enterprise-workspace","enterprise-operator","workspace-membership","client-engagement-ownership"],"x-required-permission-mode":"all","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"none","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/enterprise/partners/{partnerId}/engagements/{engagementId}/documents/{fileId}/content":{"get":{"operationId":"getClientDocumentContent","summary":"Obtain a short-lived authorized document download","tags":["Enterprise Clients"],"parameters":[{"name":"partnerId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":256}},{"name":"engagementId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":256}},{"name":"fileId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":256}}],"description":"Requires current Enterprise membership, operator authority, and published scopes and permissions. Writes are idempotent. Device sources retain exact owner, conversation, signing, and revocation checks.","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Obtain a short-lived authorized document download","content":{"application/json":{"schema":{"$ref":"#/components/schemas/clientDocumentContentResponseSchema"}}}},"default":{"description":"Bounded error response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}}},"x-required-scopes":["partners:read","deals:read"],"x-required-permissions":["tool.enterprise.partners.view","tool.deals.deals.view"],"x-required-capabilities":["motive_conviction"],"x-resource-checks":["enterprise-workspace","enterprise-operator","workspace-membership","client-engagement-ownership"],"x-required-permission-mode":"all","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"none","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/enterprise/partners/{partnerId}/engagements/{engagementId}/email-references":{"get":{"operationId":"listClientEmailReferences","summary":"List exact reviewed Gmail references","tags":["Enterprise Clients"],"parameters":[{"name":"partnerId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":256}},{"name":"engagementId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":256}}],"description":"Requires current Enterprise membership, operator authority, and published scopes and permissions. Writes are idempotent. Device sources retain exact owner, conversation, signing, and revocation checks.","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"List exact reviewed Gmail references","content":{"application/json":{"schema":{"$ref":"#/components/schemas/listClientEmailReferencesResponseSchema"}}}},"default":{"description":"Bounded error response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}}},"x-required-scopes":["partners:read","deals:read"],"x-required-permissions":["tool.enterprise.partners.view","tool.deals.deals.view"],"x-required-capabilities":["motive_conviction"],"x-resource-checks":["enterprise-workspace","enterprise-operator","workspace-membership","client-engagement-ownership"],"x-required-permission-mode":"all","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"none","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false},"post":{"operationId":"attachClientEmailReference","summary":"Attach an exact Gmail link and reviewed context","tags":["Enterprise Clients"],"parameters":[{"name":"partnerId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":256}},{"name":"engagementId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":256}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":1,"maxLength":255}}],"description":"Requires current Enterprise membership, operator authority, and published scopes and permissions. Writes are idempotent. Device sources retain exact owner, conversation, signing, and revocation checks.","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/attachClientEmailReferenceRequestSchema"}}}},"responses":{"200":{"description":"Attach an exact Gmail link and reviewed context","content":{"application/json":{"schema":{"$ref":"#/components/schemas/attachClientEmailReferenceResponseSchema"}}}},"201":{"description":"Attach an exact Gmail link and reviewed context","content":{"application/json":{"schema":{"$ref":"#/components/schemas/attachClientEmailReferenceResponseSchema"}}}},"default":{"description":"Bounded error response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}}},"x-required-scopes":["partners:write","deals:write"],"x-required-permissions":["tool.enterprise.partners.manage","tool.deals.deals.manage"],"x-required-capabilities":["motive_conviction"],"x-resource-checks":["enterprise-workspace","enterprise-operator","workspace-membership","client-engagement-ownership"],"x-required-permission-mode":"all","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"write","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/enterprise/partners/{partnerId}/conversations":{"get":{"operationId":"listClientConversations","summary":"List client conversation sources and sharing state","tags":["Enterprise Clients"],"parameters":[{"name":"partnerId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":256}}],"description":"Requires current Enterprise membership and access as an operator or an explicitly approved client-team member. Each conversation rechecks exact sharing visibility; unavailable source history is not complete coverage.","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"List client conversation sources and sharing state","content":{"application/json":{"schema":{"$ref":"#/components/schemas/clientConversationListResponseSchema"}}}},"default":{"description":"Bounded error response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}}},"x-required-scopes":["comms:share"],"x-required-permissions":["workspace.member"],"x-required-capabilities":[],"x-resource-checks":["enterprise-workspace","workspace-membership","exact-conversation","current-share-visibility","approved-team-or-operator"],"x-required-permission-mode":"all","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"none","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false},"post":{"operationId":"linkClientConversation","summary":"Approve one exact WhatsApp group for operator access","tags":["Enterprise Clients"],"parameters":[{"name":"partnerId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":256}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":1,"maxLength":255}}],"description":"Requires current Enterprise membership, operator authority, and published scopes and permissions. Writes are idempotent. Device sources retain exact owner, conversation, signing, and revocation checks.","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/clientConversationLinkRequestSchema"}}}},"responses":{"200":{"description":"Approve one exact WhatsApp group for operator access","content":{"application/json":{"schema":{"$ref":"#/components/schemas/clientConversationLinkResponseSchema"}}}},"201":{"description":"Approve one exact WhatsApp group for operator access","content":{"application/json":{"schema":{"$ref":"#/components/schemas/clientConversationLinkResponseSchema"}}}},"default":{"description":"Bounded error response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}}},"x-required-scopes":["partners:write","comms:share"],"x-required-permissions":["tool.enterprise.partners.manage"],"x-required-capabilities":[],"x-resource-checks":["enterprise-workspace","workspace-membership","exact-conversation","current-share-visibility","enterprise-operator","source-owner","device-credential"],"x-required-permission-mode":"all","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"write","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/enterprise/partners/{partnerId}/conversations/{conversationId}":{"patch":{"operationId":"updateClientConversationEngagements","summary":"Link a conversation to selected client engagements","tags":["Enterprise Clients"],"parameters":[{"name":"partnerId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":256}},{"name":"conversationId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":256}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":1,"maxLength":255}}],"description":"Requires current Enterprise membership, operator authority, and published scopes and permissions. Writes are idempotent. Device sources retain exact owner, conversation, signing, and revocation checks.","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/clientConversationEngagementsRequestSchema"}}}},"responses":{"200":{"description":"Link a conversation to selected client engagements","content":{"application/json":{"schema":{"$ref":"#/components/schemas/clientConversationUpdateResponseSchema"}}}},"default":{"description":"Bounded error response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}}},"x-required-scopes":["partners:write","comms:share"],"x-required-permissions":["tool.enterprise.partners.manage"],"x-required-capabilities":[],"x-resource-checks":["enterprise-workspace","workspace-membership","exact-conversation","current-share-visibility","enterprise-operator","source-owner","device-credential"],"x-required-permission-mode":"all","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"write","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false},"delete":{"operationId":"unlinkClientConversation","summary":"Revoke the exact selected conversation source","tags":["Enterprise Clients"],"parameters":[{"name":"partnerId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":256}},{"name":"conversationId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":256}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":1,"maxLength":255}}],"description":"Requires current Enterprise membership, operator authority, and published scopes and permissions. Writes are idempotent. Device sources retain exact owner, conversation, signing, and revocation checks.","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/clientConversationUnlinkRequestSchema"}}}},"responses":{"200":{"description":"Revoke the exact selected conversation source","content":{"application/json":{"schema":{"$ref":"#/components/schemas/clientConversationUnlinkResponseSchema"}}}},"default":{"description":"Bounded error response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}}},"x-required-scopes":["partners:write","comms:share"],"x-required-permissions":["tool.enterprise.partners.manage"],"x-required-capabilities":[],"x-resource-checks":["enterprise-workspace","workspace-membership","exact-conversation","current-share-visibility","enterprise-operator","source-owner","device-credential"],"x-required-permission-mode":"all","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"write","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/enterprise/partners/{partnerId}/conversations/{conversationId}/team-share":{"post":{"operationId":"approveClientConversationTeam","summary":"Approve sharing the selected source with a named client team","tags":["Enterprise Clients"],"parameters":[{"name":"partnerId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":256}},{"name":"conversationId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":256}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":1,"maxLength":255}}],"description":"Requires current Enterprise membership, operator authority, and published scopes and permissions. Writes are idempotent. Device sources retain exact owner, conversation, signing, and revocation checks.","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/clientConversationTeamRequestSchema"}}}},"responses":{"200":{"description":"Approve sharing the selected source with a named client team","content":{"application/json":{"schema":{"$ref":"#/components/schemas/clientConversationUpdateResponseSchema"}}}},"201":{"description":"Approve sharing the selected source with a named client team","content":{"application/json":{"schema":{"$ref":"#/components/schemas/clientConversationUpdateResponseSchema"}}}},"default":{"description":"Bounded error response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}}},"x-required-scopes":["partners:write","comms:share"],"x-required-permissions":["tool.enterprise.partners.manage"],"x-required-capabilities":[],"x-resource-checks":["enterprise-workspace","workspace-membership","exact-conversation","current-share-visibility","enterprise-operator","source-owner","device-credential"],"x-required-permission-mode":"all","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"write","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/enterprise/partners/{partnerId}/conversations/{conversationId}/team-revoke":{"post":{"operationId":"revokeClientConversationTeam","summary":"Revoke team access while retaining operator access","tags":["Enterprise Clients"],"parameters":[{"name":"partnerId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":256}},{"name":"conversationId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":256}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":1,"maxLength":255}}],"description":"Requires current Enterprise membership, operator authority, and published scopes and permissions. Writes are idempotent. Device sources retain exact owner, conversation, signing, and revocation checks.","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmptyClientRequest"}}}},"responses":{"200":{"description":"Revoke team access while retaining operator access","content":{"application/json":{"schema":{"$ref":"#/components/schemas/clientConversationUpdateResponseSchema"}}}},"201":{"description":"Revoke team access while retaining operator access","content":{"application/json":{"schema":{"$ref":"#/components/schemas/clientConversationUpdateResponseSchema"}}}},"default":{"description":"Bounded error response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}}},"x-required-scopes":["partners:write","comms:share"],"x-required-permissions":["tool.enterprise.partners.manage"],"x-required-capabilities":[],"x-resource-checks":["enterprise-workspace","workspace-membership","exact-conversation","current-share-visibility","enterprise-operator","source-owner","device-credential"],"x-required-permission-mode":"all","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"write","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/enterprise/partners/{partnerId}/conversations/{conversationId}/messages":{"get":{"operationId":"listClientConversationMessages","summary":"Read paginated messages from an authorized shared group","tags":["Enterprise Clients"],"parameters":[{"name":"partnerId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":256}},{"name":"conversationId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":256}},{"name":"q","in":"query","required":false,"schema":{"type":"string","maxLength":200}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","maxLength":400}}],"description":"Requires current Enterprise membership and access as an operator or an explicitly approved client-team member. Each conversation rechecks exact sharing visibility; unavailable source history is not complete coverage.","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Read paginated messages from an authorized shared group","content":{"application/json":{"schema":{"$ref":"#/components/schemas/clientConversationMessagesResponseSchema"}}}},"default":{"description":"Bounded error response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}}},"x-required-scopes":["comms:share"],"x-required-permissions":["workspace.member"],"x-required-capabilities":[],"x-resource-checks":["enterprise-workspace","workspace-membership","exact-conversation","current-share-visibility","approved-team-or-operator"],"x-required-permission-mode":"all","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"none","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/enterprise/partners/{partnerId}/conversations/{conversationId}/sync-status":{"get":{"operationId":"getClientConversationSyncStatus","summary":"Read source coverage, freshness, and sync errors","tags":["Enterprise Clients"],"parameters":[{"name":"partnerId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":256}},{"name":"conversationId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":256}}],"description":"Requires current Enterprise membership and access as an operator or an explicitly approved client-team member. Each conversation rechecks exact sharing visibility; unavailable source history is not complete coverage.","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Read source coverage, freshness, and sync errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/clientConversationSyncStatusResponseSchema"}}}},"default":{"description":"Bounded error response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}}},"x-required-scopes":["comms:share"],"x-required-permissions":["workspace.member"],"x-required-capabilities":[],"x-resource-checks":["enterprise-workspace","workspace-membership","exact-conversation","current-share-visibility","approved-team-or-operator"],"x-required-permission-mode":"all","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"none","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/enterprise/brief-review-qualification":{"post":{"operationId":"qualifyEnterpriseBriefReview","summary":"Enable client review after reviewing exact deployed synthetic qualification","tags":["Enterprise Clients"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":1,"maxLength":255}}],"description":"Requires current Enterprise membership, operator authority, and published scopes and permissions. Writes are idempotent. Device sources retain exact owner, conversation, signing, and revocation checks.","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/briefReviewRolloutRequestSchema"}}}},"responses":{"200":{"description":"Enable client review after reviewing exact deployed synthetic qualification","content":{"application/json":{"schema":{"$ref":"#/components/schemas/briefReviewRolloutResponseSchema"}}}},"201":{"description":"Enable client review after reviewing exact deployed synthetic qualification","content":{"application/json":{"schema":{"$ref":"#/components/schemas/briefReviewRolloutResponseSchema"}}}},"default":{"description":"Bounded error response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}}},"x-required-scopes":["partners:write","deals:write"],"x-required-permissions":["tool.enterprise.partners.manage","tool.deals.deals.manage"],"x-required-capabilities":["motive_conviction"],"x-resource-checks":["enterprise-workspace","enterprise-operator","workspace-membership","exact-deployed-build","verified-external-reviewer","reviewed-synthetic-qualification","same-origin-session"],"x-required-permission-mode":"all","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"write","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"operator","x-evanet-agent-eligible":false}},"/api/v1/enterprise/clients":{"get":{"operationId":"listEnterpriseClients","summary":"list Enterprise Clients","tags":["Enterprise Clients"],"parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string","maxLength":200}},{"name":"view","in":"query","required":false,"schema":{"type":"string","maxLength":400}},{"name":"audit","in":"query","required":false,"schema":{"type":"string","maxLength":400}},{"name":"attention","in":"query","required":false,"schema":{"type":"string","maxLength":400}}],"description":"Requires current Enterprise membership, operator authority, and published scopes and permissions. Writes are idempotent. Device sources retain exact owner, conversation, signing, and revocation checks.","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"list Enterprise Clients","content":{"application/json":{"schema":{"$ref":"#/components/schemas/clientSummariesResponseSchema"}}}},"default":{"description":"Bounded error response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}}},"x-required-scopes":["partners:read","deals:read"],"x-required-permissions":["tool.enterprise.partners.view","tool.deals.deals.view"],"x-required-capabilities":["motive_conviction"],"x-resource-checks":["enterprise-workspace","enterprise-operator","workspace-membership","client-engagement-ownership"],"x-required-permission-mode":"all","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"none","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/enterprise/engagements":{"get":{"operationId":"listEnterpriseEngagements","summary":"list Enterprise Engagements","tags":["Enterprise Clients"],"parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string","maxLength":200}},{"name":"view","in":"query","required":false,"schema":{"type":"string","maxLength":400}},{"name":"audit","in":"query","required":false,"schema":{"type":"string","maxLength":400}}],"description":"Requires current Enterprise membership, operator authority, and published scopes and permissions. Writes are idempotent. Device sources retain exact owner, conversation, signing, and revocation checks.","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"list Enterprise Engagements","content":{"application/json":{"schema":{"$ref":"#/components/schemas/enterpriseEngagementListResponseSchema"}}}},"default":{"description":"Bounded error response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}}},"x-required-scopes":["partners:read","deals:read"],"x-required-permissions":["tool.enterprise.partners.view","tool.deals.deals.view"],"x-required-capabilities":["motive_conviction"],"x-resource-checks":["enterprise-workspace","enterprise-operator","workspace-membership","client-engagement-ownership"],"x-required-permission-mode":"all","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"none","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/enterprise/partners/{partnerId}/engagements/{engagementId}/brief":{"get":{"operationId":"getEngagementBrief","summary":"get Engagement Brief","tags":["Enterprise Clients"],"parameters":[{"name":"partnerId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":256}},{"name":"engagementId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":256}}],"description":"Requires current Enterprise membership, operator authority, and published scopes and permissions. Writes are idempotent. Device sources retain exact owner, conversation, signing, and revocation checks.","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"get Engagement Brief","content":{"application/json":{"schema":{"$ref":"#/components/schemas/briefReadResponseSchema"}}}},"default":{"description":"Bounded error response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}}},"x-required-scopes":["partners:read","deals:read"],"x-required-permissions":["tool.enterprise.partners.view","tool.deals.deals.view"],"x-required-capabilities":["motive_conviction"],"x-resource-checks":["enterprise-workspace","enterprise-operator","workspace-membership","client-engagement-ownership"],"x-required-permission-mode":"all","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"none","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false},"patch":{"operationId":"saveEngagementBrief","summary":"save Engagement Brief","tags":["Enterprise Clients"],"parameters":[{"name":"partnerId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":256}},{"name":"engagementId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":256}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":1,"maxLength":255}}],"description":"Requires current Enterprise membership, operator authority, and published scopes and permissions. Writes are idempotent. Device sources retain exact owner, conversation, signing, and revocation checks.","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/briefSaveRequestSchema"}}}},"responses":{"200":{"description":"save Engagement Brief","content":{"application/json":{"schema":{"$ref":"#/components/schemas/briefReadResponseSchema"}}}},"default":{"description":"Bounded error response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}}},"x-required-scopes":["partners:write","deals:write"],"x-required-permissions":["tool.enterprise.partners.manage","tool.deals.deals.manage"],"x-required-capabilities":["motive_conviction"],"x-resource-checks":["enterprise-workspace","enterprise-operator","workspace-membership","client-engagement-ownership","same-origin-session"],"x-required-permission-mode":"all","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"write","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/enterprise/partners/{partnerId}/engagements/{engagementId}/brief/publications":{"get":{"operationId":"listBriefPublications","summary":"list Brief Publications","tags":["Enterprise Clients"],"parameters":[{"name":"partnerId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":256}},{"name":"engagementId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":256}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","maxLength":400}}],"description":"Requires current Enterprise membership, operator authority, and published scopes and permissions. Writes are idempotent. Device sources retain exact owner, conversation, signing, and revocation checks.","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"list Brief Publications","content":{"application/json":{"schema":{"$ref":"#/components/schemas/briefPublicationListResponseSchema"}}}},"default":{"description":"Bounded error response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}}},"x-required-scopes":["partners:read","deals:read"],"x-required-permissions":["tool.enterprise.partners.view","tool.deals.deals.view"],"x-required-capabilities":["motive_conviction"],"x-resource-checks":["enterprise-workspace","enterprise-operator","workspace-membership","client-engagement-ownership"],"x-required-permission-mode":"all","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"none","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false},"post":{"operationId":"publishEngagementBrief","summary":"publish Engagement Brief","tags":["Enterprise Clients"],"parameters":[{"name":"partnerId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":256}},{"name":"engagementId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":256}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":1,"maxLength":255}}],"description":"Requires current Enterprise membership, operator authority, and published scopes and permissions. Writes are idempotent. Device sources retain exact owner, conversation, signing, and revocation checks.","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/briefPublishRequestSchema"}}}},"responses":{"200":{"description":"publish Engagement Brief","content":{"application/json":{"schema":{"$ref":"#/components/schemas/briefPublicationResponseSchema"}}}},"201":{"description":"publish Engagement Brief","content":{"application/json":{"schema":{"$ref":"#/components/schemas/briefPublicationResponseSchema"}}}},"default":{"description":"Bounded error response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}}},"x-required-scopes":["partners:write","deals:write"],"x-required-permissions":["tool.enterprise.partners.manage","tool.deals.deals.manage"],"x-required-capabilities":["motive_conviction"],"x-resource-checks":["enterprise-workspace","enterprise-operator","workspace-membership","client-engagement-ownership","same-origin-session"],"x-required-permission-mode":"all","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"write","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/enterprise/partners/{partnerId}/engagements/{engagementId}/brief/publications/{publicationId}":{"get":{"operationId":"getBriefPublication","summary":"get Brief Publication","tags":["Enterprise Clients"],"parameters":[{"name":"partnerId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":256}},{"name":"engagementId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":256}},{"name":"publicationId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":256}}],"description":"Requires current Enterprise membership, operator authority, and published scopes and permissions. Writes are idempotent. Device sources retain exact owner, conversation, signing, and revocation checks.","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"get Brief Publication","content":{"application/json":{"schema":{"$ref":"#/components/schemas/briefPublicationResponseSchema"}}}},"default":{"description":"Bounded error response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}}},"x-required-scopes":["partners:read","deals:read"],"x-required-permissions":["tool.enterprise.partners.view","tool.deals.deals.view"],"x-required-capabilities":["motive_conviction"],"x-resource-checks":["enterprise-workspace","enterprise-operator","workspace-membership","client-engagement-ownership"],"x-required-permission-mode":"all","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"none","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/enterprise/partners/{partnerId}/engagements/{engagementId}/brief/publications/{publicationId}/feedback":{"get":{"operationId":"getOperatorBriefFeedback","summary":"get Operator Brief Feedback","tags":["Enterprise Clients"],"parameters":[{"name":"partnerId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":256}},{"name":"engagementId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":256}},{"name":"publicationId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":256}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","maxLength":400}}],"description":"Requires current Enterprise membership, operator authority, and published scopes and permissions. Writes are idempotent. Device sources retain exact owner, conversation, signing, and revocation checks.","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"get Operator Brief Feedback","content":{"application/json":{"schema":{"$ref":"#/components/schemas/briefReviewResponseSchema"}}}},"default":{"description":"Bounded error response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}}},"x-required-scopes":["partners:read","deals:read"],"x-required-permissions":["tool.enterprise.partners.view","tool.deals.deals.view"],"x-required-capabilities":["motive_conviction"],"x-resource-checks":["enterprise-workspace","enterprise-operator","workspace-membership","client-engagement-ownership"],"x-required-permission-mode":"all","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"none","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/enterprise/partners/{partnerId}/engagements/{engagementId}/brief/publications/{publicationId}/reviewers/{grantId}/revoke":{"post":{"operationId":"revokeBriefReviewer","summary":"revoke Brief Reviewer","tags":["Enterprise Clients"],"parameters":[{"name":"partnerId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":256}},{"name":"engagementId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":256}},{"name":"publicationId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":256}},{"name":"grantId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":256}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":1,"maxLength":255}}],"description":"Requires current Enterprise membership, operator authority, and published scopes and permissions. Writes are idempotent. Device sources retain exact owner, conversation, signing, and revocation checks.","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/briefReviewerRevokeRequestSchema"}}}},"responses":{"200":{"description":"revoke Brief Reviewer","content":{"application/json":{"schema":{"$ref":"#/components/schemas/briefReviewerRevokeResponseSchema"}}}},"201":{"description":"revoke Brief Reviewer","content":{"application/json":{"schema":{"$ref":"#/components/schemas/briefReviewerRevokeResponseSchema"}}}},"default":{"description":"Bounded error response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}}},"x-required-scopes":["partners:write","deals:write"],"x-required-permissions":["tool.enterprise.partners.manage","tool.deals.deals.manage"],"x-required-capabilities":["motive_conviction"],"x-resource-checks":["enterprise-workspace","enterprise-operator","workspace-membership","client-engagement-ownership","same-origin-session"],"x-required-permission-mode":"all","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"write","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/enterprise/partners/{partnerId}/engagements/{engagementId}/agreements/from-brief":{"post":{"operationId":"createAgreementFromBrief","summary":"create Agreement From Brief","tags":["Enterprise Clients"],"parameters":[{"name":"partnerId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":256}},{"name":"engagementId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":256}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":1,"maxLength":255}}],"description":"Requires current Enterprise membership, operator authority, and published scopes and permissions. Writes are idempotent. Device sources retain exact owner, conversation, signing, and revocation checks.","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/briefAgreementCreateRequestSchema"}}}},"responses":{"200":{"description":"create Agreement From Brief","content":{"application/json":{"schema":{"$ref":"#/components/schemas/briefAgreementCreateResponseSchema"}}}},"201":{"description":"create Agreement From Brief","content":{"application/json":{"schema":{"$ref":"#/components/schemas/briefAgreementCreateResponseSchema"}}}},"default":{"description":"Bounded error response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}}},"x-required-scopes":["partners:write","deals:write"],"x-required-permissions":["tool.enterprise.partners.manage","tool.deals.deals.manage"],"x-required-capabilities":["motive_conviction"],"x-resource-checks":["enterprise-workspace","enterprise-operator","workspace-membership","client-engagement-ownership","same-origin-session"],"x-required-permission-mode":"all","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"write","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/enterprise/partners/{partnerId}/setup":{"get":{"operationId":"getClientSetup","summary":"get Client Setup","tags":["Enterprise Clients"],"parameters":[{"name":"partnerId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":256}}],"description":"Requires current Enterprise membership, operator authority, and published scopes and permissions. Writes are idempotent. Device sources retain exact owner, conversation, signing, and revocation checks.","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"get Client Setup","content":{"application/json":{"schema":{"$ref":"#/components/schemas/checklistReadResponseSchema"}}}},"default":{"description":"Bounded error response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}}},"x-required-scopes":["partners:read","deals:read"],"x-required-permissions":["tool.enterprise.partners.view","tool.deals.deals.view"],"x-required-capabilities":["motive_conviction"],"x-resource-checks":["enterprise-workspace","enterprise-operator","workspace-membership","client-engagement-ownership"],"x-required-permission-mode":"all","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"none","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false},"patch":{"operationId":"saveClientSetup","summary":"save Client Setup","tags":["Enterprise Clients"],"parameters":[{"name":"partnerId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":256}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":1,"maxLength":255}}],"description":"Requires current Enterprise membership, operator authority, and published scopes and permissions. Writes are idempotent. Device sources retain exact owner, conversation, signing, and revocation checks.","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/checklistSaveRequestSchema"}}}},"responses":{"200":{"description":"save Client Setup","content":{"application/json":{"schema":{"$ref":"#/components/schemas/checklistReadResponseSchema"}}}},"default":{"description":"Bounded error response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}}},"x-required-scopes":["partners:write","deals:write"],"x-required-permissions":["tool.enterprise.partners.manage","tool.deals.deals.manage"],"x-required-capabilities":["motive_conviction"],"x-resource-checks":["enterprise-workspace","enterprise-operator","workspace-membership","client-engagement-ownership","same-origin-session"],"x-required-permission-mode":"all","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"write","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/enterprise/partners/{partnerId}/engagements/{engagementId}/kickoff":{"get":{"operationId":"getEngagementKickoff","summary":"get Engagement Kickoff","tags":["Enterprise Clients"],"parameters":[{"name":"partnerId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":256}},{"name":"engagementId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":256}}],"description":"Requires current Enterprise membership, operator authority, and published scopes and permissions. Writes are idempotent. Device sources retain exact owner, conversation, signing, and revocation checks.","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"get Engagement Kickoff","content":{"application/json":{"schema":{"$ref":"#/components/schemas/checklistReadResponseSchema"}}}},"default":{"description":"Bounded error response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}}},"x-required-scopes":["partners:read","deals:read"],"x-required-permissions":["tool.enterprise.partners.view","tool.deals.deals.view"],"x-required-capabilities":["motive_conviction"],"x-resource-checks":["enterprise-workspace","enterprise-operator","workspace-membership","client-engagement-ownership"],"x-required-permission-mode":"all","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"none","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false},"patch":{"operationId":"saveEngagementKickoff","summary":"save Engagement Kickoff","tags":["Enterprise Clients"],"parameters":[{"name":"partnerId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":256}},{"name":"engagementId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":256}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":1,"maxLength":255}}],"description":"Requires current Enterprise membership, operator authority, and published scopes and permissions. Writes are idempotent. Device sources retain exact owner, conversation, signing, and revocation checks.","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/checklistSaveRequestSchema"}}}},"responses":{"200":{"description":"save Engagement Kickoff","content":{"application/json":{"schema":{"$ref":"#/components/schemas/checklistReadResponseSchema"}}}},"default":{"description":"Bounded error response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}}},"x-required-scopes":["partners:write","deals:write"],"x-required-permissions":["tool.enterprise.partners.manage","tool.deals.deals.manage"],"x-required-capabilities":["motive_conviction"],"x-resource-checks":["enterprise-workspace","enterprise-operator","workspace-membership","client-engagement-ownership","same-origin-session"],"x-required-permission-mode":"all","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"write","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/enterprise/partners/{partnerId}/record-purpose":{"post":{"operationId":"setClientRecordPurpose","summary":"set Client Record Purpose","tags":["Enterprise Clients"],"parameters":[{"name":"partnerId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":256}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":1,"maxLength":255}}],"description":"Requires current Enterprise membership, operator authority, and published scopes and permissions. Writes are idempotent. Device sources retain exact owner, conversation, signing, and revocation checks.","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/clientRecordPurposeRequestSchema"}}}},"responses":{"200":{"description":"set Client Record Purpose","content":{"application/json":{"schema":{"$ref":"#/components/schemas/clientRecordPurposeResponseSchema"}}}},"201":{"description":"set Client Record Purpose","content":{"application/json":{"schema":{"$ref":"#/components/schemas/clientRecordPurposeResponseSchema"}}}},"default":{"description":"Bounded error response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}}},"x-required-scopes":["partners:write","deals:write"],"x-required-permissions":["tool.enterprise.partners.manage","tool.deals.deals.manage"],"x-required-capabilities":["motive_conviction"],"x-resource-checks":["enterprise-workspace","enterprise-operator","workspace-membership","client-engagement-ownership","same-origin-session"],"x-required-permission-mode":"all","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"write","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/enterprise/brief-reviews/{publicationId}":{"get":{"operationId":"getBriefReview","summary":"get Brief Review","tags":["Enterprise Clients"],"parameters":[{"name":"publicationId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":256}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","maxLength":400}}],"description":"Requires a verified account and an exact active publication-specific reviewer grant. Workspace headers do not grant review access. Reviewer writes recheck revocation before execution and cached replay.","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"get Brief Review","content":{"application/json":{"schema":{"$ref":"#/components/schemas/briefReviewResponseSchema"}}}},"default":{"description":"Bounded error response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}}},"x-required-scopes":["reviews:read"],"x-required-permissions":[],"x-required-capabilities":[],"x-resource-checks":["Verified current account identity","Exact active publication reviewer grant","Current review rollout gate","Revocation before execution and replay"],"x-required-permission-mode":"all","x-evanet-credential-kind":"account","x-evanet-approval-class":"none","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/enterprise/brief-reviews/{publicationId}/accept":{"post":{"operationId":"acceptBriefReview","summary":"accept Brief Review","tags":["Enterprise Clients"],"parameters":[{"name":"publicationId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":256}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":1,"maxLength":255}}],"description":"Requires a verified account and an exact active publication-specific reviewer grant. Workspace headers do not grant review access. Reviewer writes recheck revocation before execution and cached replay.","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/briefReviewerAcceptRequestSchema"}}}},"responses":{"200":{"description":"accept Brief Review","content":{"application/json":{"schema":{"$ref":"#/components/schemas/briefReviewResponseSchema"}}}},"201":{"description":"accept Brief Review","content":{"application/json":{"schema":{"$ref":"#/components/schemas/briefReviewResponseSchema"}}}},"default":{"description":"Bounded error response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}}},"x-required-scopes":["reviews:write"],"x-required-permissions":[],"x-required-capabilities":[],"x-resource-checks":["Verified current account identity","Exact active publication reviewer grant","Current review rollout gate","Revocation before execution and replay"],"x-required-permission-mode":"all","x-evanet-credential-kind":"account","x-evanet-approval-class":"write","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/enterprise/brief-reviews/{publicationId}/feedback":{"post":{"operationId":"submitBriefFeedback","summary":"submit Brief Feedback","tags":["Enterprise Clients"],"parameters":[{"name":"publicationId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":256}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":1,"maxLength":255}}],"description":"Requires a verified account and an exact active publication-specific reviewer grant. Workspace headers do not grant review access. Reviewer writes recheck revocation before execution and cached replay.","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/briefFeedbackRequestSchema"}}}},"responses":{"200":{"description":"submit Brief Feedback","content":{"application/json":{"schema":{"$ref":"#/components/schemas/briefFeedbackResponseSchema"}}}},"201":{"description":"submit Brief Feedback","content":{"application/json":{"schema":{"$ref":"#/components/schemas/briefFeedbackResponseSchema"}}}},"default":{"description":"Bounded error response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}}},"x-required-scopes":["reviews:write"],"x-required-permissions":[],"x-required-capabilities":[],"x-resource-checks":["Verified current account identity","Exact active publication reviewer grant","Current review rollout gate","Revocation before execution and replay"],"x-required-permission-mode":"all","x-evanet-credential-kind":"account","x-evanet-approval-class":"write","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/enterprise/partners/{partnerId}/engagements/{engagementId}/brief/publications/{publicationId}/reviewers/{grantId}/invitation":{"get":{"operationId":"getBriefInvitationPreview","summary":"Prepare one exact named reviewer invitation without sending","tags":["Enterprise Clients"],"parameters":[{"name":"partnerId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":256}},{"name":"engagementId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":256}},{"name":"publicationId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":256}},{"name":"grantId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":256}}],"description":"Requires current Enterprise membership, operator authority, and published scopes and permissions. Writes are idempotent. Device sources retain exact owner, conversation, signing, and revocation checks.","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Prepare one exact named reviewer invitation without sending","content":{"application/json":{"schema":{"$ref":"#/components/schemas/briefInvitationPreviewResponseSchema"}}}},"default":{"description":"Bounded error response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}}},"x-required-scopes":["partners:read","deals:read"],"x-required-permissions":["tool.enterprise.partners.view","tool.deals.deals.view"],"x-required-capabilities":["motive_conviction"],"x-resource-checks":["enterprise-workspace","enterprise-operator","workspace-membership","client-engagement-ownership","exact-publication-reviewer","current-reviewer-approval","reviewed-invitation-selection"],"x-required-permission-mode":"all","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"none","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false},"post":{"operationId":"sendBriefInvitation","summary":"Explicitly send the reviewed invitation using one durable receipt","tags":["Enterprise Clients"],"parameters":[{"name":"partnerId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":256}},{"name":"engagementId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":256}},{"name":"publicationId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":256}},{"name":"grantId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":256}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":1,"maxLength":255}}],"description":"Requires current Enterprise membership, operator authority, and published scopes and permissions. Writes are idempotent. Device sources retain exact owner, conversation, signing, and revocation checks.","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/briefInvitationSendRequestSchema"}}}},"responses":{"200":{"description":"Explicitly send the reviewed invitation using one durable receipt","content":{"application/json":{"schema":{"$ref":"#/components/schemas/briefInvitationDeliveryResponseSchema"}}}},"201":{"description":"Explicitly send the reviewed invitation using one durable receipt","content":{"application/json":{"schema":{"$ref":"#/components/schemas/briefInvitationDeliveryResponseSchema"}}}},"default":{"description":"Bounded error response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}}},"x-required-scopes":["partners:write","deals:write"],"x-required-permissions":["tool.enterprise.partners.manage","tool.deals.deals.manage"],"x-required-capabilities":["motive_conviction"],"x-resource-checks":["enterprise-workspace","enterprise-operator","workspace-membership","client-engagement-ownership","exact-publication-reviewer","current-reviewer-approval","reviewed-invitation-selection","same-origin-session"],"x-required-permission-mode":"all","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"send","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/enterprise/partners/{partnerId}/engagements/{engagementId}/brief/publications/{publicationId}/reviewers/{grantId}/invitation/delivery":{"get":{"operationId":"getBriefInvitationDelivery","summary":"Read the durable invitation delivery receipt","tags":["Enterprise Clients"],"parameters":[{"name":"partnerId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":256}},{"name":"engagementId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":256}},{"name":"publicationId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":256}},{"name":"grantId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":256}}],"description":"Requires current Enterprise membership, operator authority, and published scopes and permissions. Writes are idempotent. Device sources retain exact owner, conversation, signing, and revocation checks.","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Read the durable invitation delivery receipt","content":{"application/json":{"schema":{"$ref":"#/components/schemas/briefInvitationDeliveryResponseSchema"}}}},"default":{"description":"Bounded error response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}}},"x-required-scopes":["partners:read","deals:read"],"x-required-permissions":["tool.enterprise.partners.view","tool.deals.deals.view"],"x-required-capabilities":["motive_conviction"],"x-resource-checks":["enterprise-workspace","enterprise-operator","workspace-membership","client-engagement-ownership","exact-publication-reviewer","current-reviewer-approval","reviewed-invitation-selection"],"x-required-permission-mode":"all","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"none","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/enterprise/partners/{partnerId}/engagements/{engagementId}/agreements/{agreementId}/brief-publication":{"get":{"operationId":"getAgreementBriefPublication","summary":"Read the fixed published brief referenced by an exact agreement","tags":["Enterprise Clients"],"parameters":[{"name":"partnerId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":256}},{"name":"engagementId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":256}},{"name":"agreementId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":256}}],"description":"Requires current Enterprise membership, operator authority, and published scopes and permissions. Writes are idempotent. Device sources retain exact owner, conversation, signing, and revocation checks.","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Read the fixed published brief referenced by an exact agreement","content":{"application/json":{"schema":{"$ref":"#/components/schemas/briefAgreementReferenceResponseSchema"}}}},"default":{"description":"Bounded error response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}}},"x-required-scopes":["partners:read","deals:read"],"x-required-permissions":["tool.enterprise.partners.view","tool.deals.deals.view"],"x-required-capabilities":["motive_conviction"],"x-resource-checks":["enterprise-workspace","enterprise-operator","workspace-membership","client-engagement-ownership"],"x-required-permission-mode":"all","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"none","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/survey-design-reviews/{packetId}":{"get":{"operationId":"getSurveyDesignReview","summary":"getSurveyDesignReview","tags":["Survey design review"],"security":[{"surveyReviewSession":[]},{"surveyReviewSessionLocal":[]}],"x-evanet-human-session-required":true,"description":"A verified named reviewer must use their current same-origin account session. Bearer API credentials and possession of the review URL do not grant access.","parameters":[{"name":"packetId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":200}}],"responses":{"200":{"description":"Authorized design packet or accepted design action. No response data, respondent drafts or private notes.","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","additionalProperties":true}}}}}},"401":{"description":"Verified human account required"},"404":{"description":"Active named review grant required"},"409":{"description":"Changed design or unresolved feedback"},"422":{"description":"Invalid input"}},"x-required-scopes":["reviews:read"],"x-required-permissions":[],"x-required-capabilities":[],"x-resource-checks":["verified-named-email","active-survey-design-grant","same-origin-session","human-design-review-only","no-evidence-or-workspace-grant","revocation-before-execution-and-replay"],"x-required-permission-mode":"all","x-evanet-credential-kind":"account","x-evanet-approval-class":"none","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/survey-design-reviews/{packetId}/threads":{"post":{"operationId":"commentSurveyDesignReview","summary":"commentSurveyDesignReview","tags":["Survey design review"],"security":[{"surveyReviewSession":[]},{"surveyReviewSessionLocal":[]}],"x-evanet-human-session-required":true,"description":"A verified named reviewer must use their current same-origin account session. Bearer API credentials and possession of the review URL do not grant access.","parameters":[{"name":"packetId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":200}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":1,"maxLength":200}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"packetId":{"type":"string","minLength":1,"maxLength":200},"anchor":{"type":"object","properties":{"kind":{"type":"string","enum":["question","section","cohort","design"]},"id":{"type":"string","minLength":1,"maxLength":200}},"required":["kind","id"],"additionalProperties":false},"body":{"type":"string","minLength":1,"maxLength":10000},"blocking":{"type":"boolean","default":false},"proposal":{"anyOf":[{"type":"object","properties":{"kind":{"type":"string","const":"question"},"questionId":{"type":"string","minLength":1,"maxLength":200},"patch":{"type":"object","properties":{"label":{"type":"string","minLength":1,"maxLength":200},"helper":{"type":"string","maxLength":5000},"required":{"type":"boolean"},"options":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string","minLength":1,"maxLength":200},"label":{"type":"string","minLength":1,"maxLength":200},"exclusive":{"type":"boolean"}},"required":["value","label"],"additionalProperties":false},"maxItems":100},"researchPurpose":{"type":"string","enum":["current_work","pain_points","desired_improvements","preserve"]},"informsDecision":{"type":"string","maxLength":2000}},"additionalProperties":false}},"required":["kind","questionId","patch"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"cohort"},"cohortId":{"type":"string","minLength":1,"maxLength":200},"rule":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[A-Za-z0-9][A-Za-z0-9._-]*$"},"label":{"type":"string","minLength":1,"maxLength":160},"match":{"type":"string","enum":["all","any"]},"conditions":{"type":"array","items":{"type":"object","properties":{"field":{"type":"string","enum":["primaryFunction","additionalFunctions","function","relationship","company","region"]},"values":{"type":"array","items":{"type":"string","minLength":1,"maxLength":160},"minItems":1,"maxItems":100}},"required":["field","values"],"additionalProperties":false},"maxItems":50},"includePersonIds":{"type":"array","items":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[A-Za-z0-9][A-Za-z0-9._-]*$"},"maxItems":10000},"excludePersonIds":{"type":"array","items":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[A-Za-z0-9][A-Za-z0-9._-]*$"},"maxItems":10000},"moduleKeys":{"type":"array","items":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[A-Za-z0-9][A-Za-z0-9._-]*$"},"maxItems":10000}},"required":["id","label","match","conditions","includePersonIds","excludePersonIds","moduleKeys"],"additionalProperties":false}},"required":["kind","cohortId","rule"],"additionalProperties":false}]}},"required":["packetId","anchor","body"],"additionalProperties":false}}}},"responses":{"200":{"description":"Authorized design packet or accepted design action. No response data, respondent drafts or private notes.","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","additionalProperties":true}}}}}},"401":{"description":"Verified human account required"},"404":{"description":"Active named review grant required"},"409":{"description":"Changed design or unresolved feedback"},"422":{"description":"Invalid input"}},"x-required-scopes":["reviews:write"],"x-required-permissions":[],"x-required-capabilities":[],"x-resource-checks":["verified-named-email","active-survey-design-grant","same-origin-session","human-design-review-only","no-evidence-or-workspace-grant","revocation-before-execution-and-replay"],"x-required-permission-mode":"all","x-evanet-credential-kind":"account","x-evanet-approval-class":"write","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/survey-design-reviews/{packetId}/threads/{threadId}/replies":{"post":{"operationId":"replySurveyDesignReview","summary":"replySurveyDesignReview","tags":["Survey design review"],"security":[{"surveyReviewSession":[]},{"surveyReviewSessionLocal":[]}],"x-evanet-human-session-required":true,"description":"A verified named reviewer must use their current same-origin account session. Bearer API credentials and possession of the review URL do not grant access.","parameters":[{"name":"packetId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":200}},{"name":"threadId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":200}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":1,"maxLength":200}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"body":{"type":"string","minLength":1,"maxLength":10000}},"required":["body"],"additionalProperties":false}}}},"responses":{"200":{"description":"Authorized design packet or accepted design action. No response data, respondent drafts or private notes.","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","additionalProperties":true}}}}}},"401":{"description":"Verified human account required"},"404":{"description":"Active named review grant required"},"409":{"description":"Changed design or unresolved feedback"},"422":{"description":"Invalid input"}},"x-required-scopes":["reviews:write"],"x-required-permissions":[],"x-required-capabilities":[],"x-resource-checks":["verified-named-email","active-survey-design-grant","same-origin-session","human-design-review-only","no-evidence-or-workspace-grant","revocation-before-execution-and-replay"],"x-required-permission-mode":"all","x-evanet-credential-kind":"account","x-evanet-approval-class":"write","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/survey-design-reviews/{packetId}/signoff":{"post":{"operationId":"approveSurveyDesignReview","summary":"approveSurveyDesignReview","tags":["Survey design review"],"security":[{"surveyReviewSession":[]},{"surveyReviewSessionLocal":[]}],"x-evanet-human-session-required":true,"description":"A verified named reviewer must use their current same-origin account session. Bearer API credentials and possession of the review URL do not grant access.","parameters":[{"name":"packetId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":200}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":1,"maxLength":200}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"digest":{"type":"string","minLength":1,"maxLength":200},"confirm":{"type":"boolean","const":true}},"required":["digest","confirm"],"additionalProperties":false}}}},"responses":{"200":{"description":"Authorized design packet or accepted design action. No response data, respondent drafts or private notes.","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","additionalProperties":true}}}}}},"401":{"description":"Verified human account required"},"404":{"description":"Active named review grant required"},"409":{"description":"Changed design or unresolved feedback"},"422":{"description":"Invalid input"}},"x-required-scopes":["reviews:write"],"x-required-permissions":[],"x-required-capabilities":[],"x-resource-checks":["verified-named-email","active-survey-design-grant","same-origin-session","human-design-review-only","no-evidence-or-workspace-grant","revocation-before-execution-and-replay"],"x-required-permission-mode":"all","x-evanet-credential-kind":"account","x-evanet-approval-class":"write","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/enterprise/partners/{partnerId}/engagements/{engagementId}/discovery/schedule/feedback/{feedbackId}/resolve":{"post":{"operationId":"resolveDiscoveryScheduleFeedback","summary":"resolve Discovery Schedule Feedback","tags":["Client discovery"],"parameters":[{"name":"partnerId","in":"path","required":true,"schema":{"type":"string"}},{"name":"engagementId","in":"path","required":true,"schema":{"type":"string"}},{"name":"feedbackId","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","format":"uuid"}}],"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"expectedRevision":{"type":"integer","minimum":0},"requestId":{"type":"string","minLength":1,"maxLength":200},"resolution":{"type":"string","enum":["addressed","declined"]}},"required":["expectedRevision","requestId","resolution"],"additionalProperties":false}}}},"responses":{"200":{"description":"Current authorized discovery data","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}},"additionalProperties":true}}}},"401":{"description":"Authenticated session or scoped credential required"},"403":{"description":"Current authority or explicit discovery membership required"},"404":{"description":"Record unavailable in the current authorized scope"},"409":{"description":"Stale edit, changed preparation or approval required"},"422":{"description":"Invalid input or incomplete preparation"},"503":{"description":"Current authorization unavailable"}},"x-required-scopes":["partners:write","deals:write"],"x-required-permissions":["tool.enterprise.partners.manage","tool.deals.deals.manage"],"x-required-capabilities":["motive_conviction"],"x-resource-checks":["enterprise-workspace","enterprise-operator","workspace-membership","client-engagement-ownership","same-origin-session","explicit-discovery-team","engagement-resource-scope","version-preconditions"],"x-required-permission-mode":"all","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"human","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/enterprise/partners/{partnerId}/engagements/{engagementId}/discovery/schedule":{"get":{"operationId":"getDiscoverySchedule","summary":"get Discovery Schedule","tags":["Client discovery"],"parameters":[{"name":"partnerId","in":"path","required":true,"schema":{"type":"string"}},{"name":"engagementId","in":"path","required":true,"schema":{"type":"string"}},{"name":"includeTestHistory","in":"query","required":false,"schema":{"type":"boolean","default":false}}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Current authorized discovery data","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}},"additionalProperties":true}}}},"401":{"description":"Authenticated session or scoped credential required"},"403":{"description":"Current authority or explicit discovery membership required"},"404":{"description":"Record unavailable in the current authorized scope"},"409":{"description":"Stale edit, changed preparation or approval required"},"422":{"description":"Invalid input or incomplete preparation"},"503":{"description":"Current authorization unavailable"}},"x-required-scopes":["partners:read","deals:read"],"x-required-permissions":["tool.enterprise.partners.view","tool.deals.deals.view"],"x-required-capabilities":["motive_conviction"],"x-resource-checks":["enterprise-workspace","enterprise-operator","workspace-membership","client-engagement-ownership","explicit-discovery-team","engagement-resource-scope","version-preconditions"],"x-required-permission-mode":"all","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"none","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/enterprise/partners/{partnerId}/engagements/{engagementId}/discovery/schedule/proposal":{"post":{"operationId":"prepareDiscoveryScheduleProposal","summary":"prepare Discovery Schedule Proposal","tags":["Client discovery"],"parameters":[{"name":"partnerId","in":"path","required":true,"schema":{"type":"string"}},{"name":"engagementId","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","format":"uuid"}}],"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"expectedRevision":{"type":"integer","minimum":0},"requestId":{"type":"string","minLength":1,"maxLength":200},"sourceId":{"type":"string","minLength":1,"maxLength":200},"text":{"type":"string","maxLength":500000},"filename":{"type":"string","maxLength":200},"contentBase64":{"type":"string","maxLength":15000000},"timezone":{"type":"string"},"defaultYear":{"type":"integer","minimum":2000,"maximum":2200}},"required":["expectedRevision","requestId","sourceId"],"additionalProperties":false}}}},"responses":{"200":{"description":"Current authorized discovery data","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}},"additionalProperties":true}}}},"401":{"description":"Authenticated session or scoped credential required"},"403":{"description":"Current authority or explicit discovery membership required"},"404":{"description":"Record unavailable in the current authorized scope"},"409":{"description":"Stale edit, changed preparation or approval required"},"422":{"description":"Invalid input or incomplete preparation"},"503":{"description":"Current authorization unavailable"}},"x-required-scopes":["partners:write","deals:write"],"x-required-permissions":["tool.enterprise.partners.manage","tool.deals.deals.manage"],"x-required-capabilities":["motive_conviction"],"x-resource-checks":["enterprise-workspace","enterprise-operator","workspace-membership","client-engagement-ownership","same-origin-session","explicit-discovery-team","engagement-resource-scope","version-preconditions"],"x-required-permission-mode":"all","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"write","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/enterprise/partners/{partnerId}/engagements/{engagementId}/discovery/schedule/apply":{"post":{"operationId":"applyDiscoveryScheduleProposal","summary":"apply Discovery Schedule Proposal","tags":["Client discovery"],"parameters":[{"name":"partnerId","in":"path","required":true,"schema":{"type":"string"}},{"name":"engagementId","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","format":"uuid"}}],"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"expectedRevision":{"type":"integer","minimum":0},"requestId":{"type":"string","minLength":1,"maxLength":200},"proposalId":{"type":"string","minLength":1,"maxLength":200},"digest":{"type":"string","minLength":1,"maxLength":200},"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":200},"sourceKey":{"type":"string","minLength":1,"maxLength":200},"clientLabel":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}]},"kind":{"type":"string","enum":["session","milestone","task","work_block"]},"title":{"type":"string","minLength":1,"maxLength":200},"plannedDate":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"endDate":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"startAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"endAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"timezone":{"anyOf":[{"type":"string"},{"type":"null"}]},"ownerUserId":{"anyOf":[{"type":"string","minLength":1,"maxLength":200},{"type":"null"}]},"visibility":{"type":"string","enum":["internal","client"]},"sessionId":{"anyOf":[{"type":"string","minLength":1,"maxLength":200},{"type":"null"}]},"taskId":{"anyOf":[{"type":"string","minLength":1,"maxLength":200},{"type":"null"}]},"sourceText":{"type":"string","maxLength":20000},"unknowns":{"type":"array","items":{"type":"string","maxLength":500},"maxItems":30},"agenda":{"type":"string","maxLength":15000},"attendeePersonIds":{"type":"array","items":{"type":"string","minLength":1,"maxLength":200},"maxItems":100},"revision":{"type":"integer","minimum":0},"status":{"type":"string","enum":["proposed","ready","scheduled","update_pending","needs_attention"]},"dependencies":{"type":"array","items":{"type":"object","properties":{"predecessorKey":{"type":"string","minLength":1,"maxLength":200},"offset":{"type":"integer","minimum":-3660,"maximum":3660},"unit":{"type":"string","enum":["calendar_days","business_days"]}},"required":["predecessorKey","offset","unit"],"additionalProperties":false},"maxItems":100},"sourceReadOnly":{"type":"boolean"},"surveyRef":{"anyOf":[{"type":"object","properties":{"surveyId":{"type":"string","minLength":1,"maxLength":200},"workspaceId":{"type":"string","minLength":1,"maxLength":200}},"required":["surveyId","workspaceId"],"additionalProperties":false},{"type":"null"}]},"calendarEventId":{"anyOf":[{"type":"string","minLength":1,"maxLength":200},{"type":"null"}]},"calendarEventRevision":{"anyOf":[{"type":"integer","exclusiveMinimum":0},{"type":"null"}]},"workItemKey":{"anyOf":[{"type":"string","minLength":1,"maxLength":200},{"type":"null"}]},"fixed":{"type":"boolean"},"alternativeGroup":{"anyOf":[{"type":"string","minLength":1,"maxLength":200},{"type":"null"}]},"cancellationProposed":{"type":"boolean"},"completionStatus":{"type":"string","enum":["open","completed"]},"cancelled":{"type":"boolean"},"relatedSurveyIds":{"type":"array","items":{"type":"string","minLength":1,"maxLength":200},"maxItems":50}},"required":["id","sourceKey","clientLabel","kind","title","plannedDate","startAt","endAt","timezone","ownerUserId","visibility","sessionId","taskId","sourceText","unknowns","agenda","attendeePersonIds","revision","status","dependencies","fixed","alternativeGroup","cancellationProposed","relatedSurveyIds"],"additionalProperties":false},"maxItems":500},"matches":{"type":"object","additionalProperties":{"type":"string","minLength":1,"maxLength":200}}},"required":["expectedRevision","requestId","proposalId","digest","items"],"additionalProperties":false}}}},"responses":{"200":{"description":"Current authorized discovery data","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}},"additionalProperties":true}}}},"401":{"description":"Authenticated session or scoped credential required"},"403":{"description":"Current authority or explicit discovery membership required"},"404":{"description":"Record unavailable in the current authorized scope"},"409":{"description":"Stale edit, changed preparation or approval required"},"422":{"description":"Invalid input or incomplete preparation"},"503":{"description":"Current authorization unavailable"}},"x-required-scopes":["partners:write","deals:write"],"x-required-permissions":["tool.enterprise.partners.manage","tool.deals.deals.manage"],"x-required-capabilities":["motive_conviction"],"x-resource-checks":["enterprise-workspace","enterprise-operator","workspace-membership","client-engagement-ownership","same-origin-session","explicit-discovery-team","engagement-resource-scope","version-preconditions"],"x-required-permission-mode":"all","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"human","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/enterprise/partners/{partnerId}/engagements/{engagementId}/discovery/schedule/commit":{"post":{"operationId":"commitDiscoverySchedule","summary":"commit Discovery Schedule","tags":["Client discovery"],"parameters":[{"name":"partnerId","in":"path","required":true,"schema":{"type":"string"}},{"name":"engagementId","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","format":"uuid"}}],"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"expectedRevision":{"type":"integer","minimum":0},"requestId":{"type":"string","minLength":1,"maxLength":200}},"required":["expectedRevision","requestId"],"additionalProperties":false}}}},"responses":{"200":{"description":"Current authorized discovery data","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}},"additionalProperties":true}}}},"401":{"description":"Authenticated session or scoped credential required"},"403":{"description":"Current authority or explicit discovery membership required"},"404":{"description":"Record unavailable in the current authorized scope"},"409":{"description":"Stale edit, changed preparation or approval required"},"422":{"description":"Invalid input or incomplete preparation"},"503":{"description":"Current authorization unavailable"}},"x-required-scopes":["partners:write","deals:write"],"x-required-permissions":["tool.enterprise.partners.manage","tool.deals.deals.manage"],"x-required-capabilities":["motive_conviction"],"x-resource-checks":["enterprise-workspace","enterprise-operator","workspace-membership","client-engagement-ownership","same-origin-session","explicit-discovery-team","engagement-resource-scope","version-preconditions"],"x-required-permission-mode":"all","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"human","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/enterprise/partners/{partnerId}/engagements/{engagementId}/discovery/schedule/discard":{"post":{"operationId":"discardDiscoveryScheduleDraft","summary":"discard Discovery Schedule Draft","tags":["Client discovery"],"parameters":[{"name":"partnerId","in":"path","required":true,"schema":{"type":"string"}},{"name":"engagementId","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","format":"uuid"}}],"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"expectedRevision":{"type":"integer","minimum":0},"requestId":{"type":"string","minLength":1,"maxLength":200}},"required":["expectedRevision","requestId"],"additionalProperties":false}}}},"responses":{"200":{"description":"Current authorized discovery data","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}},"additionalProperties":true}}}},"401":{"description":"Authenticated session or scoped credential required"},"403":{"description":"Current authority or explicit discovery membership required"},"404":{"description":"Record unavailable in the current authorized scope"},"409":{"description":"Stale edit, changed preparation or approval required"},"422":{"description":"Invalid input or incomplete preparation"},"503":{"description":"Current authorization unavailable"}},"x-required-scopes":["partners:write","deals:write"],"x-required-permissions":["tool.enterprise.partners.manage","tool.deals.deals.manage"],"x-required-capabilities":["motive_conviction"],"x-resource-checks":["enterprise-workspace","enterprise-operator","workspace-membership","client-engagement-ownership","same-origin-session","explicit-discovery-team","engagement-resource-scope","version-preconditions"],"x-required-permission-mode":"all","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"human","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/enterprise/partners/{partnerId}/engagements/{engagementId}/discovery/schedule/items/{itemId}":{"patch":{"operationId":"saveDiscoveryScheduleItem","summary":"save Discovery Schedule Item","tags":["Client discovery"],"parameters":[{"name":"partnerId","in":"path","required":true,"schema":{"type":"string"}},{"name":"engagementId","in":"path","required":true,"schema":{"type":"string"}},{"name":"itemId","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","format":"uuid"}}],"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"expectedRevision":{"type":"integer","minimum":0},"requestId":{"type":"string","minLength":1,"maxLength":200},"item":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":200},"sourceKey":{"type":"string","minLength":1,"maxLength":200},"clientLabel":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}]},"kind":{"type":"string","enum":["session","milestone","task","work_block"]},"title":{"type":"string","minLength":1,"maxLength":200},"plannedDate":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"endDate":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"startAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"endAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"timezone":{"anyOf":[{"type":"string"},{"type":"null"}]},"ownerUserId":{"anyOf":[{"type":"string","minLength":1,"maxLength":200},{"type":"null"}]},"visibility":{"type":"string","enum":["internal","client"]},"sessionId":{"anyOf":[{"type":"string","minLength":1,"maxLength":200},{"type":"null"}]},"taskId":{"anyOf":[{"type":"string","minLength":1,"maxLength":200},{"type":"null"}]},"sourceText":{"type":"string","maxLength":20000},"unknowns":{"type":"array","items":{"type":"string","maxLength":500},"maxItems":30},"agenda":{"type":"string","maxLength":15000},"attendeePersonIds":{"type":"array","items":{"type":"string","minLength":1,"maxLength":200},"maxItems":100},"revision":{"type":"integer","minimum":0},"status":{"type":"string","enum":["proposed","ready","scheduled","update_pending","needs_attention"]},"dependencies":{"type":"array","items":{"type":"object","properties":{"predecessorKey":{"type":"string","minLength":1,"maxLength":200},"offset":{"type":"integer","minimum":-3660,"maximum":3660},"unit":{"type":"string","enum":["calendar_days","business_days"]}},"required":["predecessorKey","offset","unit"],"additionalProperties":false},"maxItems":100},"sourceReadOnly":{"type":"boolean"},"surveyRef":{"anyOf":[{"type":"object","properties":{"surveyId":{"type":"string","minLength":1,"maxLength":200},"workspaceId":{"type":"string","minLength":1,"maxLength":200}},"required":["surveyId","workspaceId"],"additionalProperties":false},{"type":"null"}]},"calendarEventId":{"anyOf":[{"type":"string","minLength":1,"maxLength":200},{"type":"null"}]},"calendarEventRevision":{"anyOf":[{"type":"integer","exclusiveMinimum":0},{"type":"null"}]},"workItemKey":{"anyOf":[{"type":"string","minLength":1,"maxLength":200},{"type":"null"}]},"fixed":{"type":"boolean"},"alternativeGroup":{"anyOf":[{"type":"string","minLength":1,"maxLength":200},{"type":"null"}]},"cancellationProposed":{"type":"boolean"},"completionStatus":{"type":"string","enum":["open","completed"]},"cancelled":{"type":"boolean"},"relatedSurveyIds":{"type":"array","items":{"type":"string","minLength":1,"maxLength":200},"maxItems":50}},"required":["id","sourceKey","clientLabel","kind","title","plannedDate","startAt","endAt","timezone","ownerUserId","visibility","sessionId","taskId","sourceText","unknowns","agenda","attendeePersonIds","revision","status","dependencies","fixed","alternativeGroup","cancellationProposed","relatedSurveyIds"],"additionalProperties":false}},"required":["expectedRevision","requestId","item"],"additionalProperties":false}}}},"responses":{"200":{"description":"Current authorized discovery data","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}},"additionalProperties":true}}}},"401":{"description":"Authenticated session or scoped credential required"},"403":{"description":"Current authority or explicit discovery membership required"},"404":{"description":"Record unavailable in the current authorized scope"},"409":{"description":"Stale edit, changed preparation or approval required"},"422":{"description":"Invalid input or incomplete preparation"},"503":{"description":"Current authorization unavailable"}},"x-required-scopes":["partners:write","deals:write"],"x-required-permissions":["tool.enterprise.partners.manage","tool.deals.deals.manage"],"x-required-capabilities":["motive_conviction"],"x-resource-checks":["enterprise-workspace","enterprise-operator","workspace-membership","client-engagement-ownership","same-origin-session","explicit-discovery-team","engagement-resource-scope","version-preconditions"],"x-required-permission-mode":"all","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"human","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/enterprise/partners/{partnerId}/engagements/{engagementId}/discovery/schedule/shift-preview":{"post":{"operationId":"previewDiscoveryScheduleShift","summary":"preview Discovery Schedule Shift","tags":["Client discovery"],"parameters":[{"name":"partnerId","in":"path","required":true,"schema":{"type":"string"}},{"name":"engagementId","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","format":"uuid"}}],"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"expectedRevision":{"type":"integer","minimum":0},"requestId":{"type":"string","minLength":1,"maxLength":200},"anchorKey":{"type":"string","minLength":1,"maxLength":200},"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"includeFixed":{"type":"array","items":{"type":"string","minLength":1,"maxLength":200},"maxItems":500,"default":[]},"digest":{"type":"string","minLength":1,"maxLength":200}},"required":["expectedRevision","requestId","anchorKey","date"],"additionalProperties":false}}}},"responses":{"200":{"description":"Current authorized discovery data","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}},"additionalProperties":true}}}},"401":{"description":"Authenticated session or scoped credential required"},"403":{"description":"Current authority or explicit discovery membership required"},"404":{"description":"Record unavailable in the current authorized scope"},"409":{"description":"Stale edit, changed preparation or approval required"},"422":{"description":"Invalid input or incomplete preparation"},"503":{"description":"Current authorization unavailable"}},"x-required-scopes":["partners:write","deals:write"],"x-required-permissions":["tool.enterprise.partners.manage","tool.deals.deals.manage"],"x-required-capabilities":["motive_conviction"],"x-resource-checks":["enterprise-workspace","enterprise-operator","workspace-membership","client-engagement-ownership","same-origin-session","explicit-discovery-team","engagement-resource-scope","version-preconditions"],"x-required-permission-mode":"all","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"write","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/enterprise/partners/{partnerId}/engagements/{engagementId}/discovery/schedule/shift-apply":{"post":{"operationId":"applyDiscoveryScheduleShift","summary":"apply Discovery Schedule Shift","tags":["Client discovery"],"parameters":[{"name":"partnerId","in":"path","required":true,"schema":{"type":"string"}},{"name":"engagementId","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","format":"uuid"}}],"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"expectedRevision":{"type":"integer","minimum":0},"requestId":{"type":"string","minLength":1,"maxLength":200},"anchorKey":{"type":"string","minLength":1,"maxLength":200},"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"includeFixed":{"type":"array","items":{"type":"string","minLength":1,"maxLength":200},"maxItems":500,"default":[]},"digest":{"type":"string","minLength":1,"maxLength":200}},"required":["expectedRevision","requestId","anchorKey","date"],"additionalProperties":false}}}},"responses":{"200":{"description":"Current authorized discovery data","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}},"additionalProperties":true}}}},"401":{"description":"Authenticated session or scoped credential required"},"403":{"description":"Current authority or explicit discovery membership required"},"404":{"description":"Record unavailable in the current authorized scope"},"409":{"description":"Stale edit, changed preparation or approval required"},"422":{"description":"Invalid input or incomplete preparation"},"503":{"description":"Current authorization unavailable"}},"x-required-scopes":["partners:write","deals:write"],"x-required-permissions":["tool.enterprise.partners.manage","tool.deals.deals.manage"],"x-required-capabilities":["motive_conviction"],"x-resource-checks":["enterprise-workspace","enterprise-operator","workspace-membership","client-engagement-ownership","same-origin-session","explicit-discovery-team","engagement-resource-scope","version-preconditions"],"x-required-permission-mode":"all","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"human","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/enterprise/partners/{partnerId}/engagements/{engagementId}/discovery/schedule/publish":{"post":{"operationId":"publishDiscoverySchedule","summary":"publish Discovery Schedule","tags":["Client discovery"],"parameters":[{"name":"partnerId","in":"path","required":true,"schema":{"type":"string"}},{"name":"engagementId","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","format":"uuid"}}],"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"expectedRevision":{"type":"integer","minimum":0},"requestId":{"type":"string","minLength":1,"maxLength":200},"title":{"type":"string","minLength":1,"maxLength":200},"reviewers":{"type":"array","items":{"type":"string","format":"email"},"minItems":1,"maxItems":100},"itemIds":{"type":"array","items":{"type":"string","minLength":1,"maxLength":200},"minItems":1,"maxItems":500},"previewDigest":{"type":"string","minLength":1,"maxLength":200},"confirmReviewed":{"type":"boolean","const":true}},"required":["expectedRevision","requestId","title","reviewers","itemIds","previewDigest","confirmReviewed"],"additionalProperties":false}}}},"responses":{"200":{"description":"Current authorized discovery data","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}},"additionalProperties":true}}}},"401":{"description":"Authenticated session or scoped credential required"},"403":{"description":"Current authority or explicit discovery membership required"},"404":{"description":"Record unavailable in the current authorized scope"},"409":{"description":"Stale edit, changed preparation or approval required"},"422":{"description":"Invalid input or incomplete preparation"},"503":{"description":"Current authorization unavailable"}},"x-required-scopes":["partners:write","deals:write"],"x-required-permissions":["tool.enterprise.partners.manage","tool.deals.deals.manage"],"x-required-capabilities":["motive_conviction"],"x-resource-checks":["enterprise-workspace","enterprise-operator","workspace-membership","client-engagement-ownership","same-origin-session","explicit-discovery-team","engagement-resource-scope","version-preconditions"],"x-required-permission-mode":"all","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"human","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/enterprise/partners/{partnerId}/engagements/{engagementId}/discovery/schedule/publications/{publicationId}/reviewers/{grantId}/revoke":{"post":{"operationId":"revokeDiscoveryScheduleGrant","summary":"revoke Discovery Schedule Grant","tags":["Client discovery"],"parameters":[{"name":"partnerId","in":"path","required":true,"schema":{"type":"string"}},{"name":"engagementId","in":"path","required":true,"schema":{"type":"string"}},{"name":"publicationId","in":"path","required":true,"schema":{"type":"string"}},{"name":"grantId","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","format":"uuid"}}],"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"expectedRevision":{"type":"integer","minimum":0},"requestId":{"type":"string","minLength":1,"maxLength":200},"confirmGrantId":{"type":"string","minLength":1,"maxLength":200}},"required":["expectedRevision","requestId","confirmGrantId"],"additionalProperties":false}}}},"responses":{"200":{"description":"Current authorized discovery data","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}},"additionalProperties":true}}}},"401":{"description":"Authenticated session or scoped credential required"},"403":{"description":"Current authority or explicit discovery membership required"},"404":{"description":"Record unavailable in the current authorized scope"},"409":{"description":"Stale edit, changed preparation or approval required"},"422":{"description":"Invalid input or incomplete preparation"},"503":{"description":"Current authorization unavailable"}},"x-required-scopes":["partners:write","deals:write"],"x-required-permissions":["tool.enterprise.partners.manage","tool.deals.deals.manage"],"x-required-capabilities":["motive_conviction"],"x-resource-checks":["enterprise-workspace","enterprise-operator","workspace-membership","client-engagement-ownership","same-origin-session","explicit-discovery-team","engagement-resource-scope","version-preconditions"],"x-required-permission-mode":"all","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"write","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/enterprise/partners/{partnerId}/engagements/{engagementId}/discovery/people":{"get":{"operationId":"getDiscoveryPeople","summary":"get Discovery People","tags":["Client discovery"],"parameters":[{"name":"partnerId","in":"path","required":true,"schema":{"type":"string"}},{"name":"engagementId","in":"path","required":true,"schema":{"type":"string"}},{"name":"q","in":"query","required":false,"schema":{"type":"string"}},{"name":"relationship","in":"query","required":false,"schema":{"type":"string","enum":["all","employees","affiliates"]}},{"name":"functionKey","in":"query","required":false,"schema":{"type":"string"}},{"name":"company","in":"query","required":false,"schema":{"type":"string"}},{"name":"region","in":"query","required":false,"schema":{"type":"string"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1}},{"name":"pageSize","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100}}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Current authorized discovery data","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"personId":{"type":"string","minLength":1,"maxLength":200},"sourceWorkspaceId":{"type":"string","minLength":1,"maxLength":200},"sourceSubOrganizationId":{"anyOf":[{"type":"string","minLength":1,"maxLength":200},{"type":"null"}]},"name":{"type":"string"},"email":{"type":["string","null"]},"relationships":{"type":"array","items":{"type":"string","enum":["employees","affiliates"]}},"affiliations":{"type":"array","items":{"type":"object","properties":{"directory":{"type":"string","enum":["employees","affiliates"]},"jobTitle":{"type":"string"},"companyName":{"type":"string"},"geography":{"type":"string"},"primaryFunction":{"type":["string","null"]},"additionalFunctions":{"type":"array","items":{"type":"string"}},"revision":{"type":"integer","exclusiveMinimum":0}},"required":["directory","jobTitle","companyName","geography","primaryFunction","additionalFunctions","revision"],"additionalProperties":false}},"functionReview":{"type":"array","items":{"type":"string","enum":["unassigned","unknown_function","conflicting_primary"]}},"profileHref":{"type":"string"}},"required":["personId","sourceWorkspaceId","name","email","relationships","affiliations","functionReview","profileHref"],"additionalProperties":false}},"total":{"type":"integer","minimum":0},"page":{"type":"integer","exclusiveMinimum":0},"pageSize":{"type":"integer","exclusiveMinimum":0},"sourceWorkspaceId":{"type":"string","minLength":1,"maxLength":200},"sourceSubOrganizationId":{"anyOf":[{"type":"string","minLength":1,"maxLength":200},{"type":"null"}]},"slug":{"type":"string"},"directoryHref":{"type":"string"},"directoryName":{"type":"string"},"functions":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"}},"required":["key","label"],"additionalProperties":false}},"sourceDigest":{"type":"string"},"summary":{"type":"object","properties":{"people":{"type":"integer","minimum":0},"employees":{"type":"integer","minimum":0},"affiliates":{"type":"integer","minimum":0},"requiresReview":{"type":"integer","minimum":0}},"required":["people","employees","affiliates","requiresReview"],"additionalProperties":false}},"required":["data","total","page","pageSize","sourceWorkspaceId","slug","directoryHref","directoryName","functions","sourceDigest","summary"],"additionalProperties":false}}}},"401":{"description":"Authenticated session or scoped credential required"},"403":{"description":"Current authority or explicit discovery membership required"},"404":{"description":"Record unavailable in the current authorized scope"},"409":{"description":"Stale edit, changed preparation or approval required"},"422":{"description":"Invalid input or incomplete preparation"},"503":{"description":"Current authorization unavailable"}},"x-required-scopes":["partners:read","deals:read"],"x-required-permissions":["tool.enterprise.partners.view","tool.deals.deals.view","tool.shared.people.view"],"x-required-capabilities":["motive_conviction"],"x-resource-checks":["enterprise-workspace","enterprise-operator","workspace-membership","client-engagement-ownership","explicit-discovery-team","engagement-resource-scope","version-preconditions","verified-client-workspace-link","current-directory-authority"],"x-required-permission-mode":"all","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"none","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/enterprise/partners/{partnerId}/engagements/{engagementId}/discovery/preparation-reviews":{"get":{"operationId":"getDiscoveryPreparationReviews","summary":"get Discovery Preparation Reviews","tags":["Client discovery"],"parameters":[{"name":"partnerId","in":"path","required":true,"schema":{"type":"string"}},{"name":"engagementId","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Current authorized discovery data","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"revision":{"type":"integer","exclusiveMinimum":0},"steps":{"type":"array","items":{"type":"object","properties":{"step":{"type":"string","enum":["objectives","people","questionnaire","plan","review"]},"sourceDigest":{"type":["string","null"]},"state":{"type":"string","enum":["not_reviewed","reviewed","unavailable"]},"detail":{"type":"string"},"reviewedAt":{"type":["string","null"]}},"required":["step","sourceDigest","state","detail","reviewedAt"],"additionalProperties":false}}},"required":["revision","steps"],"additionalProperties":false}},"required":["data"],"additionalProperties":false}}}},"401":{"description":"Authenticated session or scoped credential required"},"403":{"description":"Current authority or explicit discovery membership required"},"404":{"description":"Record unavailable in the current authorized scope"},"409":{"description":"Stale edit, changed preparation or approval required"},"422":{"description":"Invalid input or incomplete preparation"},"503":{"description":"Current authorization unavailable"}},"x-required-scopes":["partners:read","deals:read"],"x-required-permissions":["tool.enterprise.partners.view","tool.deals.deals.view"],"x-required-capabilities":["motive_conviction"],"x-resource-checks":["enterprise-workspace","enterprise-operator","workspace-membership","client-engagement-ownership","explicit-discovery-team","engagement-resource-scope","version-preconditions","current-source-survey-authority","current-client-workspace-link","overview-safe-projection"],"x-required-permission-mode":"all","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"none","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false},"post":{"operationId":"reviewDiscoveryPreparation","summary":"review Discovery Preparation","tags":["Client discovery"],"parameters":[{"name":"partnerId","in":"path","required":true,"schema":{"type":"string"}},{"name":"engagementId","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","format":"uuid"}}],"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"expectedRevision":{"type":"integer","exclusiveMinimum":0},"step":{"type":"string","enum":["objectives","people","questionnaire","plan","review"]},"sourceDigest":{"type":"string","minLength":1,"maxLength":200},"markReady":{"type":"boolean","default":false}},"required":["expectedRevision","step","sourceDigest"],"additionalProperties":false}}}},"responses":{"200":{"description":"Current authorized discovery data","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}},"additionalProperties":true}}}},"401":{"description":"Authenticated session or scoped credential required"},"403":{"description":"Current authority or explicit discovery membership required"},"404":{"description":"Record unavailable in the current authorized scope"},"409":{"description":"Stale edit, changed preparation or approval required"},"422":{"description":"Invalid input or incomplete preparation"},"503":{"description":"Current authorization unavailable"}},"x-required-scopes":["partners:write","deals:write"],"x-required-permissions":["tool.enterprise.partners.manage","tool.deals.deals.manage"],"x-required-capabilities":["motive_conviction"],"x-resource-checks":["enterprise-workspace","enterprise-operator","workspace-membership","client-engagement-ownership","same-origin-session","explicit-discovery-team","engagement-resource-scope","version-preconditions"],"x-required-permission-mode":"all","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"write","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/enterprise/partners/{partnerId}/engagements/{engagementId}/discovery/team/preparations":{"post":{"operationId":"prepareDiscoveryTeamChange","summary":"prepare Discovery Team Change","tags":["Client discovery"],"parameters":[{"name":"partnerId","in":"path","required":true,"schema":{"type":"string"}},{"name":"engagementId","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","format":"uuid"}}],"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"expectedRevision":{"type":"integer","exclusiveMinimum":0},"members":{"type":"array","items":{"type":"object","properties":{"userId":{"type":"string","minLength":1,"maxLength":200},"role":{"type":"string","enum":["manager","researcher"]}},"required":["userId","role"],"additionalProperties":false},"minItems":1,"maxItems":100}},"required":["expectedRevision","members"],"additionalProperties":false}}}},"responses":{"200":{"description":"Current authorized discovery data","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":200},"digest":{"type":"string"},"expiresAt":{"type":"string"},"status":{"type":"string","const":"prepared"},"canApprove":{"type":"boolean"},"snapshot":{"type":"object","properties":{"kind":{"type":"string","const":"discovery-team-change"},"workspaceId":{"type":"string","minLength":1,"maxLength":200},"partnerId":{"type":"string","minLength":1,"maxLength":200},"engagementId":{"type":"string","minLength":1,"maxLength":200},"expectedRevision":{"type":"integer","exclusiveMinimum":0},"currentMembers":{"type":"array","items":{"type":"object","properties":{"userId":{"type":"string","minLength":1,"maxLength":200},"role":{"type":"string","enum":["manager","researcher"]},"name":{"type":["string","null"]},"email":{"type":["string","null"]}},"required":["userId","role","name","email"],"additionalProperties":false}},"members":{"type":"array","items":{"type":"object","properties":{"userId":{"type":"string","minLength":1,"maxLength":200},"role":{"type":"string","enum":["manager","researcher"]},"name":{"type":["string","null"]},"email":{"type":["string","null"]}},"required":["userId","role","name","email"],"additionalProperties":false}},"accessSummary":{"type":"string"}},"required":["kind","workspaceId","partnerId","engagementId","expectedRevision","currentMembers","members","accessSummary"],"additionalProperties":false}},"required":["id","digest","expiresAt","status","canApprove","snapshot"],"additionalProperties":false}},"required":["data"],"additionalProperties":true}}}},"401":{"description":"Authenticated session or scoped credential required"},"403":{"description":"Current authority or explicit discovery membership required"},"404":{"description":"Record unavailable in the current authorized scope"},"409":{"description":"Stale edit, changed preparation or approval required"},"422":{"description":"Invalid input or incomplete preparation"},"503":{"description":"Current authorization unavailable"}},"x-required-scopes":["partners:write","deals:write"],"x-required-permissions":["tool.enterprise.partners.manage","tool.deals.deals.manage","tool.shared.tasks.manage"],"x-required-capabilities":["motive_conviction"],"x-resource-checks":["enterprise-workspace","enterprise-operator","workspace-membership","client-engagement-ownership","same-origin-session","explicit-discovery-team","engagement-resource-scope","version-preconditions","canonical-team-change-approval","current-staff-eligibility"],"x-required-permission-mode":"all","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"write","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/enterprise/partners/{partnerId}/engagements/{engagementId}/discovery/team/preparations/{preparationId}/decision":{"post":{"operationId":"decideDiscoveryTeamChange","summary":"decide Discovery Team Change","tags":["Client discovery"],"parameters":[{"name":"partnerId","in":"path","required":true,"schema":{"type":"string"}},{"name":"engagementId","in":"path","required":true,"schema":{"type":"string"}},{"name":"preparationId","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","format":"uuid"}}],"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"digest":{"type":"string","minLength":1,"maxLength":200},"decision":{"type":"string","enum":["approved","rejected","changes_requested"]}},"required":["digest","decision"],"additionalProperties":false}}}},"responses":{"200":{"description":"Current authorized discovery data","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}},"additionalProperties":true}}}},"401":{"description":"Authenticated session or scoped credential required"},"403":{"description":"Current authority or explicit discovery membership required"},"404":{"description":"Record unavailable in the current authorized scope"},"409":{"description":"Stale edit, changed preparation or approval required"},"422":{"description":"Invalid input or incomplete preparation"},"503":{"description":"Current authorization unavailable"}},"x-required-scopes":["partners:write","deals:write","tasks:approve"],"x-required-permissions":["tool.enterprise.partners.manage","tool.deals.deals.manage","tool.shared.tasks.manage","tool.shared.tasks.approve"],"x-required-capabilities":["motive_conviction"],"x-resource-checks":["enterprise-workspace","enterprise-operator","workspace-membership","client-engagement-ownership","same-origin-session","explicit-discovery-team","engagement-resource-scope","version-preconditions","canonical-team-change-approval","current-staff-eligibility","canonical-task-approval-permission"],"x-required-permission-mode":"all","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"write","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/enterprise/partners/{partnerId}/engagements/{engagementId}/discovery/overview":{"get":{"operationId":"getDiscoveryOverview","summary":"get Discovery Overview","tags":["Client discovery"],"parameters":[{"name":"partnerId","in":"path","required":true,"schema":{"type":"string"}},{"name":"engagementId","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Current authorized discovery data","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"engagementId":{"type":"string","minLength":1,"maxLength":200},"revision":{"anyOf":[{"type":"integer","exclusiveMinimum":0},{"type":"null"}]},"generatedAt":{"type":"string","format":"date-time"},"canManage":{"type":"boolean"},"preparation":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","enum":["objectives","people","surveys","sessions","review"]},"label":{"type":"string"},"state":{"type":"string","enum":["not_reviewed","reviewed","unavailable"]},"href":{"type":"string"},"detail":{"type":"string"}},"required":["key","label","state","href","detail"],"additionalProperties":false}},"roster":{"type":"object","properties":{"status":{"type":"string","enum":["available","unavailable"]},"directoryName":{"type":"string"},"sourceWorkspaceId":{"type":"string","minLength":1,"maxLength":200},"sourceDigest":{"type":"string"},"selectedPeople":{"anyOf":[{"type":"integer","minimum":0},{"type":"null"}]},"eligiblePeople":{"anyOf":[{"type":"integer","minimum":0},{"type":"null"}]},"requiresReview":{"anyOf":[{"type":"integer","minimum":0},{"type":"null"}]}},"required":["status","selectedPeople","eligiblePeople","requiresReview"],"additionalProperties":false},"surveys":{"type":"object","properties":{"status":{"type":"string","enum":["available","unavailable"]},"items":{"type":"array","items":{"type":"object","properties":{"surveyId":{"type":"string","minLength":1,"maxLength":200},"sourceWorkspaceId":{"type":"string","minLength":1,"maxLength":200},"title":{"type":"string"},"href":{"type":"string"},"kind":{"type":"string","enum":["historical","managed"]},"status":{"type":"string"},"canManage":{"type":"boolean"},"versions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":200},"versionNumber":{"type":"integer","exclusiveMinimum":0}},"required":["id","versionNumber"],"additionalProperties":false}},"live":{"type":"object","properties":{"counts":{"type":"object","properties":{"invited":{"type":"integer","minimum":0},"submitted":{"type":"integer","minimum":0},"inProgress":{"type":"integer","minimum":0},"notStarted":{"type":"integer","minimum":0},"deliveryProblems":{"type":"integer","minimum":0}},"required":["invited","submitted","inProgress","notStarted","deliveryProblems"],"additionalProperties":false},"rounds":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":200},"label":{"type":"string"},"formVersionId":{"type":"string","minLength":1,"maxLength":200},"versionNumber":{"anyOf":[{"type":"integer","exclusiveMinimum":0},{"type":"null"}]},"mode":{"type":"string","const":"live"},"deadline":{"type":["string","null"]},"status":{"type":"string"},"counts":{"type":"object","properties":{"invited":{"type":"integer","minimum":0},"submitted":{"type":"integer","minimum":0},"inProgress":{"type":"integer","minimum":0},"notStarted":{"type":"integer","minimum":0},"deliveryProblems":{"type":"integer","minimum":0}},"required":["invited","submitted","inProgress","notStarted","deliveryProblems"],"additionalProperties":false}},"required":["id","label","formVersionId","versionNumber","mode","deadline","status","counts"],"additionalProperties":false}}},"required":["counts","rounds"],"additionalProperties":false},"test":{"type":"object","properties":{"participants":{"type":"integer","minimum":0},"submitted":{"type":"integer","minimum":0}},"required":["participants","submitted"],"additionalProperties":false},"design":{"type":"object","properties":{"state":{"type":"string","enum":["not_required","draft","awaiting_review","changes_required","approved","unavailable"]},"requiredFounders":{"anyOf":[{"type":"integer","minimum":0},{"type":"null"}]},"approvedFounders":{"anyOf":[{"type":"integer","minimum":0},{"type":"null"}]},"operatorApproved":{"type":["boolean","null"]},"blockingFeedback":{"anyOf":[{"type":"integer","minimum":0},{"type":"null"}]}},"required":["state","requiredFounders","approvedFounders","operatorApproved","blockingFeedback"],"additionalProperties":false}},"required":["surveyId","sourceWorkspaceId","title","href","kind","status","canManage","versions","live","test","design"],"additionalProperties":false}}},"required":["status","items"],"additionalProperties":false},"upcoming":{"type":"object","properties":{"status":{"type":"string","enum":["available","unavailable"]},"hasPlan":{"type":["boolean","null"]},"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":200},"kind":{"type":"string","enum":["plan_item","session"]},"title":{"type":"string"},"at":{"type":"string"},"endAt":{"type":["string","null"]},"timezone":{"type":"string"},"timing":{"type":"string","enum":["planned","confirmed"]},"proposedTiming":{"anyOf":[{"type":"object","properties":{"startAt":{"type":["string","null"]},"endAt":{"type":["string","null"]},"timezone":{"type":"string"}},"required":["startAt","endAt","timezone"],"additionalProperties":false},{"type":"null"}]},"owner":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":false},{"type":"null"}]},"href":{"type":"string"},"status":{"type":"string"}},"required":["id","kind","title","at","endAt","timezone","timing","proposedTiming","owner","href","status"],"additionalProperties":false},"maxItems":3}},"required":["status","hasPlan","items"],"additionalProperties":false},"nextAction":{"anyOf":[{"type":"object","properties":{"label":{"type":"string"},"reason":{"type":"string"},"href":{"type":"string"},"priority":{"type":"string","enum":["attention","preparation"]}},"required":["label","reason","href","priority"],"additionalProperties":false},{"type":"null"}]}},"required":["engagementId","revision","generatedAt","canManage","preparation","roster","surveys","upcoming","nextAction"],"additionalProperties":false}},"required":["data"],"additionalProperties":true}}}},"401":{"description":"Authenticated session or scoped credential required"},"403":{"description":"Current authority or explicit discovery membership required"},"404":{"description":"Record unavailable in the current authorized scope"},"409":{"description":"Stale edit, changed preparation or approval required"},"422":{"description":"Invalid input or incomplete preparation"},"503":{"description":"Current authorization unavailable"}},"x-required-scopes":["partners:read","deals:read"],"x-required-permissions":["tool.enterprise.partners.view","tool.deals.deals.view"],"x-required-capabilities":["motive_conviction"],"x-resource-checks":["enterprise-workspace","enterprise-operator","workspace-membership","client-engagement-ownership","explicit-discovery-team","engagement-resource-scope","version-preconditions","current-source-survey-authority","current-client-workspace-link","overview-safe-projection"],"x-required-permission-mode":"all","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"none","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/enterprise/partners/{partnerId}/engagements/{engagementId}/discovery/planner":{"get":{"operationId":"getDiscoveryPlanner","summary":"get Discovery Planner","tags":["Client discovery"],"parameters":[{"name":"partnerId","in":"path","required":true,"schema":{"type":"string"}},{"name":"engagementId","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Current authorized discovery data","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}},"additionalProperties":true}}}},"401":{"description":"Authenticated session or scoped credential required"},"403":{"description":"Current authority or explicit discovery membership required"},"404":{"description":"Record unavailable in the current authorized scope"},"409":{"description":"Stale edit, changed preparation or approval required"},"422":{"description":"Invalid input or incomplete preparation"},"503":{"description":"Current authorization unavailable"}},"x-required-scopes":["partners:read","deals:read"],"x-required-permissions":["tool.enterprise.partners.view","tool.deals.deals.view"],"x-required-capabilities":["motive_conviction"],"x-resource-checks":["enterprise-workspace","enterprise-operator","workspace-membership","client-engagement-ownership","explicit-discovery-team","engagement-resource-scope","version-preconditions"],"x-required-permission-mode":"all","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"none","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false},"post":{"operationId":"createDiscoveryPlanner","summary":"create Discovery Planner","tags":["Client discovery"],"parameters":[{"name":"partnerId","in":"path","required":true,"schema":{"type":"string"}},{"name":"engagementId","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","format":"uuid"}}],"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string","format":"uuid"},"name":{"type":"string","minLength":1,"maxLength":80},"templateKey":{"type":"string","minLength":1,"maxLength":200},"startDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"feeReceivedOn":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]}},"required":["requestId","name","templateKey","startDate"],"additionalProperties":false}}}},"responses":{"200":{"description":"Current authorized discovery data","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}},"additionalProperties":true}}}},"401":{"description":"Authenticated session or scoped credential required"},"403":{"description":"Current authority or explicit discovery membership required"},"404":{"description":"Record unavailable in the current authorized scope"},"409":{"description":"Stale edit, changed preparation or approval required"},"422":{"description":"Invalid input or incomplete preparation"},"503":{"description":"Current authorization unavailable"}},"x-required-scopes":["partners:write","deals:write"],"x-required-permissions":["tool.enterprise.partners.manage","tool.deals.deals.manage"],"x-required-capabilities":["motive_conviction"],"x-resource-checks":["enterprise-workspace","enterprise-operator","workspace-membership","client-engagement-ownership","same-origin-session","explicit-discovery-team","engagement-resource-scope","version-preconditions"],"x-required-permission-mode":"all","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"write","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/enterprise/partners/{partnerId}/engagements/{engagementId}/discovery/planner/{scheduleId}/items/{itemId}":{"patch":{"operationId":"saveDiscoveryPlannerItem","summary":"save Discovery Planner Item","tags":["Client discovery"],"parameters":[{"name":"partnerId","in":"path","required":true,"schema":{"type":"string"}},{"name":"engagementId","in":"path","required":true,"schema":{"type":"string"}},{"name":"scheduleId","in":"path","required":true,"schema":{"type":"string"}},{"name":"itemId","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","format":"uuid"}}],"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"expectedRevision":{"type":"integer","exclusiveMinimum":0},"source":{"anyOf":[{"type":"object","properties":{"kind":{"type":"string","enum":["session","survey","task"]},"id":{"type":"string","minLength":1,"maxLength":200},"workspaceId":{"type":"string","minLength":1,"maxLength":200}},"required":["kind","id","workspaceId"],"additionalProperties":false},{"type":"null"}]}},"required":["expectedRevision","source"],"additionalProperties":false}}}},"responses":{"200":{"description":"Current authorized discovery data","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}},"additionalProperties":true}}}},"401":{"description":"Authenticated session or scoped credential required"},"403":{"description":"Current authority or explicit discovery membership required"},"404":{"description":"Record unavailable in the current authorized scope"},"409":{"description":"Stale edit, changed preparation or approval required"},"422":{"description":"Invalid input or incomplete preparation"},"503":{"description":"Current authorization unavailable"}},"x-required-scopes":["partners:write","deals:write"],"x-required-permissions":["tool.enterprise.partners.manage","tool.deals.deals.manage"],"x-required-capabilities":["motive_conviction"],"x-resource-checks":["enterprise-workspace","enterprise-operator","workspace-membership","client-engagement-ownership","same-origin-session","explicit-discovery-team","engagement-resource-scope","version-preconditions"],"x-required-permission-mode":"all","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"write","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/enterprise/partners/{partnerId}/engagements/{engagementId}/discovery/sessions/{sessionId}/follow-ups/{followUpId}/task":{"post":{"operationId":"createDiscoveryFollowUpTask","summary":"create Discovery Follow Up Task","tags":["Client discovery"],"parameters":[{"name":"partnerId","in":"path","required":true,"schema":{"type":"string"}},{"name":"engagementId","in":"path","required":true,"schema":{"type":"string"}},{"name":"sessionId","in":"path","required":true,"schema":{"type":"string"}},{"name":"followUpId","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","format":"uuid"}}],"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"expectedRevision":{"type":"integer","exclusiveMinimum":0}},"required":["expectedRevision"],"additionalProperties":false}}}},"responses":{"200":{"description":"Current authorized discovery data","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}},"additionalProperties":true}}}},"401":{"description":"Authenticated session or scoped credential required"},"403":{"description":"Current authority or explicit discovery membership required"},"404":{"description":"Record unavailable in the current authorized scope"},"409":{"description":"Stale edit, changed preparation or approval required"},"422":{"description":"Invalid input or incomplete preparation"},"503":{"description":"Current authorization unavailable"}},"x-required-scopes":["partners:write","deals:write","tasks:write"],"x-required-permissions":["tool.enterprise.partners.manage","tool.deals.deals.manage","tool.shared.tasks.manage"],"x-required-capabilities":["motive_conviction"],"x-resource-checks":["enterprise-workspace","enterprise-operator","workspace-membership","client-engagement-ownership","same-origin-session","explicit-discovery-team","engagement-resource-scope","version-preconditions"],"x-required-permission-mode":"all","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"write","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/enterprise/partners/{partnerId}/engagements/{engagementId}/discovery/sessions/{sessionId}/email-template":{"get":{"operationId":"getDiscoveryPreparationEmailTemplate","summary":"get Discovery Preparation Email Template","tags":["Client discovery"],"parameters":[{"name":"partnerId","in":"path","required":true,"schema":{"type":"string"}},{"name":"engagementId","in":"path","required":true,"schema":{"type":"string"}},{"name":"sessionId","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Current authorized discovery data","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}},"additionalProperties":true}}}},"401":{"description":"Authenticated session or scoped credential required"},"403":{"description":"Current authority or explicit discovery membership required"},"404":{"description":"Record unavailable in the current authorized scope"},"409":{"description":"Stale edit, changed preparation or approval required"},"422":{"description":"Invalid input or incomplete preparation"},"503":{"description":"Current authorization unavailable"}},"x-required-scopes":["partners:read","deals:read"],"x-required-permissions":["tool.enterprise.partners.view","tool.deals.deals.view"],"x-required-capabilities":["motive_conviction"],"x-resource-checks":["enterprise-workspace","enterprise-operator","workspace-membership","client-engagement-ownership","explicit-discovery-team","engagement-resource-scope","version-preconditions"],"x-required-permission-mode":"all","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"none","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/enterprise/partners/{partnerId}/engagements/{engagementId}/discovery/email-mailboxes":{"get":{"operationId":"listDiscoveryPreparationMailboxes","summary":"list Discovery Preparation Mailboxes","tags":["Client discovery"],"parameters":[{"name":"partnerId","in":"path","required":true,"schema":{"type":"string"}},{"name":"engagementId","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Current authorized discovery data","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}},"additionalProperties":true}}}},"401":{"description":"Authenticated session or scoped credential required"},"403":{"description":"Current authority or explicit discovery membership required"},"404":{"description":"Record unavailable in the current authorized scope"},"409":{"description":"Stale edit, changed preparation or approval required"},"422":{"description":"Invalid input or incomplete preparation"},"503":{"description":"Current authorization unavailable"}},"x-required-scopes":["partners:read","deals:read"],"x-required-permissions":["tool.enterprise.partners.view","tool.deals.deals.view"],"x-required-capabilities":["motive_conviction"],"x-resource-checks":["enterprise-workspace","enterprise-operator","workspace-membership","client-engagement-ownership","explicit-discovery-team","engagement-resource-scope","version-preconditions"],"x-required-permission-mode":"all","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"none","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/enterprise/partners/{partnerId}/engagements/{engagementId}/discovery/sessions/{sessionId}/email-drafts":{"post":{"operationId":"draftDiscoveryPreparationEmail","summary":"draft Discovery Preparation Email","tags":["Client discovery"],"parameters":[{"name":"partnerId","in":"path","required":true,"schema":{"type":"string"}},{"name":"engagementId","in":"path","required":true,"schema":{"type":"string"}},{"name":"sessionId","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","format":"uuid"}}],"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"baseTemplateVersionId":{"type":"string","minLength":1,"maxLength":200},"mailboxId":{"type":"string","minLength":1,"maxLength":200},"expectedRevision":{"type":"integer","exclusiveMinimum":0},"personIds":{"type":"array","items":{"type":"string","minLength":1,"maxLength":200},"minItems":1,"maxItems":100},"subject":{"type":"string","minLength":1,"maxLength":500},"body":{"type":"string","minLength":1,"maxLength":15000}},"required":["mailboxId","expectedRevision","personIds","subject","body"],"additionalProperties":false}}}},"responses":{"200":{"description":"Current authorized discovery data","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}},"additionalProperties":true}}}},"401":{"description":"Authenticated session or scoped credential required"},"403":{"description":"Current authority or explicit discovery membership required"},"404":{"description":"Record unavailable in the current authorized scope"},"409":{"description":"Stale edit, changed preparation or approval required"},"422":{"description":"Invalid input or incomplete preparation"},"503":{"description":"Current authorization unavailable"}},"x-required-scopes":["partners:write","deals:write"],"x-required-permissions":["tool.enterprise.partners.manage","tool.deals.deals.manage"],"x-required-capabilities":["motive_conviction"],"x-resource-checks":["enterprise-workspace","enterprise-operator","workspace-membership","client-engagement-ownership","same-origin-session","explicit-discovery-team","engagement-resource-scope","version-preconditions","explicit-workspace-sending-mailbox","shared-inbox-draft-only"],"x-required-permission-mode":"all","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"write","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/enterprise/partners/{partnerId}/engagements/{engagementId}/discovery/workflows":{"get":{"operationId":"listDiscoveryWorkflows","summary":"list Discovery Workflows","tags":["Client discovery"],"parameters":[{"name":"partnerId","in":"path","required":true,"schema":{"type":"string"}},{"name":"engagementId","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Current authorized discovery data","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}},"additionalProperties":true}}}},"401":{"description":"Authenticated session or scoped credential required"},"403":{"description":"Current authority or explicit discovery membership required"},"404":{"description":"Record unavailable in the current authorized scope"},"409":{"description":"Stale edit, changed preparation or approval required"},"422":{"description":"Invalid input or incomplete preparation"},"503":{"description":"Current authorization unavailable"}},"x-required-scopes":["partners:read","deals:read"],"x-required-permissions":["tool.enterprise.partners.view","tool.deals.deals.view"],"x-required-capabilities":["motive_conviction"],"x-resource-checks":["enterprise-workspace","enterprise-operator","workspace-membership","client-engagement-ownership","explicit-discovery-team","engagement-resource-scope","version-preconditions"],"x-required-permission-mode":"all","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"none","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/enterprise/partners/{partnerId}/engagements/{engagementId}/discovery/workflows/bindings":{"post":{"operationId":"bindDiscoveryWorkflow","summary":"bind Discovery Workflow","tags":["Client discovery"],"parameters":[{"name":"partnerId","in":"path","required":true,"schema":{"type":"string"}},{"name":"engagementId","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","format":"uuid"}}],"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"expectedRevision":{"type":"integer","exclusiveMinimum":0},"workflowId":{"type":"string","minLength":1,"maxLength":200},"enabled":{"type":"boolean"}},"required":["expectedRevision","workflowId","enabled"],"additionalProperties":false}}}},"responses":{"200":{"description":"Current authorized discovery data","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}},"additionalProperties":true}}}},"401":{"description":"Authenticated session or scoped credential required"},"403":{"description":"Current authority or explicit discovery membership required"},"404":{"description":"Record unavailable in the current authorized scope"},"409":{"description":"Stale edit, changed preparation or approval required"},"422":{"description":"Invalid input or incomplete preparation"},"503":{"description":"Current authorization unavailable"}},"x-required-scopes":["partners:write","deals:write"],"x-required-permissions":["tool.enterprise.partners.manage","tool.deals.deals.manage"],"x-required-capabilities":["motive_conviction"],"x-resource-checks":["enterprise-workspace","enterprise-operator","workspace-membership","client-engagement-ownership","same-origin-session","explicit-discovery-team","engagement-resource-scope","version-preconditions"],"x-required-permission-mode":"all","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"human","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/enterprise/partners/{partnerId}/engagements/{engagementId}/discovery/templates":{"post":{"operationId":"publishDiscoveryTemplate","summary":"publish Discovery Template","tags":["Client discovery"],"parameters":[{"name":"partnerId","in":"path","required":true,"schema":{"type":"string"}},{"name":"engagementId","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","format":"uuid"}}],"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":200},"label":{"type":"string","minLength":1,"maxLength":200},"expectedVersion":{"type":"integer","minimum":0},"config":{"type":"object","properties":{"objectives":{"type":"string","maxLength":15000},"boundaries":{"type":"string","maxLength":15000},"sponsorPersonId":{"anyOf":[{"type":"string","minLength":1,"maxLength":200},{"type":"null"}]},"sponsorSourceWorkspaceId":{"type":"string","minLength":1,"maxLength":200},"functions":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","minLength":1,"maxLength":200},"label":{"type":"string","minLength":1,"maxLength":150}},"required":["key","label"],"additionalProperties":false},"minItems":1,"maxItems":100},"privacyNotice":{"type":"string","minLength":1,"maxLength":15000},"supportContact":{"anyOf":[{"type":"string","format":"email"},{"type":"null"}]},"nativeCalendarId":{"anyOf":[{"type":"string","minLength":1,"maxLength":200},{"type":"null"}]},"calendar":{"anyOf":[{"type":"object","properties":{"connectionId":{"type":"string","minLength":1,"maxLength":200},"calendarId":{"type":"string","minLength":1,"maxLength":200},"timezone":{"type":"string","minLength":1,"maxLength":200}},"required":["connectionId","calendarId","timezone"],"additionalProperties":false},{"type":"null"}]},"preparationReviews":{"type":"object","additionalProperties":{"type":"object","properties":{"digest":{"type":"string","minLength":1},"sourceRevision":{"type":"integer","exclusiveMinimum":0},"reviewedAt":{"type":"string","format":"date-time"},"reviewedByUserId":{"type":"string","minLength":1,"maxLength":200}},"required":["digest","sourceRevision","reviewedAt","reviewedByUserId"],"additionalProperties":false},"propertyNames":{"enum":["objectives","people","questionnaire","plan","review"]}},"preparation":{"type":"object","properties":{"objectives":{"type":"boolean"},"roster":{"type":"boolean"},"questions":{"type":"boolean"},"sessions":{"type":"boolean"},"review":{"type":"boolean"}},"required":["objectives","roster","questions","sessions","review"],"additionalProperties":false}},"required":["objectives","boundaries","sponsorPersonId","functions","privacyNotice","supportContact","calendar","preparation"],"additionalProperties":false},"questions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":200},"topic":{"type":"string","enum":["current_work","pain_points","desired_improvements","preserve"]},"label":{"type":"string","minLength":1,"maxLength":2000},"helper":{"type":"string","maxLength":4000},"kind":{"type":"string","enum":["short_text","long_text","single_choice","multi_choice","numeric_rating","date","info"],"default":"long_text"},"required":{"type":"boolean","default":false},"functions":{"type":"array","items":{"type":"string","minLength":1,"maxLength":200},"maxItems":100,"default":[]},"options":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string","minLength":1,"maxLength":200},"label":{"type":"string","minLength":1,"maxLength":200}},"required":["value","label"],"additionalProperties":false},"maxItems":100},"min":{"type":"integer","minimum":0,"maximum":10},"max":{"type":"integer","minimum":0,"maximum":10}},"required":["id","topic","label"],"additionalProperties":false},"minItems":1,"maxItems":498},"confirmReusableContent":{"type":"boolean","const":true}},"required":["id","label","expectedVersion","config","questions","confirmReusableContent"],"additionalProperties":false}}}},"responses":{"200":{"description":"Current authorized discovery data","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":200},"version":{"type":"integer","exclusiveMinimum":0},"label":{"type":"string","minLength":1,"maxLength":200},"digest":{"type":"string","minLength":1,"maxLength":200},"config":{"type":"object","properties":{"objectives":{"type":"string","maxLength":15000},"boundaries":{"type":"string","maxLength":15000},"sponsorPersonId":{"anyOf":[{"type":"string","minLength":1,"maxLength":200},{"type":"null"}]},"sponsorSourceWorkspaceId":{"type":"string","minLength":1,"maxLength":200},"functions":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","minLength":1,"maxLength":200},"label":{"type":"string","minLength":1,"maxLength":150}},"required":["key","label"],"additionalProperties":false},"minItems":1,"maxItems":100},"privacyNotice":{"type":"string","minLength":1,"maxLength":15000},"supportContact":{"anyOf":[{"type":"string","format":"email"},{"type":"null"}]},"nativeCalendarId":{"anyOf":[{"type":"string","minLength":1,"maxLength":200},{"type":"null"}]},"calendar":{"anyOf":[{"type":"object","properties":{"connectionId":{"type":"string","minLength":1,"maxLength":200},"calendarId":{"type":"string","minLength":1,"maxLength":200},"timezone":{"type":"string","minLength":1,"maxLength":200}},"required":["connectionId","calendarId","timezone"],"additionalProperties":false},{"type":"null"}]},"preparationReviews":{"type":"object","additionalProperties":{"type":"object","properties":{"digest":{"type":"string","minLength":1},"sourceRevision":{"type":"integer","exclusiveMinimum":0},"reviewedAt":{"type":"string","format":"date-time"},"reviewedByUserId":{"type":"string","minLength":1,"maxLength":200}},"required":["digest","sourceRevision","reviewedAt","reviewedByUserId"],"additionalProperties":false},"propertyNames":{"enum":["objectives","people","questionnaire","plan","review"]}},"preparation":{"type":"object","properties":{"objectives":{"type":"boolean"},"roster":{"type":"boolean"},"questions":{"type":"boolean"},"sessions":{"type":"boolean"},"review":{"type":"boolean"}},"required":["objectives","roster","questions","sessions","review"],"additionalProperties":false}},"required":["objectives","boundaries","sponsorPersonId","functions","privacyNotice","supportContact","calendar","preparation"],"additionalProperties":false},"questions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":200},"topic":{"type":"string","enum":["current_work","pain_points","desired_improvements","preserve"]},"label":{"type":"string","minLength":1,"maxLength":2000},"helper":{"type":"string","maxLength":4000},"kind":{"type":"string","enum":["short_text","long_text","single_choice","multi_choice","numeric_rating","date","info"],"default":"long_text"},"required":{"type":"boolean","default":false},"functions":{"type":"array","items":{"type":"string","minLength":1,"maxLength":200},"maxItems":100,"default":[]},"options":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string","minLength":1,"maxLength":200},"label":{"type":"string","minLength":1,"maxLength":200}},"required":["value","label"],"additionalProperties":false},"maxItems":100},"min":{"type":"integer","minimum":0,"maximum":10},"max":{"type":"integer","minimum":0,"maximum":10}},"required":["id","topic","label"],"additionalProperties":false}}},"required":["id","version","label","digest","config","questions"],"additionalProperties":false}},"required":["data"],"additionalProperties":true}}}},"401":{"description":"Authenticated session or scoped credential required"},"403":{"description":"Current authority or explicit discovery membership required"},"404":{"description":"Record unavailable in the current authorized scope"},"409":{"description":"Stale edit, changed preparation or approval required"},"422":{"description":"Invalid input or incomplete preparation"},"503":{"description":"Current authorization unavailable"}},"x-required-scopes":["partners:write","deals:write"],"x-required-permissions":["tool.enterprise.partners.manage","tool.deals.deals.manage"],"x-required-capabilities":["motive_conviction"],"x-resource-checks":["enterprise-workspace","enterprise-operator","workspace-membership","client-engagement-ownership","same-origin-session","explicit-discovery-team","engagement-resource-scope","version-preconditions"],"x-required-permission-mode":"all","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"write","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/enterprise/partners/{partnerId}/engagements/{engagementId}/discovery/template-adoptions":{"post":{"operationId":"adoptDiscoveryTemplate","summary":"adopt Discovery Template","tags":["Client discovery"],"parameters":[{"name":"partnerId","in":"path","required":true,"schema":{"type":"string"}},{"name":"engagementId","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","format":"uuid"}}],"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"expectedRevision":{"type":"integer","exclusiveMinimum":0},"templateId":{"type":"string","minLength":1,"maxLength":200},"templateVersion":{"type":"integer","exclusiveMinimum":0},"templateDigest":{"type":"string","minLength":1,"maxLength":200},"useTemplateQuestions":{"type":"boolean"},"useTemplateConfig":{"type":"boolean"}},"required":["expectedRevision","templateId","templateVersion","templateDigest","useTemplateQuestions","useTemplateConfig"],"additionalProperties":false}}}},"responses":{"200":{"description":"Current authorized discovery data","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"engagementId":{"type":"string","minLength":1,"maxLength":200},"workspaceId":{"type":"string","minLength":1,"maxLength":200},"partnerId":{"type":"string","minLength":1,"maxLength":200},"revision":{"type":"integer","exclusiveMinimum":0},"status":{"type":"string","enum":["draft","ready"]},"templateId":{"type":"string","minLength":1,"maxLength":200},"templateVersion":{"type":"integer","exclusiveMinimum":0},"templateDigest":{"type":"string","minLength":1,"maxLength":200},"config":{"type":"object","properties":{"objectives":{"type":"string","maxLength":15000},"boundaries":{"type":"string","maxLength":15000},"sponsorPersonId":{"anyOf":[{"type":"string","minLength":1,"maxLength":200},{"type":"null"}]},"sponsorSourceWorkspaceId":{"type":"string","minLength":1,"maxLength":200},"functions":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","minLength":1,"maxLength":200},"label":{"type":"string","minLength":1,"maxLength":150}},"required":["key","label"],"additionalProperties":false},"minItems":1,"maxItems":100},"privacyNotice":{"type":"string","minLength":1,"maxLength":15000},"supportContact":{"anyOf":[{"type":"string","format":"email"},{"type":"null"}]},"nativeCalendarId":{"anyOf":[{"type":"string","minLength":1,"maxLength":200},{"type":"null"}]},"calendar":{"anyOf":[{"type":"object","properties":{"connectionId":{"type":"string","minLength":1,"maxLength":200},"calendarId":{"type":"string","minLength":1,"maxLength":200},"timezone":{"type":"string","minLength":1,"maxLength":200}},"required":["connectionId","calendarId","timezone"],"additionalProperties":false},{"type":"null"}]},"preparationReviews":{"type":"object","additionalProperties":{"type":"object","properties":{"digest":{"type":"string","minLength":1},"sourceRevision":{"type":"integer","exclusiveMinimum":0},"reviewedAt":{"type":"string","format":"date-time"},"reviewedByUserId":{"type":"string","minLength":1,"maxLength":200}},"required":["digest","sourceRevision","reviewedAt","reviewedByUserId"],"additionalProperties":false},"propertyNames":{"enum":["objectives","people","questionnaire","plan","review"]}},"preparation":{"type":"object","properties":{"objectives":{"type":"boolean"},"roster":{"type":"boolean"},"questions":{"type":"boolean"},"sessions":{"type":"boolean"},"review":{"type":"boolean"}},"required":["objectives","roster","questions","sessions","review"],"additionalProperties":false}},"required":["objectives","boundaries","sponsorPersonId","functions","privacyNotice","supportContact","calendar","preparation"],"additionalProperties":false},"questions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":200},"topic":{"type":"string","enum":["current_work","pain_points","desired_improvements","preserve"]},"label":{"type":"string","minLength":1,"maxLength":2000},"helper":{"type":"string","maxLength":4000},"kind":{"type":"string","enum":["short_text","long_text","single_choice","multi_choice","numeric_rating","date","info"],"default":"long_text"},"required":{"type":"boolean","default":false},"functions":{"type":"array","items":{"type":"string","minLength":1,"maxLength":200},"maxItems":100,"default":[]},"options":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string","minLength":1,"maxLength":200},"label":{"type":"string","minLength":1,"maxLength":200}},"required":["value","label"],"additionalProperties":false},"maxItems":100},"min":{"type":"integer","minimum":0,"maximum":10},"max":{"type":"integer","minimum":0,"maximum":10}},"required":["id","topic","label"],"additionalProperties":false}},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["engagementId","workspaceId","partnerId","revision","status","templateId","templateVersion","templateDigest","config","questions","createdAt","updatedAt"],"additionalProperties":true}},"required":["data"],"additionalProperties":true}}}},"401":{"description":"Authenticated session or scoped credential required"},"403":{"description":"Current authority or explicit discovery membership required"},"404":{"description":"Record unavailable in the current authorized scope"},"409":{"description":"Stale edit, changed preparation or approval required"},"422":{"description":"Invalid input or incomplete preparation"},"503":{"description":"Current authorization unavailable"}},"x-required-scopes":["partners:write","deals:write"],"x-required-permissions":["tool.enterprise.partners.manage","tool.deals.deals.manage"],"x-required-capabilities":["motive_conviction"],"x-resource-checks":["enterprise-workspace","enterprise-operator","workspace-membership","client-engagement-ownership","same-origin-session","explicit-discovery-team","engagement-resource-scope","version-preconditions"],"x-required-permission-mode":"all","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"write","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/enterprise/partners/{partnerId}/engagements/{engagementId}/discovery":{"get":{"operationId":"getClientDiscovery","summary":"get Client Discovery","tags":["Client discovery"],"parameters":[{"name":"partnerId","in":"path","required":true,"schema":{"type":"string"}},{"name":"engagementId","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Current authorized discovery data","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"anyOf":[{"type":"object","properties":{"engagementId":{"type":"string","minLength":1,"maxLength":200},"workspaceId":{"type":"string","minLength":1,"maxLength":200},"partnerId":{"type":"string","minLength":1,"maxLength":200},"revision":{"type":"integer","exclusiveMinimum":0},"status":{"type":"string","enum":["draft","ready"]},"templateId":{"type":"string","minLength":1,"maxLength":200},"templateVersion":{"type":"integer","exclusiveMinimum":0},"templateDigest":{"type":"string","minLength":1,"maxLength":200},"config":{"type":"object","properties":{"objectives":{"type":"string","maxLength":15000},"boundaries":{"type":"string","maxLength":15000},"sponsorPersonId":{"anyOf":[{"type":"string","minLength":1,"maxLength":200},{"type":"null"}]},"sponsorSourceWorkspaceId":{"type":"string","minLength":1,"maxLength":200},"functions":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","minLength":1,"maxLength":200},"label":{"type":"string","minLength":1,"maxLength":150}},"required":["key","label"],"additionalProperties":false},"minItems":1,"maxItems":100},"privacyNotice":{"type":"string","minLength":1,"maxLength":15000},"supportContact":{"anyOf":[{"type":"string","format":"email"},{"type":"null"}]},"nativeCalendarId":{"anyOf":[{"type":"string","minLength":1,"maxLength":200},{"type":"null"}]},"calendar":{"anyOf":[{"type":"object","properties":{"connectionId":{"type":"string","minLength":1,"maxLength":200},"calendarId":{"type":"string","minLength":1,"maxLength":200},"timezone":{"type":"string","minLength":1,"maxLength":200}},"required":["connectionId","calendarId","timezone"],"additionalProperties":false},{"type":"null"}]},"preparationReviews":{"type":"object","additionalProperties":{"type":"object","properties":{"digest":{"type":"string","minLength":1},"sourceRevision":{"type":"integer","exclusiveMinimum":0},"reviewedAt":{"type":"string","format":"date-time"},"reviewedByUserId":{"type":"string","minLength":1,"maxLength":200}},"required":["digest","sourceRevision","reviewedAt","reviewedByUserId"],"additionalProperties":false},"propertyNames":{"enum":["objectives","people","questionnaire","plan","review"]}},"preparation":{"type":"object","properties":{"objectives":{"type":"boolean"},"roster":{"type":"boolean"},"questions":{"type":"boolean"},"sessions":{"type":"boolean"},"review":{"type":"boolean"}},"required":["objectives","roster","questions","sessions","review"],"additionalProperties":false}},"required":["objectives","boundaries","sponsorPersonId","functions","privacyNotice","supportContact","calendar","preparation"],"additionalProperties":false},"questions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":200},"topic":{"type":"string","enum":["current_work","pain_points","desired_improvements","preserve"]},"label":{"type":"string","minLength":1,"maxLength":2000},"helper":{"type":"string","maxLength":4000},"kind":{"type":"string","enum":["short_text","long_text","single_choice","multi_choice","numeric_rating","date","info"],"default":"long_text"},"required":{"type":"boolean","default":false},"functions":{"type":"array","items":{"type":"string","minLength":1,"maxLength":200},"maxItems":100,"default":[]},"options":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string","minLength":1,"maxLength":200},"label":{"type":"string","minLength":1,"maxLength":200}},"required":["value","label"],"additionalProperties":false},"maxItems":100},"min":{"type":"integer","minimum":0,"maximum":10},"max":{"type":"integer","minimum":0,"maximum":10}},"required":["id","topic","label"],"additionalProperties":false}},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["engagementId","workspaceId","partnerId","revision","status","templateId","templateVersion","templateDigest","config","questions","createdAt","updatedAt"],"additionalProperties":true},{"type":"null"}]},"templates":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":200},"version":{"type":"integer","exclusiveMinimum":0},"label":{"type":"string","minLength":1,"maxLength":200},"digest":{"type":"string","minLength":1,"maxLength":200},"config":{"type":"object","properties":{"objectives":{"type":"string","maxLength":15000},"boundaries":{"type":"string","maxLength":15000},"sponsorPersonId":{"anyOf":[{"type":"string","minLength":1,"maxLength":200},{"type":"null"}]},"sponsorSourceWorkspaceId":{"type":"string","minLength":1,"maxLength":200},"functions":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","minLength":1,"maxLength":200},"label":{"type":"string","minLength":1,"maxLength":150}},"required":["key","label"],"additionalProperties":false},"minItems":1,"maxItems":100},"privacyNotice":{"type":"string","minLength":1,"maxLength":15000},"supportContact":{"anyOf":[{"type":"string","format":"email"},{"type":"null"}]},"nativeCalendarId":{"anyOf":[{"type":"string","minLength":1,"maxLength":200},{"type":"null"}]},"calendar":{"anyOf":[{"type":"object","properties":{"connectionId":{"type":"string","minLength":1,"maxLength":200},"calendarId":{"type":"string","minLength":1,"maxLength":200},"timezone":{"type":"string","minLength":1,"maxLength":200}},"required":["connectionId","calendarId","timezone"],"additionalProperties":false},{"type":"null"}]},"preparationReviews":{"type":"object","additionalProperties":{"type":"object","properties":{"digest":{"type":"string","minLength":1},"sourceRevision":{"type":"integer","exclusiveMinimum":0},"reviewedAt":{"type":"string","format":"date-time"},"reviewedByUserId":{"type":"string","minLength":1,"maxLength":200}},"required":["digest","sourceRevision","reviewedAt","reviewedByUserId"],"additionalProperties":false},"propertyNames":{"enum":["objectives","people","questionnaire","plan","review"]}},"preparation":{"type":"object","properties":{"objectives":{"type":"boolean"},"roster":{"type":"boolean"},"questions":{"type":"boolean"},"sessions":{"type":"boolean"},"review":{"type":"boolean"}},"required":["objectives","roster","questions","sessions","review"],"additionalProperties":false}},"required":["objectives","boundaries","sponsorPersonId","functions","privacyNotice","supportContact","calendar","preparation"],"additionalProperties":false},"questions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":200},"topic":{"type":"string","enum":["current_work","pain_points","desired_improvements","preserve"]},"label":{"type":"string","minLength":1,"maxLength":2000},"helper":{"type":"string","maxLength":4000},"kind":{"type":"string","enum":["short_text","long_text","single_choice","multi_choice","numeric_rating","date","info"],"default":"long_text"},"required":{"type":"boolean","default":false},"functions":{"type":"array","items":{"type":"string","minLength":1,"maxLength":200},"maxItems":100,"default":[]},"options":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string","minLength":1,"maxLength":200},"label":{"type":"string","minLength":1,"maxLength":200}},"required":["value","label"],"additionalProperties":false},"maxItems":100},"min":{"type":"integer","minimum":0,"maximum":10},"max":{"type":"integer","minimum":0,"maximum":10}},"required":["id","topic","label"],"additionalProperties":false}}},"required":["id","version","label","digest","config","questions"],"additionalProperties":false}},"team":{"type":"array","items":{"type":"object","properties":{"userId":{"type":"string","minLength":1,"maxLength":200},"role":{"type":"string"},"name":{"type":["string","null"]}},"required":["userId","role","name"],"additionalProperties":false}},"canManage":{"type":"boolean"}},"required":["data","templates"],"additionalProperties":false}}}},"401":{"description":"Authenticated session or scoped credential required"},"403":{"description":"Current authority or explicit discovery membership required"},"404":{"description":"Record unavailable in the current authorized scope"},"409":{"description":"Stale edit, changed preparation or approval required"},"422":{"description":"Invalid input or incomplete preparation"},"503":{"description":"Current authorization unavailable"}},"x-required-scopes":["partners:read","deals:read"],"x-required-permissions":["tool.enterprise.partners.view","tool.deals.deals.view"],"x-required-capabilities":["motive_conviction"],"x-resource-checks":["enterprise-workspace","enterprise-operator","workspace-membership","client-engagement-ownership","explicit-discovery-team","engagement-resource-scope","version-preconditions"],"x-required-permission-mode":"all","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"none","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false},"post":{"operationId":"createClientDiscovery","summary":"create Client Discovery","tags":["Client discovery"],"parameters":[{"name":"partnerId","in":"path","required":true,"schema":{"type":"string"}},{"name":"engagementId","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","format":"uuid"}}],"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"templateId":{"type":"string","minLength":1,"maxLength":200},"templateVersion":{"type":"integer","exclusiveMinimum":0}},"required":["templateId","templateVersion"],"additionalProperties":false}}}},"responses":{"200":{"description":"Current authorized discovery data","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"engagementId":{"type":"string","minLength":1,"maxLength":200},"workspaceId":{"type":"string","minLength":1,"maxLength":200},"partnerId":{"type":"string","minLength":1,"maxLength":200},"revision":{"type":"integer","exclusiveMinimum":0},"status":{"type":"string","enum":["draft","ready"]},"templateId":{"type":"string","minLength":1,"maxLength":200},"templateVersion":{"type":"integer","exclusiveMinimum":0},"templateDigest":{"type":"string","minLength":1,"maxLength":200},"config":{"type":"object","properties":{"objectives":{"type":"string","maxLength":15000},"boundaries":{"type":"string","maxLength":15000},"sponsorPersonId":{"anyOf":[{"type":"string","minLength":1,"maxLength":200},{"type":"null"}]},"sponsorSourceWorkspaceId":{"type":"string","minLength":1,"maxLength":200},"functions":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","minLength":1,"maxLength":200},"label":{"type":"string","minLength":1,"maxLength":150}},"required":["key","label"],"additionalProperties":false},"minItems":1,"maxItems":100},"privacyNotice":{"type":"string","minLength":1,"maxLength":15000},"supportContact":{"anyOf":[{"type":"string","format":"email"},{"type":"null"}]},"nativeCalendarId":{"anyOf":[{"type":"string","minLength":1,"maxLength":200},{"type":"null"}]},"calendar":{"anyOf":[{"type":"object","properties":{"connectionId":{"type":"string","minLength":1,"maxLength":200},"calendarId":{"type":"string","minLength":1,"maxLength":200},"timezone":{"type":"string","minLength":1,"maxLength":200}},"required":["connectionId","calendarId","timezone"],"additionalProperties":false},{"type":"null"}]},"preparationReviews":{"type":"object","additionalProperties":{"type":"object","properties":{"digest":{"type":"string","minLength":1},"sourceRevision":{"type":"integer","exclusiveMinimum":0},"reviewedAt":{"type":"string","format":"date-time"},"reviewedByUserId":{"type":"string","minLength":1,"maxLength":200}},"required":["digest","sourceRevision","reviewedAt","reviewedByUserId"],"additionalProperties":false},"propertyNames":{"enum":["objectives","people","questionnaire","plan","review"]}},"preparation":{"type":"object","properties":{"objectives":{"type":"boolean"},"roster":{"type":"boolean"},"questions":{"type":"boolean"},"sessions":{"type":"boolean"},"review":{"type":"boolean"}},"required":["objectives","roster","questions","sessions","review"],"additionalProperties":false}},"required":["objectives","boundaries","sponsorPersonId","functions","privacyNotice","supportContact","calendar","preparation"],"additionalProperties":false},"questions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":200},"topic":{"type":"string","enum":["current_work","pain_points","desired_improvements","preserve"]},"label":{"type":"string","minLength":1,"maxLength":2000},"helper":{"type":"string","maxLength":4000},"kind":{"type":"string","enum":["short_text","long_text","single_choice","multi_choice","numeric_rating","date","info"],"default":"long_text"},"required":{"type":"boolean","default":false},"functions":{"type":"array","items":{"type":"string","minLength":1,"maxLength":200},"maxItems":100,"default":[]},"options":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string","minLength":1,"maxLength":200},"label":{"type":"string","minLength":1,"maxLength":200}},"required":["value","label"],"additionalProperties":false},"maxItems":100},"min":{"type":"integer","minimum":0,"maximum":10},"max":{"type":"integer","minimum":0,"maximum":10}},"required":["id","topic","label"],"additionalProperties":false}},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["engagementId","workspaceId","partnerId","revision","status","templateId","templateVersion","templateDigest","config","questions","createdAt","updatedAt"],"additionalProperties":true}},"required":["data"],"additionalProperties":true}}}},"401":{"description":"Authenticated session or scoped credential required"},"403":{"description":"Current authority or explicit discovery membership required"},"404":{"description":"Record unavailable in the current authorized scope"},"409":{"description":"Stale edit, changed preparation or approval required"},"422":{"description":"Invalid input or incomplete preparation"},"503":{"description":"Current authorization unavailable"}},"x-required-scopes":["partners:write","deals:write"],"x-required-permissions":["tool.enterprise.partners.manage","tool.deals.deals.manage"],"x-required-capabilities":["motive_conviction"],"x-resource-checks":["enterprise-workspace","enterprise-operator","workspace-membership","client-engagement-ownership","same-origin-session","explicit-discovery-team","engagement-resource-scope","version-preconditions"],"x-required-permission-mode":"all","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"write","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false},"patch":{"operationId":"saveClientDiscovery","summary":"save Client Discovery","tags":["Client discovery"],"parameters":[{"name":"partnerId","in":"path","required":true,"schema":{"type":"string"}},{"name":"engagementId","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","format":"uuid"}}],"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"expectedRevision":{"type":"integer","exclusiveMinimum":0},"config":{"type":"object","properties":{"objectives":{"type":"string","maxLength":15000},"boundaries":{"type":"string","maxLength":15000},"sponsorPersonId":{"anyOf":[{"type":"string","minLength":1,"maxLength":200},{"type":"null"}]},"sponsorSourceWorkspaceId":{"type":"string","minLength":1,"maxLength":200},"functions":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","minLength":1,"maxLength":200},"label":{"type":"string","minLength":1,"maxLength":150}},"required":["key","label"],"additionalProperties":false},"minItems":1,"maxItems":100},"privacyNotice":{"type":"string","minLength":1,"maxLength":15000},"supportContact":{"anyOf":[{"type":"string","format":"email"},{"type":"null"}]},"nativeCalendarId":{"anyOf":[{"type":"string","minLength":1,"maxLength":200},{"type":"null"}]},"calendar":{"anyOf":[{"type":"object","properties":{"connectionId":{"type":"string","minLength":1,"maxLength":200},"calendarId":{"type":"string","minLength":1,"maxLength":200},"timezone":{"type":"string","minLength":1,"maxLength":200}},"required":["connectionId","calendarId","timezone"],"additionalProperties":false},{"type":"null"}]},"preparationReviews":{"type":"object","additionalProperties":{"type":"object","properties":{"digest":{"type":"string","minLength":1},"sourceRevision":{"type":"integer","exclusiveMinimum":0},"reviewedAt":{"type":"string","format":"date-time"},"reviewedByUserId":{"type":"string","minLength":1,"maxLength":200}},"required":["digest","sourceRevision","reviewedAt","reviewedByUserId"],"additionalProperties":false},"propertyNames":{"enum":["objectives","people","questionnaire","plan","review"]}},"preparation":{"type":"object","properties":{"objectives":{"type":"boolean"},"roster":{"type":"boolean"},"questions":{"type":"boolean"},"sessions":{"type":"boolean"},"review":{"type":"boolean"}},"required":["objectives","roster","questions","sessions","review"],"additionalProperties":false}},"required":["objectives","boundaries","sponsorPersonId","functions","privacyNotice","supportContact","calendar","preparation"],"additionalProperties":false},"ready":{"type":"boolean","default":false}},"required":["expectedRevision","config"],"additionalProperties":false}}}},"responses":{"200":{"description":"Current authorized discovery data","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"engagementId":{"type":"string","minLength":1,"maxLength":200},"workspaceId":{"type":"string","minLength":1,"maxLength":200},"partnerId":{"type":"string","minLength":1,"maxLength":200},"revision":{"type":"integer","exclusiveMinimum":0},"status":{"type":"string","enum":["draft","ready"]},"templateId":{"type":"string","minLength":1,"maxLength":200},"templateVersion":{"type":"integer","exclusiveMinimum":0},"templateDigest":{"type":"string","minLength":1,"maxLength":200},"config":{"type":"object","properties":{"objectives":{"type":"string","maxLength":15000},"boundaries":{"type":"string","maxLength":15000},"sponsorPersonId":{"anyOf":[{"type":"string","minLength":1,"maxLength":200},{"type":"null"}]},"sponsorSourceWorkspaceId":{"type":"string","minLength":1,"maxLength":200},"functions":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","minLength":1,"maxLength":200},"label":{"type":"string","minLength":1,"maxLength":150}},"required":["key","label"],"additionalProperties":false},"minItems":1,"maxItems":100},"privacyNotice":{"type":"string","minLength":1,"maxLength":15000},"supportContact":{"anyOf":[{"type":"string","format":"email"},{"type":"null"}]},"nativeCalendarId":{"anyOf":[{"type":"string","minLength":1,"maxLength":200},{"type":"null"}]},"calendar":{"anyOf":[{"type":"object","properties":{"connectionId":{"type":"string","minLength":1,"maxLength":200},"calendarId":{"type":"string","minLength":1,"maxLength":200},"timezone":{"type":"string","minLength":1,"maxLength":200}},"required":["connectionId","calendarId","timezone"],"additionalProperties":false},{"type":"null"}]},"preparationReviews":{"type":"object","additionalProperties":{"type":"object","properties":{"digest":{"type":"string","minLength":1},"sourceRevision":{"type":"integer","exclusiveMinimum":0},"reviewedAt":{"type":"string","format":"date-time"},"reviewedByUserId":{"type":"string","minLength":1,"maxLength":200}},"required":["digest","sourceRevision","reviewedAt","reviewedByUserId"],"additionalProperties":false},"propertyNames":{"enum":["objectives","people","questionnaire","plan","review"]}},"preparation":{"type":"object","properties":{"objectives":{"type":"boolean"},"roster":{"type":"boolean"},"questions":{"type":"boolean"},"sessions":{"type":"boolean"},"review":{"type":"boolean"}},"required":["objectives","roster","questions","sessions","review"],"additionalProperties":false}},"required":["objectives","boundaries","sponsorPersonId","functions","privacyNotice","supportContact","calendar","preparation"],"additionalProperties":false},"questions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":200},"topic":{"type":"string","enum":["current_work","pain_points","desired_improvements","preserve"]},"label":{"type":"string","minLength":1,"maxLength":2000},"helper":{"type":"string","maxLength":4000},"kind":{"type":"string","enum":["short_text","long_text","single_choice","multi_choice","numeric_rating","date","info"],"default":"long_text"},"required":{"type":"boolean","default":false},"functions":{"type":"array","items":{"type":"string","minLength":1,"maxLength":200},"maxItems":100,"default":[]},"options":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string","minLength":1,"maxLength":200},"label":{"type":"string","minLength":1,"maxLength":200}},"required":["value","label"],"additionalProperties":false},"maxItems":100},"min":{"type":"integer","minimum":0,"maximum":10},"max":{"type":"integer","minimum":0,"maximum":10}},"required":["id","topic","label"],"additionalProperties":false}},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["engagementId","workspaceId","partnerId","revision","status","templateId","templateVersion","templateDigest","config","questions","createdAt","updatedAt"],"additionalProperties":true}},"required":["data"],"additionalProperties":true}}}},"401":{"description":"Authenticated session or scoped credential required"},"403":{"description":"Current authority or explicit discovery membership required"},"404":{"description":"Record unavailable in the current authorized scope"},"409":{"description":"Stale edit, changed preparation or approval required"},"422":{"description":"Invalid input or incomplete preparation"},"503":{"description":"Current authorization unavailable"}},"x-required-scopes":["partners:write","deals:write"],"x-required-permissions":["tool.enterprise.partners.manage","tool.deals.deals.manage"],"x-required-capabilities":["motive_conviction"],"x-resource-checks":["enterprise-workspace","enterprise-operator","workspace-membership","client-engagement-ownership","same-origin-session","explicit-discovery-team","engagement-resource-scope","version-preconditions"],"x-required-permission-mode":"all","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"write","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/enterprise/partners/{partnerId}/engagements/{engagementId}/discovery/team-options":{"get":{"operationId":"getDiscoveryTeamOptions","summary":"get Discovery Team Options","tags":["Client discovery"],"parameters":[{"name":"partnerId","in":"path","required":true,"schema":{"type":"string"}},{"name":"engagementId","in":"path","required":true,"schema":{"type":"string"}},{"name":"q","in":"query","required":false,"schema":{"type":"string","minLength":2,"maxLength":100},"description":"Search eligible existing colleagues. Empty searches return no candidates."},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":20}}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Current authorized discovery data","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}},"additionalProperties":true}}}},"401":{"description":"Authenticated session or scoped credential required"},"403":{"description":"Current authority or explicit discovery membership required"},"404":{"description":"Record unavailable in the current authorized scope"},"409":{"description":"Stale edit, changed preparation or approval required"},"422":{"description":"Invalid input or incomplete preparation"},"503":{"description":"Current authorization unavailable"}},"x-required-scopes":["partners:read","deals:read"],"x-required-permissions":["tool.enterprise.partners.view","tool.deals.deals.view"],"x-required-capabilities":["motive_conviction"],"x-resource-checks":["enterprise-workspace","enterprise-operator","workspace-membership","client-engagement-ownership","explicit-discovery-team","engagement-resource-scope","version-preconditions"],"x-required-permission-mode":"all","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"none","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/enterprise/partners/{partnerId}/engagements/{engagementId}/discovery/team":{"patch":{"operationId":"saveDiscoveryTeam","summary":"save Discovery Team","tags":["Client discovery"],"parameters":[{"name":"partnerId","in":"path","required":true,"schema":{"type":"string"}},{"name":"engagementId","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","format":"uuid"}}],"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"expectedRevision":{"type":"integer","exclusiveMinimum":0},"preparationId":{"type":"string","minLength":1,"maxLength":200},"digest":{"type":"string","minLength":1,"maxLength":200},"members":{"type":"array","items":{"type":"object","properties":{"userId":{"type":"string","minLength":1,"maxLength":200},"role":{"type":"string","enum":["manager","researcher"]}},"required":["userId","role"],"additionalProperties":false},"minItems":1,"maxItems":100}},"required":["expectedRevision","preparationId","digest","members"],"additionalProperties":false}}}},"responses":{"200":{"description":"Current authorized discovery data","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}},"additionalProperties":true}}}},"401":{"description":"Authenticated session or scoped credential required"},"403":{"description":"Current authority or explicit discovery membership required"},"404":{"description":"Record unavailable in the current authorized scope"},"409":{"description":"Stale edit, changed preparation or approval required"},"422":{"description":"Invalid input or incomplete preparation"},"503":{"description":"Current authorization unavailable"}},"x-required-scopes":["partners:write","deals:write"],"x-required-permissions":["tool.enterprise.partners.manage","tool.deals.deals.manage","tool.shared.tasks.manage","tool.shared.tasks.approve"],"x-required-capabilities":["motive_conviction"],"x-resource-checks":["enterprise-workspace","enterprise-operator","workspace-membership","client-engagement-ownership","same-origin-session","explicit-discovery-team","engagement-resource-scope","version-preconditions","canonical-team-change-approval","current-staff-eligibility"],"x-required-permission-mode":"all","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"write","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/enterprise/partners/{partnerId}/engagements/{engagementId}/discovery/roster":{"get":{"operationId":"getDiscoveryRoster","summary":"get Discovery Roster","tags":["Client discovery"],"parameters":[{"name":"partnerId","in":"path","required":true,"schema":{"type":"string"}},{"name":"engagementId","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Current authorized discovery data","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"sourceWorkspaceId":{"anyOf":[{"type":"string","minLength":1,"maxLength":200},{"type":"null"}]},"sourceRevision":{"type":["number","null"]},"sourceDirectory":{"anyOf":[{"type":"string","enum":["employees","affiliates"]},{"type":"null"}]},"companyName":{"type":"string"},"geography":{"type":"string"},"directoryChanged":{"type":"boolean"},"eligible":{"type":"boolean"},"personId":{"type":"string","minLength":1,"maxLength":200},"name":{"type":"string"},"email":{"type":["string","null"]},"jobTitle":{"type":"string"},"primaryFunction":{"type":"string","minLength":1,"maxLength":200},"additionalFunctions":{"type":"array","items":{"type":"string","minLength":1,"maxLength":200}},"personStatus":{"type":"string"}},"required":["personId","name","email","jobTitle","primaryFunction","additionalFunctions","personStatus"],"additionalProperties":false}}},"required":["data"],"additionalProperties":true}}}},"401":{"description":"Authenticated session or scoped credential required"},"403":{"description":"Current authority or explicit discovery membership required"},"404":{"description":"Record unavailable in the current authorized scope"},"409":{"description":"Stale edit, changed preparation or approval required"},"422":{"description":"Invalid input or incomplete preparation"},"503":{"description":"Current authorization unavailable"}},"x-required-scopes":["partners:read","deals:read"],"x-required-permissions":["tool.enterprise.partners.view","tool.deals.deals.view","tool.shared.people.view"],"x-required-capabilities":["motive_conviction"],"x-resource-checks":["enterprise-workspace","enterprise-operator","workspace-membership","client-engagement-ownership","explicit-discovery-team","engagement-resource-scope","version-preconditions"],"x-required-permission-mode":"all","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"none","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/enterprise/partners/{partnerId}/engagements/{engagementId}/discovery/roster/previews":{"post":{"operationId":"previewDiscoveryRosterImport","summary":"preview Discovery Roster Import","tags":["Client discovery"],"parameters":[{"name":"partnerId","in":"path","required":true,"schema":{"type":"string"}},{"name":"engagementId","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","format":"uuid"}}],"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"expectedRevision":{"type":"integer","exclusiveMinimum":0},"rows":{"type":"array","items":{"type":"object","properties":{"personId":{"type":"string","minLength":1,"maxLength":200},"name":{"type":"string","minLength":1,"maxLength":200},"email":{"type":"string","format":"email"},"jobTitle":{"type":"string","maxLength":200,"default":""},"primaryFunction":{"type":"string","minLength":1,"maxLength":200},"additionalFunctions":{"type":"array","items":{"type":"string","minLength":1,"maxLength":200},"maxItems":100,"default":[]},"existingPersonId":{"type":"string","minLength":1,"maxLength":200}},"required":["name","email","primaryFunction"],"additionalProperties":false},"minItems":1,"maxItems":1000},"previewDigest":{"type":"string"}},"required":["expectedRevision","rows"],"additionalProperties":false}}}},"responses":{"200":{"description":"Current authorized discovery data","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}},"additionalProperties":true}}}},"401":{"description":"Authenticated session or scoped credential required"},"403":{"description":"Current authority or explicit discovery membership required"},"404":{"description":"Record unavailable in the current authorized scope"},"409":{"description":"Stale edit, changed preparation or approval required"},"422":{"description":"Invalid input or incomplete preparation"},"503":{"description":"Current authorization unavailable"}},"x-required-scopes":["partners:write","deals:write"],"x-required-permissions":["tool.enterprise.partners.manage","tool.deals.deals.manage","tool.shared.people.manage"],"x-required-capabilities":["motive_conviction"],"x-resource-checks":["enterprise-workspace","enterprise-operator","workspace-membership","client-engagement-ownership","same-origin-session","explicit-discovery-team","engagement-resource-scope","version-preconditions"],"x-required-permission-mode":"all","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"write","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/enterprise/partners/{partnerId}/engagements/{engagementId}/discovery/roster/imports":{"post":{"operationId":"commitDiscoveryRosterImport","summary":"commit Discovery Roster Import","tags":["Client discovery"],"parameters":[{"name":"partnerId","in":"path","required":true,"schema":{"type":"string"}},{"name":"engagementId","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","format":"uuid"}}],"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"expectedRevision":{"type":"integer","exclusiveMinimum":0},"rows":{"type":"array","items":{"type":"object","properties":{"personId":{"type":"string","minLength":1,"maxLength":200},"name":{"type":"string","minLength":1,"maxLength":200},"email":{"type":"string","format":"email"},"jobTitle":{"type":"string","maxLength":200,"default":""},"primaryFunction":{"type":"string","minLength":1,"maxLength":200},"additionalFunctions":{"type":"array","items":{"type":"string","minLength":1,"maxLength":200},"maxItems":100,"default":[]},"existingPersonId":{"type":"string","minLength":1,"maxLength":200}},"required":["name","email","primaryFunction"],"additionalProperties":false},"minItems":1,"maxItems":1000},"previewDigest":{"type":"string"}},"required":["expectedRevision","rows"],"additionalProperties":false}}}},"responses":{"200":{"description":"Current authorized discovery data","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"sourceWorkspaceId":{"anyOf":[{"type":"string","minLength":1,"maxLength":200},{"type":"null"}]},"sourceRevision":{"type":["number","null"]},"sourceDirectory":{"anyOf":[{"type":"string","enum":["employees","affiliates"]},{"type":"null"}]},"companyName":{"type":"string"},"geography":{"type":"string"},"directoryChanged":{"type":"boolean"},"eligible":{"type":"boolean"},"personId":{"type":"string","minLength":1,"maxLength":200},"name":{"type":"string"},"email":{"type":["string","null"]},"jobTitle":{"type":"string"},"primaryFunction":{"type":"string","minLength":1,"maxLength":200},"additionalFunctions":{"type":"array","items":{"type":"string","minLength":1,"maxLength":200}},"personStatus":{"type":"string"}},"required":["personId","name","email","jobTitle","primaryFunction","additionalFunctions","personStatus"],"additionalProperties":false}}},"required":["data"],"additionalProperties":true}}}},"401":{"description":"Authenticated session or scoped credential required"},"403":{"description":"Current authority or explicit discovery membership required"},"404":{"description":"Record unavailable in the current authorized scope"},"409":{"description":"Stale edit, changed preparation or approval required"},"422":{"description":"Invalid input or incomplete preparation"},"503":{"description":"Current authorization unavailable"}},"x-required-scopes":["partners:write","deals:write"],"x-required-permissions":["tool.enterprise.partners.manage","tool.deals.deals.manage","tool.shared.people.manage"],"x-required-capabilities":["motive_conviction"],"x-resource-checks":["enterprise-workspace","enterprise-operator","workspace-membership","client-engagement-ownership","same-origin-session","explicit-discovery-team","engagement-resource-scope","version-preconditions"],"x-required-permission-mode":"all","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"write","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/enterprise/partners/{partnerId}/engagements/{engagementId}/discovery/questions":{"patch":{"operationId":"saveDiscoveryQuestions","summary":"save Discovery Questions","tags":["Client discovery"],"parameters":[{"name":"partnerId","in":"path","required":true,"schema":{"type":"string"}},{"name":"engagementId","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","format":"uuid"}}],"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"expectedRevision":{"type":"integer","exclusiveMinimum":0},"questions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":200},"topic":{"type":"string","enum":["current_work","pain_points","desired_improvements","preserve"]},"label":{"type":"string","minLength":1,"maxLength":2000},"helper":{"type":"string","maxLength":4000},"kind":{"type":"string","enum":["short_text","long_text","single_choice","multi_choice","numeric_rating","date","info"],"default":"long_text"},"required":{"type":"boolean","default":false},"functions":{"type":"array","items":{"type":"string","minLength":1,"maxLength":200},"maxItems":100,"default":[]},"options":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string","minLength":1,"maxLength":200},"label":{"type":"string","minLength":1,"maxLength":200}},"required":["value","label"],"additionalProperties":false},"maxItems":100},"min":{"type":"integer","minimum":0,"maximum":10},"max":{"type":"integer","minimum":0,"maximum":10}},"required":["id","topic","label"],"additionalProperties":false},"minItems":1,"maxItems":498}},"required":["expectedRevision","questions"],"additionalProperties":false}}}},"responses":{"200":{"description":"Current authorized discovery data","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"engagementId":{"type":"string","minLength":1,"maxLength":200},"workspaceId":{"type":"string","minLength":1,"maxLength":200},"partnerId":{"type":"string","minLength":1,"maxLength":200},"revision":{"type":"integer","exclusiveMinimum":0},"status":{"type":"string","enum":["draft","ready"]},"templateId":{"type":"string","minLength":1,"maxLength":200},"templateVersion":{"type":"integer","exclusiveMinimum":0},"templateDigest":{"type":"string","minLength":1,"maxLength":200},"config":{"type":"object","properties":{"objectives":{"type":"string","maxLength":15000},"boundaries":{"type":"string","maxLength":15000},"sponsorPersonId":{"anyOf":[{"type":"string","minLength":1,"maxLength":200},{"type":"null"}]},"sponsorSourceWorkspaceId":{"type":"string","minLength":1,"maxLength":200},"functions":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","minLength":1,"maxLength":200},"label":{"type":"string","minLength":1,"maxLength":150}},"required":["key","label"],"additionalProperties":false},"minItems":1,"maxItems":100},"privacyNotice":{"type":"string","minLength":1,"maxLength":15000},"supportContact":{"anyOf":[{"type":"string","format":"email"},{"type":"null"}]},"nativeCalendarId":{"anyOf":[{"type":"string","minLength":1,"maxLength":200},{"type":"null"}]},"calendar":{"anyOf":[{"type":"object","properties":{"connectionId":{"type":"string","minLength":1,"maxLength":200},"calendarId":{"type":"string","minLength":1,"maxLength":200},"timezone":{"type":"string","minLength":1,"maxLength":200}},"required":["connectionId","calendarId","timezone"],"additionalProperties":false},{"type":"null"}]},"preparationReviews":{"type":"object","additionalProperties":{"type":"object","properties":{"digest":{"type":"string","minLength":1},"sourceRevision":{"type":"integer","exclusiveMinimum":0},"reviewedAt":{"type":"string","format":"date-time"},"reviewedByUserId":{"type":"string","minLength":1,"maxLength":200}},"required":["digest","sourceRevision","reviewedAt","reviewedByUserId"],"additionalProperties":false},"propertyNames":{"enum":["objectives","people","questionnaire","plan","review"]}},"preparation":{"type":"object","properties":{"objectives":{"type":"boolean"},"roster":{"type":"boolean"},"questions":{"type":"boolean"},"sessions":{"type":"boolean"},"review":{"type":"boolean"}},"required":["objectives","roster","questions","sessions","review"],"additionalProperties":false}},"required":["objectives","boundaries","sponsorPersonId","functions","privacyNotice","supportContact","calendar","preparation"],"additionalProperties":false},"questions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":200},"topic":{"type":"string","enum":["current_work","pain_points","desired_improvements","preserve"]},"label":{"type":"string","minLength":1,"maxLength":2000},"helper":{"type":"string","maxLength":4000},"kind":{"type":"string","enum":["short_text","long_text","single_choice","multi_choice","numeric_rating","date","info"],"default":"long_text"},"required":{"type":"boolean","default":false},"functions":{"type":"array","items":{"type":"string","minLength":1,"maxLength":200},"maxItems":100,"default":[]},"options":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string","minLength":1,"maxLength":200},"label":{"type":"string","minLength":1,"maxLength":200}},"required":["value","label"],"additionalProperties":false},"maxItems":100},"min":{"type":"integer","minimum":0,"maximum":10},"max":{"type":"integer","minimum":0,"maximum":10}},"required":["id","topic","label"],"additionalProperties":false}},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["engagementId","workspaceId","partnerId","revision","status","templateId","templateVersion","templateDigest","config","questions","createdAt","updatedAt"],"additionalProperties":true}},"required":["data"],"additionalProperties":true}}}},"401":{"description":"Authenticated session or scoped credential required"},"403":{"description":"Current authority or explicit discovery membership required"},"404":{"description":"Record unavailable in the current authorized scope"},"409":{"description":"Stale edit, changed preparation or approval required"},"422":{"description":"Invalid input or incomplete preparation"},"503":{"description":"Current authorization unavailable"}},"x-required-scopes":["partners:write","deals:write"],"x-required-permissions":["tool.enterprise.partners.manage","tool.deals.deals.manage"],"x-required-capabilities":["motive_conviction"],"x-resource-checks":["enterprise-workspace","enterprise-operator","workspace-membership","client-engagement-ownership","same-origin-session","explicit-discovery-team","engagement-resource-scope","version-preconditions"],"x-required-permission-mode":"all","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"write","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/enterprise/partners/{partnerId}/engagements/{engagementId}/discovery/surveys":{"post":{"operationId":"createDiscoverySurvey","summary":"create Discovery Survey","tags":["Client discovery"],"parameters":[{"name":"partnerId","in":"path","required":true,"schema":{"type":"string"}},{"name":"engagementId","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","format":"uuid"}}],"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"expectedRevision":{"type":"integer","exclusiveMinimum":0},"title":{"type":"string","minLength":1,"maxLength":200},"includePersonIds":{"type":"array","items":{"type":"string","minLength":1,"maxLength":200},"minItems":1,"maxItems":1000},"isTest":{"type":"boolean","default":false}},"required":["expectedRevision","title","includePersonIds"],"additionalProperties":false}}}},"responses":{"200":{"description":"Current authorized discovery data","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"surveyId":{"type":"string","minLength":1,"maxLength":200},"status":{"type":"string","const":"draft"},"participantCount":{"type":"integer"}},"required":["surveyId","status","participantCount"],"additionalProperties":false}},"required":["data"],"additionalProperties":true}}}},"401":{"description":"Authenticated session or scoped credential required"},"403":{"description":"Current authority or explicit discovery membership required"},"404":{"description":"Record unavailable in the current authorized scope"},"409":{"description":"Stale edit, changed preparation or approval required"},"422":{"description":"Invalid input or incomplete preparation"},"503":{"description":"Current authorization unavailable"}},"x-required-scopes":["partners:write","deals:write","surveys:write"],"x-required-permissions":["tool.enterprise.partners.manage","tool.deals.deals.manage","tool.shared.surveys.manage","tool.shared.people.view"],"x-required-capabilities":["motive_conviction"],"x-resource-checks":["enterprise-workspace","enterprise-operator","workspace-membership","client-engagement-ownership","same-origin-session","explicit-discovery-team","engagement-resource-scope","version-preconditions"],"x-required-permission-mode":"all","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"write","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false},"get":{"operationId":"listDiscoverySurveys","summary":"list Discovery Surveys","tags":["Client discovery"],"parameters":[{"name":"partnerId","in":"path","required":true,"schema":{"type":"string"}},{"name":"engagementId","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Current authorized discovery data","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"surveyId":{"type":"string","minLength":1,"maxLength":200},"sourceWorkspaceId":{"type":"string","minLength":1,"maxLength":200},"title":{"type":"string"},"versions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":200},"versionNumber":{"type":"integer"}},"required":["id","versionNumber"],"additionalProperties":false}}},"required":["surveyId","sourceWorkspaceId","title","versions"],"additionalProperties":true}}},"required":["data"],"additionalProperties":true}}}},"401":{"description":"Authenticated session or scoped credential required"},"403":{"description":"Current authority or explicit discovery membership required"},"404":{"description":"Record unavailable in the current authorized scope"},"409":{"description":"Stale edit, changed preparation or approval required"},"422":{"description":"Invalid input or incomplete preparation"},"503":{"description":"Current authorization unavailable"}},"x-required-scopes":["partners:read","deals:read"],"x-required-permissions":["tool.enterprise.partners.view","tool.deals.deals.view"],"x-required-capabilities":["motive_conviction"],"x-resource-checks":["enterprise-workspace","enterprise-operator","workspace-membership","client-engagement-ownership","explicit-discovery-team","engagement-resource-scope","version-preconditions"],"x-required-permission-mode":"all","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"none","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/enterprise/partners/{partnerId}/engagements/{engagementId}/discovery/survey-links":{"post":{"operationId":"linkDiscoverySurvey","summary":"link Discovery Survey","tags":["Client discovery"],"parameters":[{"name":"partnerId","in":"path","required":true,"schema":{"type":"string"}},{"name":"engagementId","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","format":"uuid"}}],"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"expectedRevision":{"type":"integer","exclusiveMinimum":0},"surveyId":{"type":"string","minLength":1,"maxLength":200},"sourceWorkspaceId":{"type":"string","minLength":1,"maxLength":200}},"required":["expectedRevision","surveyId","sourceWorkspaceId"],"additionalProperties":false}}}},"responses":{"200":{"description":"Current authorized discovery data","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}},"additionalProperties":true}}}},"401":{"description":"Authenticated session or scoped credential required"},"403":{"description":"Current authority or explicit discovery membership required"},"404":{"description":"Record unavailable in the current authorized scope"},"409":{"description":"Stale edit, changed preparation or approval required"},"422":{"description":"Invalid input or incomplete preparation"},"503":{"description":"Current authorization unavailable"}},"x-required-scopes":["partners:write","deals:write"],"x-required-permissions":["tool.enterprise.partners.manage","tool.deals.deals.manage"],"x-required-capabilities":["motive_conviction"],"x-resource-checks":["enterprise-workspace","enterprise-operator","workspace-membership","client-engagement-ownership","same-origin-session","explicit-discovery-team","engagement-resource-scope","version-preconditions"],"x-required-permission-mode":"all","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"write","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/enterprise/partners/{partnerId}/engagements/{engagementId}/discovery/survey-options":{"get":{"operationId":"listDiscoverySurveyOptions","summary":"list Discovery Survey Options","tags":["Client discovery"],"parameters":[{"name":"partnerId","in":"path","required":true,"schema":{"type":"string"}},{"name":"engagementId","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Current authorized discovery data","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"surveyId":{"type":"string","minLength":1,"maxLength":200},"sourceWorkspaceId":{"type":"string","minLength":1,"maxLength":200},"title":{"type":"string"},"managementScope":{"anyOf":[{"type":"string","enum":["evanet_managed","workspace_managed"]},{"type":"null"}]},"staffUrl":{"type":"string"}},"required":["surveyId","sourceWorkspaceId","title","managementScope","staffUrl"],"additionalProperties":false}}},"required":["data"],"additionalProperties":true}}}},"401":{"description":"Authenticated session or scoped credential required"},"403":{"description":"Current authority or explicit discovery membership required"},"404":{"description":"Record unavailable in the current authorized scope"},"409":{"description":"Stale edit, changed preparation or approval required"},"422":{"description":"Invalid input or incomplete preparation"},"503":{"description":"Current authorization unavailable"}},"x-required-scopes":["partners:read","deals:read"],"x-required-permissions":["tool.enterprise.partners.view","tool.deals.deals.view"],"x-required-capabilities":["motive_conviction"],"x-resource-checks":["enterprise-workspace","enterprise-operator","workspace-membership","client-engagement-ownership","explicit-discovery-team","engagement-resource-scope","version-preconditions"],"x-required-permission-mode":"all","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"none","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/enterprise/partners/{partnerId}/engagements/{engagementId}/discovery/evidence":{"get":{"operationId":"listDiscoveryEvidenceSources","summary":"list Discovery Evidence Sources","tags":["Client discovery"],"parameters":[{"name":"partnerId","in":"path","required":true,"schema":{"type":"string"}},{"name":"engagementId","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Current authorized discovery data","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}},"additionalProperties":true}}}},"401":{"description":"Authenticated session or scoped credential required"},"403":{"description":"Current authority or explicit discovery membership required"},"404":{"description":"Record unavailable in the current authorized scope"},"409":{"description":"Stale edit, changed preparation or approval required"},"422":{"description":"Invalid input or incomplete preparation"},"503":{"description":"Current authorization unavailable"}},"x-required-scopes":["partners:read","deals:read"],"x-required-permissions":["tool.enterprise.partners.view","tool.deals.deals.view"],"x-required-capabilities":["motive_conviction"],"x-resource-checks":["enterprise-workspace","enterprise-operator","workspace-membership","client-engagement-ownership","explicit-discovery-team","engagement-resource-scope","version-preconditions"],"x-required-permission-mode":"all","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"none","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/enterprise/partners/{partnerId}/engagements/{engagementId}/discovery/evidence/{surveyId}/{assignmentId}/{submissionId}":{"get":{"operationId":"getDiscoveryEvidence","summary":"get Discovery Evidence","tags":["Client discovery"],"parameters":[{"name":"partnerId","in":"path","required":true,"schema":{"type":"string"}},{"name":"engagementId","in":"path","required":true,"schema":{"type":"string"}},{"name":"surveyId","in":"path","required":true,"schema":{"type":"string"}},{"name":"assignmentId","in":"path","required":true,"schema":{"type":"string"}},{"name":"submissionId","in":"path","required":true,"schema":{"type":"string"}},{"name":"sourceWorkspaceId","in":"query","required":true,"schema":{"type":"string"}},{"name":"formVersionId","in":"query","required":true,"schema":{"type":"string"}},{"name":"questionId","in":"query","required":false,"schema":{"type":"string"}}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Current authorized discovery data","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}},"additionalProperties":true}}}},"401":{"description":"Authenticated session or scoped credential required"},"403":{"description":"Current authority or explicit discovery membership required"},"404":{"description":"Record unavailable in the current authorized scope"},"409":{"description":"Stale edit, changed preparation or approval required"},"422":{"description":"Invalid input or incomplete preparation"},"503":{"description":"Current authorization unavailable"}},"x-required-scopes":["partners:read","deals:read"],"x-required-permissions":["tool.enterprise.partners.view","tool.deals.deals.view"],"x-required-capabilities":["motive_conviction"],"x-resource-checks":["enterprise-workspace","enterprise-operator","workspace-membership","client-engagement-ownership","explicit-discovery-team","engagement-resource-scope","version-preconditions"],"x-required-permission-mode":"all","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"none","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/enterprise/partners/{partnerId}/engagements/{engagementId}/discovery/sessions":{"get":{"operationId":"listDiscoverySessions","summary":"list Discovery Sessions","tags":["Client discovery"],"parameters":[{"name":"partnerId","in":"path","required":true,"schema":{"type":"string"}},{"name":"engagementId","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Current authorized discovery data","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":200},"engagementId":{"type":"string","minLength":1,"maxLength":200},"revision":{"type":"integer","exclusiveMinimum":0},"content":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":200},"proposedDate":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"objective":{"type":"string","maxLength":15000},"ownerUserId":{"type":"string","minLength":1,"maxLength":200},"attendeeSourceWorkspaces":{"type":"object","additionalProperties":{"type":"string","minLength":1,"maxLength":200}},"attendeePersonIds":{"type":"array","items":{"type":"string","minLength":1,"maxLength":200},"maxItems":100},"agenda":{"type":"string","maxLength":15000},"sharedPreparation":{"type":"string","maxLength":15000,"default":""},"startAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"endAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"timezone":{"type":"string","minLength":1,"maxLength":200},"location":{"type":"string","maxLength":2000,"default":""},"questions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":200},"questionId":{"type":"string","minLength":1,"maxLength":200},"label":{"type":"string","minLength":1,"maxLength":2000},"status":{"type":"string","enum":["unanswered","partially_answered","answered","follow_up"],"default":"unanswered"},"note":{"type":"string","maxLength":15000,"default":""}},"required":["id","label"],"additionalProperties":false},"maxItems":500},"evidence":{"type":"array","items":{"type":"object","properties":{"surveyId":{"type":"string","minLength":1,"maxLength":200},"sourceWorkspaceId":{"type":"string","minLength":1,"maxLength":200},"assignmentId":{"type":"string","minLength":1,"maxLength":200},"submissionId":{"type":"string","minLength":1,"maxLength":200},"formVersionId":{"type":"string","minLength":1,"maxLength":200},"questionId":{"type":"string","minLength":1,"maxLength":200}},"required":["surveyId","sourceWorkspaceId","assignmentId","submissionId","formVersionId"],"additionalProperties":false},"maxItems":100},"completionStatus":{"type":"string","enum":["open","completed"]},"preparationStatus":{"type":"string","enum":["draft","ready","completed"],"default":"draft"},"followUps":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":200},"title":{"type":"string","minLength":1,"maxLength":200},"ownerUserId":{"type":"string","minLength":1,"maxLength":200},"status":{"type":"string","enum":["todo","done"]}},"required":["id","title","ownerUserId","status"],"additionalProperties":false},"maxItems":100,"default":[]}},"required":["title","objective","ownerUserId","attendeePersonIds","agenda","startAt","endAt","timezone","questions","evidence"],"additionalProperties":false},"calendarStatus":{"type":"string"},"providerEventId":{"type":["string","null"]},"lastPreparationId":{"type":["string","null"]},"confirmedTiming":{"anyOf":[{"type":"object","properties":{"startAt":{"type":"string","format":"date-time"},"endAt":{"type":"string","format":"date-time"},"timezone":{"type":"string"}},"required":["startAt","endAt","timezone"],"additionalProperties":false},{"type":"null"}]},"calendarUpdatePending":{"type":"boolean"},"followUpTasks":{"type":"array","items":{"type":"object","properties":{"followUpId":{"type":"string","minLength":1,"maxLength":200},"taskId":{"type":"string","minLength":1,"maxLength":200},"title":{"type":"string"},"ownerUserId":{"type":["string","null"]},"status":{"type":"string","enum":["todo","done"]},"href":{"type":"string"}},"required":["followUpId","taskId","status","href"],"additionalProperties":false}},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","engagementId","revision","content","calendarStatus","providerEventId","lastPreparationId","createdAt","updatedAt"],"additionalProperties":true}}},"required":["data"],"additionalProperties":true}}}},"401":{"description":"Authenticated session or scoped credential required"},"403":{"description":"Current authority or explicit discovery membership required"},"404":{"description":"Record unavailable in the current authorized scope"},"409":{"description":"Stale edit, changed preparation or approval required"},"422":{"description":"Invalid input or incomplete preparation"},"503":{"description":"Current authorization unavailable"}},"x-required-scopes":["partners:read","deals:read"],"x-required-permissions":["tool.enterprise.partners.view","tool.deals.deals.view"],"x-required-capabilities":["motive_conviction"],"x-resource-checks":["enterprise-workspace","enterprise-operator","workspace-membership","client-engagement-ownership","explicit-discovery-team","engagement-resource-scope","version-preconditions"],"x-required-permission-mode":"all","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"none","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/enterprise/partners/{partnerId}/engagements/{engagementId}/discovery/sessions/{sessionId}":{"get":{"operationId":"getDiscoverySession","summary":"get Discovery Session","tags":["Client discovery"],"parameters":[{"name":"partnerId","in":"path","required":true,"schema":{"type":"string"}},{"name":"engagementId","in":"path","required":true,"schema":{"type":"string"}},{"name":"sessionId","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Current authorized discovery data","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":200},"engagementId":{"type":"string","minLength":1,"maxLength":200},"revision":{"type":"integer","exclusiveMinimum":0},"content":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":200},"proposedDate":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"objective":{"type":"string","maxLength":15000},"ownerUserId":{"type":"string","minLength":1,"maxLength":200},"attendeeSourceWorkspaces":{"type":"object","additionalProperties":{"type":"string","minLength":1,"maxLength":200}},"attendeePersonIds":{"type":"array","items":{"type":"string","minLength":1,"maxLength":200},"maxItems":100},"agenda":{"type":"string","maxLength":15000},"sharedPreparation":{"type":"string","maxLength":15000,"default":""},"startAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"endAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"timezone":{"type":"string","minLength":1,"maxLength":200},"location":{"type":"string","maxLength":2000,"default":""},"questions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":200},"questionId":{"type":"string","minLength":1,"maxLength":200},"label":{"type":"string","minLength":1,"maxLength":2000},"status":{"type":"string","enum":["unanswered","partially_answered","answered","follow_up"],"default":"unanswered"},"note":{"type":"string","maxLength":15000,"default":""}},"required":["id","label"],"additionalProperties":false},"maxItems":500},"evidence":{"type":"array","items":{"type":"object","properties":{"surveyId":{"type":"string","minLength":1,"maxLength":200},"sourceWorkspaceId":{"type":"string","minLength":1,"maxLength":200},"assignmentId":{"type":"string","minLength":1,"maxLength":200},"submissionId":{"type":"string","minLength":1,"maxLength":200},"formVersionId":{"type":"string","minLength":1,"maxLength":200},"questionId":{"type":"string","minLength":1,"maxLength":200}},"required":["surveyId","sourceWorkspaceId","assignmentId","submissionId","formVersionId"],"additionalProperties":false},"maxItems":100},"completionStatus":{"type":"string","enum":["open","completed"]},"preparationStatus":{"type":"string","enum":["draft","ready","completed"],"default":"draft"},"followUps":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":200},"title":{"type":"string","minLength":1,"maxLength":200},"ownerUserId":{"type":"string","minLength":1,"maxLength":200},"status":{"type":"string","enum":["todo","done"]}},"required":["id","title","ownerUserId","status"],"additionalProperties":false},"maxItems":100,"default":[]}},"required":["title","objective","ownerUserId","attendeePersonIds","agenda","startAt","endAt","timezone","questions","evidence"],"additionalProperties":false},"calendarStatus":{"type":"string"},"providerEventId":{"type":["string","null"]},"lastPreparationId":{"type":["string","null"]},"confirmedTiming":{"anyOf":[{"type":"object","properties":{"startAt":{"type":"string","format":"date-time"},"endAt":{"type":"string","format":"date-time"},"timezone":{"type":"string"}},"required":["startAt","endAt","timezone"],"additionalProperties":false},{"type":"null"}]},"calendarUpdatePending":{"type":"boolean"},"followUpTasks":{"type":"array","items":{"type":"object","properties":{"followUpId":{"type":"string","minLength":1,"maxLength":200},"taskId":{"type":"string","minLength":1,"maxLength":200},"title":{"type":"string"},"ownerUserId":{"type":["string","null"]},"status":{"type":"string","enum":["todo","done"]},"href":{"type":"string"}},"required":["followUpId","taskId","status","href"],"additionalProperties":false}},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","engagementId","revision","content","calendarStatus","providerEventId","lastPreparationId","createdAt","updatedAt"],"additionalProperties":true}},"required":["data"],"additionalProperties":true}}}},"401":{"description":"Authenticated session or scoped credential required"},"403":{"description":"Current authority or explicit discovery membership required"},"404":{"description":"Record unavailable in the current authorized scope"},"409":{"description":"Stale edit, changed preparation or approval required"},"422":{"description":"Invalid input or incomplete preparation"},"503":{"description":"Current authorization unavailable"}},"x-required-scopes":["partners:read","deals:read"],"x-required-permissions":["tool.enterprise.partners.view","tool.deals.deals.view"],"x-required-capabilities":["motive_conviction"],"x-resource-checks":["enterprise-workspace","enterprise-operator","workspace-membership","client-engagement-ownership","explicit-discovery-team","engagement-resource-scope","version-preconditions"],"x-required-permission-mode":"all","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"none","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false},"patch":{"operationId":"saveDiscoverySession","summary":"save Discovery Session","tags":["Client discovery"],"parameters":[{"name":"partnerId","in":"path","required":true,"schema":{"type":"string"}},{"name":"engagementId","in":"path","required":true,"schema":{"type":"string"}},{"name":"sessionId","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","format":"uuid"}}],"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"expectedRevision":{"type":"integer","minimum":0},"content":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":200},"proposedDate":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"objective":{"type":"string","maxLength":15000},"ownerUserId":{"type":"string","minLength":1,"maxLength":200},"attendeeSourceWorkspaces":{"type":"object","additionalProperties":{"type":"string","minLength":1,"maxLength":200}},"attendeePersonIds":{"type":"array","items":{"type":"string","minLength":1,"maxLength":200},"maxItems":100},"agenda":{"type":"string","maxLength":15000},"sharedPreparation":{"type":"string","maxLength":15000,"default":""},"startAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"endAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"timezone":{"type":"string","minLength":1,"maxLength":200},"location":{"type":"string","maxLength":2000,"default":""},"questions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":200},"questionId":{"type":"string","minLength":1,"maxLength":200},"label":{"type":"string","minLength":1,"maxLength":2000},"status":{"type":"string","enum":["unanswered","partially_answered","answered","follow_up"],"default":"unanswered"},"note":{"type":"string","maxLength":15000,"default":""}},"required":["id","label"],"additionalProperties":false},"maxItems":500},"evidence":{"type":"array","items":{"type":"object","properties":{"surveyId":{"type":"string","minLength":1,"maxLength":200},"sourceWorkspaceId":{"type":"string","minLength":1,"maxLength":200},"assignmentId":{"type":"string","minLength":1,"maxLength":200},"submissionId":{"type":"string","minLength":1,"maxLength":200},"formVersionId":{"type":"string","minLength":1,"maxLength":200},"questionId":{"type":"string","minLength":1,"maxLength":200}},"required":["surveyId","sourceWorkspaceId","assignmentId","submissionId","formVersionId"],"additionalProperties":false},"maxItems":100},"completionStatus":{"type":"string","enum":["open","completed"]},"preparationStatus":{"type":"string","enum":["draft","ready","completed"],"default":"draft"},"followUps":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":200},"title":{"type":"string","minLength":1,"maxLength":200},"ownerUserId":{"type":"string","minLength":1,"maxLength":200},"status":{"type":"string","enum":["todo","done"]}},"required":["id","title","ownerUserId","status"],"additionalProperties":false},"maxItems":100,"default":[]}},"required":["title","objective","ownerUserId","attendeePersonIds","agenda","startAt","endAt","timezone","questions","evidence"],"additionalProperties":false}},"required":["expectedRevision","content"],"additionalProperties":false}}}},"responses":{"200":{"description":"Current authorized discovery data","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":200},"engagementId":{"type":"string","minLength":1,"maxLength":200},"revision":{"type":"integer","exclusiveMinimum":0},"content":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":200},"proposedDate":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"objective":{"type":"string","maxLength":15000},"ownerUserId":{"type":"string","minLength":1,"maxLength":200},"attendeeSourceWorkspaces":{"type":"object","additionalProperties":{"type":"string","minLength":1,"maxLength":200}},"attendeePersonIds":{"type":"array","items":{"type":"string","minLength":1,"maxLength":200},"maxItems":100},"agenda":{"type":"string","maxLength":15000},"sharedPreparation":{"type":"string","maxLength":15000,"default":""},"startAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"endAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"timezone":{"type":"string","minLength":1,"maxLength":200},"location":{"type":"string","maxLength":2000,"default":""},"questions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":200},"questionId":{"type":"string","minLength":1,"maxLength":200},"label":{"type":"string","minLength":1,"maxLength":2000},"status":{"type":"string","enum":["unanswered","partially_answered","answered","follow_up"],"default":"unanswered"},"note":{"type":"string","maxLength":15000,"default":""}},"required":["id","label"],"additionalProperties":false},"maxItems":500},"evidence":{"type":"array","items":{"type":"object","properties":{"surveyId":{"type":"string","minLength":1,"maxLength":200},"sourceWorkspaceId":{"type":"string","minLength":1,"maxLength":200},"assignmentId":{"type":"string","minLength":1,"maxLength":200},"submissionId":{"type":"string","minLength":1,"maxLength":200},"formVersionId":{"type":"string","minLength":1,"maxLength":200},"questionId":{"type":"string","minLength":1,"maxLength":200}},"required":["surveyId","sourceWorkspaceId","assignmentId","submissionId","formVersionId"],"additionalProperties":false},"maxItems":100},"completionStatus":{"type":"string","enum":["open","completed"]},"preparationStatus":{"type":"string","enum":["draft","ready","completed"],"default":"draft"},"followUps":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":200},"title":{"type":"string","minLength":1,"maxLength":200},"ownerUserId":{"type":"string","minLength":1,"maxLength":200},"status":{"type":"string","enum":["todo","done"]}},"required":["id","title","ownerUserId","status"],"additionalProperties":false},"maxItems":100,"default":[]}},"required":["title","objective","ownerUserId","attendeePersonIds","agenda","startAt","endAt","timezone","questions","evidence"],"additionalProperties":false},"calendarStatus":{"type":"string"},"providerEventId":{"type":["string","null"]},"lastPreparationId":{"type":["string","null"]},"confirmedTiming":{"anyOf":[{"type":"object","properties":{"startAt":{"type":"string","format":"date-time"},"endAt":{"type":"string","format":"date-time"},"timezone":{"type":"string"}},"required":["startAt","endAt","timezone"],"additionalProperties":false},{"type":"null"}]},"calendarUpdatePending":{"type":"boolean"},"followUpTasks":{"type":"array","items":{"type":"object","properties":{"followUpId":{"type":"string","minLength":1,"maxLength":200},"taskId":{"type":"string","minLength":1,"maxLength":200},"title":{"type":"string"},"ownerUserId":{"type":["string","null"]},"status":{"type":"string","enum":["todo","done"]},"href":{"type":"string"}},"required":["followUpId","taskId","status","href"],"additionalProperties":false}},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","engagementId","revision","content","calendarStatus","providerEventId","lastPreparationId","createdAt","updatedAt"],"additionalProperties":true}},"required":["data"],"additionalProperties":true}}}},"401":{"description":"Authenticated session or scoped credential required"},"403":{"description":"Current authority or explicit discovery membership required"},"404":{"description":"Record unavailable in the current authorized scope"},"409":{"description":"Stale edit, changed preparation or approval required"},"422":{"description":"Invalid input or incomplete preparation"},"503":{"description":"Current authorization unavailable"}},"x-required-scopes":["partners:write","deals:write"],"x-required-permissions":["tool.enterprise.partners.manage","tool.deals.deals.manage"],"x-required-capabilities":["motive_conviction"],"x-resource-checks":["enterprise-workspace","enterprise-operator","workspace-membership","client-engagement-ownership","same-origin-session","explicit-discovery-team","engagement-resource-scope","version-preconditions"],"x-required-permission-mode":"all","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"write","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/enterprise/partners/{partnerId}/engagements/{engagementId}/discovery/documents":{"get":{"operationId":"listDiscoveryDocuments","summary":"list Discovery Documents","tags":["Client discovery"],"parameters":[{"name":"partnerId","in":"path","required":true,"schema":{"type":"string"}},{"name":"engagementId","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Current authorized discovery data","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":200},"revision":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["plan","session_brief","notes","findings"]},"title":{"type":"string"},"body":{"type":"string"},"sessionId":{"anyOf":[{"type":"string","minLength":1,"maxLength":200},{"type":"null"}]},"evidence":{"type":"array","items":{"type":"object","properties":{"surveyId":{"type":"string","minLength":1,"maxLength":200},"sourceWorkspaceId":{"type":"string","minLength":1,"maxLength":200},"assignmentId":{"type":"string","minLength":1,"maxLength":200},"submissionId":{"type":"string","minLength":1,"maxLength":200},"formVersionId":{"type":"string","minLength":1,"maxLength":200},"questionId":{"type":"string","minLength":1,"maxLength":200}},"required":["surveyId","sourceWorkspaceId","assignmentId","submissionId","formVersionId"],"additionalProperties":false}},"createdAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"string","format":"date-time"}]}},"required":["id","revision","kind","title","body","sessionId","evidence","createdAt"],"additionalProperties":true}}},"required":["data"],"additionalProperties":true}}}},"401":{"description":"Authenticated session or scoped credential required"},"403":{"description":"Current authority or explicit discovery membership required"},"404":{"description":"Record unavailable in the current authorized scope"},"409":{"description":"Stale edit, changed preparation or approval required"},"422":{"description":"Invalid input or incomplete preparation"},"503":{"description":"Current authorization unavailable"}},"x-required-scopes":["partners:read","deals:read"],"x-required-permissions":["tool.enterprise.partners.view","tool.deals.deals.view"],"x-required-capabilities":["motive_conviction"],"x-resource-checks":["enterprise-workspace","enterprise-operator","workspace-membership","client-engagement-ownership","explicit-discovery-team","engagement-resource-scope","version-preconditions"],"x-required-permission-mode":"all","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"none","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/enterprise/partners/{partnerId}/engagements/{engagementId}/discovery/documents/{documentId}":{"get":{"operationId":"getDiscoveryDocumentHistory","summary":"get Discovery Document History","tags":["Client discovery"],"parameters":[{"name":"partnerId","in":"path","required":true,"schema":{"type":"string"}},{"name":"engagementId","in":"path","required":true,"schema":{"type":"string"}},{"name":"documentId","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Current authorized discovery data","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":200},"revision":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["plan","session_brief","notes","findings"]},"title":{"type":"string"},"body":{"type":"string"},"sessionId":{"anyOf":[{"type":"string","minLength":1,"maxLength":200},{"type":"null"}]},"evidence":{"type":"array","items":{"type":"object","properties":{"surveyId":{"type":"string","minLength":1,"maxLength":200},"sourceWorkspaceId":{"type":"string","minLength":1,"maxLength":200},"assignmentId":{"type":"string","minLength":1,"maxLength":200},"submissionId":{"type":"string","minLength":1,"maxLength":200},"formVersionId":{"type":"string","minLength":1,"maxLength":200},"questionId":{"type":"string","minLength":1,"maxLength":200}},"required":["surveyId","sourceWorkspaceId","assignmentId","submissionId","formVersionId"],"additionalProperties":false}},"createdAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"string","format":"date-time"}]}},"required":["id","revision","kind","title","body","sessionId","evidence","createdAt"],"additionalProperties":true}}},"required":["data"],"additionalProperties":true}}}},"401":{"description":"Authenticated session or scoped credential required"},"403":{"description":"Current authority or explicit discovery membership required"},"404":{"description":"Record unavailable in the current authorized scope"},"409":{"description":"Stale edit, changed preparation or approval required"},"422":{"description":"Invalid input or incomplete preparation"},"503":{"description":"Current authorization unavailable"}},"x-required-scopes":["partners:read","deals:read"],"x-required-permissions":["tool.enterprise.partners.view","tool.deals.deals.view"],"x-required-capabilities":["motive_conviction"],"x-resource-checks":["enterprise-workspace","enterprise-operator","workspace-membership","client-engagement-ownership","explicit-discovery-team","engagement-resource-scope","version-preconditions"],"x-required-permission-mode":"all","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"none","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false},"patch":{"operationId":"saveDiscoveryDocument","summary":"save Discovery Document","tags":["Client discovery"],"parameters":[{"name":"partnerId","in":"path","required":true,"schema":{"type":"string"}},{"name":"engagementId","in":"path","required":true,"schema":{"type":"string"}},{"name":"documentId","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","format":"uuid"}}],"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"expectedRevision":{"type":"integer","minimum":0},"kind":{"type":"string","enum":["plan","session_brief","notes","findings"]},"title":{"type":"string","minLength":1,"maxLength":200},"body":{"type":"string","maxLength":60000},"sessionId":{"anyOf":[{"type":"string","minLength":1,"maxLength":200},{"type":"null"}],"default":null},"evidence":{"type":"array","items":{"type":"object","properties":{"surveyId":{"type":"string","minLength":1,"maxLength":200},"sourceWorkspaceId":{"type":"string","minLength":1,"maxLength":200},"assignmentId":{"type":"string","minLength":1,"maxLength":200},"submissionId":{"type":"string","minLength":1,"maxLength":200},"formVersionId":{"type":"string","minLength":1,"maxLength":200},"questionId":{"type":"string","minLength":1,"maxLength":200}},"required":["surveyId","sourceWorkspaceId","assignmentId","submissionId","formVersionId"],"additionalProperties":false},"maxItems":100,"default":[]}},"required":["expectedRevision","kind","title","body"],"additionalProperties":false}}}},"responses":{"200":{"description":"Current authorized discovery data","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":200},"revision":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["plan","session_brief","notes","findings"]},"title":{"type":"string"},"body":{"type":"string"},"sessionId":{"anyOf":[{"type":"string","minLength":1,"maxLength":200},{"type":"null"}]},"evidence":{"type":"array","items":{"type":"object","properties":{"surveyId":{"type":"string","minLength":1,"maxLength":200},"sourceWorkspaceId":{"type":"string","minLength":1,"maxLength":200},"assignmentId":{"type":"string","minLength":1,"maxLength":200},"submissionId":{"type":"string","minLength":1,"maxLength":200},"formVersionId":{"type":"string","minLength":1,"maxLength":200},"questionId":{"type":"string","minLength":1,"maxLength":200}},"required":["surveyId","sourceWorkspaceId","assignmentId","submissionId","formVersionId"],"additionalProperties":false}},"createdAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"string","format":"date-time"}]}},"required":["id","revision","kind","title","body","sessionId","evidence","createdAt"],"additionalProperties":true}},"required":["data"],"additionalProperties":true}}}},"401":{"description":"Authenticated session or scoped credential required"},"403":{"description":"Current authority or explicit discovery membership required"},"404":{"description":"Record unavailable in the current authorized scope"},"409":{"description":"Stale edit, changed preparation or approval required"},"422":{"description":"Invalid input or incomplete preparation"},"503":{"description":"Current authorization unavailable"}},"x-required-scopes":["partners:write","deals:write"],"x-required-permissions":["tool.enterprise.partners.manage","tool.deals.deals.manage"],"x-required-capabilities":["motive_conviction"],"x-resource-checks":["enterprise-workspace","enterprise-operator","workspace-membership","client-engagement-ownership","same-origin-session","explicit-discovery-team","engagement-resource-scope","version-preconditions"],"x-required-permission-mode":"all","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"write","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/enterprise/partners/{partnerId}/engagements/{engagementId}/discovery/coverage":{"get":{"operationId":"getDiscoveryCoverage","summary":"get Discovery Coverage","tags":["Client discovery"],"parameters":[{"name":"partnerId","in":"path","required":true,"schema":{"type":"string"}},{"name":"engagementId","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Current authorized discovery data","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","minLength":1,"maxLength":200},"label":{"type":"string"},"people":{"type":"integer"},"sessionsPlanned":{"type":"integer"},"questions":{"type":"integer"},"unresolvedQuestions":{"type":"integer"}},"required":["key","label","people","sessionsPlanned","questions","unresolvedQuestions"],"additionalProperties":false}}},"required":["data"],"additionalProperties":true}}}},"401":{"description":"Authenticated session or scoped credential required"},"403":{"description":"Current authority or explicit discovery membership required"},"404":{"description":"Record unavailable in the current authorized scope"},"409":{"description":"Stale edit, changed preparation or approval required"},"422":{"description":"Invalid input or incomplete preparation"},"503":{"description":"Current authorization unavailable"}},"x-required-scopes":["partners:read","deals:read"],"x-required-permissions":["tool.enterprise.partners.view","tool.deals.deals.view"],"x-required-capabilities":["motive_conviction"],"x-resource-checks":["enterprise-workspace","enterprise-operator","workspace-membership","client-engagement-ownership","explicit-discovery-team","engagement-resource-scope","version-preconditions"],"x-required-permission-mode":"all","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"none","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/enterprise/partners/{partnerId}/engagements/{engagementId}/discovery/calendars":{"get":{"operationId":"getDiscoveryCalendars","summary":"get Discovery Calendars","tags":["Client discovery"],"parameters":[{"name":"partnerId","in":"path","required":true,"schema":{"type":"string"}},{"name":"engagementId","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Current authorized discovery data","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}},"additionalProperties":true}}}},"401":{"description":"Authenticated session or scoped credential required"},"403":{"description":"Current authority or explicit discovery membership required"},"404":{"description":"Record unavailable in the current authorized scope"},"409":{"description":"Stale edit, changed preparation or approval required"},"422":{"description":"Invalid input or incomplete preparation"},"503":{"description":"Current authorization unavailable"}},"x-required-scopes":["partners:read","deals:read"],"x-required-permissions":["tool.enterprise.partners.view","tool.deals.deals.view"],"x-required-capabilities":["motive_conviction"],"x-resource-checks":["enterprise-workspace","enterprise-operator","workspace-membership","client-engagement-ownership","explicit-discovery-team","engagement-resource-scope","version-preconditions"],"x-required-permission-mode":"all","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"none","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/enterprise/partners/{partnerId}/engagements/{engagementId}/discovery/sessions/{sessionId}/calendar/preparation":{"get":{"operationId":"getDiscoveryCalendarPreparation","summary":"get Discovery Calendar Preparation","tags":["Client discovery"],"parameters":[{"name":"partnerId","in":"path","required":true,"schema":{"type":"string"}},{"name":"engagementId","in":"path","required":true,"schema":{"type":"string"}},{"name":"sessionId","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Current authorized discovery data","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}},"additionalProperties":true}}}},"401":{"description":"Authenticated session or scoped credential required"},"403":{"description":"Current authority or explicit discovery membership required"},"404":{"description":"Record unavailable in the current authorized scope"},"409":{"description":"Stale edit, changed preparation or approval required"},"422":{"description":"Invalid input or incomplete preparation"},"503":{"description":"Current authorization unavailable"}},"x-required-scopes":["partners:read","deals:read"],"x-required-permissions":["tool.enterprise.partners.view","tool.deals.deals.view"],"x-required-capabilities":["motive_conviction"],"x-resource-checks":["enterprise-workspace","enterprise-operator","workspace-membership","client-engagement-ownership","explicit-discovery-team","engagement-resource-scope","version-preconditions"],"x-required-permission-mode":"all","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"none","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/enterprise/partners/{partnerId}/engagements/{engagementId}/discovery/review-qualification":{"post":{"operationId":"qualifyDiscoveryReview","summary":"qualify Discovery Review","tags":["Client discovery"],"parameters":[{"name":"partnerId","in":"path","required":true,"schema":{"type":"string"}},{"name":"engagementId","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","format":"uuid"}}],"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"publicationId":{"type":"string","minLength":1,"maxLength":200},"revokedGrantId":{"type":"string","minLength":1,"maxLength":200},"buildSha":{"type":"string","minLength":1,"maxLength":200}},"required":["publicationId","revokedGrantId","buildSha"],"additionalProperties":false}}}},"responses":{"200":{"description":"Current authorized discovery data","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}},"additionalProperties":true}}}},"401":{"description":"Authenticated session or scoped credential required"},"403":{"description":"Current authority or explicit discovery membership required"},"404":{"description":"Record unavailable in the current authorized scope"},"409":{"description":"Stale edit, changed preparation or approval required"},"422":{"description":"Invalid input or incomplete preparation"},"503":{"description":"Current authorization unavailable"}},"x-required-scopes":["partners:write","deals:write"],"x-required-permissions":["tool.enterprise.partners.manage","tool.deals.deals.manage"],"x-required-capabilities":["motive_conviction"],"x-resource-checks":["enterprise-workspace","enterprise-operator","workspace-membership","client-engagement-ownership","same-origin-session","explicit-discovery-team","engagement-resource-scope","version-preconditions"],"x-required-permission-mode":"all","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"human","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/enterprise/partners/{partnerId}/engagements/{engagementId}/discovery/sessions/{sessionId}/calendar/preparations":{"post":{"operationId":"prepareDiscoveryCalendar","summary":"prepare Discovery Calendar","tags":["Client discovery"],"parameters":[{"name":"partnerId","in":"path","required":true,"schema":{"type":"string"}},{"name":"engagementId","in":"path","required":true,"schema":{"type":"string"}},{"name":"sessionId","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","format":"uuid"}}],"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"expectedRevision":{"type":"integer","exclusiveMinimum":0},"action":{"type":"string","enum":["create","update","cancel"]}},"required":["expectedRevision","action"],"additionalProperties":false}}}},"responses":{"200":{"description":"Current authorized discovery data","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}},"additionalProperties":true}}}},"401":{"description":"Authenticated session or scoped credential required"},"403":{"description":"Current authority or explicit discovery membership required"},"404":{"description":"Record unavailable in the current authorized scope"},"409":{"description":"Stale edit, changed preparation or approval required"},"422":{"description":"Invalid input or incomplete preparation"},"503":{"description":"Current authorization unavailable"}},"x-required-scopes":["partners:write","deals:write"],"x-required-permissions":["tool.enterprise.partners.manage","tool.deals.deals.manage"],"x-required-capabilities":["motive_conviction"],"x-resource-checks":["enterprise-workspace","enterprise-operator","workspace-membership","client-engagement-ownership","same-origin-session","explicit-discovery-team","engagement-resource-scope","version-preconditions"],"x-required-permission-mode":"all","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"write","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/enterprise/partners/{partnerId}/engagements/{engagementId}/discovery/calendar/preparations/{preparationId}/decision":{"post":{"operationId":"approveDiscoveryCalendar","summary":"approve Discovery Calendar","tags":["Client discovery"],"parameters":[{"name":"partnerId","in":"path","required":true,"schema":{"type":"string"}},{"name":"engagementId","in":"path","required":true,"schema":{"type":"string"}},{"name":"preparationId","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","format":"uuid"}}],"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"digest":{"type":"string","minLength":1,"maxLength":200},"decision":{"type":"string","enum":["approved","rejected","changes_requested"]}},"required":["digest","decision"],"additionalProperties":false}}}},"responses":{"200":{"description":"Current authorized discovery data","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}},"additionalProperties":true}}}},"401":{"description":"Authenticated session or scoped credential required"},"403":{"description":"Current authority or explicit discovery membership required"},"404":{"description":"Record unavailable in the current authorized scope"},"409":{"description":"Stale edit, changed preparation or approval required"},"422":{"description":"Invalid input or incomplete preparation"},"503":{"description":"Current authorization unavailable"}},"x-required-scopes":["partners:write","deals:write"],"x-required-permissions":["tool.enterprise.partners.manage","tool.deals.deals.manage"],"x-required-capabilities":["motive_conviction"],"x-resource-checks":["enterprise-workspace","enterprise-operator","workspace-membership","client-engagement-ownership","same-origin-session","explicit-discovery-team","engagement-resource-scope","version-preconditions"],"x-required-permission-mode":"all","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"human","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/enterprise/partners/{partnerId}/engagements/{engagementId}/discovery/calendar/dispatches":{"post":{"operationId":"dispatchDiscoveryCalendar","summary":"dispatch Discovery Calendar","tags":["Client discovery"],"parameters":[{"name":"partnerId","in":"path","required":true,"schema":{"type":"string"}},{"name":"engagementId","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","format":"uuid"}}],"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"preparationId":{"type":"string","minLength":1,"maxLength":200},"digest":{"type":"string","minLength":1,"maxLength":200}},"required":["preparationId","digest"],"additionalProperties":false}}}},"responses":{"200":{"description":"Current authorized discovery data","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}},"additionalProperties":true}}}},"401":{"description":"Authenticated session or scoped credential required"},"403":{"description":"Current authority or explicit discovery membership required"},"404":{"description":"Record unavailable in the current authorized scope"},"409":{"description":"Stale edit, changed preparation or approval required"},"422":{"description":"Invalid input or incomplete preparation"},"503":{"description":"Current authorization unavailable"}},"x-required-scopes":["partners:write","deals:write"],"x-required-permissions":["tool.enterprise.partners.manage","tool.deals.deals.manage"],"x-required-capabilities":["motive_conviction"],"x-resource-checks":["enterprise-workspace","enterprise-operator","workspace-membership","client-engagement-ownership","same-origin-session","explicit-discovery-team","engagement-resource-scope","version-preconditions"],"x-required-permission-mode":"all","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"write","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/enterprise/partners/{partnerId}/engagements/{engagementId}/discovery/calendar/reconciliations":{"post":{"operationId":"reconcileDiscoveryCalendar","summary":"reconcile Discovery Calendar","tags":["Client discovery"],"parameters":[{"name":"partnerId","in":"path","required":true,"schema":{"type":"string"}},{"name":"engagementId","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","format":"uuid"}}],"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"preparationId":{"type":"string","minLength":1,"maxLength":200},"digest":{"type":"string","minLength":1,"maxLength":200}},"required":["preparationId","digest"],"additionalProperties":false}}}},"responses":{"200":{"description":"Current authorized discovery data","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}},"additionalProperties":true}}}},"401":{"description":"Authenticated session or scoped credential required"},"403":{"description":"Current authority or explicit discovery membership required"},"404":{"description":"Record unavailable in the current authorized scope"},"409":{"description":"Stale edit, changed preparation or approval required"},"422":{"description":"Invalid input or incomplete preparation"},"503":{"description":"Current authorization unavailable"}},"x-required-scopes":["partners:write","deals:write"],"x-required-permissions":["tool.enterprise.partners.manage","tool.deals.deals.manage"],"x-required-capabilities":["motive_conviction"],"x-resource-checks":["enterprise-workspace","enterprise-operator","workspace-membership","client-engagement-ownership","same-origin-session","explicit-discovery-team","engagement-resource-scope","version-preconditions"],"x-required-permission-mode":"all","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"write","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/enterprise/partners/{partnerId}/engagements/{engagementId}/discovery/publications":{"post":{"operationId":"publishDiscoveryFindings","summary":"publish Discovery Findings","tags":["Client discovery"],"parameters":[{"name":"partnerId","in":"path","required":true,"schema":{"type":"string"}},{"name":"engagementId","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","format":"uuid"}}],"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"expectedRevision":{"type":"integer","exclusiveMinimum":0},"documentId":{"type":"string","minLength":1,"maxLength":200},"documentRevision":{"type":"integer","exclusiveMinimum":0},"reviewers":{"type":"array","items":{"type":"string","format":"email"},"minItems":1,"maxItems":25},"sharedTitle":{"type":"string","minLength":1,"maxLength":200},"sharedBody":{"type":"string","minLength":1,"maxLength":60000},"confirmReviewed":{"type":"boolean","const":true}},"required":["expectedRevision","documentId","documentRevision","reviewers","sharedTitle","sharedBody","confirmReviewed"],"additionalProperties":false}}}},"responses":{"200":{"description":"Current authorized discovery data","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}},"additionalProperties":true}}}},"401":{"description":"Authenticated session or scoped credential required"},"403":{"description":"Current authority or explicit discovery membership required"},"404":{"description":"Record unavailable in the current authorized scope"},"409":{"description":"Stale edit, changed preparation or approval required"},"422":{"description":"Invalid input or incomplete preparation"},"503":{"description":"Current authorization unavailable"}},"x-required-scopes":["partners:write","deals:write"],"x-required-permissions":["tool.enterprise.partners.manage","tool.deals.deals.manage"],"x-required-capabilities":["motive_conviction"],"x-resource-checks":["enterprise-workspace","enterprise-operator","workspace-membership","client-engagement-ownership","same-origin-session","explicit-discovery-team","engagement-resource-scope","version-preconditions"],"x-required-permission-mode":"all","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"human","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false},"get":{"operationId":"listDiscoveryPublications","summary":"list Discovery Publications","tags":["Client discovery"],"parameters":[{"name":"partnerId","in":"path","required":true,"schema":{"type":"string"}},{"name":"engagementId","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Current authorized discovery data","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}},"additionalProperties":true}}}},"401":{"description":"Authenticated session or scoped credential required"},"403":{"description":"Current authority or explicit discovery membership required"},"404":{"description":"Record unavailable in the current authorized scope"},"409":{"description":"Stale edit, changed preparation or approval required"},"422":{"description":"Invalid input or incomplete preparation"},"503":{"description":"Current authorization unavailable"}},"x-required-scopes":["partners:read","deals:read"],"x-required-permissions":["tool.enterprise.partners.view","tool.deals.deals.view"],"x-required-capabilities":["motive_conviction"],"x-resource-checks":["enterprise-workspace","enterprise-operator","workspace-membership","client-engagement-ownership","explicit-discovery-team","engagement-resource-scope","version-preconditions"],"x-required-permission-mode":"all","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"none","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/enterprise/partners/{partnerId}/engagements/{engagementId}/discovery/publications/{publicationId}/reviewers/{grantId}/revoke":{"post":{"operationId":"revokeDiscoveryReviewerGrant","summary":"revoke Discovery Reviewer Grant","tags":["Client discovery"],"parameters":[{"name":"partnerId","in":"path","required":true,"schema":{"type":"string"}},{"name":"engagementId","in":"path","required":true,"schema":{"type":"string"}},{"name":"publicationId","in":"path","required":true,"schema":{"type":"string"}},{"name":"grantId","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","format":"uuid"}}],"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"confirmGrantId":{"type":"string","minLength":1,"maxLength":200}},"required":["confirmGrantId"],"additionalProperties":false}}}},"responses":{"200":{"description":"Current authorized discovery data","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}},"additionalProperties":true}}}},"401":{"description":"Authenticated session or scoped credential required"},"403":{"description":"Current authority or explicit discovery membership required"},"404":{"description":"Record unavailable in the current authorized scope"},"409":{"description":"Stale edit, changed preparation or approval required"},"422":{"description":"Invalid input or incomplete preparation"},"503":{"description":"Current authorization unavailable"}},"x-required-scopes":["partners:write","deals:write"],"x-required-permissions":["tool.enterprise.partners.manage","tool.deals.deals.manage"],"x-required-capabilities":["motive_conviction"],"x-resource-checks":["enterprise-workspace","enterprise-operator","workspace-membership","client-engagement-ownership","same-origin-session","explicit-discovery-team","engagement-resource-scope","version-preconditions"],"x-required-permission-mode":"all","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"write","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/enterprise/partners/{partnerId}/engagements/{engagementId}/discovery/directory":{"get":{"operationId":"getDiscoveryDirectory","summary":"get Discovery Directory","tags":["Client discovery"],"parameters":[{"name":"partnerId","in":"path","required":true,"schema":{"type":"string"}},{"name":"engagementId","in":"path","required":true,"schema":{"type":"string"}},{"name":"directory","in":"query","required":false,"schema":{"type":"string","enum":["employees","affiliates"],"default":"employees"}}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Current authorized discovery data","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}},"additionalProperties":true}}}},"401":{"description":"Authenticated session or scoped credential required"},"403":{"description":"Current authority or explicit discovery membership required"},"404":{"description":"Record unavailable in the current authorized scope"},"409":{"description":"Stale edit, changed preparation or approval required"},"422":{"description":"Invalid input or incomplete preparation"},"503":{"description":"Current authorization unavailable"}},"x-required-scopes":["partners:read","deals:read"],"x-required-permissions":["tool.enterprise.partners.view","tool.deals.deals.view","tool.shared.people.view"],"x-required-capabilities":["motive_conviction"],"x-resource-checks":["enterprise-workspace","enterprise-operator","workspace-membership","client-engagement-ownership","explicit-discovery-team","engagement-resource-scope","version-preconditions","client-workspace-link","source-workspace-permission"],"x-required-permission-mode":"all","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"none","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/enterprise/partners/{partnerId}/engagements/{engagementId}/discovery/directory/previews":{"post":{"operationId":"previewDiscoveryDirectorySelection","summary":"preview Discovery Directory Selection","tags":["Client discovery"],"parameters":[{"name":"partnerId","in":"path","required":true,"schema":{"type":"string"}},{"name":"engagementId","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","format":"uuid"}}],"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"expectedRevision":{"type":"integer","exclusiveMinimum":0},"sourceWorkspaceId":{"type":"string","minLength":1,"maxLength":200},"sourceSubOrganizationId":{"anyOf":[{"type":"string","minLength":1,"maxLength":200},{"type":"null"}]},"sourceDirectory":{"type":"string","enum":["employees","affiliates"],"default":"employees"},"personIds":{"type":"array","items":{"type":"string","minLength":1,"maxLength":200},"maxItems":500},"previewDigest":{"type":"string"}},"required":["expectedRevision","sourceWorkspaceId","personIds"],"additionalProperties":false}}}},"responses":{"200":{"description":"Current authorized discovery data","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}},"additionalProperties":true}}}},"401":{"description":"Authenticated session or scoped credential required"},"403":{"description":"Current authority or explicit discovery membership required"},"404":{"description":"Record unavailable in the current authorized scope"},"409":{"description":"Stale edit, changed preparation or approval required"},"422":{"description":"Invalid input or incomplete preparation"},"503":{"description":"Current authorization unavailable"}},"x-required-scopes":["partners:write","deals:write"],"x-required-permissions":["tool.enterprise.partners.manage","tool.deals.deals.manage","tool.shared.people.manage"],"x-required-capabilities":["motive_conviction"],"x-resource-checks":["enterprise-workspace","enterprise-operator","workspace-membership","client-engagement-ownership","same-origin-session","explicit-discovery-team","engagement-resource-scope","version-preconditions","client-workspace-link","source-workspace-permission","client-workspace-link","source-workspace-permission"],"x-required-permission-mode":"all","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"write","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/enterprise/partners/{partnerId}/engagements/{engagementId}/discovery/directory/selections":{"post":{"operationId":"selectDiscoveryDirectoryPeople","summary":"select Discovery Directory People","tags":["Client discovery"],"parameters":[{"name":"partnerId","in":"path","required":true,"schema":{"type":"string"}},{"name":"engagementId","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","format":"uuid"}}],"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"expectedRevision":{"type":"integer","exclusiveMinimum":0},"sourceWorkspaceId":{"type":"string","minLength":1,"maxLength":200},"sourceSubOrganizationId":{"anyOf":[{"type":"string","minLength":1,"maxLength":200},{"type":"null"}]},"sourceDirectory":{"type":"string","enum":["employees","affiliates"],"default":"employees"},"personIds":{"type":"array","items":{"type":"string","minLength":1,"maxLength":200},"maxItems":500},"previewDigest":{"type":"string"}},"required":["expectedRevision","sourceWorkspaceId","personIds"],"additionalProperties":false}}}},"responses":{"200":{"description":"Current authorized discovery data","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}},"additionalProperties":true}}}},"401":{"description":"Authenticated session or scoped credential required"},"403":{"description":"Current authority or explicit discovery membership required"},"404":{"description":"Record unavailable in the current authorized scope"},"409":{"description":"Stale edit, changed preparation or approval required"},"422":{"description":"Invalid input or incomplete preparation"},"503":{"description":"Current authorization unavailable"}},"x-required-scopes":["partners:write","deals:write"],"x-required-permissions":["tool.enterprise.partners.manage","tool.deals.deals.manage","tool.shared.people.manage"],"x-required-capabilities":["motive_conviction"],"x-resource-checks":["enterprise-workspace","enterprise-operator","workspace-membership","client-engagement-ownership","same-origin-session","explicit-discovery-team","engagement-resource-scope","version-preconditions","client-workspace-link","source-workspace-permission","client-workspace-link","source-workspace-permission"],"x-required-permission-mode":"all","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"write","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/enterprise/discovery-schedules/{publicationId}":{"get":{"operationId":"getDiscoverySharedSchedule","summary":"get Discovery Shared Schedule","tags":["Client discovery"],"parameters":[{"name":"publicationId","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Current authorized discovery data","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}},"additionalProperties":true}}}},"401":{"description":"Authenticated session or scoped credential required"},"403":{"description":"Current authority or explicit discovery membership required"},"404":{"description":"Record unavailable in the current authorized scope"},"409":{"description":"Stale edit, changed preparation or approval required"},"422":{"description":"Invalid input or incomplete preparation"},"503":{"description":"Current authorization unavailable"}},"x-required-scopes":["reviews:read"],"x-required-permissions":[],"x-required-capabilities":[],"x-resource-checks":["Verified current account identity","Exact active Discovery schedule recipient grant","Current publishing authority","Revocation before execution and replay"],"x-required-permission-mode":"all","x-evanet-credential-kind":"account","x-evanet-approval-class":"none","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/enterprise/discovery-schedules/{publicationId}/accept":{"post":{"operationId":"acceptDiscoverySharedSchedule","summary":"accept Discovery Shared Schedule","tags":["Client discovery"],"parameters":[{"name":"publicationId","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","format":"uuid"}}],"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"confirmPublicationId":{"type":"string","minLength":1,"maxLength":200}},"required":["confirmPublicationId"],"additionalProperties":false}}}},"responses":{"200":{"description":"Current authorized discovery data","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}},"additionalProperties":true}}}},"401":{"description":"Authenticated session or scoped credential required"},"403":{"description":"Current authority or explicit discovery membership required"},"404":{"description":"Record unavailable in the current authorized scope"},"409":{"description":"Stale edit, changed preparation or approval required"},"422":{"description":"Invalid input or incomplete preparation"},"503":{"description":"Current authorization unavailable"}},"x-required-scopes":["reviews:write"],"x-required-permissions":[],"x-required-capabilities":[],"x-resource-checks":["Verified current account identity","Exact active Discovery schedule recipient grant","Current publishing authority","Revocation before execution and replay"],"x-required-permission-mode":"all","x-evanet-credential-kind":"account","x-evanet-approval-class":"write","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/enterprise/discovery-schedules/{publicationId}/feedback":{"post":{"operationId":"submitDiscoveryScheduleFeedback","summary":"submit Discovery Schedule Feedback","tags":["Client discovery"],"parameters":[{"name":"publicationId","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","format":"uuid"}}],"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string","minLength":1,"maxLength":200},"kind":{"type":"string","enum":["comment","changes_requested"]},"body":{"type":"string","minLength":1,"maxLength":15000}},"required":["requestId","kind","body"],"additionalProperties":false}}}},"responses":{"200":{"description":"Current authorized discovery data","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}},"additionalProperties":true}}}},"401":{"description":"Authenticated session or scoped credential required"},"403":{"description":"Current authority or explicit discovery membership required"},"404":{"description":"Record unavailable in the current authorized scope"},"409":{"description":"Stale edit, changed preparation or approval required"},"422":{"description":"Invalid input or incomplete preparation"},"503":{"description":"Current authorization unavailable"}},"x-required-scopes":["reviews:write"],"x-required-permissions":[],"x-required-capabilities":[],"x-resource-checks":["Verified current account identity","Exact active Discovery schedule recipient grant","Current publishing authority","Revocation before execution and replay"],"x-required-permission-mode":"all","x-evanet-credential-kind":"account","x-evanet-approval-class":"write","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/enterprise/discovery-reviews/{publicationId}":{"get":{"operationId":"getDiscoveryFindingsReview","summary":"get Discovery Findings Review","tags":["Client discovery"],"parameters":[{"name":"publicationId","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Current authorized discovery data","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}},"additionalProperties":true}}}},"401":{"description":"Authenticated session or scoped credential required"},"403":{"description":"Current authority or explicit discovery membership required"},"404":{"description":"Record unavailable in the current authorized scope"},"409":{"description":"Stale edit, changed preparation or approval required"},"422":{"description":"Invalid input or incomplete preparation"},"503":{"description":"Current authorization unavailable"}},"x-required-scopes":["reviews:read"],"x-required-permissions":[],"x-required-capabilities":[],"x-resource-checks":["Verified current account identity","Exact active discovery reviewer or attendee grant","Discovery rollout gate for findings","Revocation before execution and replay"],"x-required-permission-mode":"all","x-evanet-credential-kind":"account","x-evanet-approval-class":"none","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/enterprise/discovery-reviews/{publicationId}/accept":{"post":{"operationId":"acceptDiscoveryFindingsReview","summary":"accept Discovery Findings Review","tags":["Client discovery"],"parameters":[{"name":"publicationId","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","format":"uuid"}}],"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"confirmPublicationId":{"type":"string","minLength":1,"maxLength":200}},"required":["confirmPublicationId"],"additionalProperties":false}}}},"responses":{"200":{"description":"Current authorized discovery data","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}},"additionalProperties":true}}}},"401":{"description":"Authenticated session or scoped credential required"},"403":{"description":"Current authority or explicit discovery membership required"},"404":{"description":"Record unavailable in the current authorized scope"},"409":{"description":"Stale edit, changed preparation or approval required"},"422":{"description":"Invalid input or incomplete preparation"},"503":{"description":"Current authorization unavailable"}},"x-required-scopes":["reviews:write"],"x-required-permissions":[],"x-required-capabilities":[],"x-resource-checks":["Verified current account identity","Exact active discovery reviewer or attendee grant","Discovery rollout gate for findings","Revocation before execution and replay"],"x-required-permission-mode":"all","x-evanet-credential-kind":"account","x-evanet-approval-class":"write","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/enterprise/discovery-reviews/{publicationId}/feedback":{"post":{"operationId":"submitDiscoveryFindingsFeedback","summary":"submit Discovery Findings Feedback","tags":["Client discovery"],"parameters":[{"name":"publicationId","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","format":"uuid"}}],"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"body":{"type":"string","minLength":1,"maxLength":8000},"kind":{"type":"string","enum":["comment","changes_requested","reviewed"]}},"required":["body","kind"],"additionalProperties":false}}}},"responses":{"200":{"description":"Current authorized discovery data","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}},"additionalProperties":true}}}},"401":{"description":"Authenticated session or scoped credential required"},"403":{"description":"Current authority or explicit discovery membership required"},"404":{"description":"Record unavailable in the current authorized scope"},"409":{"description":"Stale edit, changed preparation or approval required"},"422":{"description":"Invalid input or incomplete preparation"},"503":{"description":"Current authorization unavailable"}},"x-required-scopes":["reviews:write"],"x-required-permissions":[],"x-required-capabilities":[],"x-resource-checks":["Verified current account identity","Exact active discovery reviewer or attendee grant","Discovery rollout gate for findings","Revocation before execution and replay"],"x-required-permission-mode":"all","x-evanet-credential-kind":"account","x-evanet-approval-class":"write","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/enterprise/discovery-agendas/{sessionId}":{"get":{"operationId":"getDiscoveryAttendeeAgenda","summary":"get Discovery Attendee Agenda","tags":["Client discovery"],"parameters":[{"name":"sessionId","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Current authorized discovery data","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}},"additionalProperties":true}}}},"401":{"description":"Authenticated session or scoped credential required"},"403":{"description":"Current authority or explicit discovery membership required"},"404":{"description":"Record unavailable in the current authorized scope"},"409":{"description":"Stale edit, changed preparation or approval required"},"422":{"description":"Invalid input or incomplete preparation"},"503":{"description":"Current authorization unavailable"}},"x-required-scopes":["reviews:read"],"x-required-permissions":[],"x-required-capabilities":[],"x-resource-checks":["Verified current account identity","Exact active discovery reviewer or attendee grant","Discovery rollout gate for findings","Revocation before execution and replay"],"x-required-permission-mode":"all","x-evanet-credential-kind":"account","x-evanet-approval-class":"none","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/workspace-directory/people/{personId}/activity":{"get":{"operationId":"getWorkspacePersonActivity","tags":["Client workspaces and directories"],"parameters":[{"name":"personId","in":"path","required":true,"schema":{"type":"string"}},{"name":"timezone","in":"query","required":false,"schema":{"type":"string"}},{"name":"source","in":"query","required":false,"schema":{"type":"string"}},{"name":"from","in":"query","required":false,"schema":{"type":"string"}},{"name":"to","in":"query","required":false,"schema":{"type":"string"}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string"}},{"name":"view","in":"query","required":false,"schema":{"type":"string"}},{"name":"conversation","in":"query","required":false,"schema":{"type":"string"}}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Current authorized workspace or directory record","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"events":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"channel":{"type":"string","enum":["email","recorded"]},"kind":{"type":"string","enum":["email","email_reviewed","recorded"]},"at":{"type":"string"},"subject":{"type":"string"},"from":{"type":"object","properties":{"address":{"type":"string"},"name":{"type":["string","null"]}},"required":["address"],"additionalProperties":false},"to":{"type":"array","items":{"type":"object","properties":{"address":{"type":"string"},"name":{"type":["string","null"]}},"required":["address"],"additionalProperties":false}},"cc":{"type":"array","items":{"type":"object","properties":{"address":{"type":"string"},"name":{"type":["string","null"]}},"required":["address"],"additionalProperties":false}},"preview":{"type":"string"},"status":{"type":"string"},"direction":{"type":"string","enum":["sent","received","recorded"]},"participantRoles":{"type":"array","items":{"type":"string","enum":["from","to","cc"]}},"sources":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string"},"provider":{"type":"string"},"label":{"type":"string"},"href":{"type":"string"},"private":{"type":"boolean"}},"required":["id","kind","label","href","private"],"additionalProperties":false}},"test":{"type":"boolean"},"recordedBy":{"type":"string"},"labels":{"type":"array","items":{"type":"string"}}},"required":["id","channel","kind","at","subject","preview","participantRoles","sources"],"additionalProperties":false},"maxItems":50},"conversations":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"latest":{"type":"object","properties":{"id":{"type":"string"},"channel":{"type":"string","enum":["email","recorded"]},"kind":{"type":"string","enum":["email","email_reviewed","recorded"]},"at":{"type":"string"},"subject":{"type":"string"},"from":{"type":"object","properties":{"address":{"type":"string"},"name":{"type":["string","null"]}},"required":["address"],"additionalProperties":false},"to":{"type":"array","items":{"type":"object","properties":{"address":{"type":"string"},"name":{"type":["string","null"]}},"required":["address"],"additionalProperties":false}},"cc":{"type":"array","items":{"type":"object","properties":{"address":{"type":"string"},"name":{"type":["string","null"]}},"required":["address"],"additionalProperties":false}},"preview":{"type":"string"},"status":{"type":"string"},"direction":{"type":"string","enum":["sent","received","recorded"]},"participantRoles":{"type":"array","items":{"type":"string","enum":["from","to","cc"]}},"sources":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string"},"provider":{"type":"string"},"label":{"type":"string"},"href":{"type":"string"},"private":{"type":"boolean"}},"required":["id","kind","label","href","private"],"additionalProperties":false}},"test":{"type":"boolean"},"recordedBy":{"type":"string"},"labels":{"type":"array","items":{"type":"string"}}},"required":["id","channel","kind","at","subject","preview","participantRoles","sources"],"additionalProperties":false},"messageCount":{"type":"integer","exclusiveMinimum":0},"participants":{"type":"array","items":{"type":"object","properties":{"address":{"type":"string"},"name":{"type":["string","null"]}},"required":["address"],"additionalProperties":false}},"sources":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string"},"provider":{"type":"string"},"label":{"type":"string"},"href":{"type":"string"},"private":{"type":"boolean"}},"required":["id","kind","label","href","private"],"additionalProperties":false}},"cursor":{"type":"string"},"latestCursor":{"type":"string"}},"required":["id","latest","messageCount","participants","sources","cursor","latestCursor"],"additionalProperties":false},"maxItems":50},"addresses":{"type":"array","items":{"type":"string"}},"timezone":{"type":"string"},"coverage":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"state":{"type":"string","enum":["searching","complete","incomplete","reconnect","error"]},"searched":{"type":"integer","minimum":0},"error":{"type":"string"}},"required":["id","label","state"],"additionalProperties":false}},"snapshot":{"type":"string"},"nextCursor":{"type":["string","null"]},"previousCursor":{"type":["string","null"]},"progressCursor":{"type":["string","null"]},"retryCursor":{"type":["string","null"]},"refreshRequired":{"type":"boolean"}},"required":["events","addresses","timezone","coverage","snapshot","nextCursor"],"additionalProperties":false}},"required":["data"],"additionalProperties":false}}}},"403":{"description":"Current authority required in both workspaces"},"409":{"description":"Changed source, duplicate review or exact human approval required"},"422":{"description":"Invalid input or executed agreement evidence missing"}},"x-required-scopes":["people:read"],"x-required-permissions":["tool.shared.people.view"],"x-required-capabilities":["staff_people"],"x-resource-checks":["workspace-membership","source-workspace-permission","mailbox-owner-or-thread-share","survey-manage","agency-scope","viewer-private-response","source-recheck"],"x-required-permission-mode":"all","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"none","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/workspace-directory/people/{personId}/activity/source":{"get":{"operationId":"getWorkspacePersonActivitySource","tags":["Client workspaces and directories"],"parameters":[{"name":"personId","in":"path","required":true,"schema":{"type":"string"}},{"name":"kind","in":"query","required":false,"schema":{"type":"string"}},{"name":"id","in":"query","required":false,"schema":{"type":"string"}}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Current authorized workspace or directory record","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"subject":{"type":"string"},"from":{"type":"object","properties":{"address":{"type":"string"},"name":{"type":["string","null"]}},"required":["address"],"additionalProperties":false},"to":{"type":"array","items":{"type":"object","properties":{"address":{"type":"string"},"name":{"type":["string","null"]}},"required":["address"],"additionalProperties":false}},"cc":{"type":"array","items":{"type":"object","properties":{"address":{"type":"string"},"name":{"type":["string","null"]}},"required":["address"],"additionalProperties":false}},"at":{"type":"string"},"bodyText":{"type":["string","null"]},"bodyHtml":{"type":["string","null"]},"status":{"type":"string"},"sourceLabel":{"type":"string"},"authoredText":{"type":"string"},"contentBasis":{"type":"string","enum":["body","preview"]}},"required":["subject","at","sourceLabel"],"additionalProperties":false}},"required":["data"],"additionalProperties":false}}}},"403":{"description":"Current authority required in both workspaces"},"409":{"description":"Changed source, duplicate review or exact human approval required"},"422":{"description":"Invalid input or executed agreement evidence missing"}},"x-required-scopes":["people:read"],"x-required-permissions":["tool.shared.people.view"],"x-required-capabilities":["staff_people"],"x-resource-checks":["workspace-membership","source-workspace-permission","mailbox-owner-or-thread-share","survey-manage","agency-scope","viewer-private-response","source-recheck"],"x-required-permission-mode":"all","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"none","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/workspace-directory/people":{"get":{"operationId":"getWorkspaceDirectoryPeople","tags":["Client workspaces and directories"],"parameters":[{"name":"directory","in":"query","required":false,"schema":{"type":"string"}},{"name":"q","in":"query","required":false,"schema":{"type":"string"}},{"name":"role","in":"query","required":false,"schema":{"type":"string"}},{"name":"status","in":"query","required":false,"schema":{"type":"string"}},{"name":"companyId","in":"query","required":false,"schema":{"type":"string"}},{"name":"personId","in":"query","required":false,"schema":{"type":"string"}},{"name":"row","in":"query","required":false,"schema":{"type":"string"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1}}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Current authorized workspace or directory record"},"403":{"description":"Current authority required in both workspaces"},"409":{"description":"Changed source, duplicate review or exact human approval required"},"422":{"description":"Invalid input or executed agreement evidence missing"}},"x-required-scopes":["people:read"],"x-required-permissions":["tool.shared.people.view"],"x-required-capabilities":[],"x-resource-checks":["workspace-membership","source-workspace-permission","reviewed-duplicates","version-preconditions"],"x-required-permission-mode":"all","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"none","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false},"post":{"operationId":"createWorkspaceDirectoryPerson","tags":["Client workspaces and directories"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","format":"uuid"}}],"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":255},"email":{"anyOf":[{"type":"string","format":"email","maxLength":320},{"type":"string","const":""}],"default":""},"phone":{"type":"string","maxLength":100,"default":""},"dateOfBirth":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}],"default":null},"notes":{"type":"string","maxLength":5000,"default":""},"category":{"type":"string","enum":["contact","household","extended-family","caregiver","friend"],"default":"contact"},"directoryId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$"},"roster":{"type":"string","enum":["employees","affiliates","customers"]},"expectedRevision":{"type":"integer","minimum":0,"default":0},"expectedDirectoryUpdatedAt":{"type":"string","format":"date-time"},"personId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$"},"previewDigest":{"type":"string"},"createDistinct":{"type":"boolean","default":false}},"required":["name"],"additionalProperties":false}}}},"responses":{"200":{"description":"Current authorized workspace or directory record"},"403":{"description":"Current authority required in both workspaces"},"409":{"description":"Changed source, duplicate review or exact human approval required"},"422":{"description":"Invalid input or executed agreement evidence missing"}},"x-required-scopes":["people:write"],"x-required-permissions":["tool.shared.people.manage"],"x-required-capabilities":["staff_people"],"x-resource-checks":["workspace-membership","source-workspace-permission","version-preconditions","same-origin-session"],"x-required-permission-mode":"all","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"none","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/workspace-directory/definitions":{"post":{"operationId":"saveWorkspaceDirectoryDefinition","tags":["Client workspaces and directories"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","format":"uuid"}}],"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$"},"name":{"type":"string","minLength":1,"maxLength":150},"archived":{"type":"boolean","default":false},"expectedUpdatedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]}},"required":["name","expectedUpdatedAt"],"additionalProperties":false}}}},"responses":{"200":{"description":"Current authorized workspace or directory record"},"403":{"description":"Current authority required in both workspaces"},"409":{"description":"Changed source, duplicate review or exact human approval required"},"422":{"description":"Invalid input or executed agreement evidence missing"}},"x-required-scopes":["people:write"],"x-required-permissions":["tool.shared.people.manage"],"x-required-capabilities":["staff_people"],"x-resource-checks":["workspace-membership","source-workspace-permission","version-preconditions","same-origin-session"],"x-required-permission-mode":"all","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"none","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/workspace-directory/memberships":{"post":{"operationId":"saveWorkspaceDirectoryMembership","tags":["Client workspaces and directories"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","format":"uuid"}}],"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"jobTitle":{"type":"string","maxLength":255,"default":""},"companyName":{"type":"string","maxLength":255,"default":""},"companyId":{"anyOf":[{"type":"string","minLength":1,"maxLength":200},{"type":"null"}]},"geography":{"type":"string","maxLength":255,"default":""},"primaryFunction":{"anyOf":[{"type":"string","minLength":1,"maxLength":200},{"type":"null"}],"default":null},"additionalFunctions":{"type":"array","items":{"type":"string","minLength":1,"maxLength":200},"maxItems":30,"default":[]},"active":{"type":"string","enum":["active","inactive"],"default":"active"},"directoryId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$"},"personId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$"},"expectedUpdatedAt":{"type":"string","format":"date-time"},"expectedRevision":{"type":"integer","minimum":0,"default":0},"remove":{"type":"boolean","default":false}},"required":["directoryId","personId"],"additionalProperties":false}}}},"responses":{"200":{"description":"Current authorized workspace or directory record"},"403":{"description":"Current authority required in both workspaces"},"409":{"description":"Changed source, duplicate review or exact human approval required"},"422":{"description":"Invalid input or executed agreement evidence missing"}},"x-required-scopes":["people:write"],"x-required-permissions":["tool.shared.people.manage"],"x-required-capabilities":["staff_people"],"x-resource-checks":["workspace-membership","source-workspace-permission","version-preconditions","same-origin-session"],"x-required-permission-mode":"all","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"none","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/workspace-directory/people/merges":{"post":{"operationId":"mergeWorkspaceDirectoryPeople","tags":["Client workspaces and directories"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","format":"uuid"}}],"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"targetPersonId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$"},"sourcePersonId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$"},"expectedUpdatedAt":{"type":"string","format":"date-time"},"expectedSourceUpdatedAt":{"type":"string","format":"date-time"}},"required":["targetPersonId","sourcePersonId","expectedUpdatedAt","expectedSourceUpdatedAt"],"additionalProperties":false}}}},"responses":{"200":{"description":"Current authorized workspace or directory record"},"403":{"description":"Current authority required in both workspaces"},"409":{"description":"Changed source, duplicate review or exact human approval required"},"422":{"description":"Invalid input or executed agreement evidence missing"}},"x-required-scopes":["people:write"],"x-required-permissions":["tool.shared.people.manage"],"x-required-capabilities":["staff_people"],"x-resource-checks":["workspace-membership","source-workspace-permission","version-preconditions","same-origin-session"],"x-required-permission-mode":"all","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"none","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/workspace-directory/people/previews":{"post":{"operationId":"previewWorkspaceDirectoryPerson","tags":["Client workspaces and directories"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","format":"uuid"}}],"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":255},"email":{"anyOf":[{"type":"string","format":"email","maxLength":320},{"type":"string","const":""}],"default":""},"phone":{"type":"string","maxLength":100,"default":""},"dateOfBirth":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}],"default":null},"notes":{"type":"string","maxLength":5000,"default":""},"category":{"type":"string","enum":["contact","household","extended-family","caregiver","friend"],"default":"contact"},"directoryId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$"},"roster":{"type":"string","enum":["employees","affiliates","customers"]},"expectedRevision":{"type":"integer","minimum":0,"default":0},"expectedDirectoryUpdatedAt":{"type":"string","format":"date-time"},"personId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,200}$"},"previewDigest":{"type":"string"},"createDistinct":{"type":"boolean","default":false}},"required":["name"],"additionalProperties":false}}}},"responses":{"200":{"description":"Current authorized workspace or directory record"},"403":{"description":"Current authority required in both workspaces"},"409":{"description":"Changed source, duplicate review or exact human approval required"},"422":{"description":"Invalid input or executed agreement evidence missing"}},"x-required-scopes":["people:write"],"x-required-permissions":["tool.shared.people.manage"],"x-required-capabilities":["staff_people"],"x-resource-checks":["workspace-membership","source-workspace-permission","version-preconditions","same-origin-session"],"x-required-permission-mode":"all","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"none","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/enterprise/partners/{partnerId}/workspace":{"get":{"operationId":"getClientWorkspace","tags":["Client workspaces and directories"],"parameters":[{"name":"partnerId","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Current authorized workspace or directory record"},"403":{"description":"Current authority required in both workspaces"},"409":{"description":"Changed source, duplicate review or exact human approval required"},"422":{"description":"Invalid input or executed agreement evidence missing"}},"x-required-scopes":["partners:read"],"x-required-permissions":["tool.enterprise.partners.view"],"x-required-capabilities":[],"x-resource-checks":["workspace-membership","source-workspace-permission","client-workspace-link","exact-preparation-digest","same-origin-session"],"x-required-permission-mode":"all","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"none","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/enterprise/partners/{partnerId}/workspace/preparations":{"post":{"operationId":"prepareClientWorkspace","tags":["Client workspaces and directories"],"parameters":[{"name":"partnerId","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","format":"uuid"}}],"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"mode":{"type":"string","const":"link"},"targetWorkspaceId":{"type":"string","minLength":1,"maxLength":200}},"required":["mode","targetWorkspaceId"],"additionalProperties":false},{"type":"object","properties":{"mode":{"type":"string","const":"create"},"name":{"type":"string","minLength":1,"maxLength":255},"slug":{"type":"string","pattern":"^[a-z0-9-]{3,100}$"},"ownerId":{"type":"string","minLength":1,"maxLength":200},"blueprintReleaseId":{"type":"string","minLength":1,"maxLength":200},"enableSurveys":{"type":"boolean","default":true},"staff":{"type":"array","items":{"type":"object","properties":{"userId":{"type":"string","minLength":1,"maxLength":200},"role":{"type":"string","enum":["admin","member"]}},"required":["userId","role"],"additionalProperties":false},"maxItems":50,"default":[]}},"required":["mode","name","slug","ownerId","blueprintReleaseId"],"additionalProperties":false}]}}}},"responses":{"200":{"description":"Current authorized workspace or directory record"},"403":{"description":"Current authority required in both workspaces"},"409":{"description":"Changed source, duplicate review or exact human approval required"},"422":{"description":"Invalid input or executed agreement evidence missing"}},"x-required-scopes":["partners:write"],"x-required-permissions":["tool.enterprise.partners.manage"],"x-required-capabilities":[],"x-resource-checks":["workspace-membership","source-workspace-permission","client-workspace-link","exact-preparation-digest","same-origin-session"],"x-required-permission-mode":"all","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"none","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/enterprise/partners/{partnerId}/workspace/decision":{"post":{"operationId":"decideClientWorkspace","tags":["Client workspaces and directories"],"parameters":[{"name":"partnerId","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","format":"uuid"}}],"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"preparationId":{"type":"string","minLength":1,"maxLength":200},"digest":{"type":"string","pattern":"^sha256:[a-f0-9]{64}$"},"decision":{"type":"string","enum":["approved","rejected","changes_requested"]}},"required":["preparationId","digest","decision"],"additionalProperties":false}}}},"responses":{"200":{"description":"Current authorized workspace or directory record"},"403":{"description":"Current authority required in both workspaces"},"409":{"description":"Changed source, duplicate review or exact human approval required"},"422":{"description":"Invalid input or executed agreement evidence missing"}},"x-required-scopes":["partners:write"],"x-required-permissions":["tool.enterprise.partners.manage"],"x-required-capabilities":[],"x-resource-checks":["workspace-membership","source-workspace-permission","client-workspace-link","exact-preparation-digest","same-origin-session"],"x-required-permission-mode":"all","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"human","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/enterprise/partners/{partnerId}/workspace/apply":{"post":{"operationId":"applyClientWorkspace","tags":["Client workspaces and directories"],"parameters":[{"name":"partnerId","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","format":"uuid"}}],"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"preparationId":{"type":"string","minLength":1,"maxLength":200},"digest":{"type":"string","pattern":"^sha256:[a-f0-9]{64}$"}},"required":["preparationId","digest"],"additionalProperties":false}}}},"responses":{"200":{"description":"Current authorized workspace or directory record"},"403":{"description":"Current authority required in both workspaces"},"409":{"description":"Changed source, duplicate review or exact human approval required"},"422":{"description":"Invalid input or executed agreement evidence missing"}},"x-required-scopes":["partners:write"],"x-required-permissions":["tool.enterprise.partners.manage"],"x-required-capabilities":[],"x-resource-checks":["workspace-membership","source-workspace-permission","client-workspace-link","exact-preparation-digest","same-origin-session"],"x-required-permission-mode":"all","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"human","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/enterprise/partners/{partnerId}/workspace/person-references":{"post":{"operationId":"referenceClientPerson","tags":["Client workspaces and directories"],"parameters":[{"name":"partnerId","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","format":"uuid"}}],"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"enterprisePersonId":{"type":"string","minLength":1,"maxLength":200},"personId":{"type":"string","minLength":1,"maxLength":200},"sourceWorkspaceId":{"type":"string","minLength":1,"maxLength":200}},"required":["enterprisePersonId","personId","sourceWorkspaceId"],"additionalProperties":false}}}},"responses":{"200":{"description":"Current authorized workspace or directory record"},"403":{"description":"Current authority required in both workspaces"},"409":{"description":"Changed source, duplicate review or exact human approval required"},"422":{"description":"Invalid input or executed agreement evidence missing"}},"x-required-scopes":["partners:write"],"x-required-permissions":["tool.enterprise.partners.manage"],"x-required-capabilities":[],"x-resource-checks":["workspace-membership","source-workspace-permission","client-workspace-link","exact-preparation-digest","same-origin-session"],"x-required-permission-mode":"all","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"none","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/workspace-directory":{"get":{"operationId":"getWorkspaceDirectory","tags":["Client workspaces and directories"],"parameters":[],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Current authorized workspace or directory record"},"403":{"description":"Current authority required in both workspaces"},"409":{"description":"Changed source, duplicate review or exact human approval required"},"422":{"description":"Invalid input or executed agreement evidence missing"}},"x-required-scopes":["people:read"],"x-required-permissions":["tool.shared.people.view"],"x-required-capabilities":[],"x-resource-checks":["workspace-membership","source-workspace-permission","reviewed-duplicates","version-preconditions"],"x-required-permission-mode":"all","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"none","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/workspace-directory/companies":{"post":{"operationId":"saveWorkspaceDirectoryCompany","tags":["Client workspaces and directories"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","format":"uuid"}}],"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":200},"name":{"type":"string","minLength":1,"maxLength":255},"website":{"type":"string","maxLength":2048,"default":""},"location":{"type":"string","maxLength":255,"default":""},"notes":{"type":"string","maxLength":5000,"default":""},"expectedUpdatedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]}},"required":["name","expectedUpdatedAt"],"additionalProperties":false}}}},"responses":{"200":{"description":"Current authorized workspace or directory record"},"403":{"description":"Current authority required in both workspaces"},"409":{"description":"Changed source, duplicate review or exact human approval required"},"422":{"description":"Invalid input or executed agreement evidence missing"}},"x-required-scopes":["people:write"],"x-required-permissions":["tool.shared.people.manage"],"x-required-capabilities":["staff_people"],"x-resource-checks":["workspace-membership","source-workspace-permission","version-preconditions","same-origin-session"],"x-required-permission-mode":"all","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"none","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/workspace-directory/people/{personId}":{"post":{"operationId":"saveWorkspaceDirectoryPerson","tags":["Client workspaces and directories"],"parameters":[{"name":"personId","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","format":"uuid"}}],"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":255},"email":{"anyOf":[{"type":"string","format":"email","maxLength":320},{"type":"string","const":""}]},"phone":{"type":"string","maxLength":100,"default":""},"subOrganizationId":{"anyOf":[{"type":"string","minLength":1,"maxLength":200},{"type":"null"}]},"expectedUpdatedAt":{"type":"string","format":"date-time"}},"required":["name","email","expectedUpdatedAt"],"additionalProperties":false}}}},"responses":{"200":{"description":"Current authorized workspace or directory record"},"403":{"description":"Current authority required in both workspaces"},"409":{"description":"Changed source, duplicate review or exact human approval required"},"422":{"description":"Invalid input or executed agreement evidence missing"}},"x-required-scopes":["people:write"],"x-required-permissions":["tool.shared.people.manage"],"x-required-capabilities":["staff_people"],"x-resource-checks":["workspace-membership","source-workspace-permission","version-preconditions","same-origin-session"],"x-required-permission-mode":"all","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"none","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/workspace-directory/people/{personId}/photo":{"get":{"operationId":"getWorkspaceDirectoryPhoto","tags":["Client workspaces and directories"],"parameters":[{"name":"personId","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Current authorized workspace or directory record"},"403":{"description":"Current authority required in both workspaces"},"409":{"description":"Changed source, duplicate review or exact human approval required"},"422":{"description":"Invalid input or executed agreement evidence missing"}},"x-required-scopes":["people:read"],"x-required-permissions":["tool.shared.people.view"],"x-required-capabilities":["staff_people"],"x-resource-checks":["workspace-membership","source-workspace-permission","version-preconditions"],"x-required-permission-mode":"all","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"none","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false},"post":{"operationId":"saveWorkspaceDirectoryPhoto","tags":["Client workspaces and directories"],"parameters":[{"name":"personId","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","format":"uuid"}}],"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"imageBase64":{"type":"string","minLength":1,"maxLength":6990508},"contentType":{"type":"string","enum":["image/jpeg","image/png","image/webp"]},"expectedUpdatedAt":{"type":"string","format":"date-time"}},"required":["imageBase64","contentType","expectedUpdatedAt"],"additionalProperties":false}}}},"responses":{"200":{"description":"Current authorized workspace or directory record"},"403":{"description":"Current authority required in both workspaces"},"409":{"description":"Changed source, duplicate review or exact human approval required"},"422":{"description":"Invalid input or executed agreement evidence missing"}},"x-required-scopes":["people:write"],"x-required-permissions":["tool.shared.people.manage"],"x-required-capabilities":["staff_people"],"x-resource-checks":["workspace-membership","source-workspace-permission","version-preconditions","same-origin-session"],"x-required-permission-mode":"all","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"none","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/workspace-directory/people/{personId}/photo/remove":{"post":{"operationId":"removeWorkspaceDirectoryPhoto","tags":["Client workspaces and directories"],"parameters":[{"name":"personId","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","format":"uuid"}}],"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"expectedUpdatedAt":{"type":"string","format":"date-time"}},"required":["expectedUpdatedAt"],"additionalProperties":false}}}},"responses":{"200":{"description":"Current authorized workspace or directory record"},"403":{"description":"Current authority required in both workspaces"},"409":{"description":"Changed source, duplicate review or exact human approval required"},"422":{"description":"Invalid input or executed agreement evidence missing"}},"x-required-scopes":["people:write"],"x-required-permissions":["tool.shared.people.manage"],"x-required-capabilities":["staff_people"],"x-resource-checks":["workspace-membership","source-workspace-permission","version-preconditions","same-origin-session"],"x-required-permission-mode":"all","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"none","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/workspace-directory/functions":{"post":{"operationId":"saveWorkspaceFunction","tags":["Client workspaces and directories"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","format":"uuid"}}],"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":150},"expectedRevision":{"type":"integer","minimum":0}},"required":["key","label","expectedRevision"],"additionalProperties":false}}}},"responses":{"200":{"description":"Current authorized workspace or directory record"},"403":{"description":"Current authority required in both workspaces"},"409":{"description":"Changed source, duplicate review or exact human approval required"},"422":{"description":"Invalid input or executed agreement evidence missing"}},"x-required-scopes":["people:write"],"x-required-permissions":["tool.shared.people.manage"],"x-required-capabilities":[],"x-resource-checks":["workspace-membership","source-workspace-permission","reviewed-duplicates","version-preconditions"],"x-required-permission-mode":"all","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"none","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/workspace-directory/previews":{"post":{"operationId":"previewWorkspaceDirectoryImport","tags":["Client workspaces and directories"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","format":"uuid"}}],"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"directory":{"type":"string","enum":["employees","affiliates","customers"]},"rows":{"type":"array","items":{"type":"object","properties":{"personId":{"type":"string","minLength":1,"maxLength":200},"name":{"type":"string","minLength":1,"maxLength":255},"email":{"type":"string","format":"email","maxLength":320},"jobTitle":{"type":"string","maxLength":255,"default":""},"companyName":{"type":"string","maxLength":255,"default":""},"companyId":{"anyOf":[{"type":"string","minLength":1,"maxLength":200},{"type":"null"}]},"geography":{"type":"string","maxLength":255,"default":""},"primaryFunction":{"anyOf":[{"type":"string","minLength":1,"maxLength":200},{"type":"null"}],"default":null},"additionalFunctions":{"type":"array","items":{"type":"string","minLength":1,"maxLength":200},"maxItems":30,"default":[]},"active":{"type":"string","enum":["active","inactive"],"default":"active"},"expectedRevision":{"type":"integer","minimum":0,"default":0}},"required":["name","email"],"additionalProperties":false},"minItems":1,"maxItems":500},"previewDigest":{"type":"string"}},"required":["directory","rows"],"additionalProperties":false}}}},"responses":{"200":{"description":"Current authorized workspace or directory record"},"403":{"description":"Current authority required in both workspaces"},"409":{"description":"Changed source, duplicate review or exact human approval required"},"422":{"description":"Invalid input or executed agreement evidence missing"}},"x-required-scopes":["people:write"],"x-required-permissions":["tool.shared.people.manage"],"x-required-capabilities":[],"x-resource-checks":["workspace-membership","source-workspace-permission","reviewed-duplicates","version-preconditions"],"x-required-permission-mode":"all","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"none","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/workspace-directory/imports":{"post":{"operationId":"commitWorkspaceDirectoryImport","tags":["Client workspaces and directories"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","format":"uuid"}}],"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"directory":{"type":"string","enum":["employees","affiliates","customers"]},"rows":{"type":"array","items":{"type":"object","properties":{"personId":{"type":"string","minLength":1,"maxLength":200},"name":{"type":"string","minLength":1,"maxLength":255},"email":{"type":"string","format":"email","maxLength":320},"jobTitle":{"type":"string","maxLength":255,"default":""},"companyName":{"type":"string","maxLength":255,"default":""},"companyId":{"anyOf":[{"type":"string","minLength":1,"maxLength":200},{"type":"null"}]},"geography":{"type":"string","maxLength":255,"default":""},"primaryFunction":{"anyOf":[{"type":"string","minLength":1,"maxLength":200},{"type":"null"}],"default":null},"additionalFunctions":{"type":"array","items":{"type":"string","minLength":1,"maxLength":200},"maxItems":30,"default":[]},"active":{"type":"string","enum":["active","inactive"],"default":"active"},"expectedRevision":{"type":"integer","minimum":0,"default":0}},"required":["name","email"],"additionalProperties":false},"minItems":1,"maxItems":500},"previewDigest":{"type":"string"}},"required":["directory","rows"],"additionalProperties":false}}}},"responses":{"200":{"description":"Current authorized workspace or directory record"},"403":{"description":"Current authority required in both workspaces"},"409":{"description":"Changed source, duplicate review or exact human approval required"},"422":{"description":"Invalid input or executed agreement evidence missing"}},"x-required-scopes":["people:write"],"x-required-permissions":["tool.shared.people.manage"],"x-required-capabilities":[],"x-resource-checks":["workspace-membership","source-workspace-permission","reviewed-duplicates","version-preconditions"],"x-required-permission-mode":"all","x-evanet-credential-kind":"workspace","x-evanet-approval-class":"none","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/calendar/calendars":{"get":{"parameters":[{"name":"start","in":"query","schema":{"type":"string","format":"date-time"}},{"name":"end","in":"query","schema":{"type":"string","format":"date-time"}}],"responses":{"200":{"description":"Calendar result scoped to current workspace and calendar access.","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","additionalProperties":true}}}}}}},"tags":["Calendar"],"operationId":"getWorkspaceCalendarCalendars","x-required-scopes":["calendar:read"],"x-required-permissions":["workspace.member"],"x-required-capabilities":[],"x-resource-checks":["current-workspace-membership","calendar-role","same-origin-session","calendar-capability"],"x-evanet-credential-kind":"workspace","x-evanet-approval-class":"none","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false},"post":{"operationId":"changeWorkspaceCalendarCalendars","tags":["Calendar"],"parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"action":{"type":"string","minLength":1,"maxLength":40},"requestId":{"type":"string","minLength":1,"maxLength":256},"expectedRevision":{"type":"integer","exclusiveMinimum":0},"id":{"type":"string","minLength":1,"maxLength":256},"calendarId":{"type":"string","minLength":1,"maxLength":256},"workspaceSlug":{"type":"string","maxLength":200},"data":{"type":"object","additionalProperties":{}}},"required":["action","requestId"],"additionalProperties":true}}}},"responses":{"200":{"description":"Calendar result scoped to current workspace and calendar access.","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","additionalProperties":true}}}}}}},"x-required-scopes":["calendar:write"],"x-required-permissions":["workspace.member"],"x-required-capabilities":[],"x-resource-checks":["current-workspace-membership","calendar-role","same-origin-session","calendar-capability"],"x-evanet-credential-kind":"workspace","x-evanet-approval-class":"explicit-human-action","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/calendar/events":{"get":{"parameters":[{"name":"start","in":"query","schema":{"type":"string","format":"date-time"}},{"name":"end","in":"query","schema":{"type":"string","format":"date-time"}}],"responses":{"200":{"description":"Calendar result scoped to current workspace and calendar access.","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","additionalProperties":true}}}}}}},"tags":["Calendar"],"operationId":"getWorkspaceCalendarEvents","x-required-scopes":["calendar:read"],"x-required-permissions":["workspace.member"],"x-required-capabilities":[],"x-resource-checks":["current-workspace-membership","calendar-role","same-origin-session","calendar-capability"],"x-evanet-credential-kind":"workspace","x-evanet-approval-class":"none","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false},"post":{"operationId":"changeWorkspaceCalendarEvents","tags":["Calendar"],"parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"action":{"type":"string","minLength":1,"maxLength":40},"requestId":{"type":"string","minLength":1,"maxLength":256},"expectedRevision":{"type":"integer","exclusiveMinimum":0},"id":{"type":"string","minLength":1,"maxLength":256},"calendarId":{"type":"string","minLength":1,"maxLength":256},"workspaceSlug":{"type":"string","maxLength":200},"data":{"type":"object","additionalProperties":{}}},"required":["action","requestId"],"additionalProperties":true}}}},"responses":{"200":{"description":"Calendar result scoped to current workspace and calendar access.","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","additionalProperties":true}}}}}}},"x-required-scopes":["calendar:write"],"x-required-permissions":["workspace.member"],"x-required-capabilities":[],"x-resource-checks":["current-workspace-membership","calendar-role","same-origin-session","calendar-capability"],"x-evanet-credential-kind":"workspace","x-evanet-approval-class":"explicit-human-action","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/calendar/connections":{"get":{"parameters":[{"name":"start","in":"query","schema":{"type":"string","format":"date-time"}},{"name":"end","in":"query","schema":{"type":"string","format":"date-time"}}],"responses":{"200":{"description":"Calendar result scoped to current workspace and calendar access.","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","additionalProperties":true}}}}}}},"tags":["Calendar"],"operationId":"getWorkspaceCalendarConnections","x-required-scopes":["calendar:read"],"x-required-permissions":["workspace.member"],"x-required-capabilities":[],"x-resource-checks":["current-workspace-membership","calendar-role","same-origin-session","calendar-capability"],"x-evanet-credential-kind":"workspace","x-evanet-approval-class":"none","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false},"post":{"operationId":"changeWorkspaceCalendarConnections","tags":["Calendar"],"parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"action":{"type":"string","minLength":1,"maxLength":40},"requestId":{"type":"string","minLength":1,"maxLength":256},"expectedRevision":{"type":"integer","exclusiveMinimum":0},"id":{"type":"string","minLength":1,"maxLength":256},"calendarId":{"type":"string","minLength":1,"maxLength":256},"workspaceSlug":{"type":"string","maxLength":200},"data":{"type":"object","additionalProperties":{}}},"required":["action","requestId"],"additionalProperties":true}}}},"responses":{"200":{"description":"Calendar result scoped to current workspace and calendar access.","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","additionalProperties":true}}}}}}},"x-required-scopes":["calendar:write"],"x-required-permissions":["workspace.member"],"x-required-capabilities":[],"x-resource-checks":["current-workspace-membership","calendar-role","same-origin-session","calendar-capability"],"x-evanet-credential-kind":"workspace","x-evanet-approval-class":"explicit-human-action","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/calendar/availability":{"get":{"parameters":[{"name":"start","in":"query","schema":{"type":"string","format":"date-time"}},{"name":"end","in":"query","schema":{"type":"string","format":"date-time"}},{"name":"attendees","in":"query","description":"Comma-separated attendee email addresses.","schema":{"type":"string"}},{"name":"durationMinutes","in":"query","schema":{"type":"integer","minimum":15,"maximum":480}},{"name":"timeZone","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"Calendar result scoped to current workspace and calendar access.","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","additionalProperties":true}}}}}}},"tags":["Calendar"],"operationId":"getWorkspaceCalendarAvailability","x-required-scopes":["calendar:read"],"x-required-permissions":["workspace.member"],"x-required-capabilities":[],"x-resource-checks":["current-workspace-membership","calendar-role","same-origin-session","calendar-capability"],"x-evanet-credential-kind":"workspace","x-evanet-approval-class":"none","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/calendar/sync":{"get":{"parameters":[{"name":"start","in":"query","schema":{"type":"string","format":"date-time"}},{"name":"end","in":"query","schema":{"type":"string","format":"date-time"}}],"responses":{"200":{"description":"Calendar result scoped to current workspace and calendar access.","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","additionalProperties":true}}}}}}},"tags":["Calendar"],"operationId":"getWorkspaceCalendarSync","x-required-scopes":["calendar:read"],"x-required-permissions":["workspace.member"],"x-required-capabilities":[],"x-resource-checks":["current-workspace-membership","calendar-role","same-origin-session","calendar-capability"],"x-evanet-credential-kind":"workspace","x-evanet-approval-class":"none","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false},"post":{"operationId":"changeWorkspaceCalendarSync","tags":["Calendar"],"parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"action":{"type":"string","minLength":1,"maxLength":40},"requestId":{"type":"string","minLength":1,"maxLength":256},"expectedRevision":{"type":"integer","exclusiveMinimum":0},"id":{"type":"string","minLength":1,"maxLength":256},"calendarId":{"type":"string","minLength":1,"maxLength":256},"workspaceSlug":{"type":"string","maxLength":200},"data":{"type":"object","additionalProperties":{}}},"required":["action","requestId"],"additionalProperties":true}}}},"responses":{"200":{"description":"Calendar result scoped to current workspace and calendar access.","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","additionalProperties":true}}}}}}},"x-required-scopes":["calendar:write"],"x-required-permissions":["workspace.member"],"x-required-capabilities":[],"x-resource-checks":["current-workspace-membership","calendar-role","same-origin-session","calendar-capability"],"x-evanet-credential-kind":"workspace","x-evanet-approval-class":"explicit-human-action","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/calendar/conflicts":{"get":{"parameters":[{"name":"start","in":"query","schema":{"type":"string","format":"date-time"}},{"name":"end","in":"query","schema":{"type":"string","format":"date-time"}}],"responses":{"200":{"description":"Calendar result scoped to current workspace and calendar access.","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","additionalProperties":true}}}}}}},"tags":["Calendar"],"operationId":"getWorkspaceCalendarConflicts","x-required-scopes":["calendar:read"],"x-required-permissions":["workspace.member"],"x-required-capabilities":[],"x-resource-checks":["current-workspace-membership","calendar-role","same-origin-session","calendar-capability"],"x-evanet-credential-kind":"workspace","x-evanet-approval-class":"none","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false},"post":{"operationId":"changeWorkspaceCalendarConflicts","tags":["Calendar"],"parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"action":{"type":"string","minLength":1,"maxLength":40},"requestId":{"type":"string","minLength":1,"maxLength":256},"expectedRevision":{"type":"integer","exclusiveMinimum":0},"id":{"type":"string","minLength":1,"maxLength":256},"calendarId":{"type":"string","minLength":1,"maxLength":256},"workspaceSlug":{"type":"string","maxLength":200},"data":{"type":"object","additionalProperties":{}}},"required":["action","requestId"],"additionalProperties":true}}}},"responses":{"200":{"description":"Calendar result scoped to current workspace and calendar access.","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","additionalProperties":true}}}}}}},"x-required-scopes":["calendar:write"],"x-required-permissions":["workspace.member"],"x-required-capabilities":[],"x-resource-checks":["current-workspace-membership","calendar-role","same-origin-session","calendar-capability"],"x-evanet-credential-kind":"workspace","x-evanet-approval-class":"explicit-human-action","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/calendar/rules":{"get":{"parameters":[{"name":"start","in":"query","schema":{"type":"string","format":"date-time"}},{"name":"end","in":"query","schema":{"type":"string","format":"date-time"}}],"responses":{"200":{"description":"Calendar result scoped to current workspace and calendar access.","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","additionalProperties":true}}}}}}},"tags":["Calendar"],"operationId":"getWorkspaceCalendarRules","x-required-scopes":["calendar:read"],"x-required-permissions":["workspace.member"],"x-required-capabilities":[],"x-resource-checks":["current-workspace-membership","calendar-role","same-origin-session","calendar-capability"],"x-evanet-credential-kind":"workspace","x-evanet-approval-class":"none","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false},"post":{"operationId":"changeWorkspaceCalendarRules","tags":["Calendar"],"parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"action":{"type":"string","minLength":1,"maxLength":40},"requestId":{"type":"string","minLength":1,"maxLength":256},"expectedRevision":{"type":"integer","exclusiveMinimum":0},"id":{"type":"string","minLength":1,"maxLength":256},"calendarId":{"type":"string","minLength":1,"maxLength":256},"workspaceSlug":{"type":"string","maxLength":200},"data":{"type":"object","additionalProperties":{}}},"required":["action","requestId"],"additionalProperties":true}}}},"responses":{"200":{"description":"Calendar result scoped to current workspace and calendar access.","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","additionalProperties":true}}}}}}},"x-required-scopes":["calendar:write"],"x-required-permissions":["workspace.member"],"x-required-capabilities":[],"x-resource-checks":["current-workspace-membership","calendar-role","same-origin-session","calendar-capability"],"x-evanet-credential-kind":"workspace","x-evanet-approval-class":"explicit-human-action","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/calendar/preferences":{"get":{"parameters":[],"responses":{"200":{"description":"Calendar result scoped to current workspace and calendar access.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"preferences":{"type":"object","properties":{"view":{"anyOf":[{"type":"string","enum":["dayGridMonth","timeGridWeek","timeGridDay","listMonth"]},{"type":"null"}]}},"required":["view"],"additionalProperties":false}},"required":["preferences"],"additionalProperties":false}},"required":["data"],"additionalProperties":false}}}}},"tags":["Calendar"],"operationId":"getWorkspaceCalendarPreferences","x-required-scopes":["calendar:read"],"x-required-permissions":["workspace.member"],"x-required-capabilities":[],"x-resource-checks":["current-workspace-membership","calendar-view-permission","own-user-preference","same-origin-session","calendar-capability"],"x-evanet-credential-kind":"workspace","x-evanet-approval-class":"none","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false},"post":{"operationId":"changeWorkspaceCalendarPreferences","tags":["Calendar"],"parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"action":{"type":"string","const":"save"},"requestId":{"type":"string","minLength":1,"maxLength":256},"expectedRevision":{"type":"integer","exclusiveMinimum":0},"id":{"type":"string","minLength":1,"maxLength":256},"calendarId":{"type":"string","minLength":1,"maxLength":256},"workspaceSlug":{"type":"string","maxLength":200},"data":{"type":"object","properties":{"view":{"type":"string","enum":["dayGridMonth","timeGridWeek","timeGridDay","listMonth"]}},"required":["view"],"additionalProperties":false}},"required":["action","requestId","data"],"additionalProperties":true},{"type":"object","properties":{"action":{"type":"string","const":"source_visibility"},"requestId":{"type":"string","minLength":1,"maxLength":256},"expectedRevision":{"type":"integer","exclusiveMinimum":0},"id":{"type":"string","minLength":1,"maxLength":256},"calendarId":{"type":"string","minLength":1,"maxLength":256},"workspaceSlug":{"type":"string","maxLength":200},"data":{"type":"object","properties":{"subscriptionId":{"type":"string","minLength":1,"maxLength":256},"hidden":{"type":"boolean"}},"required":["subscriptionId","hidden"],"additionalProperties":false}},"required":["action","requestId","data"],"additionalProperties":true}]}}}},"responses":{"200":{"description":"Calendar result scoped to current workspace and calendar access.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"data":{"type":"object","properties":{"preferences":{"type":"object","properties":{"view":{"type":"string","enum":["dayGridMonth","timeGridWeek","timeGridDay","listMonth"]}},"required":["view"],"additionalProperties":false}},"required":["preferences"],"additionalProperties":false}},"required":["data"],"additionalProperties":false},{"type":"object","properties":{"data":{"type":"object","properties":{"saved":{"type":"boolean","const":true}},"required":["saved"],"additionalProperties":false}},"required":["data"],"additionalProperties":false}]}}}}},"x-required-scopes":["calendar:read"],"x-required-permissions":["workspace.member"],"x-required-capabilities":[],"x-resource-checks":["current-workspace-membership","calendar-view-permission","own-user-preference","same-origin-session","calendar-capability"],"x-evanet-credential-kind":"workspace","x-evanet-approval-class":"none","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/calendar/feeds":{"get":{"parameters":[{"name":"start","in":"query","schema":{"type":"string","format":"date-time"}},{"name":"end","in":"query","schema":{"type":"string","format":"date-time"}}],"responses":{"200":{"description":"Calendar result scoped to current workspace and calendar access.","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","additionalProperties":true}}}}}}},"tags":["Calendar"],"operationId":"getWorkspaceCalendarFeeds","x-required-scopes":["calendar:read"],"x-required-permissions":["workspace.member"],"x-required-capabilities":[],"x-resource-checks":["current-workspace-membership","calendar-view-permission","calendar-manager-for-source-changes","writable-google-destination","own-user-source-visibility","same-origin-session","calendar-capability"],"x-evanet-credential-kind":"workspace","x-evanet-approval-class":"none","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false},"post":{"operationId":"changeWorkspaceCalendarFeeds","tags":["Calendar"],"parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"action":{"type":"string","minLength":1,"maxLength":40},"requestId":{"type":"string","minLength":1,"maxLength":256},"expectedRevision":{"type":"integer","exclusiveMinimum":0},"id":{"type":"string","minLength":1,"maxLength":256},"calendarId":{"type":"string","minLength":1,"maxLength":256},"workspaceSlug":{"type":"string","maxLength":200},"data":{"type":"object","additionalProperties":{}}},"required":["action","requestId"],"additionalProperties":true}}}},"responses":{"200":{"description":"Calendar result scoped to current workspace and calendar access.","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","additionalProperties":true}}}}}}},"x-required-scopes":["calendar:write"],"x-required-permissions":["workspace.member"],"x-required-capabilities":[],"x-resource-checks":["current-workspace-membership","calendar-view-permission","calendar-manager-for-source-changes","writable-google-destination","own-user-source-visibility","same-origin-session","calendar-capability"],"x-evanet-credential-kind":"workspace","x-evanet-approval-class":"none","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}},"/api/v1/calendar/setup":{"get":{"parameters":[{"name":"id","in":"query","description":"Current user setup attempt identifier. Takes precedence over requestId; omit both to list recent attempts.","schema":{"type":"string"}},{"name":"requestId","in":"query","description":"Recover this user’s setup attempt by its original reviewed request identity after a lost start response.","schema":{"type":"string","maxLength":256}}],"responses":{"200":{"description":"Calendar result scoped to current workspace and calendar access.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"anyOf":[{"type":"object","properties":{"attempt":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":500},"status":{"type":"string","enum":["pending","processing","succeeded","partial","failed","needs_reconciliation"]},"items":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","minLength":1,"maxLength":500},"name":{"type":"string"},"proposedCalendarId":{"type":"string","minLength":1,"maxLength":500},"calendarId":{"anyOf":[{"type":"string","minLength":1,"maxLength":500},{"type":"null"}]},"providerCalendarId":{"anyOf":[{"type":"string","minLength":1,"maxLength":500},{"type":"null"}]},"stage":{"type":"string","enum":["pending","creating","created","configured","attached","shared","done"]},"status":{"type":"string","enum":["pending","succeeded","failed","needs_reconciliation"]},"error":{"type":["string","null"]},"alreadyAdded":{"type":"boolean"}},"required":["key","name","proposedCalendarId","calendarId","providerCalendarId","stage","status","error"],"additionalProperties":false}},"error":{"type":["string","null"]}},"required":["id","status","items","error"],"additionalProperties":false}},"required":["attempt"],"additionalProperties":false},{"type":"object","properties":{"attempts":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":500},"status":{"type":"string","enum":["pending","processing","succeeded","partial","failed","needs_reconciliation"]},"items":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","minLength":1,"maxLength":500},"name":{"type":"string"},"proposedCalendarId":{"type":"string","minLength":1,"maxLength":500},"calendarId":{"anyOf":[{"type":"string","minLength":1,"maxLength":500},{"type":"null"}]},"providerCalendarId":{"anyOf":[{"type":"string","minLength":1,"maxLength":500},{"type":"null"}]},"stage":{"type":"string","enum":["pending","creating","created","configured","attached","shared","done"]},"status":{"type":"string","enum":["pending","succeeded","failed","needs_reconciliation"]},"error":{"type":["string","null"]},"alreadyAdded":{"type":"boolean"}},"required":["key","name","proposedCalendarId","calendarId","providerCalendarId","stage","status","error"],"additionalProperties":false}},"error":{"type":["string","null"]}},"required":["id","status","items","error"],"additionalProperties":false}}},"required":["attempts"],"additionalProperties":false}]}},"required":["data"],"additionalProperties":false}}}}},"tags":["Calendar"],"operationId":"getWorkspaceCalendarSetup","x-required-scopes":["calendar:read"],"x-required-permissions":["workspace.member"],"x-required-capabilities":[],"x-resource-checks":["current-workspace-membership","calendar-edit-permission-for-setup","own-user-setup-attempt","connection-purpose-and-workspace","authorization-at-execution","same-origin-session","calendar-capability"],"x-evanet-credential-kind":"workspace","x-evanet-approval-class":"none","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false},"post":{"operationId":"changeWorkspaceCalendarSetup","tags":["Calendar"],"parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"action":{"type":"string","const":"start"},"requestId":{"type":"string","minLength":1,"maxLength":256},"expectedRevision":{"type":"integer","exclusiveMinimum":0},"id":{"type":"string","minLength":1,"maxLength":256},"calendarId":{"type":"string","minLength":1,"maxLength":256},"workspaceSlug":{"type":"string","maxLength":200},"data":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":160},"color":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$","default":"#3b82f6"},"timeZone":{"type":"string","maxLength":100,"default":"UTC"},"access":{"type":"string","enum":["restricted","workspace"],"default":"restricted"},"mode":{"type":"string","enum":["existing","new"]},"location":{"type":"string","enum":["google","native"]},"connectionId":{"type":"string","minLength":1,"maxLength":500},"calendars":{"type":"array","items":{"type":"object","properties":{"providerCalendarId":{"type":"string","minLength":1,"maxLength":500},"name":{"type":"string","minLength":1,"maxLength":160},"color":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$","default":"#3b82f6"},"timeZone":{"type":"string","maxLength":100,"default":"UTC"}},"required":["providerCalendarId","name"],"additionalProperties":false},"minItems":1,"maxItems":50},"grants":{"type":"array","items":{"type":"object","properties":{"userId":{"type":"string","minLength":1,"maxLength":500},"role":{"type":"string","enum":["viewer","editor","manager"]}},"required":["userId","role"],"additionalProperties":false},"maxItems":200,"default":[]},"isDefault":{"type":"boolean","default":false},"defaultProviderCalendarId":{"type":"string","minLength":1,"maxLength":500}},"required":["mode","location"],"additionalProperties":false}},"required":["action","requestId","data"],"additionalProperties":true},{"type":"object","properties":{"action":{"type":"string","const":"retry"},"requestId":{"type":"string","minLength":1,"maxLength":256},"expectedRevision":{"type":"integer","exclusiveMinimum":0},"id":{"type":"string","minLength":1,"maxLength":500},"calendarId":{"type":"string","minLength":1,"maxLength":256},"workspaceSlug":{"type":"string","maxLength":200},"data":{"type":"object","additionalProperties":{}}},"required":["action","requestId","id"],"additionalProperties":true}]}}}},"responses":{"200":{"description":"Calendar result scoped to current workspace and calendar access.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"anyOf":[{"type":"object","properties":{"attempt":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":500},"status":{"type":"string","enum":["pending","processing","succeeded","partial","failed","needs_reconciliation"]},"items":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","minLength":1,"maxLength":500},"name":{"type":"string"},"proposedCalendarId":{"type":"string","minLength":1,"maxLength":500},"calendarId":{"anyOf":[{"type":"string","minLength":1,"maxLength":500},{"type":"null"}]},"providerCalendarId":{"anyOf":[{"type":"string","minLength":1,"maxLength":500},{"type":"null"}]},"stage":{"type":"string","enum":["pending","creating","created","configured","attached","shared","done"]},"status":{"type":"string","enum":["pending","succeeded","failed","needs_reconciliation"]},"error":{"type":["string","null"]},"alreadyAdded":{"type":"boolean"}},"required":["key","name","proposedCalendarId","calendarId","providerCalendarId","stage","status","error"],"additionalProperties":false}},"error":{"type":["string","null"]}},"required":["id","status","items","error"],"additionalProperties":false}},"required":["attempt"],"additionalProperties":false},{"type":"object","properties":{"attempts":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":500},"status":{"type":"string","enum":["pending","processing","succeeded","partial","failed","needs_reconciliation"]},"items":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","minLength":1,"maxLength":500},"name":{"type":"string"},"proposedCalendarId":{"type":"string","minLength":1,"maxLength":500},"calendarId":{"anyOf":[{"type":"string","minLength":1,"maxLength":500},{"type":"null"}]},"providerCalendarId":{"anyOf":[{"type":"string","minLength":1,"maxLength":500},{"type":"null"}]},"stage":{"type":"string","enum":["pending","creating","created","configured","attached","shared","done"]},"status":{"type":"string","enum":["pending","succeeded","failed","needs_reconciliation"]},"error":{"type":["string","null"]},"alreadyAdded":{"type":"boolean"}},"required":["key","name","proposedCalendarId","calendarId","providerCalendarId","stage","status","error"],"additionalProperties":false}},"error":{"type":["string","null"]}},"required":["id","status","items","error"],"additionalProperties":false}}},"required":["attempts"],"additionalProperties":false}]}},"required":["data"],"additionalProperties":false}}}}},"x-required-scopes":["calendar:write"],"x-required-permissions":["workspace.member"],"x-required-capabilities":[],"x-resource-checks":["current-workspace-membership","calendar-edit-permission-for-setup","own-user-setup-attempt","connection-purpose-and-workspace","authorization-at-execution","same-origin-session","calendar-capability"],"x-evanet-credential-kind":"workspace","x-evanet-approval-class":"none","x-evanet-policy-status":"reviewed-source-candidate","x-evanet-classification":"business","x-evanet-agent-eligible":false}}},"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"evk_live_* or evk_test_*"},"surveyReviewSession":{"type":"apiKey","in":"cookie","name":"__Secure-authjs.session-token","description":"Verified named human account session over HTTPS; no workspace membership is granted."},"surveyReviewSessionLocal":{"type":"apiKey","in":"cookie","name":"authjs.session-token","description":"Local HTTP qualification variant of the same verified human session; bearer tokens are rejected."}},"parameters":{"SubOrganization":{"name":"X-Evanet-Sub-Organization","in":"header","required":false,"description":"Active sub-organization slug validated inside the token workspace. Omit for workspace-wide access.","schema":{"type":"string","pattern":"^[a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?$"}},"IdempotencyKey":{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":1,"maxLength":255}}},"responses":{"ApiError":{"description":"Bounded API error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}}},"schemas":{"HostedEmfModelResponse":{"type":"object","properties":{"protocol":{"type":"string","const":"emf-desktop/1"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"modelDigest":{"type":"string","minLength":1,"maxLength":500},"label":{"type":"string"},"currency":{"type":"string"},"travelPlanning":{"type":"number","enum":[1,2,3]},"travelOperations":{"type":"number","const":1},"workspaceCommands":{"type":"boolean","const":true},"entities":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","minLength":1,"maxLength":500},"label":{"type":"string"},"plural":{"type":"string"},"titleField":{"type":["string","null"]},"fields":{"type":"object","additionalProperties":{"type":"object","properties":{"type":{"type":"string"},"label":{"type":"string"},"required":{"type":"boolean"}},"required":["type","label","required"],"additionalProperties":true}},"columns":{"type":"array","items":{"type":"string"}},"relations":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string"},"entity":{"type":"string"},"field":{"type":"string"},"as":{"type":"string"}},"required":["kind","entity","field"],"additionalProperties":false}},"unsupportedFields":{"type":"array","items":{"type":"string"}}},"required":["key","label","plural","titleField","fields","columns","relations","unsupportedFields"],"additionalProperties":true}},"queries":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string"},"label":{"type":"string"},"contextEntity":{"type":["string","null"]}},"required":["id","entity","label","contextEntity"],"additionalProperties":false}}},"required":["protocol","authorityId","workspaceId","modelDigest","label","currency","entities","queries"],"additionalProperties":true},"HostedEmfQueryRequest":{"type":"object","properties":{"operation":{"type":"string","const":"query"},"queryId":{"type":"string","minLength":1,"maxLength":500},"modelDigest":{"type":"string","minLength":1,"maxLength":500},"context":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","minLength":1,"maxLength":500},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false},"search":{"type":"string","maxLength":200},"limit":{"type":"integer","minimum":1,"maximum":100},"offset":{"type":"integer","minimum":0},"sort":{"type":"object","properties":{"field":{"type":"string","minLength":1,"maxLength":500},"direction":{"type":"string","enum":["asc","desc"]}},"required":["field","direction"],"additionalProperties":false},"filters":{"type":"object","additionalProperties":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"}]},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"}]},"minItems":1,"maxItems":100},{"type":"object","properties":{"op":{"type":"string","enum":["eq","gte","lte","contains","=",">=","<="]},"value":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"}]}},"required":["op","value"],"additionalProperties":false},{"type":"object","properties":{"op":{"type":"string","const":"between"},"from":{"type":"string"},"to":{"type":"string"}},"required":["op","from","to"],"additionalProperties":false}]}}},"required":["operation","queryId","modelDigest"],"additionalProperties":false},"HostedEmfQueryResponse":{"type":"object","properties":{"protocol":{"type":"string","const":"emf-desktop/1"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"modelDigest":{"type":"string","minLength":1,"maxLength":500},"checkedAt":{"type":"integer","minimum":0},"rows":{"type":"array","items":{"type":"object","properties":{"reference":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","minLength":1,"maxLength":500},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false},"title":{"type":"string"},"values":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"}]}},"references":{"type":"object","additionalProperties":{"type":"object","properties":{"reference":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","minLength":1,"maxLength":500},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false},"title":{"type":"string"}},"required":["reference","title"],"additionalProperties":false}},"archived":{"type":"boolean"},"revision":{"type":"string","minLength":1,"maxLength":500},"sourceTime":{"type":["string","null"]}},"required":["reference","title","values","references","archived","revision","sourceTime"],"additionalProperties":false}},"total":{"type":"integer","minimum":0},"offset":{"type":"integer","minimum":0},"limit":{"type":"integer","exclusiveMinimum":0}},"required":["protocol","authorityId","workspaceId","modelDigest","checkedAt","rows","total","offset","limit"],"additionalProperties":false},"HostedEmfPlanningReadRequest":{"type":"object","properties":{"kind":{"type":"string","const":"travel-planning"},"reference":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","const":"trip"},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false}},"required":["kind","reference"],"additionalProperties":false},"HostedEmfPlanningResponse":{"type":"object","properties":{"protocol":{"type":"string","const":"emf-desktop/1"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"modelDigest":{"type":"string","minLength":1,"maxLength":500},"checkedAt":{"type":"integer","minimum":0},"kind":{"type":"string","const":"travel-planning"},"reference":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","const":"trip"},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false},"revision":{"type":"string","pattern":"^[a-f0-9]{64}$"},"revisions":{"type":"object","properties":{"trip":{"type":"string","pattern":"^\\d+$"},"finance":{"type":"string","pattern":"^\\d+$"},"brief":{"type":"string","pattern":"^\\d+$"}},"required":["trip","finance","brief"],"additionalProperties":false},"data":{"anyOf":[{"type":"object","properties":{"format":{"type":"string","const":"travel-planning/1"},"trip":{"type":"object","properties":{"reference":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","const":"trip"},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false},"revision":{"type":"string","minLength":1,"maxLength":500},"title":{"type":"string"},"status":{"type":["string","null"]},"start_date":{"type":["string","null"]},"end_date":{"type":["string","null"]},"client":{"anyOf":[{"type":"object","properties":{"reference":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","minLength":1,"maxLength":500},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false},"title":{"type":"string"}},"required":["reference","title"],"additionalProperties":false},{"type":"null"}]}},"required":["reference","revision","title","status","start_date","end_date","client"],"additionalProperties":false},"party":{"type":"object","properties":{"members":{"type":"array","items":{"type":"object","properties":{"reference":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","minLength":1,"maxLength":500},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false},"revision":{"type":"string","minLength":1,"maxLength":500},"name":{"type":"string"},"involvement":{"type":["string","null"]},"role":{"type":["string","null"]},"start_date":{"type":["string","null"]},"end_date":{"type":["string","null"]},"person":{"anyOf":[{"type":"object","properties":{"reference":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","minLength":1,"maxLength":500},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false},"title":{"type":"string"}},"required":["reference","title"],"additionalProperties":false},{"type":"null"}]}},"required":["reference","revision","name","involvement","role","start_date","end_date","person"],"additionalProperties":false}},"traveling_count":{"anyOf":[{"type":"integer","minimum":0},{"type":"null"}]},"local_support_count":{"anyOf":[{"type":"integer","minimum":0},{"type":"null"}]},"unspecified_count":{"anyOf":[{"type":"integer","minimum":0},{"type":"null"}]}},"required":["members","traveling_count","local_support_count","unspecified_count"],"additionalProperties":false},"days":{"type":"array","items":{"type":"object","properties":{"reference":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","minLength":1,"maxLength":500},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false},"date":{"type":["string","null"]},"day_number":{"anyOf":[{"type":"integer"},{"type":"null"}]},"title":{"type":["string","null"]},"notes":{"type":["string","null"]}},"required":["reference","date","day_number","title","notes"],"additionalProperties":false}},"route":{"type":"array","items":{"type":"object","properties":{"reference":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","minLength":1,"maxLength":500},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false},"label":{"type":"string"},"position":{"anyOf":[{"type":"integer"},{"type":"null"}]},"start_date":{"type":["string","null"]},"end_date":{"type":["string","null"]},"destination":{"anyOf":[{"type":"object","properties":{"reference":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","minLength":1,"maxLength":500},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false},"title":{"type":"string"}},"required":["reference","title"],"additionalProperties":false},{"type":"null"}]}},"required":["reference","label","position","start_date","end_date","destination"],"additionalProperties":false}},"itinerary":{"type":"object","properties":{"approved_version":{"anyOf":[{"type":"integer","minimum":0},{"type":"null"}]},"items":{"type":"array","items":{"type":"object","properties":{"reference":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","minLength":1,"maxLength":500},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false},"name":{"type":"string"},"date":{"type":["string","null"]},"time":{"type":["string","null"]},"end_date":{"type":["string","null"]},"description":{"type":"string"},"booking_required":{"type":"boolean","const":true}},"required":["reference","name","date","time","end_date","description","booking_required"],"additionalProperties":false}},"draft":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":500},"status":{"type":"string","enum":["draft","reviewed"]},"base_version":{"type":"integer"},"approval_digest":{"type":["string","null"]},"reason":{"type":"string"},"work_start":{"type":["string","null"]},"work_end":{"type":["string","null"]},"source_digest":{"type":"string"},"changes":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":500},"operation":{"type":"string","enum":["add","amend","remove"]},"entity":{"type":"string","enum":["trip_item","itinerary_entry"]},"title":{"type":"string"},"before":{"anyOf":[{"type":"object","properties":{"date":{"type":["string","null"]},"time":{"type":["string","null"]},"interval":{"anyOf":[{"type":"object","properties":{"start_at":{"type":"string","format":"date-time"},"start_zone":{"type":"string","minLength":1,"maxLength":100},"end_at":{"type":"string","format":"date-time"},"end_zone":{"type":"string","minLength":1,"maxLength":100}},"required":["start_at","start_zone","end_at","end_zone"],"additionalProperties":false},{"type":"null"}]},"participantIds":{"anyOf":[{"type":"array","items":{"type":"string","minLength":1,"maxLength":500},"minItems":1,"maxItems":100},{"type":"null"}]}},"required":["date","time"],"additionalProperties":false},{"type":"null"}]},"after":{"anyOf":[{"type":"object","properties":{"date":{"type":["string","null"]},"time":{"type":["string","null"]},"interval":{"anyOf":[{"type":"object","properties":{"start_at":{"type":"string","format":"date-time"},"start_zone":{"type":"string","minLength":1,"maxLength":100},"end_at":{"type":"string","format":"date-time"},"end_zone":{"type":"string","minLength":1,"maxLength":100}},"required":["start_at","start_zone","end_at","end_zone"],"additionalProperties":false},{"type":"null"}]},"participantIds":{"anyOf":[{"type":"array","items":{"type":"string","minLength":1,"maxLength":500},"minItems":1,"maxItems":100},{"type":"null"}]}},"required":["date","time"],"additionalProperties":false},{"type":"null"}]},"details":{"anyOf":[{"type":"object","properties":{"name":{"type":"string"},"kind":{"type":"string"},"legId":{"type":["string","null"]},"notes":{"type":"string"},"description":{"type":"string"},"endDate":{"type":["string","null"]},"library":{"type":"object","properties":{"kind":{"type":"string","enum":["venue","experience"]},"id":{"type":"string","minLength":1,"maxLength":500},"sourceWorkspaceId":{"type":"string","minLength":1,"maxLength":500},"anchor":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","minLength":1,"maxLength":500},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false}},"required":["kind","id","sourceWorkspaceId","anchor"],"additionalProperties":false},"supplier":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":500},"kind":{"type":"string","const":"supplier"},"name":{"type":"string"}},"required":["id","kind","name"],"additionalProperties":false},{"type":"null"}]},"checkedAt":{"anyOf":[{"type":"integer"},{"type":"null"}]}},"required":["name","kind"],"additionalProperties":false},{"type":"null"}]},"cost_difference":{"type":["number","null"]}},"required":["id","operation","title","before","after","details","cost_difference"],"additionalProperties":false}}},"required":["id","status","base_version","approval_digest","reason","work_start","work_end","source_digest","changes"],"additionalProperties":false},{"type":"null"}]}},"required":["approved_version","items","draft"],"additionalProperties":false},"bookings":{"type":"array","items":{"type":"object","properties":{"reference":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","minLength":1,"maxLength":500},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false},"revision":{"type":"string","minLength":1,"maxLength":500},"name":{"type":"string"},"kind":{"type":["string","null"]},"status":{"type":["string","null"]},"service_date":{"type":["string","null"]},"service_time":{"type":["string","null"]},"supplier":{"anyOf":[{"type":"object","properties":{"reference":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","minLength":1,"maxLength":500},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false},"title":{"type":"string"}},"required":["reference","title"],"additionalProperties":false},{"type":"null"}]}},"required":["reference","revision","name","kind","status","service_date","service_time","supplier"],"additionalProperties":false}},"supplier_tasks":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":500},"order_id":{"type":"string","minLength":1,"maxLength":500},"booking_id":{"type":"string","minLength":1,"maxLength":500},"title":{"type":"string"},"delivery":{"type":"string"},"accepted":{"type":"boolean"},"superseded":{"type":"boolean"},"has_evidence":{"type":"boolean"},"expected":{"anyOf":[{"type":"object","properties":{"date":{"type":["string","null"]},"time":{"type":["string","null"]},"interval":{"anyOf":[{"type":"object","properties":{"start_at":{"type":"string","format":"date-time"},"start_zone":{"type":"string","minLength":1,"maxLength":100},"end_at":{"type":"string","format":"date-time"},"end_zone":{"type":"string","minLength":1,"maxLength":100}},"required":["start_at","start_zone","end_at","end_zone"],"additionalProperties":false},{"type":"null"}]},"participantIds":{"anyOf":[{"type":"array","items":{"type":"string","minLength":1,"maxLength":500},"minItems":1,"maxItems":100},{"type":"null"}]}},"required":["date","time"],"additionalProperties":false},{"type":"null"}]}},"required":["id","order_id","booking_id","title","delivery","accepted","superseded","has_evidence","expected"],"additionalProperties":false}},"money":{"type":"object","properties":{"basis":{"type":"string","const":"obligation-ledger"},"untracked_booking_ids":{"type":"array","items":{"type":"string","minLength":1,"maxLength":500}},"untracked_sources":{"type":"array","items":{"type":"object","properties":{"entity":{"type":"string","enum":["trip_item","fee","commission"]},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["entity","recordId"],"additionalProperties":false}},"totals":{"type":"array","items":{"type":"object","properties":{"currency":{"type":"string","pattern":"^[A-Z]{3}$"},"travel_cost_minor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"agency_fees_minor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"supplier_due_minor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"commissions_minor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["currency","travel_cost_minor","agency_fees_minor","supplier_due_minor","commissions_minor"],"additionalProperties":false}},"obligations":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":500},"name":{"type":"string"},"booking_id":{"anyOf":[{"type":"string","minLength":1,"maxLength":500},{"type":"null"}]},"category":{"type":"string"},"currency":{"type":"string","pattern":"^[A-Z]{3}$"},"total_minor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"paid_minor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"remaining_minor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"supplier_remaining_minor":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"next_due":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"schedule_status":{"type":"string","enum":["missing","current","needs_review"]},"installments":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":500},"name":{"type":"string"},"amount_minor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"remaining_minor":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"due_date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},"required":["id","name","amount_minor","remaining_minor","due_date"],"additionalProperties":false}}},"required":["id","name","booking_id","category","currency","total_minor","paid_minor","remaining_minor","supplier_remaining_minor","next_due","schedule_status","installments"],"additionalProperties":false}},"budgets":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":500},"name":{"type":"string"},"category":{"type":"string"},"leg_id":{"anyOf":[{"type":"string","minLength":1,"maxLength":500},{"type":"null"}]},"amount_minor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","pattern":"^[A-Z]{3}$"},"assumption":{"type":"string"}},"required":["id","name","category","leg_id","amount_minor","currency","assumption"],"additionalProperties":false}},"exceptions":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string"},"id":{"type":"string","minLength":1,"maxLength":500}},"required":["kind","id"],"additionalProperties":false}}},"required":["basis","untracked_booking_ids","untracked_sources","totals","obligations","budgets","exceptions"],"additionalProperties":false},"tasks":{"type":"array","items":{"type":"object","properties":{"reference":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","minLength":1,"maxLength":500},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false},"title":{"type":"string"},"status":{"type":["string","null"]},"due":{"type":["string","null"]},"due_date":{"type":["string","null"]},"assignee":{"anyOf":[{"type":"object","properties":{"reference":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","minLength":1,"maxLength":500},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false},"title":{"type":"string"}},"required":["reference","title"],"additionalProperties":false},{"type":"null"}]}},"required":["reference","title","status","due","due_date","assignee"],"additionalProperties":false}},"messages":{"type":"array","items":{"type":"object","properties":{"reference":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","minLength":1,"maxLength":500},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false},"subject":{"type":["string","null"]},"direction":{"type":["string","null"]},"status":{"type":["string","null"]},"sent_at":{"type":["string","null"]},"to":{"type":["string","null"]}},"required":["reference","subject","direction","status","sent_at","to"],"additionalProperties":false}},"documents":{"type":"array","items":{"type":"object","properties":{"reference":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","minLength":1,"maxLength":500},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false},"name":{"type":"string"},"mime":{"type":["string","null"]}},"required":["reference","name","mime"],"additionalProperties":false}},"brief":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"text":{"type":"string"}},"required":["label","text"],"additionalProperties":false}},"readiness":{"type":"object","properties":{"status":{"type":"string","const":"unknown"},"reason":{"type":"string"}},"required":["status","reason"],"additionalProperties":false},"coverage":{"type":"array","items":{"type":"object","properties":{"section":{"type":"string"},"status":{"type":"string","enum":["complete","partial","unavailable"]},"reason":{"type":["string","null"]}},"required":["section","status","reason"],"additionalProperties":false}}},"required":["format","trip","party","days","route","itinerary","bookings","supplier_tasks","money","tasks","messages","documents","brief","readiness","coverage"],"additionalProperties":false},{"type":"object","properties":{"format":{"type":"string","const":"travel-planning/2"},"trip":{"type":"object","properties":{"reference":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","const":"trip"},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false},"revision":{"type":"string","minLength":1,"maxLength":500},"title":{"type":"string"},"status":{"type":["string","null"]},"start_date":{"type":["string","null"]},"end_date":{"type":["string","null"]},"client":{"anyOf":[{"type":"object","properties":{"reference":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","minLength":1,"maxLength":500},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false},"title":{"type":"string"}},"required":["reference","title"],"additionalProperties":false},{"type":"null"}]}},"required":["reference","revision","title","status","start_date","end_date","client"],"additionalProperties":false},"party":{"type":"object","properties":{"members":{"type":"array","items":{"type":"object","properties":{"reference":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","minLength":1,"maxLength":500},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false},"revision":{"type":"string","minLength":1,"maxLength":500},"name":{"type":"string"},"involvement":{"type":["string","null"]},"role":{"type":["string","null"]},"start_date":{"type":["string","null"]},"end_date":{"type":["string","null"]},"person":{"anyOf":[{"type":"object","properties":{"reference":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","minLength":1,"maxLength":500},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false},"title":{"type":"string"}},"required":["reference","title"],"additionalProperties":false},{"type":"null"}]},"leg_scope":{"type":["string","null"]},"leg_ids":{"type":"array","items":{"type":"string","minLength":1,"maxLength":500}}},"required":["reference","revision","name","involvement","role","start_date","end_date","person","leg_scope","leg_ids"],"additionalProperties":false}},"traveling_count":{"anyOf":[{"type":"integer","minimum":0},{"type":"null"}]},"local_support_count":{"anyOf":[{"type":"integer","minimum":0},{"type":"null"}]},"unspecified_count":{"anyOf":[{"type":"integer","minimum":0},{"type":"null"}]}},"required":["members","traveling_count","local_support_count","unspecified_count"],"additionalProperties":false},"days":{"type":"array","items":{"type":"object","properties":{"reference":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","minLength":1,"maxLength":500},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false},"date":{"type":["string","null"]},"day_number":{"anyOf":[{"type":"integer"},{"type":"null"}]},"title":{"type":["string","null"]},"notes":{"type":["string","null"]}},"required":["reference","date","day_number","title","notes"],"additionalProperties":false}},"route":{"type":"array","items":{"type":"object","properties":{"reference":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","minLength":1,"maxLength":500},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false},"label":{"type":"string"},"position":{"anyOf":[{"type":"integer"},{"type":"null"}]},"start_date":{"type":["string","null"]},"end_date":{"type":["string","null"]},"destination":{"anyOf":[{"type":"object","properties":{"reference":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","minLength":1,"maxLength":500},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false},"title":{"type":"string"}},"required":["reference","title"],"additionalProperties":false},{"type":"null"}]}},"required":["reference","label","position","start_date","end_date","destination"],"additionalProperties":false}},"itinerary":{"type":"object","properties":{"approved_version":{"anyOf":[{"type":"integer","minimum":0},{"type":"null"}]},"items":{"type":"array","items":{"type":"object","properties":{"reference":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","minLength":1,"maxLength":500},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false},"name":{"type":"string"},"date":{"type":["string","null"]},"time":{"type":["string","null"]},"end_date":{"type":["string","null"]},"description":{"type":"string"},"booking_required":{"type":"boolean"},"kind":{"type":["string","null"]},"interval":{"anyOf":[{"type":"object","properties":{"start_at":{"type":"string","format":"date-time"},"start_zone":{"type":"string","minLength":1,"maxLength":100},"end_at":{"type":"string","format":"date-time"},"end_zone":{"type":"string","minLength":1,"maxLength":100}},"required":["start_at","start_zone","end_at","end_zone"],"additionalProperties":false},{"type":"null"}]},"participant_ids":{"anyOf":[{"type":"array","items":{"type":"string","minLength":1,"maxLength":500},"minItems":1,"maxItems":100},{"type":"null"}]},"leg_id":{"type":["string","null"]}},"required":["reference","name","date","time","end_date","description","booking_required","kind","interval","participant_ids","leg_id"],"additionalProperties":false}},"draft":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":500},"status":{"type":"string","enum":["draft","reviewed"]},"base_version":{"type":"integer"},"approval_digest":{"type":["string","null"]},"reason":{"type":"string"},"work_start":{"type":["string","null"]},"work_end":{"type":["string","null"]},"source_digest":{"type":"string"},"changes":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":500},"operation":{"type":"string","enum":["add","amend","remove"]},"entity":{"type":"string","enum":["trip_item","itinerary_entry"]},"title":{"type":"string"},"before":{"anyOf":[{"type":"object","properties":{"date":{"type":["string","null"]},"time":{"type":["string","null"]},"interval":{"anyOf":[{"type":"object","properties":{"start_at":{"type":"string","format":"date-time"},"start_zone":{"type":"string","minLength":1,"maxLength":100},"end_at":{"type":"string","format":"date-time"},"end_zone":{"type":"string","minLength":1,"maxLength":100}},"required":["start_at","start_zone","end_at","end_zone"],"additionalProperties":false},{"type":"null"}]},"participantIds":{"anyOf":[{"type":"array","items":{"type":"string","minLength":1,"maxLength":500},"minItems":1,"maxItems":100},{"type":"null"}]}},"required":["date","time"],"additionalProperties":false},{"type":"null"}]},"after":{"anyOf":[{"type":"object","properties":{"date":{"type":["string","null"]},"time":{"type":["string","null"]},"interval":{"anyOf":[{"type":"object","properties":{"start_at":{"type":"string","format":"date-time"},"start_zone":{"type":"string","minLength":1,"maxLength":100},"end_at":{"type":"string","format":"date-time"},"end_zone":{"type":"string","minLength":1,"maxLength":100}},"required":["start_at","start_zone","end_at","end_zone"],"additionalProperties":false},{"type":"null"}]},"participantIds":{"anyOf":[{"type":"array","items":{"type":"string","minLength":1,"maxLength":500},"minItems":1,"maxItems":100},{"type":"null"}]}},"required":["date","time"],"additionalProperties":false},{"type":"null"}]},"details":{"anyOf":[{"type":"object","properties":{"name":{"type":"string"},"kind":{"type":"string"},"legId":{"type":["string","null"]},"notes":{"type":"string"},"description":{"type":"string"},"endDate":{"type":["string","null"]},"library":{"type":"object","properties":{"kind":{"type":"string","enum":["venue","experience"]},"id":{"type":"string","minLength":1,"maxLength":500},"sourceWorkspaceId":{"type":"string","minLength":1,"maxLength":500},"anchor":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","minLength":1,"maxLength":500},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false}},"required":["kind","id","sourceWorkspaceId","anchor"],"additionalProperties":false},"supplier":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":500},"kind":{"type":"string","const":"supplier"},"name":{"type":"string"}},"required":["id","kind","name"],"additionalProperties":false},{"type":"null"}]},"checkedAt":{"anyOf":[{"type":"integer"},{"type":"null"}]}},"required":["name","kind"],"additionalProperties":false},{"type":"null"}]},"cost_difference":{"type":["number","null"]}},"required":["id","operation","title","before","after","details","cost_difference"],"additionalProperties":false}}},"required":["id","status","base_version","approval_digest","reason","work_start","work_end","source_digest","changes"],"additionalProperties":false},{"type":"null"}]}},"required":["approved_version","items","draft"],"additionalProperties":false},"bookings":{"type":"array","items":{"type":"object","properties":{"reference":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","minLength":1,"maxLength":500},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false},"revision":{"type":"string","minLength":1,"maxLength":500},"name":{"type":"string"},"kind":{"type":["string","null"]},"status":{"type":["string","null"]},"service_date":{"type":["string","null"]},"service_time":{"type":["string","null"]},"supplier":{"anyOf":[{"type":"object","properties":{"reference":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","minLength":1,"maxLength":500},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false},"title":{"type":"string"}},"required":["reference","title"],"additionalProperties":false},{"type":"null"}]},"confirmed_interval":{"anyOf":[{"type":"object","properties":{"start_at":{"type":"string","format":"date-time"},"start_zone":{"type":"string","minLength":1,"maxLength":100},"end_at":{"type":"string","format":"date-time"},"end_zone":{"type":"string","minLength":1,"maxLength":100}},"required":["start_at","start_zone","end_at","end_zone"],"additionalProperties":false},{"type":"null"}]},"participant_ids":{"anyOf":[{"type":"array","items":{"type":"string","minLength":1,"maxLength":500},"minItems":1,"maxItems":100},{"type":"null"}]},"leg_id":{"type":["string","null"]}},"required":["reference","revision","name","kind","status","service_date","service_time","supplier","confirmed_interval","participant_ids","leg_id"],"additionalProperties":false}},"supplier_tasks":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":500},"order_id":{"type":"string","minLength":1,"maxLength":500},"booking_id":{"type":"string","minLength":1,"maxLength":500},"title":{"type":"string"},"delivery":{"type":"string"},"accepted":{"type":"boolean"},"superseded":{"type":"boolean"},"has_evidence":{"type":"boolean"},"expected":{"anyOf":[{"type":"object","properties":{"date":{"type":["string","null"]},"time":{"type":["string","null"]},"interval":{"anyOf":[{"type":"object","properties":{"start_at":{"type":"string","format":"date-time"},"start_zone":{"type":"string","minLength":1,"maxLength":100},"end_at":{"type":"string","format":"date-time"},"end_zone":{"type":"string","minLength":1,"maxLength":100}},"required":["start_at","start_zone","end_at","end_zone"],"additionalProperties":false},{"type":"null"}]},"participantIds":{"anyOf":[{"type":"array","items":{"type":"string","minLength":1,"maxLength":500},"minItems":1,"maxItems":100},{"type":"null"}]}},"required":["date","time"],"additionalProperties":false},{"type":"null"}]}},"required":["id","order_id","booking_id","title","delivery","accepted","superseded","has_evidence","expected"],"additionalProperties":false}},"money":{"type":"object","properties":{"basis":{"type":"string","const":"obligation-ledger"},"untracked_booking_ids":{"type":"array","items":{"type":"string","minLength":1,"maxLength":500}},"untracked_sources":{"type":"array","items":{"type":"object","properties":{"entity":{"type":"string","enum":["trip_item","fee","commission"]},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["entity","recordId"],"additionalProperties":false}},"totals":{"type":"array","items":{"type":"object","properties":{"currency":{"type":"string","pattern":"^[A-Z]{3}$"},"travel_cost_minor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"agency_fees_minor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"supplier_due_minor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"commissions_minor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["currency","travel_cost_minor","agency_fees_minor","supplier_due_minor","commissions_minor"],"additionalProperties":false}},"obligations":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":500},"name":{"type":"string"},"booking_id":{"anyOf":[{"type":"string","minLength":1,"maxLength":500},{"type":"null"}]},"category":{"type":"string"},"currency":{"type":"string","pattern":"^[A-Z]{3}$"},"total_minor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"paid_minor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"remaining_minor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"supplier_remaining_minor":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"next_due":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"schedule_status":{"type":"string","enum":["missing","current","needs_review"]},"installments":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":500},"name":{"type":"string"},"amount_minor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"remaining_minor":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"due_date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},"required":["id","name","amount_minor","remaining_minor","due_date"],"additionalProperties":false}}},"required":["id","name","booking_id","category","currency","total_minor","paid_minor","remaining_minor","supplier_remaining_minor","next_due","schedule_status","installments"],"additionalProperties":false}},"budgets":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":500},"name":{"type":"string"},"category":{"type":"string"},"leg_id":{"anyOf":[{"type":"string","minLength":1,"maxLength":500},{"type":"null"}]},"amount_minor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","pattern":"^[A-Z]{3}$"},"assumption":{"type":"string"}},"required":["id","name","category","leg_id","amount_minor","currency","assumption"],"additionalProperties":false}},"exceptions":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string"},"id":{"type":"string","minLength":1,"maxLength":500}},"required":["kind","id"],"additionalProperties":false}}},"required":["basis","untracked_booking_ids","untracked_sources","totals","obligations","budgets","exceptions"],"additionalProperties":false},"tasks":{"type":"array","items":{"type":"object","properties":{"reference":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","minLength":1,"maxLength":500},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false},"title":{"type":"string"},"status":{"type":["string","null"]},"due":{"type":["string","null"]},"due_date":{"type":["string","null"]},"assignee":{"anyOf":[{"type":"object","properties":{"reference":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","minLength":1,"maxLength":500},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false},"title":{"type":"string"}},"required":["reference","title"],"additionalProperties":false},{"type":"null"}]}},"required":["reference","title","status","due","due_date","assignee"],"additionalProperties":false}},"messages":{"type":"array","items":{"type":"object","properties":{"reference":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","minLength":1,"maxLength":500},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false},"subject":{"type":["string","null"]},"direction":{"type":["string","null"]},"status":{"type":["string","null"]},"sent_at":{"type":["string","null"]},"to":{"type":["string","null"]}},"required":["reference","subject","direction","status","sent_at","to"],"additionalProperties":false}},"documents":{"type":"array","items":{"type":"object","properties":{"reference":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","minLength":1,"maxLength":500},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false},"name":{"type":"string"},"mime":{"type":["string","null"]}},"required":["reference","name","mime"],"additionalProperties":false}},"brief":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"text":{"type":"string"}},"required":["label","text"],"additionalProperties":false}},"readiness":{"type":"object","properties":{"status":{"type":"string","enum":["ready","blocked","unknown"]},"reason":{"type":"string"},"scope":{"type":"string"},"reasons":{"type":"array","items":{"type":"object","properties":{"section":{"type":"string"},"severity":{"type":"string","enum":["blocker","unknown"]},"code":{"type":"string","minLength":1,"maxLength":500},"message":{"type":"string"},"references":{"type":"array","items":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","minLength":1,"maxLength":500},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false}}},"required":["section","severity","code","message","references"],"additionalProperties":false}}},"required":["status","reason","scope","reasons"],"additionalProperties":false},"coverage":{"type":"array","items":{"type":"object","properties":{"section":{"type":"string"},"status":{"type":"string","enum":["complete","partial","unavailable"]},"reason":{"type":["string","null"]}},"required":["section","status","reason"],"additionalProperties":false}},"requirements":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"reference":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","minLength":1,"maxLength":500},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false},"revision":{"type":"string","minLength":1,"maxLength":500},"name":{"type":"string"},"kind":{"type":"string"},"participant":{"anyOf":[{"type":"object","properties":{"reference":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","minLength":1,"maxLength":500},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false},"title":{"type":"string"}},"required":["reference","title"],"additionalProperties":false},{"type":"null"}]},"due_date":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"status":{"type":"string"},"source":{"type":"string"},"note":{"type":["string","null"]},"evidence":{"anyOf":[{"type":"object","properties":{"reference":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","minLength":1,"maxLength":500},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false},"title":{"type":"string"}},"required":["reference","title"],"additionalProperties":false},{"type":"null"}]},"evidence_current":{"type":"boolean"},"actor":{"type":["string","null"]},"reviewed_at":{"type":["string","null"]}},"required":["reference","revision","name","kind","participant","due_date","status","source","note","evidence","evidence_current","actor","reviewed_at"],"additionalProperties":false}},"assessment":{"anyOf":[{"type":"object","properties":{"context_digest":{"type":"string","minLength":1,"maxLength":500},"requirements_digest":{"type":"string","minLength":1,"maxLength":500},"note":{"type":"string"},"actor":{"type":"string","minLength":1,"maxLength":500},"at":{"type":"string"}},"required":["context_digest","requirements_digest","note","actor","at"],"additionalProperties":false},{"type":"null"}]},"assessment_current":{"type":"boolean"}},"required":["items","assessment","assessment_current"],"additionalProperties":false},"readiness_policy":{"anyOf":[{"type":"object","properties":{"minimum_gap_minutes":{"type":"integer","minimum":0,"maximum":1440},"payments_due_by":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"source":{"type":"string"},"actor":{"type":"string","minLength":1,"maxLength":500},"at":{"type":"string"}},"required":["minimum_gap_minutes","payments_due_by","source","actor","at"],"additionalProperties":false},{"type":"null"}]}},"required":["format","trip","party","days","route","itinerary","bookings","supplier_tasks","money","tasks","messages","documents","brief","readiness","coverage","requirements","readiness_policy"],"additionalProperties":false},{"type":"object","properties":{"format":{"type":"string","const":"travel-planning/3"},"trip":{"type":"object","properties":{"reference":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","const":"trip"},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false},"revision":{"type":"string","minLength":1,"maxLength":500},"title":{"type":"string"},"status":{"type":["string","null"]},"start_date":{"type":["string","null"]},"end_date":{"type":["string","null"]},"client":{"anyOf":[{"type":"object","properties":{"reference":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","minLength":1,"maxLength":500},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false},"title":{"type":"string"}},"required":["reference","title"],"additionalProperties":false},{"type":"null"}]}},"required":["reference","revision","title","status","start_date","end_date","client"],"additionalProperties":false},"party":{"type":"object","properties":{"members":{"type":"array","items":{"type":"object","properties":{"reference":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","minLength":1,"maxLength":500},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false},"revision":{"type":"string","minLength":1,"maxLength":500},"name":{"type":"string"},"involvement":{"type":["string","null"]},"role":{"type":["string","null"]},"start_date":{"type":["string","null"]},"end_date":{"type":["string","null"]},"person":{"anyOf":[{"type":"object","properties":{"reference":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","minLength":1,"maxLength":500},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false},"title":{"type":"string"}},"required":["reference","title"],"additionalProperties":false},{"type":"null"}]},"leg_scope":{"type":["string","null"]},"leg_ids":{"type":"array","items":{"type":"string","minLength":1,"maxLength":500}}},"required":["reference","revision","name","involvement","role","start_date","end_date","person","leg_scope","leg_ids"],"additionalProperties":false}},"traveling_count":{"anyOf":[{"type":"integer","minimum":0},{"type":"null"}]},"local_support_count":{"anyOf":[{"type":"integer","minimum":0},{"type":"null"}]},"unspecified_count":{"anyOf":[{"type":"integer","minimum":0},{"type":"null"}]}},"required":["members","traveling_count","local_support_count","unspecified_count"],"additionalProperties":false},"days":{"type":"array","items":{"type":"object","properties":{"reference":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","minLength":1,"maxLength":500},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false},"date":{"type":["string","null"]},"day_number":{"anyOf":[{"type":"integer"},{"type":"null"}]},"title":{"type":["string","null"]},"notes":{"type":["string","null"]}},"required":["reference","date","day_number","title","notes"],"additionalProperties":false}},"route":{"type":"array","items":{"type":"object","properties":{"reference":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","minLength":1,"maxLength":500},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false},"label":{"type":"string"},"position":{"anyOf":[{"type":"integer"},{"type":"null"}]},"start_date":{"type":["string","null"]},"end_date":{"type":["string","null"]},"destination":{"anyOf":[{"type":"object","properties":{"reference":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","minLength":1,"maxLength":500},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false},"title":{"type":"string"}},"required":["reference","title"],"additionalProperties":false},{"type":"null"}]}},"required":["reference","label","position","start_date","end_date","destination"],"additionalProperties":false}},"itinerary":{"type":"object","properties":{"approved_version":{"anyOf":[{"type":"integer","minimum":0},{"type":"null"}]},"items":{"type":"array","items":{"type":"object","properties":{"reference":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","minLength":1,"maxLength":500},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false},"name":{"type":"string"},"date":{"type":["string","null"]},"time":{"type":["string","null"]},"end_date":{"type":["string","null"]},"description":{"type":"string"},"booking_required":{"type":"boolean"},"kind":{"type":["string","null"]},"interval":{"anyOf":[{"type":"object","properties":{"start_at":{"type":"string","format":"date-time"},"start_zone":{"type":"string","minLength":1,"maxLength":100},"end_at":{"type":"string","format":"date-time"},"end_zone":{"type":"string","minLength":1,"maxLength":100}},"required":["start_at","start_zone","end_at","end_zone"],"additionalProperties":false},{"type":"null"}]},"participant_ids":{"anyOf":[{"type":"array","items":{"type":"string","minLength":1,"maxLength":500},"minItems":1,"maxItems":100},{"type":"null"}]},"leg_id":{"type":["string","null"]}},"required":["reference","name","date","time","end_date","description","booking_required","kind","interval","participant_ids","leg_id"],"additionalProperties":false}},"draft":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":500},"status":{"type":"string","enum":["draft","reviewed"]},"base_version":{"type":"integer"},"approval_digest":{"type":["string","null"]},"reason":{"type":"string"},"work_start":{"type":["string","null"]},"work_end":{"type":["string","null"]},"source_digest":{"type":"string"},"changes":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":500},"operation":{"type":"string","enum":["add","amend","remove"]},"entity":{"type":"string","enum":["trip_item","itinerary_entry"]},"title":{"type":"string"},"before":{"anyOf":[{"type":"object","properties":{"date":{"type":["string","null"]},"time":{"type":["string","null"]},"interval":{"anyOf":[{"type":"object","properties":{"start_at":{"type":"string","format":"date-time"},"start_zone":{"type":"string","minLength":1,"maxLength":100},"end_at":{"type":"string","format":"date-time"},"end_zone":{"type":"string","minLength":1,"maxLength":100}},"required":["start_at","start_zone","end_at","end_zone"],"additionalProperties":false},{"type":"null"}]},"participantIds":{"anyOf":[{"type":"array","items":{"type":"string","minLength":1,"maxLength":500},"minItems":1,"maxItems":100},{"type":"null"}]}},"required":["date","time"],"additionalProperties":false},{"type":"null"}]},"after":{"anyOf":[{"type":"object","properties":{"date":{"type":["string","null"]},"time":{"type":["string","null"]},"interval":{"anyOf":[{"type":"object","properties":{"start_at":{"type":"string","format":"date-time"},"start_zone":{"type":"string","minLength":1,"maxLength":100},"end_at":{"type":"string","format":"date-time"},"end_zone":{"type":"string","minLength":1,"maxLength":100}},"required":["start_at","start_zone","end_at","end_zone"],"additionalProperties":false},{"type":"null"}]},"participantIds":{"anyOf":[{"type":"array","items":{"type":"string","minLength":1,"maxLength":500},"minItems":1,"maxItems":100},{"type":"null"}]}},"required":["date","time"],"additionalProperties":false},{"type":"null"}]},"details":{"anyOf":[{"type":"object","properties":{"name":{"type":"string"},"kind":{"type":"string"},"legId":{"type":["string","null"]},"notes":{"type":"string"},"description":{"type":"string"},"endDate":{"type":["string","null"]},"library":{"type":"object","properties":{"kind":{"type":"string","enum":["venue","experience"]},"id":{"type":"string","minLength":1,"maxLength":500},"sourceWorkspaceId":{"type":"string","minLength":1,"maxLength":500},"anchor":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","minLength":1,"maxLength":500},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false}},"required":["kind","id","sourceWorkspaceId","anchor"],"additionalProperties":false},"supplier":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":500},"kind":{"type":"string","const":"supplier"},"name":{"type":"string"}},"required":["id","kind","name"],"additionalProperties":false},{"type":"null"}]},"checkedAt":{"anyOf":[{"type":"integer"},{"type":"null"}]}},"required":["name","kind"],"additionalProperties":false},{"type":"null"}]},"cost_difference":{"type":["number","null"]}},"required":["id","operation","title","before","after","details","cost_difference"],"additionalProperties":false}}},"required":["id","status","base_version","approval_digest","reason","work_start","work_end","source_digest","changes"],"additionalProperties":false},{"type":"null"}]},"version_index":{"type":"object","properties":{"total":{"type":"integer","minimum":0},"truncated":{"type":"boolean"},"versions":{"type":"array","items":{"type":"object","properties":{"number":{"type":"integer","minimum":0},"kind":{"type":"string","enum":["observed","approved"]},"created_at":{"type":"string"},"order_id":{"anyOf":[{"type":"string","minLength":1,"maxLength":500},{"type":"null"}]},"item_count":{"type":"integer","minimum":0},"change_count":{"type":"integer","minimum":0},"approved_by":{"anyOf":[{"type":"string","minLength":1,"maxLength":500},{"type":"null"}]},"approved_at":{"type":["string","null"]},"capacity":{"anyOf":[{"type":"string","const":"staff_on_behalf"},{"type":"null"}]}},"required":["number","kind","created_at","order_id","item_count","change_count","approved_by","approved_at","capacity"],"additionalProperties":false},"maxItems":50}},"required":["total","truncated","versions"],"additionalProperties":false}},"required":["approved_version","items","draft","version_index"],"additionalProperties":false},"bookings":{"type":"array","items":{"type":"object","properties":{"reference":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","minLength":1,"maxLength":500},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false},"revision":{"type":"string","minLength":1,"maxLength":500},"name":{"type":"string"},"kind":{"type":["string","null"]},"status":{"type":["string","null"]},"service_date":{"type":["string","null"]},"service_time":{"type":["string","null"]},"supplier":{"anyOf":[{"type":"object","properties":{"reference":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","minLength":1,"maxLength":500},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false},"title":{"type":"string"}},"required":["reference","title"],"additionalProperties":false},{"type":"null"}]},"confirmed_interval":{"anyOf":[{"type":"object","properties":{"start_at":{"type":"string","format":"date-time"},"start_zone":{"type":"string","minLength":1,"maxLength":100},"end_at":{"type":"string","format":"date-time"},"end_zone":{"type":"string","minLength":1,"maxLength":100}},"required":["start_at","start_zone","end_at","end_zone"],"additionalProperties":false},{"type":"null"}]},"participant_ids":{"anyOf":[{"type":"array","items":{"type":"string","minLength":1,"maxLength":500},"minItems":1,"maxItems":100},{"type":"null"}]},"leg_id":{"type":["string","null"]}},"required":["reference","revision","name","kind","status","service_date","service_time","supplier","confirmed_interval","participant_ids","leg_id"],"additionalProperties":false}},"supplier_tasks":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":500},"order_id":{"type":"string","minLength":1,"maxLength":500},"booking_id":{"type":"string","minLength":1,"maxLength":500},"title":{"type":"string"},"delivery":{"type":"string"},"accepted":{"type":"boolean"},"superseded":{"type":"boolean"},"has_evidence":{"type":"boolean"},"expected":{"anyOf":[{"type":"object","properties":{"date":{"type":["string","null"]},"time":{"type":["string","null"]},"interval":{"anyOf":[{"type":"object","properties":{"start_at":{"type":"string","format":"date-time"},"start_zone":{"type":"string","minLength":1,"maxLength":100},"end_at":{"type":"string","format":"date-time"},"end_zone":{"type":"string","minLength":1,"maxLength":100}},"required":["start_at","start_zone","end_at","end_zone"],"additionalProperties":false},{"type":"null"}]},"participantIds":{"anyOf":[{"type":"array","items":{"type":"string","minLength":1,"maxLength":500},"minItems":1,"maxItems":100},{"type":"null"}]}},"required":["date","time"],"additionalProperties":false},{"type":"null"}]}},"required":["id","order_id","booking_id","title","delivery","accepted","superseded","has_evidence","expected"],"additionalProperties":false}},"money":{"type":"object","properties":{"basis":{"type":"string","const":"obligation-ledger"},"untracked_booking_ids":{"type":"array","items":{"type":"string","minLength":1,"maxLength":500}},"untracked_sources":{"type":"array","items":{"type":"object","properties":{"entity":{"type":"string","enum":["trip_item","fee","commission"]},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["entity","recordId"],"additionalProperties":false}},"totals":{"type":"array","items":{"type":"object","properties":{"currency":{"type":"string","pattern":"^[A-Z]{3}$"},"travel_cost_minor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"agency_fees_minor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"supplier_due_minor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"commissions_minor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["currency","travel_cost_minor","agency_fees_minor","supplier_due_minor","commissions_minor"],"additionalProperties":false}},"obligations":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":500},"name":{"type":"string"},"booking_id":{"anyOf":[{"type":"string","minLength":1,"maxLength":500},{"type":"null"}]},"category":{"type":"string"},"currency":{"type":"string","pattern":"^[A-Z]{3}$"},"total_minor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"paid_minor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"remaining_minor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"supplier_remaining_minor":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"next_due":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"schedule_status":{"type":"string","enum":["missing","current","needs_review"]},"installments":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":500},"name":{"type":"string"},"amount_minor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"remaining_minor":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"due_date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},"required":["id","name","amount_minor","remaining_minor","due_date"],"additionalProperties":false}}},"required":["id","name","booking_id","category","currency","total_minor","paid_minor","remaining_minor","supplier_remaining_minor","next_due","schedule_status","installments"],"additionalProperties":false}},"budgets":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":500},"name":{"type":"string"},"category":{"type":"string"},"leg_id":{"anyOf":[{"type":"string","minLength":1,"maxLength":500},{"type":"null"}]},"amount_minor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","pattern":"^[A-Z]{3}$"},"assumption":{"type":"string"}},"required":["id","name","category","leg_id","amount_minor","currency","assumption"],"additionalProperties":false}},"exceptions":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string"},"id":{"type":"string","minLength":1,"maxLength":500}},"required":["kind","id"],"additionalProperties":false}}},"required":["basis","untracked_booking_ids","untracked_sources","totals","obligations","budgets","exceptions"],"additionalProperties":false},"tasks":{"type":"array","items":{"type":"object","properties":{"reference":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","minLength":1,"maxLength":500},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false},"title":{"type":"string"},"status":{"type":["string","null"]},"due":{"type":["string","null"]},"due_date":{"type":["string","null"]},"assignee":{"anyOf":[{"type":"object","properties":{"reference":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","minLength":1,"maxLength":500},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false},"title":{"type":"string"}},"required":["reference","title"],"additionalProperties":false},{"type":"null"}]}},"required":["reference","title","status","due","due_date","assignee"],"additionalProperties":false}},"messages":{"type":"array","items":{"type":"object","properties":{"reference":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","minLength":1,"maxLength":500},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false},"subject":{"type":["string","null"]},"direction":{"type":["string","null"]},"status":{"type":["string","null"]},"sent_at":{"type":["string","null"]},"to":{"type":["string","null"]}},"required":["reference","subject","direction","status","sent_at","to"],"additionalProperties":false}},"documents":{"type":"array","items":{"type":"object","properties":{"reference":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","minLength":1,"maxLength":500},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false},"name":{"type":"string"},"mime":{"type":["string","null"]}},"required":["reference","name","mime"],"additionalProperties":false}},"brief":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"text":{"type":"string"}},"required":["label","text"],"additionalProperties":false}},"readiness":{"type":"object","properties":{"status":{"type":"string","enum":["ready","blocked","unknown"]},"reason":{"type":"string"},"scope":{"type":"string"},"reasons":{"type":"array","items":{"type":"object","properties":{"section":{"type":"string"},"severity":{"type":"string","enum":["blocker","unknown"]},"code":{"type":"string","minLength":1,"maxLength":500},"message":{"type":"string"},"references":{"type":"array","items":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","minLength":1,"maxLength":500},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false}}},"required":["section","severity","code","message","references"],"additionalProperties":false}}},"required":["status","reason","scope","reasons"],"additionalProperties":false},"coverage":{"type":"array","items":{"type":"object","properties":{"section":{"type":"string"},"status":{"type":"string","enum":["complete","partial","unavailable"]},"reason":{"type":["string","null"]}},"required":["section","status","reason"],"additionalProperties":false}},"requirements":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"reference":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","minLength":1,"maxLength":500},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false},"revision":{"type":"string","minLength":1,"maxLength":500},"name":{"type":"string"},"kind":{"type":"string"},"participant":{"anyOf":[{"type":"object","properties":{"reference":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","minLength":1,"maxLength":500},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false},"title":{"type":"string"}},"required":["reference","title"],"additionalProperties":false},{"type":"null"}]},"due_date":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"status":{"type":"string"},"source":{"type":"string"},"note":{"type":["string","null"]},"evidence":{"anyOf":[{"type":"object","properties":{"reference":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","minLength":1,"maxLength":500},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false},"title":{"type":"string"}},"required":["reference","title"],"additionalProperties":false},{"type":"null"}]},"evidence_current":{"type":"boolean"},"actor":{"type":["string","null"]},"reviewed_at":{"type":["string","null"]}},"required":["reference","revision","name","kind","participant","due_date","status","source","note","evidence","evidence_current","actor","reviewed_at"],"additionalProperties":false}},"assessment":{"anyOf":[{"type":"object","properties":{"context_digest":{"type":"string","minLength":1,"maxLength":500},"requirements_digest":{"type":"string","minLength":1,"maxLength":500},"note":{"type":"string"},"actor":{"type":"string","minLength":1,"maxLength":500},"at":{"type":"string"}},"required":["context_digest","requirements_digest","note","actor","at"],"additionalProperties":false},{"type":"null"}]},"assessment_current":{"type":"boolean"}},"required":["items","assessment","assessment_current"],"additionalProperties":false},"readiness_policy":{"anyOf":[{"type":"object","properties":{"minimum_gap_minutes":{"type":"integer","minimum":0,"maximum":1440},"payments_due_by":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"source":{"type":"string"},"actor":{"type":"string","minLength":1,"maxLength":500},"at":{"type":"string"}},"required":["minimum_gap_minutes","payments_due_by","source","actor","at"],"additionalProperties":false},{"type":"null"}]}},"required":["format","trip","party","days","route","itinerary","bookings","supplier_tasks","money","tasks","messages","documents","brief","readiness","coverage","requirements","readiness_policy"],"additionalProperties":false}]}},"required":["protocol","authorityId","workspaceId","modelDigest","checkedAt","kind","reference","revision","revisions","data"],"additionalProperties":false},"HostedEmfPlanVersionReadRequest":{"type":"object","properties":{"kind":{"type":"string","const":"travel-plan-version"},"reference":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","const":"trip"},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false},"version":{"type":"integer","minimum":0}},"required":["kind","reference","version"],"additionalProperties":false},"HostedEmfPlanVersionResponse":{"type":"object","properties":{"protocol":{"type":"string","const":"emf-desktop/1"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"modelDigest":{"type":"string","minLength":1,"maxLength":500},"checkedAt":{"type":"integer","minimum":0},"kind":{"type":"string","const":"travel-plan-version"},"reference":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","const":"trip"},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false},"revision":{"type":"string","pattern":"^[a-f0-9]{64}$"},"data":{"type":"object","properties":{"format":{"type":"string","const":"travel-plan-version/1"},"number":{"type":"integer","minimum":0},"kind":{"type":"string","enum":["observed","approved"]},"created_at":{"type":"string"},"order_id":{"anyOf":[{"type":"string","minLength":1,"maxLength":500},{"type":"null"}]},"items":{"type":"array","items":{"type":"object","properties":{"reference":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","minLength":1,"maxLength":500},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false},"name":{"type":"string"},"date":{"type":["string","null"]},"time":{"type":["string","null"]},"end_date":{"type":["string","null"]},"description":{"type":"string"},"booking_required":{"type":"boolean"},"kind":{"type":["string","null"]},"interval":{"anyOf":[{"type":"object","properties":{"start_at":{"type":"string","format":"date-time"},"start_zone":{"type":"string","minLength":1,"maxLength":100},"end_at":{"type":"string","format":"date-time"},"end_zone":{"type":"string","minLength":1,"maxLength":100}},"required":["start_at","start_zone","end_at","end_zone"],"additionalProperties":false},{"type":"null"}]},"participant_ids":{"anyOf":[{"type":"array","items":{"type":"string","minLength":1,"maxLength":500},"minItems":1,"maxItems":100},{"type":"null"}]},"leg_id":{"type":["string","null"]}},"required":["reference","name","date","time","end_date","description","booking_required","kind","interval","participant_ids","leg_id"],"additionalProperties":false},"maxItems":100},"approval":{"anyOf":[{"type":"object","properties":{"by":{"type":"string","minLength":1,"maxLength":500},"at":{"type":"string"},"capacity":{"type":"string","const":"staff_on_behalf"},"represented_client":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","minLength":1,"maxLength":500},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false},"client_name":{"type":"string"},"review_digest":{"type":"string","minLength":1,"maxLength":500},"revision":{"type":"string","pattern":"^\\d+$"},"note":{"type":"string"},"changes":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":500},"operation":{"type":"string","enum":["add","amend","remove"]},"entity":{"type":"string","enum":["trip_item","itinerary_entry"]},"title":{"type":"string"},"before":{"anyOf":[{"type":"object","properties":{"date":{"type":["string","null"]},"time":{"type":["string","null"]},"interval":{"anyOf":[{"type":"object","properties":{"start_at":{"type":"string","format":"date-time"},"start_zone":{"type":"string","minLength":1,"maxLength":100},"end_at":{"type":"string","format":"date-time"},"end_zone":{"type":"string","minLength":1,"maxLength":100}},"required":["start_at","start_zone","end_at","end_zone"],"additionalProperties":false},{"type":"null"}]},"participantIds":{"anyOf":[{"type":"array","items":{"type":"string","minLength":1,"maxLength":500},"minItems":1,"maxItems":100},{"type":"null"}]}},"required":["date","time"],"additionalProperties":false},{"type":"null"}]},"after":{"anyOf":[{"type":"object","properties":{"date":{"type":["string","null"]},"time":{"type":["string","null"]},"interval":{"anyOf":[{"type":"object","properties":{"start_at":{"type":"string","format":"date-time"},"start_zone":{"type":"string","minLength":1,"maxLength":100},"end_at":{"type":"string","format":"date-time"},"end_zone":{"type":"string","minLength":1,"maxLength":100}},"required":["start_at","start_zone","end_at","end_zone"],"additionalProperties":false},{"type":"null"}]},"participantIds":{"anyOf":[{"type":"array","items":{"type":"string","minLength":1,"maxLength":500},"minItems":1,"maxItems":100},{"type":"null"}]}},"required":["date","time"],"additionalProperties":false},{"type":"null"}]},"details":{"anyOf":[{"type":"object","properties":{"name":{"type":"string"},"kind":{"type":"string"},"legId":{"type":["string","null"]},"notes":{"type":"string"},"description":{"type":"string"},"endDate":{"type":["string","null"]},"library":{"type":"object","properties":{"kind":{"type":"string","enum":["venue","experience"]},"id":{"type":"string","minLength":1,"maxLength":500},"sourceWorkspaceId":{"type":"string","minLength":1,"maxLength":500},"anchor":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","minLength":1,"maxLength":500},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false}},"required":["kind","id","sourceWorkspaceId","anchor"],"additionalProperties":false},"supplier":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":500},"kind":{"type":"string","const":"supplier"},"name":{"type":"string"}},"required":["id","kind","name"],"additionalProperties":false},{"type":"null"}]},"checkedAt":{"anyOf":[{"type":"integer"},{"type":"null"}]}},"required":["name","kind"],"additionalProperties":false},{"type":"null"}]},"cost_difference":{"type":["number","null"]}},"required":["id","operation","title","before","after","details","cost_difference"],"additionalProperties":false}}},"required":["by","at","capacity","represented_client","client_name","review_digest","revision","note","changes"],"additionalProperties":false},{"type":"null"}]}},"required":["format","number","kind","created_at","order_id","items","approval"],"additionalProperties":false}},"required":["protocol","authorityId","workspaceId","modelDigest","checkedAt","kind","reference","revision","data"],"additionalProperties":false},"HostedEmfWorkspaceReadRequest":{"anyOf":[{"type":"object","properties":{"kind":{"type":"string","const":"travel-planning"},"reference":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","const":"trip"},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false}},"required":["kind","reference"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"travel-plan-version"},"reference":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","const":"trip"},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false},"version":{"type":"integer","minimum":0}},"required":["kind","reference","version"],"additionalProperties":false}]},"HostedEmfWorkspaceReadResponse":{"anyOf":[{"type":"object","properties":{"protocol":{"type":"string","const":"emf-desktop/1"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"modelDigest":{"type":"string","minLength":1,"maxLength":500},"checkedAt":{"type":"integer","minimum":0},"kind":{"type":"string","const":"travel-planning"},"reference":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","const":"trip"},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false},"revision":{"type":"string","pattern":"^[a-f0-9]{64}$"},"revisions":{"type":"object","properties":{"trip":{"type":"string","pattern":"^\\d+$"},"finance":{"type":"string","pattern":"^\\d+$"},"brief":{"type":"string","pattern":"^\\d+$"}},"required":["trip","finance","brief"],"additionalProperties":false},"data":{"anyOf":[{"type":"object","properties":{"format":{"type":"string","const":"travel-planning/1"},"trip":{"type":"object","properties":{"reference":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","const":"trip"},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false},"revision":{"type":"string","minLength":1,"maxLength":500},"title":{"type":"string"},"status":{"type":["string","null"]},"start_date":{"type":["string","null"]},"end_date":{"type":["string","null"]},"client":{"anyOf":[{"type":"object","properties":{"reference":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","minLength":1,"maxLength":500},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false},"title":{"type":"string"}},"required":["reference","title"],"additionalProperties":false},{"type":"null"}]}},"required":["reference","revision","title","status","start_date","end_date","client"],"additionalProperties":false},"party":{"type":"object","properties":{"members":{"type":"array","items":{"type":"object","properties":{"reference":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","minLength":1,"maxLength":500},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false},"revision":{"type":"string","minLength":1,"maxLength":500},"name":{"type":"string"},"involvement":{"type":["string","null"]},"role":{"type":["string","null"]},"start_date":{"type":["string","null"]},"end_date":{"type":["string","null"]},"person":{"anyOf":[{"type":"object","properties":{"reference":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","minLength":1,"maxLength":500},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false},"title":{"type":"string"}},"required":["reference","title"],"additionalProperties":false},{"type":"null"}]}},"required":["reference","revision","name","involvement","role","start_date","end_date","person"],"additionalProperties":false}},"traveling_count":{"anyOf":[{"type":"integer","minimum":0},{"type":"null"}]},"local_support_count":{"anyOf":[{"type":"integer","minimum":0},{"type":"null"}]},"unspecified_count":{"anyOf":[{"type":"integer","minimum":0},{"type":"null"}]}},"required":["members","traveling_count","local_support_count","unspecified_count"],"additionalProperties":false},"days":{"type":"array","items":{"type":"object","properties":{"reference":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","minLength":1,"maxLength":500},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false},"date":{"type":["string","null"]},"day_number":{"anyOf":[{"type":"integer"},{"type":"null"}]},"title":{"type":["string","null"]},"notes":{"type":["string","null"]}},"required":["reference","date","day_number","title","notes"],"additionalProperties":false}},"route":{"type":"array","items":{"type":"object","properties":{"reference":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","minLength":1,"maxLength":500},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false},"label":{"type":"string"},"position":{"anyOf":[{"type":"integer"},{"type":"null"}]},"start_date":{"type":["string","null"]},"end_date":{"type":["string","null"]},"destination":{"anyOf":[{"type":"object","properties":{"reference":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","minLength":1,"maxLength":500},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false},"title":{"type":"string"}},"required":["reference","title"],"additionalProperties":false},{"type":"null"}]}},"required":["reference","label","position","start_date","end_date","destination"],"additionalProperties":false}},"itinerary":{"type":"object","properties":{"approved_version":{"anyOf":[{"type":"integer","minimum":0},{"type":"null"}]},"items":{"type":"array","items":{"type":"object","properties":{"reference":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","minLength":1,"maxLength":500},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false},"name":{"type":"string"},"date":{"type":["string","null"]},"time":{"type":["string","null"]},"end_date":{"type":["string","null"]},"description":{"type":"string"},"booking_required":{"type":"boolean","const":true}},"required":["reference","name","date","time","end_date","description","booking_required"],"additionalProperties":false}},"draft":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":500},"status":{"type":"string","enum":["draft","reviewed"]},"base_version":{"type":"integer"},"approval_digest":{"type":["string","null"]},"reason":{"type":"string"},"work_start":{"type":["string","null"]},"work_end":{"type":["string","null"]},"source_digest":{"type":"string"},"changes":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":500},"operation":{"type":"string","enum":["add","amend","remove"]},"entity":{"type":"string","enum":["trip_item","itinerary_entry"]},"title":{"type":"string"},"before":{"anyOf":[{"type":"object","properties":{"date":{"type":["string","null"]},"time":{"type":["string","null"]},"interval":{"anyOf":[{"type":"object","properties":{"start_at":{"type":"string","format":"date-time"},"start_zone":{"type":"string","minLength":1,"maxLength":100},"end_at":{"type":"string","format":"date-time"},"end_zone":{"type":"string","minLength":1,"maxLength":100}},"required":["start_at","start_zone","end_at","end_zone"],"additionalProperties":false},{"type":"null"}]},"participantIds":{"anyOf":[{"type":"array","items":{"type":"string","minLength":1,"maxLength":500},"minItems":1,"maxItems":100},{"type":"null"}]}},"required":["date","time"],"additionalProperties":false},{"type":"null"}]},"after":{"anyOf":[{"type":"object","properties":{"date":{"type":["string","null"]},"time":{"type":["string","null"]},"interval":{"anyOf":[{"type":"object","properties":{"start_at":{"type":"string","format":"date-time"},"start_zone":{"type":"string","minLength":1,"maxLength":100},"end_at":{"type":"string","format":"date-time"},"end_zone":{"type":"string","minLength":1,"maxLength":100}},"required":["start_at","start_zone","end_at","end_zone"],"additionalProperties":false},{"type":"null"}]},"participantIds":{"anyOf":[{"type":"array","items":{"type":"string","minLength":1,"maxLength":500},"minItems":1,"maxItems":100},{"type":"null"}]}},"required":["date","time"],"additionalProperties":false},{"type":"null"}]},"details":{"anyOf":[{"type":"object","properties":{"name":{"type":"string"},"kind":{"type":"string"},"legId":{"type":["string","null"]},"notes":{"type":"string"},"description":{"type":"string"},"endDate":{"type":["string","null"]},"library":{"type":"object","properties":{"kind":{"type":"string","enum":["venue","experience"]},"id":{"type":"string","minLength":1,"maxLength":500},"sourceWorkspaceId":{"type":"string","minLength":1,"maxLength":500},"anchor":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","minLength":1,"maxLength":500},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false}},"required":["kind","id","sourceWorkspaceId","anchor"],"additionalProperties":false},"supplier":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":500},"kind":{"type":"string","const":"supplier"},"name":{"type":"string"}},"required":["id","kind","name"],"additionalProperties":false},{"type":"null"}]},"checkedAt":{"anyOf":[{"type":"integer"},{"type":"null"}]}},"required":["name","kind"],"additionalProperties":false},{"type":"null"}]},"cost_difference":{"type":["number","null"]}},"required":["id","operation","title","before","after","details","cost_difference"],"additionalProperties":false}}},"required":["id","status","base_version","approval_digest","reason","work_start","work_end","source_digest","changes"],"additionalProperties":false},{"type":"null"}]}},"required":["approved_version","items","draft"],"additionalProperties":false},"bookings":{"type":"array","items":{"type":"object","properties":{"reference":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","minLength":1,"maxLength":500},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false},"revision":{"type":"string","minLength":1,"maxLength":500},"name":{"type":"string"},"kind":{"type":["string","null"]},"status":{"type":["string","null"]},"service_date":{"type":["string","null"]},"service_time":{"type":["string","null"]},"supplier":{"anyOf":[{"type":"object","properties":{"reference":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","minLength":1,"maxLength":500},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false},"title":{"type":"string"}},"required":["reference","title"],"additionalProperties":false},{"type":"null"}]}},"required":["reference","revision","name","kind","status","service_date","service_time","supplier"],"additionalProperties":false}},"supplier_tasks":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":500},"order_id":{"type":"string","minLength":1,"maxLength":500},"booking_id":{"type":"string","minLength":1,"maxLength":500},"title":{"type":"string"},"delivery":{"type":"string"},"accepted":{"type":"boolean"},"superseded":{"type":"boolean"},"has_evidence":{"type":"boolean"},"expected":{"anyOf":[{"type":"object","properties":{"date":{"type":["string","null"]},"time":{"type":["string","null"]},"interval":{"anyOf":[{"type":"object","properties":{"start_at":{"type":"string","format":"date-time"},"start_zone":{"type":"string","minLength":1,"maxLength":100},"end_at":{"type":"string","format":"date-time"},"end_zone":{"type":"string","minLength":1,"maxLength":100}},"required":["start_at","start_zone","end_at","end_zone"],"additionalProperties":false},{"type":"null"}]},"participantIds":{"anyOf":[{"type":"array","items":{"type":"string","minLength":1,"maxLength":500},"minItems":1,"maxItems":100},{"type":"null"}]}},"required":["date","time"],"additionalProperties":false},{"type":"null"}]}},"required":["id","order_id","booking_id","title","delivery","accepted","superseded","has_evidence","expected"],"additionalProperties":false}},"money":{"type":"object","properties":{"basis":{"type":"string","const":"obligation-ledger"},"untracked_booking_ids":{"type":"array","items":{"type":"string","minLength":1,"maxLength":500}},"untracked_sources":{"type":"array","items":{"type":"object","properties":{"entity":{"type":"string","enum":["trip_item","fee","commission"]},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["entity","recordId"],"additionalProperties":false}},"totals":{"type":"array","items":{"type":"object","properties":{"currency":{"type":"string","pattern":"^[A-Z]{3}$"},"travel_cost_minor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"agency_fees_minor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"supplier_due_minor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"commissions_minor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["currency","travel_cost_minor","agency_fees_minor","supplier_due_minor","commissions_minor"],"additionalProperties":false}},"obligations":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":500},"name":{"type":"string"},"booking_id":{"anyOf":[{"type":"string","minLength":1,"maxLength":500},{"type":"null"}]},"category":{"type":"string"},"currency":{"type":"string","pattern":"^[A-Z]{3}$"},"total_minor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"paid_minor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"remaining_minor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"supplier_remaining_minor":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"next_due":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"schedule_status":{"type":"string","enum":["missing","current","needs_review"]},"installments":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":500},"name":{"type":"string"},"amount_minor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"remaining_minor":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"due_date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},"required":["id","name","amount_minor","remaining_minor","due_date"],"additionalProperties":false}}},"required":["id","name","booking_id","category","currency","total_minor","paid_minor","remaining_minor","supplier_remaining_minor","next_due","schedule_status","installments"],"additionalProperties":false}},"budgets":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":500},"name":{"type":"string"},"category":{"type":"string"},"leg_id":{"anyOf":[{"type":"string","minLength":1,"maxLength":500},{"type":"null"}]},"amount_minor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","pattern":"^[A-Z]{3}$"},"assumption":{"type":"string"}},"required":["id","name","category","leg_id","amount_minor","currency","assumption"],"additionalProperties":false}},"exceptions":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string"},"id":{"type":"string","minLength":1,"maxLength":500}},"required":["kind","id"],"additionalProperties":false}}},"required":["basis","untracked_booking_ids","untracked_sources","totals","obligations","budgets","exceptions"],"additionalProperties":false},"tasks":{"type":"array","items":{"type":"object","properties":{"reference":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","minLength":1,"maxLength":500},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false},"title":{"type":"string"},"status":{"type":["string","null"]},"due":{"type":["string","null"]},"due_date":{"type":["string","null"]},"assignee":{"anyOf":[{"type":"object","properties":{"reference":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","minLength":1,"maxLength":500},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false},"title":{"type":"string"}},"required":["reference","title"],"additionalProperties":false},{"type":"null"}]}},"required":["reference","title","status","due","due_date","assignee"],"additionalProperties":false}},"messages":{"type":"array","items":{"type":"object","properties":{"reference":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","minLength":1,"maxLength":500},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false},"subject":{"type":["string","null"]},"direction":{"type":["string","null"]},"status":{"type":["string","null"]},"sent_at":{"type":["string","null"]},"to":{"type":["string","null"]}},"required":["reference","subject","direction","status","sent_at","to"],"additionalProperties":false}},"documents":{"type":"array","items":{"type":"object","properties":{"reference":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","minLength":1,"maxLength":500},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false},"name":{"type":"string"},"mime":{"type":["string","null"]}},"required":["reference","name","mime"],"additionalProperties":false}},"brief":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"text":{"type":"string"}},"required":["label","text"],"additionalProperties":false}},"readiness":{"type":"object","properties":{"status":{"type":"string","const":"unknown"},"reason":{"type":"string"}},"required":["status","reason"],"additionalProperties":false},"coverage":{"type":"array","items":{"type":"object","properties":{"section":{"type":"string"},"status":{"type":"string","enum":["complete","partial","unavailable"]},"reason":{"type":["string","null"]}},"required":["section","status","reason"],"additionalProperties":false}}},"required":["format","trip","party","days","route","itinerary","bookings","supplier_tasks","money","tasks","messages","documents","brief","readiness","coverage"],"additionalProperties":false},{"type":"object","properties":{"format":{"type":"string","const":"travel-planning/2"},"trip":{"type":"object","properties":{"reference":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","const":"trip"},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false},"revision":{"type":"string","minLength":1,"maxLength":500},"title":{"type":"string"},"status":{"type":["string","null"]},"start_date":{"type":["string","null"]},"end_date":{"type":["string","null"]},"client":{"anyOf":[{"type":"object","properties":{"reference":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","minLength":1,"maxLength":500},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false},"title":{"type":"string"}},"required":["reference","title"],"additionalProperties":false},{"type":"null"}]}},"required":["reference","revision","title","status","start_date","end_date","client"],"additionalProperties":false},"party":{"type":"object","properties":{"members":{"type":"array","items":{"type":"object","properties":{"reference":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","minLength":1,"maxLength":500},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false},"revision":{"type":"string","minLength":1,"maxLength":500},"name":{"type":"string"},"involvement":{"type":["string","null"]},"role":{"type":["string","null"]},"start_date":{"type":["string","null"]},"end_date":{"type":["string","null"]},"person":{"anyOf":[{"type":"object","properties":{"reference":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","minLength":1,"maxLength":500},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false},"title":{"type":"string"}},"required":["reference","title"],"additionalProperties":false},{"type":"null"}]},"leg_scope":{"type":["string","null"]},"leg_ids":{"type":"array","items":{"type":"string","minLength":1,"maxLength":500}}},"required":["reference","revision","name","involvement","role","start_date","end_date","person","leg_scope","leg_ids"],"additionalProperties":false}},"traveling_count":{"anyOf":[{"type":"integer","minimum":0},{"type":"null"}]},"local_support_count":{"anyOf":[{"type":"integer","minimum":0},{"type":"null"}]},"unspecified_count":{"anyOf":[{"type":"integer","minimum":0},{"type":"null"}]}},"required":["members","traveling_count","local_support_count","unspecified_count"],"additionalProperties":false},"days":{"type":"array","items":{"type":"object","properties":{"reference":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","minLength":1,"maxLength":500},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false},"date":{"type":["string","null"]},"day_number":{"anyOf":[{"type":"integer"},{"type":"null"}]},"title":{"type":["string","null"]},"notes":{"type":["string","null"]}},"required":["reference","date","day_number","title","notes"],"additionalProperties":false}},"route":{"type":"array","items":{"type":"object","properties":{"reference":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","minLength":1,"maxLength":500},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false},"label":{"type":"string"},"position":{"anyOf":[{"type":"integer"},{"type":"null"}]},"start_date":{"type":["string","null"]},"end_date":{"type":["string","null"]},"destination":{"anyOf":[{"type":"object","properties":{"reference":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","minLength":1,"maxLength":500},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false},"title":{"type":"string"}},"required":["reference","title"],"additionalProperties":false},{"type":"null"}]}},"required":["reference","label","position","start_date","end_date","destination"],"additionalProperties":false}},"itinerary":{"type":"object","properties":{"approved_version":{"anyOf":[{"type":"integer","minimum":0},{"type":"null"}]},"items":{"type":"array","items":{"type":"object","properties":{"reference":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","minLength":1,"maxLength":500},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false},"name":{"type":"string"},"date":{"type":["string","null"]},"time":{"type":["string","null"]},"end_date":{"type":["string","null"]},"description":{"type":"string"},"booking_required":{"type":"boolean"},"kind":{"type":["string","null"]},"interval":{"anyOf":[{"type":"object","properties":{"start_at":{"type":"string","format":"date-time"},"start_zone":{"type":"string","minLength":1,"maxLength":100},"end_at":{"type":"string","format":"date-time"},"end_zone":{"type":"string","minLength":1,"maxLength":100}},"required":["start_at","start_zone","end_at","end_zone"],"additionalProperties":false},{"type":"null"}]},"participant_ids":{"anyOf":[{"type":"array","items":{"type":"string","minLength":1,"maxLength":500},"minItems":1,"maxItems":100},{"type":"null"}]},"leg_id":{"type":["string","null"]}},"required":["reference","name","date","time","end_date","description","booking_required","kind","interval","participant_ids","leg_id"],"additionalProperties":false}},"draft":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":500},"status":{"type":"string","enum":["draft","reviewed"]},"base_version":{"type":"integer"},"approval_digest":{"type":["string","null"]},"reason":{"type":"string"},"work_start":{"type":["string","null"]},"work_end":{"type":["string","null"]},"source_digest":{"type":"string"},"changes":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":500},"operation":{"type":"string","enum":["add","amend","remove"]},"entity":{"type":"string","enum":["trip_item","itinerary_entry"]},"title":{"type":"string"},"before":{"anyOf":[{"type":"object","properties":{"date":{"type":["string","null"]},"time":{"type":["string","null"]},"interval":{"anyOf":[{"type":"object","properties":{"start_at":{"type":"string","format":"date-time"},"start_zone":{"type":"string","minLength":1,"maxLength":100},"end_at":{"type":"string","format":"date-time"},"end_zone":{"type":"string","minLength":1,"maxLength":100}},"required":["start_at","start_zone","end_at","end_zone"],"additionalProperties":false},{"type":"null"}]},"participantIds":{"anyOf":[{"type":"array","items":{"type":"string","minLength":1,"maxLength":500},"minItems":1,"maxItems":100},{"type":"null"}]}},"required":["date","time"],"additionalProperties":false},{"type":"null"}]},"after":{"anyOf":[{"type":"object","properties":{"date":{"type":["string","null"]},"time":{"type":["string","null"]},"interval":{"anyOf":[{"type":"object","properties":{"start_at":{"type":"string","format":"date-time"},"start_zone":{"type":"string","minLength":1,"maxLength":100},"end_at":{"type":"string","format":"date-time"},"end_zone":{"type":"string","minLength":1,"maxLength":100}},"required":["start_at","start_zone","end_at","end_zone"],"additionalProperties":false},{"type":"null"}]},"participantIds":{"anyOf":[{"type":"array","items":{"type":"string","minLength":1,"maxLength":500},"minItems":1,"maxItems":100},{"type":"null"}]}},"required":["date","time"],"additionalProperties":false},{"type":"null"}]},"details":{"anyOf":[{"type":"object","properties":{"name":{"type":"string"},"kind":{"type":"string"},"legId":{"type":["string","null"]},"notes":{"type":"string"},"description":{"type":"string"},"endDate":{"type":["string","null"]},"library":{"type":"object","properties":{"kind":{"type":"string","enum":["venue","experience"]},"id":{"type":"string","minLength":1,"maxLength":500},"sourceWorkspaceId":{"type":"string","minLength":1,"maxLength":500},"anchor":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","minLength":1,"maxLength":500},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false}},"required":["kind","id","sourceWorkspaceId","anchor"],"additionalProperties":false},"supplier":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":500},"kind":{"type":"string","const":"supplier"},"name":{"type":"string"}},"required":["id","kind","name"],"additionalProperties":false},{"type":"null"}]},"checkedAt":{"anyOf":[{"type":"integer"},{"type":"null"}]}},"required":["name","kind"],"additionalProperties":false},{"type":"null"}]},"cost_difference":{"type":["number","null"]}},"required":["id","operation","title","before","after","details","cost_difference"],"additionalProperties":false}}},"required":["id","status","base_version","approval_digest","reason","work_start","work_end","source_digest","changes"],"additionalProperties":false},{"type":"null"}]}},"required":["approved_version","items","draft"],"additionalProperties":false},"bookings":{"type":"array","items":{"type":"object","properties":{"reference":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","minLength":1,"maxLength":500},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false},"revision":{"type":"string","minLength":1,"maxLength":500},"name":{"type":"string"},"kind":{"type":["string","null"]},"status":{"type":["string","null"]},"service_date":{"type":["string","null"]},"service_time":{"type":["string","null"]},"supplier":{"anyOf":[{"type":"object","properties":{"reference":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","minLength":1,"maxLength":500},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false},"title":{"type":"string"}},"required":["reference","title"],"additionalProperties":false},{"type":"null"}]},"confirmed_interval":{"anyOf":[{"type":"object","properties":{"start_at":{"type":"string","format":"date-time"},"start_zone":{"type":"string","minLength":1,"maxLength":100},"end_at":{"type":"string","format":"date-time"},"end_zone":{"type":"string","minLength":1,"maxLength":100}},"required":["start_at","start_zone","end_at","end_zone"],"additionalProperties":false},{"type":"null"}]},"participant_ids":{"anyOf":[{"type":"array","items":{"type":"string","minLength":1,"maxLength":500},"minItems":1,"maxItems":100},{"type":"null"}]},"leg_id":{"type":["string","null"]}},"required":["reference","revision","name","kind","status","service_date","service_time","supplier","confirmed_interval","participant_ids","leg_id"],"additionalProperties":false}},"supplier_tasks":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":500},"order_id":{"type":"string","minLength":1,"maxLength":500},"booking_id":{"type":"string","minLength":1,"maxLength":500},"title":{"type":"string"},"delivery":{"type":"string"},"accepted":{"type":"boolean"},"superseded":{"type":"boolean"},"has_evidence":{"type":"boolean"},"expected":{"anyOf":[{"type":"object","properties":{"date":{"type":["string","null"]},"time":{"type":["string","null"]},"interval":{"anyOf":[{"type":"object","properties":{"start_at":{"type":"string","format":"date-time"},"start_zone":{"type":"string","minLength":1,"maxLength":100},"end_at":{"type":"string","format":"date-time"},"end_zone":{"type":"string","minLength":1,"maxLength":100}},"required":["start_at","start_zone","end_at","end_zone"],"additionalProperties":false},{"type":"null"}]},"participantIds":{"anyOf":[{"type":"array","items":{"type":"string","minLength":1,"maxLength":500},"minItems":1,"maxItems":100},{"type":"null"}]}},"required":["date","time"],"additionalProperties":false},{"type":"null"}]}},"required":["id","order_id","booking_id","title","delivery","accepted","superseded","has_evidence","expected"],"additionalProperties":false}},"money":{"type":"object","properties":{"basis":{"type":"string","const":"obligation-ledger"},"untracked_booking_ids":{"type":"array","items":{"type":"string","minLength":1,"maxLength":500}},"untracked_sources":{"type":"array","items":{"type":"object","properties":{"entity":{"type":"string","enum":["trip_item","fee","commission"]},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["entity","recordId"],"additionalProperties":false}},"totals":{"type":"array","items":{"type":"object","properties":{"currency":{"type":"string","pattern":"^[A-Z]{3}$"},"travel_cost_minor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"agency_fees_minor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"supplier_due_minor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"commissions_minor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["currency","travel_cost_minor","agency_fees_minor","supplier_due_minor","commissions_minor"],"additionalProperties":false}},"obligations":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":500},"name":{"type":"string"},"booking_id":{"anyOf":[{"type":"string","minLength":1,"maxLength":500},{"type":"null"}]},"category":{"type":"string"},"currency":{"type":"string","pattern":"^[A-Z]{3}$"},"total_minor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"paid_minor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"remaining_minor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"supplier_remaining_minor":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"next_due":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"schedule_status":{"type":"string","enum":["missing","current","needs_review"]},"installments":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":500},"name":{"type":"string"},"amount_minor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"remaining_minor":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"due_date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},"required":["id","name","amount_minor","remaining_minor","due_date"],"additionalProperties":false}}},"required":["id","name","booking_id","category","currency","total_minor","paid_minor","remaining_minor","supplier_remaining_minor","next_due","schedule_status","installments"],"additionalProperties":false}},"budgets":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":500},"name":{"type":"string"},"category":{"type":"string"},"leg_id":{"anyOf":[{"type":"string","minLength":1,"maxLength":500},{"type":"null"}]},"amount_minor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","pattern":"^[A-Z]{3}$"},"assumption":{"type":"string"}},"required":["id","name","category","leg_id","amount_minor","currency","assumption"],"additionalProperties":false}},"exceptions":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string"},"id":{"type":"string","minLength":1,"maxLength":500}},"required":["kind","id"],"additionalProperties":false}}},"required":["basis","untracked_booking_ids","untracked_sources","totals","obligations","budgets","exceptions"],"additionalProperties":false},"tasks":{"type":"array","items":{"type":"object","properties":{"reference":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","minLength":1,"maxLength":500},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false},"title":{"type":"string"},"status":{"type":["string","null"]},"due":{"type":["string","null"]},"due_date":{"type":["string","null"]},"assignee":{"anyOf":[{"type":"object","properties":{"reference":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","minLength":1,"maxLength":500},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false},"title":{"type":"string"}},"required":["reference","title"],"additionalProperties":false},{"type":"null"}]}},"required":["reference","title","status","due","due_date","assignee"],"additionalProperties":false}},"messages":{"type":"array","items":{"type":"object","properties":{"reference":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","minLength":1,"maxLength":500},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false},"subject":{"type":["string","null"]},"direction":{"type":["string","null"]},"status":{"type":["string","null"]},"sent_at":{"type":["string","null"]},"to":{"type":["string","null"]}},"required":["reference","subject","direction","status","sent_at","to"],"additionalProperties":false}},"documents":{"type":"array","items":{"type":"object","properties":{"reference":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","minLength":1,"maxLength":500},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false},"name":{"type":"string"},"mime":{"type":["string","null"]}},"required":["reference","name","mime"],"additionalProperties":false}},"brief":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"text":{"type":"string"}},"required":["label","text"],"additionalProperties":false}},"readiness":{"type":"object","properties":{"status":{"type":"string","enum":["ready","blocked","unknown"]},"reason":{"type":"string"},"scope":{"type":"string"},"reasons":{"type":"array","items":{"type":"object","properties":{"section":{"type":"string"},"severity":{"type":"string","enum":["blocker","unknown"]},"code":{"type":"string","minLength":1,"maxLength":500},"message":{"type":"string"},"references":{"type":"array","items":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","minLength":1,"maxLength":500},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false}}},"required":["section","severity","code","message","references"],"additionalProperties":false}}},"required":["status","reason","scope","reasons"],"additionalProperties":false},"coverage":{"type":"array","items":{"type":"object","properties":{"section":{"type":"string"},"status":{"type":"string","enum":["complete","partial","unavailable"]},"reason":{"type":["string","null"]}},"required":["section","status","reason"],"additionalProperties":false}},"requirements":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"reference":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","minLength":1,"maxLength":500},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false},"revision":{"type":"string","minLength":1,"maxLength":500},"name":{"type":"string"},"kind":{"type":"string"},"participant":{"anyOf":[{"type":"object","properties":{"reference":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","minLength":1,"maxLength":500},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false},"title":{"type":"string"}},"required":["reference","title"],"additionalProperties":false},{"type":"null"}]},"due_date":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"status":{"type":"string"},"source":{"type":"string"},"note":{"type":["string","null"]},"evidence":{"anyOf":[{"type":"object","properties":{"reference":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","minLength":1,"maxLength":500},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false},"title":{"type":"string"}},"required":["reference","title"],"additionalProperties":false},{"type":"null"}]},"evidence_current":{"type":"boolean"},"actor":{"type":["string","null"]},"reviewed_at":{"type":["string","null"]}},"required":["reference","revision","name","kind","participant","due_date","status","source","note","evidence","evidence_current","actor","reviewed_at"],"additionalProperties":false}},"assessment":{"anyOf":[{"type":"object","properties":{"context_digest":{"type":"string","minLength":1,"maxLength":500},"requirements_digest":{"type":"string","minLength":1,"maxLength":500},"note":{"type":"string"},"actor":{"type":"string","minLength":1,"maxLength":500},"at":{"type":"string"}},"required":["context_digest","requirements_digest","note","actor","at"],"additionalProperties":false},{"type":"null"}]},"assessment_current":{"type":"boolean"}},"required":["items","assessment","assessment_current"],"additionalProperties":false},"readiness_policy":{"anyOf":[{"type":"object","properties":{"minimum_gap_minutes":{"type":"integer","minimum":0,"maximum":1440},"payments_due_by":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"source":{"type":"string"},"actor":{"type":"string","minLength":1,"maxLength":500},"at":{"type":"string"}},"required":["minimum_gap_minutes","payments_due_by","source","actor","at"],"additionalProperties":false},{"type":"null"}]}},"required":["format","trip","party","days","route","itinerary","bookings","supplier_tasks","money","tasks","messages","documents","brief","readiness","coverage","requirements","readiness_policy"],"additionalProperties":false},{"type":"object","properties":{"format":{"type":"string","const":"travel-planning/3"},"trip":{"type":"object","properties":{"reference":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","const":"trip"},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false},"revision":{"type":"string","minLength":1,"maxLength":500},"title":{"type":"string"},"status":{"type":["string","null"]},"start_date":{"type":["string","null"]},"end_date":{"type":["string","null"]},"client":{"anyOf":[{"type":"object","properties":{"reference":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","minLength":1,"maxLength":500},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false},"title":{"type":"string"}},"required":["reference","title"],"additionalProperties":false},{"type":"null"}]}},"required":["reference","revision","title","status","start_date","end_date","client"],"additionalProperties":false},"party":{"type":"object","properties":{"members":{"type":"array","items":{"type":"object","properties":{"reference":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","minLength":1,"maxLength":500},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false},"revision":{"type":"string","minLength":1,"maxLength":500},"name":{"type":"string"},"involvement":{"type":["string","null"]},"role":{"type":["string","null"]},"start_date":{"type":["string","null"]},"end_date":{"type":["string","null"]},"person":{"anyOf":[{"type":"object","properties":{"reference":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","minLength":1,"maxLength":500},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false},"title":{"type":"string"}},"required":["reference","title"],"additionalProperties":false},{"type":"null"}]},"leg_scope":{"type":["string","null"]},"leg_ids":{"type":"array","items":{"type":"string","minLength":1,"maxLength":500}}},"required":["reference","revision","name","involvement","role","start_date","end_date","person","leg_scope","leg_ids"],"additionalProperties":false}},"traveling_count":{"anyOf":[{"type":"integer","minimum":0},{"type":"null"}]},"local_support_count":{"anyOf":[{"type":"integer","minimum":0},{"type":"null"}]},"unspecified_count":{"anyOf":[{"type":"integer","minimum":0},{"type":"null"}]}},"required":["members","traveling_count","local_support_count","unspecified_count"],"additionalProperties":false},"days":{"type":"array","items":{"type":"object","properties":{"reference":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","minLength":1,"maxLength":500},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false},"date":{"type":["string","null"]},"day_number":{"anyOf":[{"type":"integer"},{"type":"null"}]},"title":{"type":["string","null"]},"notes":{"type":["string","null"]}},"required":["reference","date","day_number","title","notes"],"additionalProperties":false}},"route":{"type":"array","items":{"type":"object","properties":{"reference":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","minLength":1,"maxLength":500},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false},"label":{"type":"string"},"position":{"anyOf":[{"type":"integer"},{"type":"null"}]},"start_date":{"type":["string","null"]},"end_date":{"type":["string","null"]},"destination":{"anyOf":[{"type":"object","properties":{"reference":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","minLength":1,"maxLength":500},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false},"title":{"type":"string"}},"required":["reference","title"],"additionalProperties":false},{"type":"null"}]}},"required":["reference","label","position","start_date","end_date","destination"],"additionalProperties":false}},"itinerary":{"type":"object","properties":{"approved_version":{"anyOf":[{"type":"integer","minimum":0},{"type":"null"}]},"items":{"type":"array","items":{"type":"object","properties":{"reference":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","minLength":1,"maxLength":500},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false},"name":{"type":"string"},"date":{"type":["string","null"]},"time":{"type":["string","null"]},"end_date":{"type":["string","null"]},"description":{"type":"string"},"booking_required":{"type":"boolean"},"kind":{"type":["string","null"]},"interval":{"anyOf":[{"type":"object","properties":{"start_at":{"type":"string","format":"date-time"},"start_zone":{"type":"string","minLength":1,"maxLength":100},"end_at":{"type":"string","format":"date-time"},"end_zone":{"type":"string","minLength":1,"maxLength":100}},"required":["start_at","start_zone","end_at","end_zone"],"additionalProperties":false},{"type":"null"}]},"participant_ids":{"anyOf":[{"type":"array","items":{"type":"string","minLength":1,"maxLength":500},"minItems":1,"maxItems":100},{"type":"null"}]},"leg_id":{"type":["string","null"]}},"required":["reference","name","date","time","end_date","description","booking_required","kind","interval","participant_ids","leg_id"],"additionalProperties":false}},"draft":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":500},"status":{"type":"string","enum":["draft","reviewed"]},"base_version":{"type":"integer"},"approval_digest":{"type":["string","null"]},"reason":{"type":"string"},"work_start":{"type":["string","null"]},"work_end":{"type":["string","null"]},"source_digest":{"type":"string"},"changes":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":500},"operation":{"type":"string","enum":["add","amend","remove"]},"entity":{"type":"string","enum":["trip_item","itinerary_entry"]},"title":{"type":"string"},"before":{"anyOf":[{"type":"object","properties":{"date":{"type":["string","null"]},"time":{"type":["string","null"]},"interval":{"anyOf":[{"type":"object","properties":{"start_at":{"type":"string","format":"date-time"},"start_zone":{"type":"string","minLength":1,"maxLength":100},"end_at":{"type":"string","format":"date-time"},"end_zone":{"type":"string","minLength":1,"maxLength":100}},"required":["start_at","start_zone","end_at","end_zone"],"additionalProperties":false},{"type":"null"}]},"participantIds":{"anyOf":[{"type":"array","items":{"type":"string","minLength":1,"maxLength":500},"minItems":1,"maxItems":100},{"type":"null"}]}},"required":["date","time"],"additionalProperties":false},{"type":"null"}]},"after":{"anyOf":[{"type":"object","properties":{"date":{"type":["string","null"]},"time":{"type":["string","null"]},"interval":{"anyOf":[{"type":"object","properties":{"start_at":{"type":"string","format":"date-time"},"start_zone":{"type":"string","minLength":1,"maxLength":100},"end_at":{"type":"string","format":"date-time"},"end_zone":{"type":"string","minLength":1,"maxLength":100}},"required":["start_at","start_zone","end_at","end_zone"],"additionalProperties":false},{"type":"null"}]},"participantIds":{"anyOf":[{"type":"array","items":{"type":"string","minLength":1,"maxLength":500},"minItems":1,"maxItems":100},{"type":"null"}]}},"required":["date","time"],"additionalProperties":false},{"type":"null"}]},"details":{"anyOf":[{"type":"object","properties":{"name":{"type":"string"},"kind":{"type":"string"},"legId":{"type":["string","null"]},"notes":{"type":"string"},"description":{"type":"string"},"endDate":{"type":["string","null"]},"library":{"type":"object","properties":{"kind":{"type":"string","enum":["venue","experience"]},"id":{"type":"string","minLength":1,"maxLength":500},"sourceWorkspaceId":{"type":"string","minLength":1,"maxLength":500},"anchor":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","minLength":1,"maxLength":500},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false}},"required":["kind","id","sourceWorkspaceId","anchor"],"additionalProperties":false},"supplier":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":500},"kind":{"type":"string","const":"supplier"},"name":{"type":"string"}},"required":["id","kind","name"],"additionalProperties":false},{"type":"null"}]},"checkedAt":{"anyOf":[{"type":"integer"},{"type":"null"}]}},"required":["name","kind"],"additionalProperties":false},{"type":"null"}]},"cost_difference":{"type":["number","null"]}},"required":["id","operation","title","before","after","details","cost_difference"],"additionalProperties":false}}},"required":["id","status","base_version","approval_digest","reason","work_start","work_end","source_digest","changes"],"additionalProperties":false},{"type":"null"}]},"version_index":{"type":"object","properties":{"total":{"type":"integer","minimum":0},"truncated":{"type":"boolean"},"versions":{"type":"array","items":{"type":"object","properties":{"number":{"type":"integer","minimum":0},"kind":{"type":"string","enum":["observed","approved"]},"created_at":{"type":"string"},"order_id":{"anyOf":[{"type":"string","minLength":1,"maxLength":500},{"type":"null"}]},"item_count":{"type":"integer","minimum":0},"change_count":{"type":"integer","minimum":0},"approved_by":{"anyOf":[{"type":"string","minLength":1,"maxLength":500},{"type":"null"}]},"approved_at":{"type":["string","null"]},"capacity":{"anyOf":[{"type":"string","const":"staff_on_behalf"},{"type":"null"}]}},"required":["number","kind","created_at","order_id","item_count","change_count","approved_by","approved_at","capacity"],"additionalProperties":false},"maxItems":50}},"required":["total","truncated","versions"],"additionalProperties":false}},"required":["approved_version","items","draft","version_index"],"additionalProperties":false},"bookings":{"type":"array","items":{"type":"object","properties":{"reference":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","minLength":1,"maxLength":500},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false},"revision":{"type":"string","minLength":1,"maxLength":500},"name":{"type":"string"},"kind":{"type":["string","null"]},"status":{"type":["string","null"]},"service_date":{"type":["string","null"]},"service_time":{"type":["string","null"]},"supplier":{"anyOf":[{"type":"object","properties":{"reference":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","minLength":1,"maxLength":500},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false},"title":{"type":"string"}},"required":["reference","title"],"additionalProperties":false},{"type":"null"}]},"confirmed_interval":{"anyOf":[{"type":"object","properties":{"start_at":{"type":"string","format":"date-time"},"start_zone":{"type":"string","minLength":1,"maxLength":100},"end_at":{"type":"string","format":"date-time"},"end_zone":{"type":"string","minLength":1,"maxLength":100}},"required":["start_at","start_zone","end_at","end_zone"],"additionalProperties":false},{"type":"null"}]},"participant_ids":{"anyOf":[{"type":"array","items":{"type":"string","minLength":1,"maxLength":500},"minItems":1,"maxItems":100},{"type":"null"}]},"leg_id":{"type":["string","null"]}},"required":["reference","revision","name","kind","status","service_date","service_time","supplier","confirmed_interval","participant_ids","leg_id"],"additionalProperties":false}},"supplier_tasks":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":500},"order_id":{"type":"string","minLength":1,"maxLength":500},"booking_id":{"type":"string","minLength":1,"maxLength":500},"title":{"type":"string"},"delivery":{"type":"string"},"accepted":{"type":"boolean"},"superseded":{"type":"boolean"},"has_evidence":{"type":"boolean"},"expected":{"anyOf":[{"type":"object","properties":{"date":{"type":["string","null"]},"time":{"type":["string","null"]},"interval":{"anyOf":[{"type":"object","properties":{"start_at":{"type":"string","format":"date-time"},"start_zone":{"type":"string","minLength":1,"maxLength":100},"end_at":{"type":"string","format":"date-time"},"end_zone":{"type":"string","minLength":1,"maxLength":100}},"required":["start_at","start_zone","end_at","end_zone"],"additionalProperties":false},{"type":"null"}]},"participantIds":{"anyOf":[{"type":"array","items":{"type":"string","minLength":1,"maxLength":500},"minItems":1,"maxItems":100},{"type":"null"}]}},"required":["date","time"],"additionalProperties":false},{"type":"null"}]}},"required":["id","order_id","booking_id","title","delivery","accepted","superseded","has_evidence","expected"],"additionalProperties":false}},"money":{"type":"object","properties":{"basis":{"type":"string","const":"obligation-ledger"},"untracked_booking_ids":{"type":"array","items":{"type":"string","minLength":1,"maxLength":500}},"untracked_sources":{"type":"array","items":{"type":"object","properties":{"entity":{"type":"string","enum":["trip_item","fee","commission"]},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["entity","recordId"],"additionalProperties":false}},"totals":{"type":"array","items":{"type":"object","properties":{"currency":{"type":"string","pattern":"^[A-Z]{3}$"},"travel_cost_minor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"agency_fees_minor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"supplier_due_minor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"commissions_minor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["currency","travel_cost_minor","agency_fees_minor","supplier_due_minor","commissions_minor"],"additionalProperties":false}},"obligations":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":500},"name":{"type":"string"},"booking_id":{"anyOf":[{"type":"string","minLength":1,"maxLength":500},{"type":"null"}]},"category":{"type":"string"},"currency":{"type":"string","pattern":"^[A-Z]{3}$"},"total_minor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"paid_minor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"remaining_minor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"supplier_remaining_minor":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"next_due":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"schedule_status":{"type":"string","enum":["missing","current","needs_review"]},"installments":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":500},"name":{"type":"string"},"amount_minor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"remaining_minor":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"due_date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},"required":["id","name","amount_minor","remaining_minor","due_date"],"additionalProperties":false}}},"required":["id","name","booking_id","category","currency","total_minor","paid_minor","remaining_minor","supplier_remaining_minor","next_due","schedule_status","installments"],"additionalProperties":false}},"budgets":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":500},"name":{"type":"string"},"category":{"type":"string"},"leg_id":{"anyOf":[{"type":"string","minLength":1,"maxLength":500},{"type":"null"}]},"amount_minor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","pattern":"^[A-Z]{3}$"},"assumption":{"type":"string"}},"required":["id","name","category","leg_id","amount_minor","currency","assumption"],"additionalProperties":false}},"exceptions":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string"},"id":{"type":"string","minLength":1,"maxLength":500}},"required":["kind","id"],"additionalProperties":false}}},"required":["basis","untracked_booking_ids","untracked_sources","totals","obligations","budgets","exceptions"],"additionalProperties":false},"tasks":{"type":"array","items":{"type":"object","properties":{"reference":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","minLength":1,"maxLength":500},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false},"title":{"type":"string"},"status":{"type":["string","null"]},"due":{"type":["string","null"]},"due_date":{"type":["string","null"]},"assignee":{"anyOf":[{"type":"object","properties":{"reference":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","minLength":1,"maxLength":500},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false},"title":{"type":"string"}},"required":["reference","title"],"additionalProperties":false},{"type":"null"}]}},"required":["reference","title","status","due","due_date","assignee"],"additionalProperties":false}},"messages":{"type":"array","items":{"type":"object","properties":{"reference":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","minLength":1,"maxLength":500},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false},"subject":{"type":["string","null"]},"direction":{"type":["string","null"]},"status":{"type":["string","null"]},"sent_at":{"type":["string","null"]},"to":{"type":["string","null"]}},"required":["reference","subject","direction","status","sent_at","to"],"additionalProperties":false}},"documents":{"type":"array","items":{"type":"object","properties":{"reference":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","minLength":1,"maxLength":500},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false},"name":{"type":"string"},"mime":{"type":["string","null"]}},"required":["reference","name","mime"],"additionalProperties":false}},"brief":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"text":{"type":"string"}},"required":["label","text"],"additionalProperties":false}},"readiness":{"type":"object","properties":{"status":{"type":"string","enum":["ready","blocked","unknown"]},"reason":{"type":"string"},"scope":{"type":"string"},"reasons":{"type":"array","items":{"type":"object","properties":{"section":{"type":"string"},"severity":{"type":"string","enum":["blocker","unknown"]},"code":{"type":"string","minLength":1,"maxLength":500},"message":{"type":"string"},"references":{"type":"array","items":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","minLength":1,"maxLength":500},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false}}},"required":["section","severity","code","message","references"],"additionalProperties":false}}},"required":["status","reason","scope","reasons"],"additionalProperties":false},"coverage":{"type":"array","items":{"type":"object","properties":{"section":{"type":"string"},"status":{"type":"string","enum":["complete","partial","unavailable"]},"reason":{"type":["string","null"]}},"required":["section","status","reason"],"additionalProperties":false}},"requirements":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"reference":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","minLength":1,"maxLength":500},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false},"revision":{"type":"string","minLength":1,"maxLength":500},"name":{"type":"string"},"kind":{"type":"string"},"participant":{"anyOf":[{"type":"object","properties":{"reference":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","minLength":1,"maxLength":500},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false},"title":{"type":"string"}},"required":["reference","title"],"additionalProperties":false},{"type":"null"}]},"due_date":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"status":{"type":"string"},"source":{"type":"string"},"note":{"type":["string","null"]},"evidence":{"anyOf":[{"type":"object","properties":{"reference":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","minLength":1,"maxLength":500},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false},"title":{"type":"string"}},"required":["reference","title"],"additionalProperties":false},{"type":"null"}]},"evidence_current":{"type":"boolean"},"actor":{"type":["string","null"]},"reviewed_at":{"type":["string","null"]}},"required":["reference","revision","name","kind","participant","due_date","status","source","note","evidence","evidence_current","actor","reviewed_at"],"additionalProperties":false}},"assessment":{"anyOf":[{"type":"object","properties":{"context_digest":{"type":"string","minLength":1,"maxLength":500},"requirements_digest":{"type":"string","minLength":1,"maxLength":500},"note":{"type":"string"},"actor":{"type":"string","minLength":1,"maxLength":500},"at":{"type":"string"}},"required":["context_digest","requirements_digest","note","actor","at"],"additionalProperties":false},{"type":"null"}]},"assessment_current":{"type":"boolean"}},"required":["items","assessment","assessment_current"],"additionalProperties":false},"readiness_policy":{"anyOf":[{"type":"object","properties":{"minimum_gap_minutes":{"type":"integer","minimum":0,"maximum":1440},"payments_due_by":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"source":{"type":"string"},"actor":{"type":"string","minLength":1,"maxLength":500},"at":{"type":"string"}},"required":["minimum_gap_minutes","payments_due_by","source","actor","at"],"additionalProperties":false},{"type":"null"}]}},"required":["format","trip","party","days","route","itinerary","bookings","supplier_tasks","money","tasks","messages","documents","brief","readiness","coverage","requirements","readiness_policy"],"additionalProperties":false}]}},"required":["protocol","authorityId","workspaceId","modelDigest","checkedAt","kind","reference","revision","revisions","data"],"additionalProperties":false},{"type":"object","properties":{"protocol":{"type":"string","const":"emf-desktop/1"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"modelDigest":{"type":"string","minLength":1,"maxLength":500},"checkedAt":{"type":"integer","minimum":0},"kind":{"type":"string","const":"travel-plan-version"},"reference":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","const":"trip"},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false},"revision":{"type":"string","pattern":"^[a-f0-9]{64}$"},"data":{"type":"object","properties":{"format":{"type":"string","const":"travel-plan-version/1"},"number":{"type":"integer","minimum":0},"kind":{"type":"string","enum":["observed","approved"]},"created_at":{"type":"string"},"order_id":{"anyOf":[{"type":"string","minLength":1,"maxLength":500},{"type":"null"}]},"items":{"type":"array","items":{"type":"object","properties":{"reference":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","minLength":1,"maxLength":500},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false},"name":{"type":"string"},"date":{"type":["string","null"]},"time":{"type":["string","null"]},"end_date":{"type":["string","null"]},"description":{"type":"string"},"booking_required":{"type":"boolean"},"kind":{"type":["string","null"]},"interval":{"anyOf":[{"type":"object","properties":{"start_at":{"type":"string","format":"date-time"},"start_zone":{"type":"string","minLength":1,"maxLength":100},"end_at":{"type":"string","format":"date-time"},"end_zone":{"type":"string","minLength":1,"maxLength":100}},"required":["start_at","start_zone","end_at","end_zone"],"additionalProperties":false},{"type":"null"}]},"participant_ids":{"anyOf":[{"type":"array","items":{"type":"string","minLength":1,"maxLength":500},"minItems":1,"maxItems":100},{"type":"null"}]},"leg_id":{"type":["string","null"]}},"required":["reference","name","date","time","end_date","description","booking_required","kind","interval","participant_ids","leg_id"],"additionalProperties":false},"maxItems":100},"approval":{"anyOf":[{"type":"object","properties":{"by":{"type":"string","minLength":1,"maxLength":500},"at":{"type":"string"},"capacity":{"type":"string","const":"staff_on_behalf"},"represented_client":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","minLength":1,"maxLength":500},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false},"client_name":{"type":"string"},"review_digest":{"type":"string","minLength":1,"maxLength":500},"revision":{"type":"string","pattern":"^\\d+$"},"note":{"type":"string"},"changes":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":500},"operation":{"type":"string","enum":["add","amend","remove"]},"entity":{"type":"string","enum":["trip_item","itinerary_entry"]},"title":{"type":"string"},"before":{"anyOf":[{"type":"object","properties":{"date":{"type":["string","null"]},"time":{"type":["string","null"]},"interval":{"anyOf":[{"type":"object","properties":{"start_at":{"type":"string","format":"date-time"},"start_zone":{"type":"string","minLength":1,"maxLength":100},"end_at":{"type":"string","format":"date-time"},"end_zone":{"type":"string","minLength":1,"maxLength":100}},"required":["start_at","start_zone","end_at","end_zone"],"additionalProperties":false},{"type":"null"}]},"participantIds":{"anyOf":[{"type":"array","items":{"type":"string","minLength":1,"maxLength":500},"minItems":1,"maxItems":100},{"type":"null"}]}},"required":["date","time"],"additionalProperties":false},{"type":"null"}]},"after":{"anyOf":[{"type":"object","properties":{"date":{"type":["string","null"]},"time":{"type":["string","null"]},"interval":{"anyOf":[{"type":"object","properties":{"start_at":{"type":"string","format":"date-time"},"start_zone":{"type":"string","minLength":1,"maxLength":100},"end_at":{"type":"string","format":"date-time"},"end_zone":{"type":"string","minLength":1,"maxLength":100}},"required":["start_at","start_zone","end_at","end_zone"],"additionalProperties":false},{"type":"null"}]},"participantIds":{"anyOf":[{"type":"array","items":{"type":"string","minLength":1,"maxLength":500},"minItems":1,"maxItems":100},{"type":"null"}]}},"required":["date","time"],"additionalProperties":false},{"type":"null"}]},"details":{"anyOf":[{"type":"object","properties":{"name":{"type":"string"},"kind":{"type":"string"},"legId":{"type":["string","null"]},"notes":{"type":"string"},"description":{"type":"string"},"endDate":{"type":["string","null"]},"library":{"type":"object","properties":{"kind":{"type":"string","enum":["venue","experience"]},"id":{"type":"string","minLength":1,"maxLength":500},"sourceWorkspaceId":{"type":"string","minLength":1,"maxLength":500},"anchor":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","minLength":1,"maxLength":500},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false}},"required":["kind","id","sourceWorkspaceId","anchor"],"additionalProperties":false},"supplier":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":500},"kind":{"type":"string","const":"supplier"},"name":{"type":"string"}},"required":["id","kind","name"],"additionalProperties":false},{"type":"null"}]},"checkedAt":{"anyOf":[{"type":"integer"},{"type":"null"}]}},"required":["name","kind"],"additionalProperties":false},{"type":"null"}]},"cost_difference":{"type":["number","null"]}},"required":["id","operation","title","before","after","details","cost_difference"],"additionalProperties":false}}},"required":["by","at","capacity","represented_client","client_name","review_digest","revision","note","changes"],"additionalProperties":false},{"type":"null"}]}},"required":["format","number","kind","created_at","order_id","items","approval"],"additionalProperties":false}},"required":["protocol","authorityId","workspaceId","modelDigest","checkedAt","kind","reference","revision","data"],"additionalProperties":false}]},"HostedEmfCreateClientRequest":{"type":"object","properties":{"requestId":{"type":"string","pattern":"^[\\w-]{1,100}$"},"modelDigest":{"type":"string","minLength":1,"maxLength":500},"name":{"type":"string","minLength":1,"maxLength":200},"leadSurname":{"type":"string","minLength":1,"maxLength":200},"email":{"type":"string","format":"email","maxLength":320}},"required":["requestId","modelDigest","name","leadSurname"],"additionalProperties":false},"HostedEmfCreateTripRequest":{"type":"object","properties":{"requestId":{"type":"string","pattern":"^[\\w-]{1,100}$"},"modelDigest":{"type":"string","minLength":1,"maxLength":500},"client":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","const":"client"},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false},"destination":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","const":"place"},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false},"startDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"endDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"notes":{"type":"string","maxLength":8000}},"required":["requestId","modelDigest","client","destination","startDate"],"additionalProperties":false},"HostedEmfCreateResponse":{"type":"object","properties":{"protocol":{"type":"string","const":"emf-desktop/1"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"modelDigest":{"type":"string","minLength":1,"maxLength":500},"checkedAt":{"type":"integer","minimum":0},"record":{"type":"object","properties":{"reference":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","minLength":1,"maxLength":500},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false},"title":{"type":"string"},"revision":{"type":"string","minLength":1,"maxLength":500}},"required":["reference","title","revision"],"additionalProperties":true},"requestId":{"type":"string","pattern":"^[\\w-]{1,100}$"},"replayed":{"type":"boolean"}},"required":["protocol","authorityId","workspaceId","modelDigest","checkedAt","record","requestId","replayed"],"additionalProperties":true},"HostedEmfTravelCommandRequest":{"anyOf":[{"type":"object","properties":{"modelDigest":{"type":"string","minLength":1,"maxLength":500},"revision":{"type":"string","pattern":"^\\d+$"},"requestId":{"type":"string","pattern":"^[\\w-]{1,100}$"},"kind":{"type":"string","const":"trip"},"reference":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","const":"trip"},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false},"action":{"type":"string","const":"add-entry"},"values":{"type":"object","properties":{"reason":{"type":"string","minLength":1,"maxLength":2000},"workStart":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"workEnd":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"itemId":{"type":"string","minLength":1,"maxLength":500},"name":{"type":"string","minLength":1,"maxLength":200},"kind":{"type":"string","enum":["free_time","client_activity","note","suggestion"]},"date":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"time":{"anyOf":[{"type":"string","pattern":"^(?:[01]\\d|2[0-3]):[0-5]\\d$"},{"type":"null"}]},"interval":{"anyOf":[{"type":"object","properties":{"start_at":{"type":"string","format":"date-time"},"start_zone":{"type":"string","minLength":1,"maxLength":100},"end_at":{"type":"string","format":"date-time"},"end_zone":{"type":"string","minLength":1,"maxLength":100}},"required":["start_at","start_zone","end_at","end_zone"],"additionalProperties":false},{"type":"null"}]},"description":{"type":"string","maxLength":8000},"notes":{"type":"string","maxLength":8000}},"required":["reason","name","kind"],"additionalProperties":false}},"required":["modelDigest","revision","requestId","kind","reference","action","values"],"additionalProperties":false},{"type":"object","properties":{"modelDigest":{"type":"string","minLength":1,"maxLength":500},"revision":{"type":"string","pattern":"^\\d+$"},"requestId":{"type":"string","pattern":"^[\\w-]{1,100}$"},"kind":{"type":"string","const":"trip"},"reference":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","const":"trip"},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false},"action":{"type":"string","const":"amend-entry"},"values":{"type":"object","properties":{"reason":{"type":"string","minLength":1,"maxLength":2000},"workStart":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"workEnd":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"itemId":{"type":"string","minLength":1,"maxLength":500},"name":{"type":"string","minLength":1,"maxLength":200},"kind":{"type":"string","enum":["free_time","client_activity","note","suggestion"]},"date":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"time":{"anyOf":[{"type":"string","pattern":"^(?:[01]\\d|2[0-3]):[0-5]\\d$"},{"type":"null"}]},"interval":{"anyOf":[{"type":"object","properties":{"start_at":{"type":"string","format":"date-time"},"start_zone":{"type":"string","minLength":1,"maxLength":100},"end_at":{"type":"string","format":"date-time"},"end_zone":{"type":"string","minLength":1,"maxLength":100}},"required":["start_at","start_zone","end_at","end_zone"],"additionalProperties":false},{"type":"null"}]},"description":{"type":"string","maxLength":8000},"notes":{"type":"string","maxLength":8000}},"required":["reason","itemId"],"additionalProperties":false}},"required":["modelDigest","revision","requestId","kind","reference","action","values"],"additionalProperties":false},{"type":"object","properties":{"modelDigest":{"type":"string","minLength":1,"maxLength":500},"revision":{"type":"string","pattern":"^\\d+$"},"requestId":{"type":"string","pattern":"^[\\w-]{1,100}$"},"kind":{"type":"string","const":"trip"},"reference":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","const":"trip"},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false},"action":{"type":"string","const":"remove-entry"},"values":{"type":"object","properties":{"reason":{"type":"string","minLength":1,"maxLength":2000},"workStart":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"workEnd":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"itemId":{"type":"string","minLength":1,"maxLength":500}},"required":["reason","itemId"],"additionalProperties":false}},"required":["modelDigest","revision","requestId","kind","reference","action","values"],"additionalProperties":false},{"type":"object","properties":{"modelDigest":{"type":"string","minLength":1,"maxLength":500},"revision":{"type":"string","pattern":"^\\d+$"},"requestId":{"type":"string","pattern":"^[\\w-]{1,100}$"},"kind":{"type":"string","const":"trip"},"reference":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","const":"trip"},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false},"action":{"type":"string","const":"save-requirement"},"values":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":500},"name":{"type":"string","minLength":1,"maxLength":180},"kind":{"type":"string","enum":["document","payment_milestone","other"]},"participantId":{"anyOf":[{"type":"string","minLength":1,"maxLength":500},{"type":"null"}]},"dueDate":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"source":{"type":"string","minLength":1,"maxLength":2000}},"required":["name","kind","source"],"additionalProperties":false}},"required":["modelDigest","revision","requestId","kind","reference","action","values"],"additionalProperties":false},{"type":"object","properties":{"modelDigest":{"type":"string","minLength":1,"maxLength":500},"revision":{"type":"string","pattern":"^\\d+$"},"requestId":{"type":"string","pattern":"^[\\w-]{1,100}$"},"kind":{"type":"string","const":"trip"},"reference":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","const":"trip"},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false},"action":{"type":"string","const":"verify-requirement"},"values":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":500},"requirementRevision":{"type":"string","minLength":1,"maxLength":500},"evidenceId":{"type":"string","minLength":1,"maxLength":500},"note":{"type":"string","minLength":1,"maxLength":2000}},"required":["id","requirementRevision","evidenceId","note"],"additionalProperties":false}},"required":["modelDigest","revision","requestId","kind","reference","action","values"],"additionalProperties":false},{"type":"object","properties":{"modelDigest":{"type":"string","minLength":1,"maxLength":500},"revision":{"type":"string","pattern":"^\\d+$"},"requestId":{"type":"string","pattern":"^[\\w-]{1,100}$"},"kind":{"type":"string","const":"trip"},"reference":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","const":"trip"},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false},"action":{"type":"string","const":"waive-requirement"},"values":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":500},"requirementRevision":{"type":"string","minLength":1,"maxLength":500},"note":{"type":"string","minLength":1,"maxLength":2000}},"required":["id","requirementRevision","note"],"additionalProperties":false}},"required":["modelDigest","revision","requestId","kind","reference","action","values"],"additionalProperties":false},{"type":"object","properties":{"modelDigest":{"type":"string","minLength":1,"maxLength":500},"revision":{"type":"string","pattern":"^\\d+$"},"requestId":{"type":"string","pattern":"^[\\w-]{1,100}$"},"kind":{"type":"string","const":"trip"},"reference":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","const":"trip"},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false},"action":{"type":"string","const":"reopen-requirement"},"values":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":500},"requirementRevision":{"type":"string","minLength":1,"maxLength":500},"note":{"type":"string","minLength":1,"maxLength":2000}},"required":["id","requirementRevision","note"],"additionalProperties":false}},"required":["modelDigest","revision","requestId","kind","reference","action","values"],"additionalProperties":false},{"type":"object","properties":{"modelDigest":{"type":"string","minLength":1,"maxLength":500},"revision":{"type":"string","pattern":"^\\d+$"},"requestId":{"type":"string","pattern":"^[\\w-]{1,100}$"},"kind":{"type":"string","const":"trip"},"reference":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","const":"trip"},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false},"action":{"type":"string","const":"retire-requirement"},"values":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":500},"requirementRevision":{"type":"string","minLength":1,"maxLength":500},"note":{"type":"string","minLength":1,"maxLength":2000}},"required":["id","requirementRevision","note"],"additionalProperties":false}},"required":["modelDigest","revision","requestId","kind","reference","action","values"],"additionalProperties":false},{"type":"object","properties":{"modelDigest":{"type":"string","minLength":1,"maxLength":500},"revision":{"type":"string","pattern":"^\\d+$"},"requestId":{"type":"string","pattern":"^[\\w-]{1,100}$"},"kind":{"type":"string","const":"trip"},"reference":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","const":"trip"},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false},"action":{"type":"string","const":"review-requirements"},"values":{"type":"object","properties":{"note":{"type":"string","minLength":1,"maxLength":2000}},"required":["note"],"additionalProperties":false}},"required":["modelDigest","revision","requestId","kind","reference","action","values"],"additionalProperties":false},{"type":"object","properties":{"modelDigest":{"type":"string","minLength":1,"maxLength":500},"revision":{"type":"string","pattern":"^\\d+$"},"requestId":{"type":"string","pattern":"^[\\w-]{1,100}$"},"kind":{"type":"string","const":"trip"},"reference":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","const":"trip"},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false},"action":{"type":"string","const":"set-readiness-policy"},"values":{"type":"object","properties":{"minimumGapMinutes":{"type":"integer","minimum":0,"maximum":1440},"paymentsDueBy":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"source":{"type":"string","minLength":1,"maxLength":2000}},"required":["minimumGapMinutes","paymentsDueBy","source"],"additionalProperties":false}},"required":["modelDigest","revision","requestId","kind","reference","action","values"],"additionalProperties":false},{"type":"object","properties":{"modelDigest":{"type":"string","minLength":1,"maxLength":500},"revision":{"type":"string","pattern":"^\\d+$"},"requestId":{"type":"string","pattern":"^[\\w-]{1,100}$"},"kind":{"type":"string","const":"trip"},"reference":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","const":"trip"},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false},"action":{"type":"string","const":"start-draft"},"values":{"type":"object","properties":{"reason":{"type":"string","minLength":1,"maxLength":2000}},"required":["reason"],"additionalProperties":false}},"required":["modelDigest","revision","requestId","kind","reference","action","values"],"additionalProperties":false},{"type":"object","properties":{"modelDigest":{"type":"string","minLength":1,"maxLength":500},"revision":{"type":"string","pattern":"^\\d+$"},"requestId":{"type":"string","pattern":"^[\\w-]{1,100}$"},"kind":{"type":"string","const":"trip"},"reference":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","const":"trip"},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false},"action":{"type":"string","const":"add-item"},"values":{"type":"object","properties":{"reason":{"type":"string","minLength":1,"maxLength":2000},"workStart":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"workEnd":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"itemId":{"type":"string","minLength":1,"maxLength":500},"name":{"type":"string","minLength":1,"maxLength":200},"kind":{"type":"string","enum":["lodging","dining","experience","transport"]},"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"time":{"type":"string","pattern":"^(?:[01]\\d|2[0-3]):[0-5]\\d$"},"endDate":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"notes":{"type":"string","maxLength":8000},"description":{"type":"string","maxLength":8000},"legId":{"anyOf":[{"type":"string","minLength":1,"maxLength":500},{"type":"null"}]},"interval":{"anyOf":[{"type":"object","properties":{"start_at":{"type":"string","format":"date-time"},"start_zone":{"type":"string","minLength":1,"maxLength":100},"end_at":{"type":"string","format":"date-time"},"end_zone":{"type":"string","minLength":1,"maxLength":100}},"required":["start_at","start_zone","end_at","end_zone"],"additionalProperties":false},{"type":"null"}]},"participantIds":{"anyOf":[{"type":"array","items":{"type":"string","minLength":1,"maxLength":500},"minItems":1,"maxItems":100},{"type":"null"}]}},"required":["reason","name","kind"],"additionalProperties":false}},"required":["modelDigest","revision","requestId","kind","reference","action","values"],"additionalProperties":false},{"type":"object","properties":{"modelDigest":{"type":"string","minLength":1,"maxLength":500},"revision":{"type":"string","pattern":"^\\d+$"},"requestId":{"type":"string","pattern":"^[\\w-]{1,100}$"},"kind":{"type":"string","const":"trip"},"reference":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","const":"trip"},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false},"action":{"type":"string","const":"propose"},"values":{"type":"object","properties":{"reason":{"type":"string","minLength":1,"maxLength":2000},"workStart":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"workEnd":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"itemId":{"type":"string","minLength":1,"maxLength":500},"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"time":{"type":"string","pattern":"^(?:[01]\\d|2[0-3]):[0-5]\\d$"},"interval":{"anyOf":[{"type":"object","properties":{"start_at":{"type":"string","format":"date-time"},"start_zone":{"type":"string","minLength":1,"maxLength":100},"end_at":{"type":"string","format":"date-time"},"end_zone":{"type":"string","minLength":1,"maxLength":100}},"required":["start_at","start_zone","end_at","end_zone"],"additionalProperties":false},{"type":"null"}]},"participantIds":{"anyOf":[{"type":"array","items":{"type":"string","minLength":1,"maxLength":500},"minItems":1,"maxItems":100},{"type":"null"}]}},"required":["reason","itemId","date","time"],"additionalProperties":false}},"required":["modelDigest","revision","requestId","kind","reference","action","values"],"additionalProperties":false},{"type":"object","properties":{"modelDigest":{"type":"string","minLength":1,"maxLength":500},"revision":{"type":"string","pattern":"^\\d+$"},"requestId":{"type":"string","pattern":"^[\\w-]{1,100}$"},"kind":{"type":"string","const":"trip"},"reference":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","const":"trip"},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false},"action":{"type":"string","const":"remove-item"},"values":{"type":"object","properties":{"reason":{"type":"string","minLength":1,"maxLength":2000},"workStart":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"workEnd":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"itemId":{"type":"string","minLength":1,"maxLength":500}},"required":["reason","itemId"],"additionalProperties":false}},"required":["modelDigest","revision","requestId","kind","reference","action","values"],"additionalProperties":false},{"type":"object","properties":{"modelDigest":{"type":"string","minLength":1,"maxLength":500},"revision":{"type":"string","pattern":"^\\d+$"},"requestId":{"type":"string","pattern":"^[\\w-]{1,100}$"},"kind":{"type":"string","const":"trip"},"reference":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","const":"trip"},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false},"action":{"type":"string","const":"review"},"values":{"type":"object","properties":{"orderId":{"type":"string","minLength":1,"maxLength":500}},"required":["orderId"],"additionalProperties":false}},"required":["modelDigest","revision","requestId","kind","reference","action","values"],"additionalProperties":false},{"type":"object","properties":{"modelDigest":{"type":"string","minLength":1,"maxLength":500},"revision":{"type":"string","pattern":"^\\d+$"},"requestId":{"type":"string","pattern":"^[\\w-]{1,100}$"},"kind":{"type":"string","const":"trip"},"reference":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","const":"trip"},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false},"action":{"type":"string","const":"approve"},"values":{"type":"object","properties":{"orderId":{"type":"string","minLength":1,"maxLength":500},"reviewDigest":{"type":"string","minLength":1,"maxLength":500},"capacity":{"type":"string","const":"staff_on_behalf"},"note":{"type":"string","maxLength":2000}},"required":["orderId","reviewDigest","capacity"],"additionalProperties":false}},"required":["modelDigest","revision","requestId","kind","reference","action","values"],"additionalProperties":false},{"type":"object","properties":{"modelDigest":{"type":"string","minLength":1,"maxLength":500},"revision":{"type":"string","pattern":"^\\d+$"},"requestId":{"type":"string","pattern":"^[\\w-]{1,100}$"},"kind":{"type":"string","const":"trip"},"reference":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","const":"trip"},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false},"action":{"type":"string","const":"discard-change"},"values":{"type":"object","properties":{"orderId":{"type":"string","minLength":1,"maxLength":500},"itemId":{"type":"string","minLength":1,"maxLength":500}},"required":["orderId","itemId"],"additionalProperties":false}},"required":["modelDigest","revision","requestId","kind","reference","action","values"],"additionalProperties":false},{"type":"object","properties":{"modelDigest":{"type":"string","minLength":1,"maxLength":500},"revision":{"type":"string","pattern":"^\\d+$"},"requestId":{"type":"string","pattern":"^[\\w-]{1,100}$"},"kind":{"type":"string","const":"trip"},"reference":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","const":"trip"},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false},"action":{"type":"string","const":"cancel"},"values":{"type":"object","properties":{"orderId":{"type":"string","minLength":1,"maxLength":500}},"required":["orderId"],"additionalProperties":false}},"required":["modelDigest","revision","requestId","kind","reference","action","values"],"additionalProperties":false},{"type":"object","properties":{"modelDigest":{"type":"string","minLength":1,"maxLength":500},"revision":{"type":"string","pattern":"^\\d+$"},"requestId":{"type":"string","pattern":"^[\\w-]{1,100}$"},"kind":{"type":"string","const":"trip"},"reference":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","const":"trip"},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false},"action":{"type":"string","const":"delivery"},"values":{"type":"object","properties":{"orderId":{"type":"string","minLength":1,"maxLength":500},"taskId":{"type":"string","minLength":1,"maxLength":500},"outcome":{"type":"string","enum":["sent","failed","uncertain"]},"reference":{"type":"string","minLength":1,"maxLength":2000}},"required":["orderId","taskId","outcome","reference"],"additionalProperties":false}},"required":["modelDigest","revision","requestId","kind","reference","action","values"],"additionalProperties":false},{"type":"object","properties":{"modelDigest":{"type":"string","minLength":1,"maxLength":500},"revision":{"type":"string","pattern":"^\\d+$"},"requestId":{"type":"string","pattern":"^[\\w-]{1,100}$"},"kind":{"type":"string","const":"trip"},"reference":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","const":"trip"},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false},"action":{"type":"string","const":"reconcile"},"values":{"type":"object","properties":{"orderId":{"type":"string","minLength":1,"maxLength":500},"taskId":{"type":"string","minLength":1,"maxLength":500},"outcome":{"type":"string","enum":["sent","failed"]},"reference":{"type":"string","minLength":1,"maxLength":2000}},"required":["orderId","taskId","outcome","reference"],"additionalProperties":false}},"required":["modelDigest","revision","requestId","kind","reference","action","values"],"additionalProperties":false},{"type":"object","properties":{"modelDigest":{"type":"string","minLength":1,"maxLength":500},"revision":{"type":"string","pattern":"^\\d+$"},"requestId":{"type":"string","pattern":"^[\\w-]{1,100}$"},"kind":{"type":"string","const":"trip"},"reference":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","const":"trip"},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false},"action":{"type":"string","const":"evidence"},"values":{"type":"object","properties":{"orderId":{"type":"string","minLength":1,"maxLength":500},"taskId":{"type":"string","minLength":1,"maxLength":500},"bookingRevision":{"type":"string","minLength":1,"maxLength":500},"interval":{"anyOf":[{"type":"object","properties":{"start_at":{"type":"string","format":"date-time"},"start_zone":{"type":"string","minLength":1,"maxLength":100},"end_at":{"type":"string","format":"date-time"},"end_zone":{"type":"string","minLength":1,"maxLength":100}},"required":["start_at","start_zone","end_at","end_zone"],"additionalProperties":false},{"type":"null"}]},"participantIds":{"anyOf":[{"type":"array","items":{"type":"string","minLength":1,"maxLength":500},"minItems":1,"maxItems":100},{"type":"null"}]},"reference":{"type":"string","maxLength":2000},"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"time":{"type":"string","pattern":"^(?:[01]\\d|2[0-3]):[0-5]\\d$"},"cancelled":{"type":"boolean","const":true},"attachmentIds":{"type":"array","items":{"type":"string","minLength":1,"maxLength":500},"maxItems":5},"attachments":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":240},"contentBase64":{"type":"string","minLength":1}},"required":["name","contentBase64"],"additionalProperties":false},"maxItems":5}},"required":["orderId","taskId","bookingRevision","reference"],"additionalProperties":false}},"required":["modelDigest","revision","requestId","kind","reference","action","values"],"additionalProperties":false},{"type":"object","properties":{"modelDigest":{"type":"string","minLength":1,"maxLength":500},"revision":{"type":"string","pattern":"^\\d+$"},"requestId":{"type":"string","pattern":"^[\\w-]{1,100}$"},"kind":{"type":"string","const":"trip"},"reference":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","const":"trip"},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false},"action":{"type":"string","const":"confirm"},"values":{"type":"object","properties":{"orderId":{"type":"string","minLength":1,"maxLength":500},"taskId":{"type":"string","minLength":1,"maxLength":500},"bookingRevision":{"type":"string","minLength":1,"maxLength":500},"interval":{"anyOf":[{"type":"object","properties":{"start_at":{"type":"string","format":"date-time"},"start_zone":{"type":"string","minLength":1,"maxLength":100},"end_at":{"type":"string","format":"date-time"},"end_zone":{"type":"string","minLength":1,"maxLength":100}},"required":["start_at","start_zone","end_at","end_zone"],"additionalProperties":false},{"type":"null"}]},"participantIds":{"anyOf":[{"type":"array","items":{"type":"string","minLength":1,"maxLength":500},"minItems":1,"maxItems":100},{"type":"null"}]},"reference":{"type":"string","maxLength":2000},"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"time":{"type":"string","pattern":"^(?:[01]\\d|2[0-3]):[0-5]\\d$"},"cancelled":{"type":"boolean","const":true},"attachmentIds":{"type":"array","items":{"type":"string","minLength":1,"maxLength":500},"maxItems":5},"attachments":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":240},"contentBase64":{"type":"string","minLength":1}},"required":["name","contentBase64"],"additionalProperties":false},"maxItems":5}},"required":["orderId","taskId","bookingRevision","reference"],"additionalProperties":false}},"required":["modelDigest","revision","requestId","kind","reference","action","values"],"additionalProperties":false},{"type":"object","properties":{"modelDigest":{"type":"string","minLength":1,"maxLength":500},"revision":{"type":"string","pattern":"^\\d+$"},"requestId":{"type":"string","pattern":"^[\\w-]{1,100}$"},"kind":{"type":"string","const":"trip"},"reference":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","const":"trip"},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false},"action":{"type":"string","const":"accept"},"values":{"type":"object","properties":{"orderId":{"type":"string","minLength":1,"maxLength":500},"taskId":{"type":"string","minLength":1,"maxLength":500}},"required":["orderId","taskId"],"additionalProperties":false}},"required":["modelDigest","revision","requestId","kind","reference","action","values"],"additionalProperties":false},{"type":"object","properties":{"modelDigest":{"type":"string","minLength":1,"maxLength":500},"revision":{"type":"string","pattern":"^\\d+$"},"requestId":{"type":"string","pattern":"^[\\w-]{1,100}$"},"kind":{"type":"string","const":"trip"},"reference":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","const":"trip"},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false},"action":{"type":"string","const":"log-activity"},"values":{"type":"object","properties":{"orderId":{"type":"string","minLength":1,"maxLength":500},"taskId":{"type":"string","minLength":1,"maxLength":500},"kind":{"type":"string","enum":["email","call","note"]},"note":{"type":"string","minLength":1,"maxLength":2000}},"required":["orderId","taskId","kind","note"],"additionalProperties":false}},"required":["modelDigest","revision","requestId","kind","reference","action","values"],"additionalProperties":false},{"type":"object","properties":{"modelDigest":{"type":"string","minLength":1,"maxLength":500},"revision":{"type":"string","pattern":"^\\d+$"},"requestId":{"type":"string","pattern":"^[\\w-]{1,100}$"},"kind":{"type":"string","const":"travel-operations"},"reference":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","const":"trip"},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false},"action":{"type":"string","const":"define-obligation"},"values":{"type":"object","properties":{"source_entity":{"type":"string","enum":["trip_item","fee","commission"]},"source_id":{"type":"string","minLength":1,"maxLength":500},"amount_minor":{"type":"integer","minimum":-9007199254740991,"maximum":1000000000000,"exclusiveMinimum":0},"currency":{"type":"string","pattern":"^[A-Z]{3}$"},"route":{"type":"string","enum":["direct","agency"]},"payer":{"type":"string","minLength":1,"maxLength":1000},"payee":{"type":"string","minLength":1,"maxLength":1000},"source":{"type":"string","minLength":1,"maxLength":1000},"installments":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":180},"due_date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"amount_minor":{"type":"integer","minimum":-9007199254740991,"maximum":1000000000000,"exclusiveMinimum":0},"basis_points":{"type":"integer","minimum":1,"maximum":10000}},"required":["name","due_date"],"additionalProperties":false},"minItems":1,"maxItems":30}},"required":["source_entity","source_id","amount_minor","currency","route","payer","payee","source"],"additionalProperties":false}},"required":["modelDigest","revision","requestId","kind","reference","action","values"],"additionalProperties":false},{"type":"object","properties":{"modelDigest":{"type":"string","minLength":1,"maxLength":500},"revision":{"type":"string","pattern":"^\\d+$"},"requestId":{"type":"string","pattern":"^[\\w-]{1,100}$"},"kind":{"type":"string","const":"travel-operations"},"reference":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","const":"trip"},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false},"action":{"type":"string","const":"schedule-obligation"},"values":{"type":"object","properties":{"obligation_id":{"type":"string","minLength":1,"maxLength":500},"installments":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":180},"due_date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"amount_minor":{"type":"integer","minimum":-9007199254740991,"maximum":1000000000000,"exclusiveMinimum":0},"basis_points":{"type":"integer","minimum":1,"maximum":10000}},"required":["name","due_date"],"additionalProperties":false},"minItems":1,"maxItems":30}},"required":["obligation_id","installments"],"additionalProperties":false}},"required":["modelDigest","revision","requestId","kind","reference","action","values"],"additionalProperties":false},{"type":"object","properties":{"modelDigest":{"type":"string","minLength":1,"maxLength":500},"revision":{"type":"string","pattern":"^\\d+$"},"requestId":{"type":"string","pattern":"^[\\w-]{1,100}$"},"kind":{"type":"string","const":"travel-operations"},"reference":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","const":"trip"},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false},"action":{"type":"string","const":"record-payment"},"values":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":180},"kind":{"type":"string","enum":["client_receipt","fee_receipt","supplier_disbursement","direct_payment","commission_receipt","refund"]},"payer":{"type":"string","minLength":1,"maxLength":1000},"payee":{"type":"string","minLength":1,"maxLength":1000},"amount_minor":{"type":"integer","minimum":-9007199254740991,"maximum":1000000000000,"exclusiveMinimum":0},"currency":{"type":"string","pattern":"^[A-Z]{3}$"},"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"status":{"type":"string","enum":["pending","confirmed"]},"source":{"type":"string","minLength":1,"maxLength":1000},"external_reference":{"type":"string","minLength":1,"maxLength":1000},"method":{"type":"string","minLength":1,"maxLength":1000},"method_id":{"type":"string","minLength":1,"maxLength":500},"original_id":{"type":"string","minLength":1,"maxLength":500}},"required":["name","kind","payer","payee","amount_minor","currency","date","status","source","external_reference","method"],"additionalProperties":false}},"required":["modelDigest","revision","requestId","kind","reference","action","values"],"additionalProperties":false},{"type":"object","properties":{"modelDigest":{"type":"string","minLength":1,"maxLength":500},"revision":{"type":"string","pattern":"^\\d+$"},"requestId":{"type":"string","pattern":"^[\\w-]{1,100}$"},"kind":{"type":"string","const":"travel-operations"},"reference":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","const":"trip"},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false},"action":{"type":"string","const":"confirm-payment"},"values":{"type":"object","properties":{"transaction_id":{"type":"string","minLength":1,"maxLength":500},"external_reference":{"type":"string","minLength":1,"maxLength":1000},"source":{"type":"string","minLength":1,"maxLength":1000}},"required":["transaction_id","external_reference","source"],"additionalProperties":false}},"required":["modelDigest","revision","requestId","kind","reference","action","values"],"additionalProperties":false},{"type":"object","properties":{"modelDigest":{"type":"string","minLength":1,"maxLength":500},"revision":{"type":"string","pattern":"^\\d+$"},"requestId":{"type":"string","pattern":"^[\\w-]{1,100}$"},"kind":{"type":"string","const":"travel-operations"},"reference":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","const":"trip"},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false},"action":{"type":"string","const":"reverse-payment"},"values":{"type":"object","properties":{"transaction_id":{"type":"string","minLength":1,"maxLength":500},"reason":{"type":"string","minLength":1,"maxLength":1000},"external_reference":{"type":"string","minLength":1,"maxLength":1000},"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},"required":["transaction_id","reason","external_reference","date"],"additionalProperties":false}},"required":["modelDigest","revision","requestId","kind","reference","action","values"],"additionalProperties":false},{"type":"object","properties":{"modelDigest":{"type":"string","minLength":1,"maxLength":500},"revision":{"type":"string","pattern":"^\\d+$"},"requestId":{"type":"string","pattern":"^[\\w-]{1,100}$"},"kind":{"type":"string","const":"travel-operations"},"reference":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","const":"trip"},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false},"action":{"type":"string","const":"allocate-payment"},"values":{"type":"object","properties":{"transaction_id":{"type":"string","minLength":1,"maxLength":500},"obligation_id":{"type":"string","minLength":1,"maxLength":500},"amount_minor":{"type":"integer","minimum":-9007199254740991,"maximum":1000000000000,"exclusiveMinimum":0},"invoice_id":{"type":"string","minLength":1,"maxLength":500},"original_allocation_id":{"type":"string","minLength":1,"maxLength":500}},"required":["transaction_id","obligation_id","amount_minor"],"additionalProperties":false}},"required":["modelDigest","revision","requestId","kind","reference","action","values"],"additionalProperties":false},{"type":"object","properties":{"modelDigest":{"type":"string","minLength":1,"maxLength":500},"revision":{"type":"string","pattern":"^\\d+$"},"requestId":{"type":"string","pattern":"^[\\w-]{1,100}$"},"kind":{"type":"string","const":"travel-operations"},"reference":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","const":"trip"},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false},"action":{"type":"string","const":"record-adjustment"},"values":{"type":"object","properties":{"obligation_id":{"type":"string","minLength":1,"maxLength":500},"invoice_id":{"type":"string","minLength":1,"maxLength":500},"amount_minor":{"anyOf":[{"type":"integer","minimum":-1000000000000,"maximum":-1},{"type":"integer","minimum":-9007199254740991,"maximum":1000000000000,"exclusiveMinimum":0}]},"currency":{"type":"string","pattern":"^[A-Z]{3}$"},"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"reason":{"type":"string","minLength":1,"maxLength":180},"source":{"type":"string","minLength":1,"maxLength":1000}},"required":["obligation_id","amount_minor","currency","date","reason","source"],"additionalProperties":false}},"required":["modelDigest","revision","requestId","kind","reference","action","values"],"additionalProperties":false},{"type":"object","properties":{"modelDigest":{"type":"string","minLength":1,"maxLength":500},"revision":{"type":"string","pattern":"^\\d+$"},"requestId":{"type":"string","pattern":"^[\\w-]{1,100}$"},"kind":{"type":"string","const":"travel-operations"},"reference":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","const":"trip"},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false},"action":{"type":"string","const":"set-budget"},"values":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":500},"name":{"type":"string","minLength":1,"maxLength":180},"category":{"type":"string","minLength":1,"maxLength":80},"leg_id":{"anyOf":[{"type":"string","minLength":1,"maxLength":500},{"type":"null"}]},"amount_minor":{"type":"integer","minimum":0,"maximum":9007199254740991},"currency":{"type":"string","pattern":"^[A-Z]{3}$"},"assumption":{"type":"string","minLength":1,"maxLength":1000}},"required":["name","category","amount_minor","currency","assumption"],"additionalProperties":false}},"required":["modelDigest","revision","requestId","kind","reference","action","values"],"additionalProperties":false}]},"HostedEmfCommandResponse":{"anyOf":[{"type":"object","properties":{"protocol":{"type":"string","const":"emf-desktop/1"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"modelDigest":{"type":"string","minLength":1,"maxLength":500},"checkedAt":{"type":"integer","minimum":0},"reference":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","const":"trip"},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false},"revision":{"type":"string","pattern":"^\\d+$"},"requestId":{"type":"string","minLength":1,"maxLength":500},"kind":{"type":"string","const":"trip"}},"required":["protocol","authorityId","workspaceId","modelDigest","checkedAt","reference","revision","requestId","kind"],"additionalProperties":false},{"type":"object","properties":{"protocol":{"type":"string","const":"emf-desktop/1"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"modelDigest":{"type":"string","minLength":1,"maxLength":500},"checkedAt":{"type":"integer","minimum":0},"reference":{"type":"object","properties":{"authority":{"type":"string","const":"emf"},"authorityId":{"type":"string","minLength":1,"maxLength":500},"workspaceId":{"type":"string","minLength":1,"maxLength":500},"entity":{"type":"string","const":"trip"},"recordId":{"type":"string","minLength":1,"maxLength":500}},"required":["authority","authorityId","workspaceId","entity","recordId"],"additionalProperties":false},"revision":{"type":"string","pattern":"^\\d+$"},"requestId":{"type":"string","minLength":1,"maxLength":500},"kind":{"type":"string","const":"travel-operations"},"resultId":{"type":"string","minLength":1,"maxLength":500}},"required":["protocol","authorityId","workspaceId","modelDigest","checkedAt","reference","revision","requestId","kind","resultId"],"additionalProperties":false}]},"PlaceCatalogResponse":{"type":"object","properties":{"sourceWorkspaceId":{"type":"string","maxLength":200},"exportedAt":{"type":"string"},"nextCursor":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}]},"rows":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":500},"updatedAt":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}]},"name":{"type":"string","maxLength":1000},"kind":{"type":"string","maxLength":100},"parentId":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}]},"country":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}]},"countryCode":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}]},"region":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}]},"latitude":{"anyOf":[{"type":["string","number"]},{"type":"null"}]},"longitude":{"anyOf":[{"type":["string","number"]},{"type":"null"}]},"iataCode":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}]}},"required":["id","updatedAt","name","kind","parentId","country","countryCode","region","latitude","longitude","iataCode"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":500},"updatedAt":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}]}},"required":["id","updatedAt"],"additionalProperties":false}]},"maxItems":500}},"required":["sourceWorkspaceId","exportedAt","nextCursor","rows"],"additionalProperties":false},"PlaceKnowledgeResponse":{"anyOf":[{"type":"object","properties":{"sourceId":{"type":"string","minLength":1,"maxLength":500},"sourceWorkspaceId":{"type":"string","minLength":1,"maxLength":200},"revision":{"type":"string","pattern":"^[a-f0-9]{32}$"},"unchanged":{"type":"boolean","const":true}},"required":["sourceId","sourceWorkspaceId","revision","unchanged"],"additionalProperties":false},{"type":"object","properties":{"sourceId":{"type":"string","minLength":1,"maxLength":500},"sourceWorkspaceId":{"type":"string","minLength":1,"maxLength":200},"revision":{"type":"string","pattern":"^[a-f0-9]{32}$"},"content":{"type":"object","properties":{"sourceId":{"type":"string","minLength":1,"maxLength":500},"sourceWorkspaceId":{"type":"string","minLength":1,"maxLength":200},"destinations":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":500},"name":{"type":"string","maxLength":500},"summary":{"type":"string","maxLength":1800},"kind":{"type":"string","maxLength":100},"url":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}]},"updatedAt":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}]}},"required":["id","name","summary","kind","url","updatedAt"],"additionalProperties":false},"maxItems":5},"venues":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":500},"name":{"type":"string","maxLength":500},"summary":{"type":"string","maxLength":1800},"kind":{"type":"string","maxLength":100},"url":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}]},"updatedAt":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}]}},"required":["id","name","summary","kind","url","updatedAt"],"additionalProperties":false},"maxItems":20},"experiences":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":500},"name":{"type":"string","maxLength":500},"summary":{"type":"string","maxLength":1800},"kind":{"type":"string","maxLength":100},"url":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}]},"updatedAt":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}]}},"required":["id","name","summary","kind","url","updatedAt"],"additionalProperties":false},"maxItems":20},"totals":{"type":"object","properties":{"destinations":{"type":"integer","minimum":0},"venues":{"type":"integer","minimum":0},"experiences":{"type":"integer","minimum":0}},"required":["destinations","venues","experiences"],"additionalProperties":false}},"required":["sourceId","sourceWorkspaceId","destinations","venues","experiences","totals"],"additionalProperties":false}},"required":["sourceId","sourceWorkspaceId","revision","content"],"additionalProperties":false}]},"LibraryReadResponse":{"anyOf":[{"type":"object","properties":{"sourceId":{"type":"string","minLength":1,"maxLength":500},"sourceWorkspaceId":{"type":"string","minLength":1,"maxLength":500},"revision":{"type":"string","pattern":"^[a-f0-9]{32}$"},"unchanged":{"type":"boolean","const":true}},"required":["sourceId","sourceWorkspaceId","revision","unchanged"],"additionalProperties":false},{"type":"object","properties":{"sourceId":{"type":"string","minLength":1,"maxLength":500},"sourceWorkspaceId":{"type":"string","minLength":1,"maxLength":500},"revision":{"type":"string","pattern":"^[a-f0-9]{32}$"},"content":{"type":"object","properties":{"sourceId":{"type":"string","minLength":1,"maxLength":500},"sourceWorkspaceId":{"type":"string","minLength":1,"maxLength":500},"kind":{"type":"string","enum":["venue","experience","supplier"]},"search":{"type":"string","maxLength":100},"after":{"anyOf":[{"type":"string","minLength":1,"maxLength":500},{"type":"null"}]},"entries":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":500},"kind":{"type":"string","enum":["venue","experience","supplier"]},"name":{"type":"string","maxLength":500},"summary":{"type":"string","maxLength":300},"category":{"type":"string","maxLength":100}},"required":["id","kind","name","summary","category"],"additionalProperties":false},"maxItems":20},"total":{"type":"integer","minimum":0},"nextCursor":{"anyOf":[{"type":"string","minLength":1,"maxLength":500},{"type":"null"}]},"profile":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":500},"kind":{"type":"string","enum":["venue","experience","supplier"]},"name":{"type":"string","maxLength":500},"summary":{"type":"string","maxLength":6000},"category":{"type":"string","maxLength":100},"website":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}]},"sourceUrl":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}]},"updatedAt":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}]},"planningDestinations":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":500},"name":{"type":"string","maxLength":500}},"required":["id","name"],"additionalProperties":false},"maxItems":10},"coordinates":{"anyOf":[{"type":"object","properties":{"latitude":{"type":"number","minimum":-90,"maximum":90},"longitude":{"type":"number","minimum":-180,"maximum":180}},"required":["latitude","longitude"],"additionalProperties":false},{"type":"null"}]},"supplier":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":500},"kind":{"type":"string","enum":["venue","experience","supplier"]},"name":{"type":"string","maxLength":500}},"required":["id","kind","name"],"additionalProperties":false},{"type":"null"}]},"venue":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":500},"kind":{"type":"string","enum":["venue","experience","supplier"]},"name":{"type":"string","maxLength":500}},"required":["id","kind","name"],"additionalProperties":false},{"type":"null"}]},"facts":{"type":"object","properties":{"duration":{"type":"string","maxLength":1800},"pace":{"type":"string","maxLength":1800},"mobility":{"type":"string","maxLength":1800},"seasonality":{"type":"string","maxLength":1800},"amenities":{"type":"string","maxLength":1800},"bestFor":{"type":"string","maxLength":1800},"avoidFor":{"type":"string","maxLength":1800}},"required":["duration","pace","mobility","seasonality","amenities","bestFor","avoidFor"],"additionalProperties":false},"relationship":{"anyOf":[{"type":"object","properties":{"contactName":{"type":"string","maxLength":1800},"contactMethod":{"type":"string","maxLength":1800},"notes":{"type":"string","maxLength":1800},"perks":{"type":"string","maxLength":1800},"keyNotes":{"type":"string","maxLength":1800},"status":{"type":"string","maxLength":1800}},"required":["contactName","contactMethod","notes","perks","keyNotes","status"],"additionalProperties":false},{"type":"null"}]},"usage":{"anyOf":[{"type":"object","properties":{"total":{"type":"integer","minimum":0},"trips":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":500},"name":{"type":"string","maxLength":500},"status":{"type":"string","maxLength":100}},"required":["id","name","status"],"additionalProperties":false},"maxItems":10}},"required":["total","trips"],"additionalProperties":false},{"type":"null"}]}},"required":["id","kind","name","summary","category","website","sourceUrl","updatedAt","planningDestinations","coordinates","supplier","venue","facts","relationship","usage"],"additionalProperties":false},{"type":"null"}]}},"required":["sourceId","sourceWorkspaceId","kind","search","after","entries","total","nextCursor","profile"],"additionalProperties":false}},"required":["sourceId","sourceWorkspaceId","revision","content"],"additionalProperties":false}]},"ApiErrorEnvelope":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["unauthorized","forbidden","not_found","validation","conflict","approval_required","unsupported_operation","blocked_by_reference","rate_limited","service_unavailable","contract_violation","internal"]},"message":{"type":"string"},"details":{}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false},"WorkspaceContextResponse":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"string"},"slug":{"type":"string"},"name":{"type":"string"},"vertical":{"type":"string"},"readOnly":{"type":"boolean"},"scopes":{"type":"array","items":{"type":"string"}},"authorization":{"type":"object","properties":{"rbacAvailable":{"type":"boolean"},"allowAll":{"type":"boolean"},"permissionKeys":{"type":"array","items":{"type":"string"},"maxItems":500}},"required":["rbacAvailable","allowAll","permissionKeys"],"additionalProperties":false},"profile":{"type":"object","properties":{"catalogVersion":{"type":"number","const":1},"entitlementKeys":{"type":"array","items":{"type":"string"},"maxItems":32},"experienceGroups":{"type":"array","items":{"type":"string","enum":["workspace","operations"]},"maxItems":2}},"required":["catalogVersion","entitlementKeys","experienceGroups"],"additionalProperties":false},"principal":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"membershipRole":{"type":"string"}},"required":["id","label","membershipRole"],"additionalProperties":false},"subOrganization":{"anyOf":[{"type":"object","properties":{"slug":{"type":"string"},"name":{"type":"string"}},"required":["slug","name"],"additionalProperties":false},{"type":"null"}]}},"required":["id","slug","name","vertical","readOnly","scopes","authorization","profile","principal","subOrganization"],"additionalProperties":false}},"required":["data"],"additionalProperties":false},"MemoryApiListResponse":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":256},"kind":{"type":"string","minLength":1,"maxLength":128},"value":{"type":["string","null"]},"body":{"type":["string","null"]},"source":{"type":"string"},"state":{"type":"string"},"importance":{"type":["string","null"]},"pinned":{"type":"boolean"},"nounType":{"type":["string","null"]},"nounId":{"type":["string","null"]},"createdAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"updatedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]}},"required":["id","kind","value","body","source","state","importance","pinned","nounType","nounId","createdAt","updatedAt"],"additionalProperties":false}},"total":{"type":"integer","minimum":0}},"required":["data","total"],"additionalProperties":false},"MemoryApiCreateRequest":{"type":"object","properties":{"kind":{"type":"string","minLength":1,"maxLength":128},"value":{"anyOf":[{"type":"string","maxLength":20000},{"type":"null"}]},"body":{"anyOf":[{"type":"string","maxLength":20000},{"type":"null"}]},"evidence":{"anyOf":[{"type":"string","maxLength":4000},{"type":"null"}]},"confidence":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}]},"source":{"type":"string","enum":["manual","voice","scribe","agent","brain","note"],"default":"agent"},"state":{"type":"string","enum":["active","needs_review"],"default":"active"},"importance":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}]},"noun":{"type":"object","properties":{"type":{"type":"string","minLength":1,"maxLength":64},"id":{"type":"string","minLength":1,"maxLength":256}},"required":["type","id"],"additionalProperties":false},"callId":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"chatId":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]}},"required":["kind"],"additionalProperties":false},"MemoryApiCreateResponse":{"type":"object","properties":{"data":{"type":"object","properties":{"memoryId":{"type":"string","minLength":1,"maxLength":256},"state":{"type":"string"},"idempotentReplay":{"type":"boolean"}},"required":["memoryId","state"],"additionalProperties":false}},"required":["data"],"additionalProperties":false},"MemoryApiTransitionRequest":{"type":"object","properties":{"state":{"type":"string","enum":["active","needs_review","archived","merged"]}},"required":["state"],"additionalProperties":false},"MemoryApiTransitionResponse":{"type":"object","properties":{"data":{"type":"object","properties":{"memoryId":{"type":"string","minLength":1,"maxLength":256},"from":{"type":"string"},"state":{"type":"string"}},"required":["memoryId","from","state"],"additionalProperties":false}},"required":["data"],"additionalProperties":false},"ClientsListResponse":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"slug":{"type":"string"},"name":{"type":"string"},"notes":{"type":["string","null"]},"createdAt":{"type":["string","null"]},"updatedAt":{"type":["string","null"]},"upcomingTripCount":{"type":"integer"},"inFlightTripCount":{"type":"integer"},"draftTripCount":{"type":"integer"},"destinationTags":{"type":"array","items":{"type":"string"}}},"required":["id","slug","name","notes","createdAt","updatedAt","upcomingTripCount","inFlightTripCount","draftTripCount","destinationTags"],"additionalProperties":false}},"total":{"type":"integer","minimum":0},"nextCursor":{"type":["string","null"]}},"required":["data","total","nextCursor"],"additionalProperties":false},"ClientDetailResponse":{"type":"object","properties":{"data":{"type":"object","properties":{"client":{"type":"object","properties":{"id":{"type":"string"},"slug":{"type":"string"},"name":{"type":"string"},"notes":{"type":["string","null"]},"createdAt":{"type":["string","null"]},"updatedAt":{"type":["string","null"]},"upcomingTripCount":{"type":"integer"},"inFlightTripCount":{"type":"integer"},"draftTripCount":{"type":"integer"},"destinationTags":{"type":"array","items":{"type":"string"}}},"required":["id","slug","name","notes","createdAt","updatedAt","upcomingTripCount","inFlightTripCount","draftTripCount","destinationTags"],"additionalProperties":false},"trips":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"destination":{"type":"string"},"startDate":{"anyOf":[{"type":"string","minLength":4},{"type":"null"}]},"endDate":{"anyOf":[{"type":"string","minLength":4},{"type":"null"}]},"lifecycleState":{"type":"string"},"bookingsCount":{"type":"integer"}},"required":["id","title","destination","startDate","endDate","lifecycleState","bookingsCount"],"additionalProperties":false}},"travelers":{"type":"array","items":{"type":"object","additionalProperties":{}}}},"required":["client","trips","travelers"],"additionalProperties":true}},"required":["data"],"additionalProperties":false},"CreateClientRequest":{"type":"object","properties":{"name":{"type":"string","minLength":1},"slug":{"type":"string","minLength":1},"notes":{"type":["string","null"]},"email":{"anyOf":[{"type":"string","format":"email"},{"type":"null"}]}},"required":["name"],"additionalProperties":false},"CreateClientResponse":{"type":"object","properties":{"data":{"type":"object","properties":{"clientId":{"type":"string"},"clientSlug":{"type":"string"}},"required":["clientId","clientSlug"],"additionalProperties":false}},"required":["data"],"additionalProperties":false},"UpdateClientRequest":{"type":"object","properties":{"name":{"type":"string","minLength":1},"notes":{"type":["string","null"]},"settingsPatch":{"type":"object","additionalProperties":{}},"clearUnspecifiedProfileFields":{"type":"boolean"}},"additionalProperties":false},"UpdateClientResponse":{"type":"object","properties":{"data":{"type":"object","properties":{"client":{"type":"object","properties":{"id":{"type":"string"},"slug":{"type":"string"},"name":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","slug","name","updatedAt"],"additionalProperties":false},"settings":{"type":"object","additionalProperties":{}}},"required":["client","settings"],"additionalProperties":false}},"required":["data"],"additionalProperties":false},"TripsListResponse":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"lifecycleState":{"type":"string"},"destination":{"type":["string","null"]},"startDate":{"anyOf":[{"type":"string","minLength":4},{"type":"null"}]},"endDate":{"anyOf":[{"type":"string","minLength":4},{"type":"null"}]},"createdAt":{"type":["string","null"]},"nextStep":{"type":["string","null"]},"publicRef":{"type":["string","null"]},"clientName":{"type":["string","null"]},"clientSlug":{"type":["string","null"]},"partyCount":{"type":"integer"},"bookingsCount":{"type":"integer"}},"required":["id","title","lifecycleState","destination","startDate","endDate","createdAt","nextStep","publicRef","clientName","clientSlug","partyCount","bookingsCount"],"additionalProperties":false}},"total":{"type":"integer","minimum":0},"nextCursor":{"type":["string","null"]}},"required":["data","total","nextCursor"],"additionalProperties":false},"TripShapeResponse":{"type":"object","properties":{"data":{"anyOf":[{"type":"object","properties":{"tripType":{"type":["string","null"]},"paceNotes":{"type":"string"},"vibeTags":{"type":"array","items":{"type":"string"}},"mustHaves":{"type":"array","items":{"type":"string"}},"avoidances":{"type":"array","items":{"type":"string"}},"shapeVersion":{"type":"integer"},"shapeView":{"type":"string"}},"required":["tripType","paceNotes","vibeTags","mustHaves","avoidances","shapeVersion","shapeView"],"additionalProperties":true},{"type":"null"}]}},"required":["data"],"additionalProperties":false},"TripItineraryResponse":{"type":"object","properties":{"data":{"type":"object","properties":{"tripId":{"type":"string"},"revision":{"type":"string","pattern":"^sha256:[a-f0-9]{64}$"},"days":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"dayNumber":{"type":"integer"},"date":{"type":"string"},"title":{"type":"string"},"summary":{"type":"string"},"logistics":{"type":"string"},"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string","minLength":1},"type":{"type":"string","enum":["flight","transfer","transport","hotel","activity","meal","meeting","free_time","note","concierge","cruise","insurance"]},"title":{"type":"string"},"notes":{"type":"string"},"startAt":{"type":["string","null"]},"endAt":{"type":["string","null"]},"timezone":{"type":["string","null"]},"status":{"type":"string","enum":["draft","pending","confirmed","in_progress","completed","cancelled"]},"sortOrder":{"type":"integer"},"advisorOnly":{"type":"boolean"},"place":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":true},{"type":"null"}]},"details":{"anyOf":[{"type":"object","additionalProperties":{}},{"type":"null"}]},"transportSegments":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"mode":{"type":"string"},"label":{"type":"string"},"departureAt":{"type":["string","null"]},"arrivalAt":{"type":["string","null"]},"sortOrder":{"type":"integer"},"details":{"anyOf":[{"type":"object","additionalProperties":{}},{"type":"null"}]},"flightSegments":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"carrier":{"type":"string"},"flightNumber":{"type":"string"},"departureAt":{"type":["string","null"]},"arrivalAt":{"type":["string","null"]},"cabinClass":{"type":"string"},"status":{"type":"string"},"sortOrder":{"type":"integer"},"details":{"anyOf":[{"type":"object","additionalProperties":{}},{"type":"null"}]}},"required":["id","carrier","flightNumber","departureAt","arrivalAt","cabinClass","status","sortOrder","details"],"additionalProperties":true}}},"required":["id","mode","label","departureAt","arrivalAt","sortOrder","details","flightSegments"],"additionalProperties":true}}},"required":["id","kind","type","title","notes","startAt","endAt","timezone","status","sortOrder","advisorOnly","place","details","transportSegments"],"additionalProperties":true}}},"required":["id","dayNumber","date","title","summary","logistics","items"],"additionalProperties":true}}},"required":["tripId","revision","days"],"additionalProperties":true}},"required":["data"],"additionalProperties":false},"CreateTripRequest":{"type":"object","properties":{"clientId":{"type":"string","minLength":1},"title":{"type":"string","minLength":1},"destination":{"type":"string","minLength":1},"startDate":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"endDate":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"pace":{"type":"string","enum":["relaxed","balanced","packed"]},"notes":{"type":["string","null"]},"nextStep":{"type":["string","null"]}},"required":["clientId","title","destination"],"additionalProperties":false},"CreateTripResponse":{"type":"object","properties":{"data":{"type":"object","properties":{"tripId":{"type":"string"},"publicRef":{"type":"string"},"deduplicated":{"type":"boolean"},"playbookApplied":{"type":"boolean"}},"required":["tripId","publicRef"],"additionalProperties":false}},"required":["data"],"additionalProperties":false},"CreateTripDayRequest":{"type":"object","properties":{"date":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"title":{"type":["string","null"]},"summary":{"type":["string","null"]},"logistics":{"type":["string","null"]}},"additionalProperties":false},"CreateTripDayResponse":{"type":"object","properties":{"data":{"type":"object","properties":{"dayId":{"type":"string"},"dayNumber":{"type":"integer","exclusiveMinimum":0}},"required":["dayId","dayNumber"],"additionalProperties":false}},"required":["data"],"additionalProperties":false},"UpdateTripDayRequest":{"type":"object","properties":{"date":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"title":{"type":["string","null"]},"summary":{"type":["string","null"]},"logistics":{"type":["string","null"]}},"additionalProperties":false},"UpdateTripDayResponse":{"type":"object","properties":{"data":{"type":"object","properties":{"dayId":{"type":"string"}},"required":["dayId"],"additionalProperties":false}},"required":["data"],"additionalProperties":false},"DeleteTripDayResponse":{"type":"object","properties":{"data":{"type":"object","properties":{"dayId":{"type":"string"},"deletedItemCount":{"type":"integer","minimum":0},"detachedBookingCount":{"type":"integer","minimum":0}},"required":["dayId","deletedItemCount","detachedBookingCount"],"additionalProperties":false}},"required":["data"],"additionalProperties":false},"CreateItineraryItemRequest":{"type":"object","properties":{"type":{"type":"string","enum":["flight","transfer","transport","hotel","activity","meal","meeting","free_time","note","concierge","cruise","insurance"]},"kind":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]},"title":{"type":"string","minLength":1},"notes":{"type":["string","null"]},"startAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"endAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"timezone":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]},"status":{"type":"string","enum":["pending","confirmed","in_progress","completed","cancelled"]},"advisorOnly":{"type":"boolean"},"placeId":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]},"venueId":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]},"propertyId":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]}},"required":["type","title"],"additionalProperties":false},"CreateItineraryItemResponse":{"type":"object","properties":{"data":{"type":"object","properties":{"itemId":{"type":"string"}},"required":["itemId"],"additionalProperties":false}},"required":["data"],"additionalProperties":false},"UpdateItineraryItemRequest":{"type":"object","properties":{"tripDayId":{"type":"string","minLength":1},"type":{"type":"string","enum":["flight","transfer","transport","hotel","activity","meal","meeting","free_time","note","concierge","cruise","insurance"]},"kind":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]},"title":{"type":"string","minLength":1},"notes":{"type":["string","null"]},"startAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"endAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"timezone":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]},"status":{"type":"string","enum":["pending","confirmed","in_progress","completed","cancelled"]},"advisorOnly":{"type":"boolean"},"placeId":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]},"venueId":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]},"propertyId":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]}},"additionalProperties":false},"UpdateItineraryItemResponse":{"type":"object","properties":{"data":{"type":"object","properties":{"itemId":{"type":"string"}},"required":["itemId"],"additionalProperties":false}},"required":["data"],"additionalProperties":false},"DeleteItineraryItemResponse":{"type":"object","properties":{"data":{"type":"object","properties":{"itemId":{"type":"string"},"deletedItemCount":{"type":"integer","minimum":0},"detachedBookingCount":{"type":"integer","minimum":0}},"required":["itemId","deletedItemCount","detachedBookingCount"],"additionalProperties":false}},"required":["data"],"additionalProperties":false},"SuppliersListResponse":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"type":{"type":"string"},"subcategory":{"type":"string"},"region":{"type":"string"},"website":{"type":"string"},"imageUrl":{"type":"string"},"enrichmentStatus":{"type":"string"},"lifecycleStatus":{"type":"string"},"overlay":{"anyOf":[{"type":"object","properties":{"relationshipStrength":{"type":"number"},"lifecycleStatus":{"type":"string"},"lastContactedAt":{"type":["string","null"]}},"required":["relationshipStrength","lifecycleStatus","lastContactedAt"],"additionalProperties":true},{"type":"null"}]},"statusTier":{"type":"string"},"styleTags":{"type":"array","items":{"type":"string"}},"lat":{"type":["number","null"]},"lng":{"type":["number","null"]}},"required":["id","name","type","subcategory","region","website","imageUrl","enrichmentStatus","lifecycleStatus","overlay","statusTier","styleTags","lat","lng"],"additionalProperties":true}},"total":{"type":"integer","minimum":0},"nextCursor":{"type":["string","null"]}},"required":["data","total","nextCursor"],"additionalProperties":false},"SupplierDetailResponse":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"type":{"type":"string"},"subcategory":{"type":"string"},"region":{"type":"string"},"website":{"type":"string"},"imageUrl":{"type":"string"},"enrichmentStatus":{"type":"string"},"lifecycleStatus":{"type":"string"},"overlay":{"anyOf":[{"type":"object","properties":{"relationshipStrength":{"type":"number"},"lifecycleStatus":{"type":"string"},"lastContactedAt":{"type":["string","null"]}},"required":["relationshipStrength","lifecycleStatus","lastContactedAt"],"additionalProperties":true},{"type":"null"}]},"statusTier":{"type":"string"},"styleTags":{"type":"array","items":{"type":"string"}},"lat":{"type":["number","null"]},"lng":{"type":["number","null"]}},"required":["id","name","type","subcategory","region","website","imageUrl","enrichmentStatus","lifecycleStatus","overlay","statusTier","styleTags","lat","lng"],"additionalProperties":true}},"required":["data"],"additionalProperties":false},"PlacesSearchResponse":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"placeType":{"type":"string"},"parentId":{"type":["string","null"]},"fullPath":{"type":"string"},"depth":{"type":"integer"}},"required":["id","name","placeType","parentId","fullPath","depth"],"additionalProperties":true}},"total":{"type":"integer","minimum":0},"nextCursor":{"type":["string","null"]}},"required":["data","total","nextCursor"],"additionalProperties":false},"InvoicesListResponse":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"invoiceNumber":{"type":"string"},"status":{"type":"string"},"issueDate":{"type":"string","minLength":4},"dueDate":{"anyOf":[{"type":"string","minLength":4},{"type":"null"}]},"currency":{"type":"string"},"clientName":{"type":"string"},"clientSlug":{"type":"string"},"tripId":{"type":["string","null"]},"tripTitle":{"type":["string","null"]},"total":{"type":"string","pattern":"^-?\\d+(\\.\\d+)?$"},"itemCount":{"type":"integer"}},"required":["id","invoiceNumber","status","issueDate","dueDate","currency","clientName","clientSlug","tripId","tripTitle","total","itemCount"],"additionalProperties":false}},"total":{"type":"integer","minimum":0},"nextCursor":{"type":["string","null"]}},"required":["data","total","nextCursor"],"additionalProperties":false},"InvoiceDetailResponse":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"string"},"invoiceNumber":{"type":"string"},"status":{"type":"string"},"issueDate":{"type":"string","minLength":4},"dueDate":{"anyOf":[{"type":"string","minLength":4},{"type":"null"}]},"currency":{"type":"string"},"clientName":{"type":"string"},"clientSlug":{"type":"string"},"tripId":{"type":["string","null"]},"tripTitle":{"type":["string","null"]},"total":{"type":"string","pattern":"^-?\\d+(\\.\\d+)?$"},"notes":{"type":["string","null"]},"clientId":{"type":"string"},"tripDestination":{"type":["string","null"]},"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"description":{"type":"string"},"quantity":{"type":"string","pattern":"^-?\\d+(\\.\\d+)?$"},"unitAmount":{"type":"string","pattern":"^-?\\d+(\\.\\d+)?$"},"amount":{"type":"string","pattern":"^-?\\d+(\\.\\d+)?$"},"sortOrder":{"type":"integer"}},"required":["id","description","quantity","unitAmount","amount","sortOrder"],"additionalProperties":false}},"stripePaymentLinkId":{"type":["string","null"]},"stripePaymentUrl":{"type":["string","null"]}},"required":["id","invoiceNumber","status","issueDate","dueDate","currency","clientName","clientSlug","tripId","tripTitle","total","notes","clientId","tripDestination","items","stripePaymentLinkId","stripePaymentUrl"],"additionalProperties":true}},"required":["data"],"additionalProperties":false},"CreateInvoiceRequest":{"type":"object","properties":{"clientId":{"type":"string","minLength":1},"tripId":{"type":["string","null"]},"issueDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"dueDate":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"currency":{"type":"string","minLength":3,"maxLength":3},"notes":{"type":["string","null"]},"items":{"type":"array","items":{"type":"object","properties":{"description":{"type":"string","minLength":1},"quantity":{"type":"string","pattern":"^-?\\d+(\\.\\d+)?$"},"unitAmount":{"type":"string","pattern":"^-?\\d+(\\.\\d+)?$"}},"required":["description","quantity","unitAmount"],"additionalProperties":false},"minItems":1}},"required":["clientId","issueDate","items"],"additionalProperties":false},"CreateInvoiceResponse":{"type":"object","properties":{"data":{"type":"object","properties":{"invoiceId":{"type":"string"},"invoiceNumber":{"type":"string"}},"required":["invoiceId","invoiceNumber"],"additionalProperties":false}},"required":["data"],"additionalProperties":false},"SendInvoiceResponse":{"type":"object","properties":{"data":{"type":"object","properties":{"fromStatus":{"type":"string"},"toStatus":{"type":"string"},"stripePaymentUrl":{"type":["string","null"]}},"required":["fromStatus","toStatus"],"additionalProperties":false}},"required":["data"],"additionalProperties":false},"CommissionsTrackerResponse":{"type":"object","properties":{"data":{"type":"object","properties":{"summary":{"type":"object","properties":{"aging":{"type":"object","additionalProperties":{}},"totalOutstanding":{"type":"number"},"totalEstIcSplit":{"type":"number"}},"required":["aging","totalOutstanding","totalEstIcSplit"],"additionalProperties":true},"invoices":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"supplierId":{"type":["string","null"]},"supplierName":{"type":"string"},"invoiceNumber":{"type":"string"},"dueDate":{"type":["string","null"]},"status":{"type":"string"},"balanceDue":{"type":"string","pattern":"^-?\\d+(\\.\\d+)?$"},"estIcSplit":{"anyOf":[{"type":"string","pattern":"^-?\\d+(\\.\\d+)?$"},{"type":"null"}]},"channel":{"type":["string","null"]}},"required":["id","supplierId","supplierName","invoiceNumber","dueDate","status","balanceDue","estIcSplit","channel"],"additionalProperties":true}}},"required":["summary","invoices"],"additionalProperties":false}},"required":["data"],"additionalProperties":false},"PermissionsEvaluateRequest":{"type":"object","properties":{"user_id":{"type":"string","minLength":1},"tenant_id":{"type":"string","minLength":1},"permission_keys":{"type":"array","items":{"type":"string","minLength":1},"maxItems":500}},"required":["user_id","tenant_id"],"additionalProperties":false},"PermissionsEvaluateResponse":{"type":"object","properties":{"data":{"type":"object","properties":{"user_id":{"type":"string"},"tenant_id":{"type":"string"},"workspace_id":{"type":"string"},"allow_all":{"type":"boolean"},"rbac_available":{"type":"boolean"},"keys":{"type":"array","items":{"type":"string"}},"checks":{"anyOf":[{"type":"object","additionalProperties":{"type":"boolean"}},{"type":"null"}]}},"required":["user_id","tenant_id","workspace_id","allow_all","rbac_available","keys","checks"],"additionalProperties":false}},"required":["data"],"additionalProperties":false},"TasksListResponse":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":256},"title":{"type":"string","maxLength":500},"description":{"type":"string","maxLength":4000},"descriptionFormat":{"type":"string","enum":["plain","markdown"]},"taskType":{"type":"string","minLength":1,"maxLength":128},"workItemKind":{"type":"string","enum":["initiative","epic","story","bug","task","subtask"]},"parentTaskId":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"status":{"type":"string","enum":["queued","running","waiting_human","succeeded","failed","cancelled"]},"priority":{"type":"integer","minimum":1,"maximum":10},"assignment":{"anyOf":[{"type":"object","properties":{"kind":{"type":"string","enum":["user","team","agent"]},"id":{"type":"string","minLength":1,"maxLength":256},"label":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}]}},"required":["kind","id","label"],"additionalProperties":false},{"type":"null"}]},"approval":{"type":"object","properties":{"required":{"type":"boolean"},"status":{"anyOf":[{"type":"string","enum":["pending","approved","rejected","changes_requested","cancelled"]},{"type":"null"}]},"reason":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}]},"decidedByUserId":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"decidedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]}},"required":["required","status","reason","decidedByUserId","decidedAt"],"additionalProperties":false},"timing":{"type":"object","properties":{"createdAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"updatedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"dueAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"scheduledAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"startedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"finishedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]}},"required":["createdAt","updatedAt","dueAt","scheduledAt","startedAt","finishedAt"],"additionalProperties":false},"primaryEntity":{"type":"object","properties":{"kind":{"type":"string","minLength":1,"maxLength":128},"id":{"type":"string","minLength":1,"maxLength":256},"label":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}]},"href":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}]},"role":{"type":"string","enum":["context","related"]}},"required":["kind","id","label","href","role"],"additionalProperties":false},"relatedEntities":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","minLength":1,"maxLength":128},"id":{"type":"string","minLength":1,"maxLength":256},"label":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}]},"href":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}]},"role":{"type":"string","enum":["context","related"]}},"required":["kind","id","label","href","role"],"additionalProperties":false},"maxItems":50},"dependencies":{"type":"object","properties":{"blockedBy":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":256},"title":{"type":"string","maxLength":500},"status":{"type":"string","enum":["queued","running","waiting_human","succeeded","failed","cancelled"]}},"required":["id","title","status"],"additionalProperties":false},"maxItems":50},"blocking":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":256},"title":{"type":"string","maxLength":500},"status":{"type":"string","enum":["queued","running","waiting_human","succeeded","failed","cancelled"]}},"required":["id","title","status"],"additionalProperties":false},"maxItems":50}},"required":["blockedBy","blocking"],"additionalProperties":false},"board":{"type":"object","properties":{"lane":{"type":"string","enum":["backlog","todo","in_progress","done","failed"]},"runPrompt":{"type":"string","maxLength":8000},"goalEpicId":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"triageFlags":{"type":"array","items":{"type":"string","minLength":1,"maxLength":128},"maxItems":20},"archivedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]}},"required":["lane","runPrompt","goalEpicId","triageFlags","archivedAt"],"additionalProperties":false}},"required":["id","title","description","taskType","workItemKind","parentTaskId","status","priority","assignment","timing","primaryEntity","relatedEntities","dependencies"],"additionalProperties":false},"maxItems":100},"total":{"type":"integer","minimum":0},"nextCursor":{"anyOf":[{"type":"string","maxLength":1024},{"type":"null"}]}},"required":["data","total","nextCursor"],"additionalProperties":false},"TaskDetailResponse":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":256},"title":{"type":"string","maxLength":500},"description":{"type":"string","maxLength":4000},"descriptionFormat":{"type":"string","enum":["plain","markdown"]},"taskType":{"type":"string","minLength":1,"maxLength":128},"workItemKind":{"type":"string","enum":["initiative","epic","story","bug","task","subtask"]},"parentTaskId":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"status":{"type":"string","enum":["queued","running","waiting_human","succeeded","failed","cancelled"]},"priority":{"type":"integer","minimum":1,"maximum":10},"assignment":{"anyOf":[{"type":"object","properties":{"kind":{"type":"string","enum":["user","team","agent"]},"id":{"type":"string","minLength":1,"maxLength":256},"label":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}]}},"required":["kind","id","label"],"additionalProperties":false},{"type":"null"}]},"approval":{"type":"object","properties":{"required":{"type":"boolean"},"status":{"anyOf":[{"type":"string","enum":["pending","approved","rejected","changes_requested","cancelled"]},{"type":"null"}]},"reason":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}]},"decidedByUserId":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"decidedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]}},"required":["required","status","reason","decidedByUserId","decidedAt"],"additionalProperties":false},"timing":{"type":"object","properties":{"createdAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"updatedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"dueAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"scheduledAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"startedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"finishedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]}},"required":["createdAt","updatedAt","dueAt","scheduledAt","startedAt","finishedAt"],"additionalProperties":false},"primaryEntity":{"type":"object","properties":{"kind":{"type":"string","minLength":1,"maxLength":128},"id":{"type":"string","minLength":1,"maxLength":256},"label":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}]},"href":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}]},"role":{"type":"string","enum":["context","related"]}},"required":["kind","id","label","href","role"],"additionalProperties":false},"relatedEntities":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","minLength":1,"maxLength":128},"id":{"type":"string","minLength":1,"maxLength":256},"label":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}]},"href":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}]},"role":{"type":"string","enum":["context","related"]}},"required":["kind","id","label","href","role"],"additionalProperties":false},"maxItems":50},"dependencies":{"type":"object","properties":{"blockedBy":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":256},"title":{"type":"string","maxLength":500},"status":{"type":"string","enum":["queued","running","waiting_human","succeeded","failed","cancelled"]}},"required":["id","title","status"],"additionalProperties":false},"maxItems":50},"blocking":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":256},"title":{"type":"string","maxLength":500},"status":{"type":"string","enum":["queued","running","waiting_human","succeeded","failed","cancelled"]}},"required":["id","title","status"],"additionalProperties":false},"maxItems":50}},"required":["blockedBy","blocking"],"additionalProperties":false},"board":{"type":"object","properties":{"lane":{"type":"string","enum":["backlog","todo","in_progress","done","failed"]},"runPrompt":{"type":"string","maxLength":8000},"goalEpicId":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"triageFlags":{"type":"array","items":{"type":"string","minLength":1,"maxLength":128},"maxItems":20},"archivedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]}},"required":["lane","runPrompt","goalEpicId","triageFlags","archivedAt"],"additionalProperties":false}},"required":["id","title","description","taskType","workItemKind","parentTaskId","status","priority","assignment","timing","primaryEntity","relatedEntities","dependencies"],"additionalProperties":false}},"required":["data"],"additionalProperties":false},"TaskSchedulingPatchRequest":{"type":"object","properties":{"kind":{"type":"string","enum":["general","meeting_scheduling"]},"recipientPersonId":{"type":"string","minLength":1,"maxLength":256},"recordedAvailability":{"anyOf":[{"type":"string","minLength":1,"maxLength":1000},{"type":"null"}]},"sourceActivityId":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"organizerTimezone":{"anyOf":[{"type":"string","minLength":1,"maxLength":80},{"type":"null"}]},"recipientTimezone":{"anyOf":[{"type":"string","minLength":1,"maxLength":80},{"type":"null"}]},"recipientTimezoneConfirmed":{"type":"boolean"},"confirmedMeetingAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"invitationStatus":{"type":"string","enum":["not_sent","sent"]},"unverifiedTimezoneNote":{"anyOf":[{"type":"string","minLength":1,"maxLength":200},{"type":"null"}]}},"additionalProperties":false},"TaskSchedulingResponse":{"type":"object","properties":{"data":{"type":"object","properties":{"taskId":{"type":"string","minLength":1,"maxLength":256},"dealId":{"type":"string","minLength":1,"maxLength":256},"kind":{"type":"string","enum":["general","meeting_scheduling"]},"context":{"anyOf":[{"type":"object","properties":{"version":{"type":"number","const":1},"recipientPersonId":{"type":"string","minLength":1,"maxLength":256},"recordedAvailability":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}]},"sourceActivityId":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"organizerTimezone":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}]},"recipientTimezone":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}]},"recipientTimezoneConfirmed":{"type":"boolean"},"confirmedMeetingAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"invitationStatus":{"type":"string","enum":["not_sent","sent"]},"invitationSentAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"unverifiedTimezoneNote":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}]}},"required":["version","recipientPersonId","recordedAvailability","sourceActivityId","organizerTimezone","recipientTimezone","recipientTimezoneConfirmed","confirmedMeetingAt","invitationStatus","invitationSentAt","unverifiedTimezoneNote"],"additionalProperties":false},{"type":"null"}]}},"required":["taskId","dealId","kind","context"],"additionalProperties":false}},"required":["data"],"additionalProperties":false},"TaskEmailReplyPatchRequest":{"type":"object","properties":{"recipientPersonId":{"type":"string","minLength":1,"maxLength":256},"sourceActivityId":{"type":"string","minLength":1,"maxLength":256},"recordedAvailability":{"anyOf":[{"type":"string","minLength":1,"maxLength":1000},{"type":"null"}]},"unverifiedTimezoneNote":{"anyOf":[{"type":"string","minLength":1,"maxLength":200},{"type":"null"}]},"draftGoal":{"type":"string","minLength":1,"maxLength":500}},"required":["recipientPersonId","sourceActivityId","recordedAvailability","unverifiedTimezoneNote","draftGoal"],"additionalProperties":false},"TaskEmailReplyResponse":{"type":"object","properties":{"data":{"type":"object","properties":{"taskId":{"type":"string","minLength":1,"maxLength":256},"dealId":{"type":"string","minLength":1,"maxLength":256},"context":{"anyOf":[{"type":"object","properties":{"version":{"type":"number","const":1},"recipientPersonId":{"type":"string","minLength":1,"maxLength":256},"sourceActivityId":{"type":"string","minLength":1,"maxLength":256},"recordedAvailability":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}]},"unverifiedTimezoneNote":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}]},"draftGoal":{"type":"string","minLength":1,"maxLength":500}},"required":["version","recipientPersonId","sourceActivityId","recordedAvailability","unverifiedTimezoneNote","draftGoal"],"additionalProperties":false},{"type":"null"}]}},"required":["taskId","dealId","context"],"additionalProperties":false}},"required":["data"],"additionalProperties":false},"TaskEvidenceResponse":{"type":"object","properties":{"data":{"type":"object","properties":{"taskId":{"type":"string","minLength":1,"maxLength":256},"emailEvidence":{"type":"object","properties":{"references":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":256},"taskId":{"type":"string","minLength":1,"maxLength":256},"label":{"type":"string"},"summary":{"type":"string"},"occurredAt":{"type":"string","format":"date-time"},"href":{"type":"string"}},"required":["id","taskId","label","summary","occurredAt","href"],"additionalProperties":false},"maxItems":100},"resolution":{"anyOf":[{"type":"object","properties":{"taskId":{"type":"string","minLength":1,"maxLength":256},"status":{"type":"string","enum":["waiting","response_received","reply_completed"]},"senderName":{"type":"string"},"recipientName":{"type":"string"},"completionCondition":{"type":"string"},"evidenceId":{"type":"string","minLength":1,"maxLength":256},"messageId":{"type":"string","minLength":1,"maxLength":256},"observedAt":{"type":"string","format":"date-time"},"href":{"type":"string"},"reason":{"type":"string"},"previousStatus":{"type":"string"},"ruleRevision":{"type":"integer","minimum":1},"completedAt":{"type":"string","format":"date-time"},"followUpAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"limitedSummary":{"type":["string","null"]},"response":{"anyOf":[{"type":"object","properties":{"messageId":{"type":"string","minLength":1,"maxLength":256},"observedAt":{"type":"string","format":"date-time"},"href":{"type":"string"},"senderAddress":{"type":"string"},"recipientAddress":{"type":"string"}},"required":["messageId","observedAt","href","senderAddress","recipientAddress"],"additionalProperties":false},{"type":"null"}]}},"required":["taskId","status","senderName","recipientName","completionCondition","evidenceId","messageId","observedAt","href","reason","previousStatus","ruleRevision","completedAt","followUpAt","limitedSummary"],"additionalProperties":false},{"type":"null"}]}},"required":["references","resolution"],"additionalProperties":false},"activity":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":128},"field":{"type":"string","minLength":1,"maxLength":200},"previousValue":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}]},"nextValue":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}]},"reason":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}]},"actorId":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]}},"required":["id","field","previousValue","nextValue","reason","actorId","at"],"additionalProperties":false},"maxItems":100},"output":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":256},"summary":{"type":"string","maxLength":2000},"details":{"anyOf":[{"type":"string","maxLength":8000},{"type":"null"}]},"confidence":{"anyOf":[{"type":"integer","minimum":0,"maximum":100},{"type":"null"}]},"generatedBy":{"type":"string","maxLength":200},"model":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}]},"createdAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"justifications":{"type":"array","items":{"type":"object","properties":{"claim":{"type":"string","minLength":1,"maxLength":2000},"citationIds":{"type":"array","items":{"type":"string","minLength":1,"maxLength":256},"minItems":1,"maxItems":25},"rationale":{"type":"string","minLength":1,"maxLength":4000}},"required":["claim","citationIds","rationale"],"additionalProperties":false},"maxItems":50}},"required":["id","summary","details","confidence","generatedBy","model","createdAt","justifications"],"additionalProperties":false},{"type":"null"}]},"citations":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":256},"type":{"type":"string","minLength":1,"maxLength":100},"reference":{"type":"string","minLength":1,"maxLength":500},"title":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}]},"excerpt":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}]},"retrievedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"contentHash":{"anyOf":[{"type":"string","maxLength":256},{"type":"null"}]}},"required":["id","type","reference","title","excerpt","retrievedAt","contentHash"],"additionalProperties":false},"maxItems":50},"artifacts":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":256},"title":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}]},"contentType":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}]},"sizeBytes":{"anyOf":[{"type":"integer","minimum":0},{"type":"null"}]},"checksum":{"anyOf":[{"type":"string","maxLength":256},{"type":"null"}]},"state":{"type":"string","maxLength":100},"createdAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]}},"required":["id","title","contentType","sizeBytes","checksum","state","createdAt"],"additionalProperties":false},"maxItems":50}},"required":["taskId","activity","output","citations","artifacts"],"additionalProperties":false}},"required":["data"],"additionalProperties":false},"TaskBoardCreateRequest":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":500},"description":{"type":"string","maxLength":4000,"default":""},"runPrompt":{"type":"string","minLength":1,"maxLength":8000},"lane":{"type":"string","enum":["backlog","todo","in_progress","done","failed"],"default":"todo"},"priority":{"type":"integer","minimum":1,"maximum":10,"default":5},"workItemKind":{"type":"string","enum":["initiative","epic","story","bug","task","subtask"],"default":"task"},"parentTaskId":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"assignment":{"anyOf":[{"type":"object","properties":{"kind":{"type":"string","enum":["user","team","agent"]},"id":{"type":"string","minLength":1,"maxLength":256}},"required":["kind","id"],"additionalProperties":false},{"type":"null"}]},"dueAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"scheduledAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"provenance":{"type":"object","properties":{"source":{"type":"string","enum":["manual","paste","scribe","api","mcp"]},"sourceId":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]}},"required":["source"],"additionalProperties":false}},"required":["title","runPrompt"],"additionalProperties":false},"TaskBoardUpdateRequest":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":500},"description":{"type":"string","maxLength":4000},"descriptionFormat":{"type":"string","enum":["plain","markdown"]},"runPrompt":{"type":"string","minLength":1,"maxLength":8000},"lane":{"type":"string","enum":["backlog","todo","in_progress","done","failed"]},"priority":{"type":"integer","minimum":1,"maximum":10},"archived":{"type":"boolean"},"workItemKind":{"type":"string","enum":["initiative","epic","story","bug","task","subtask"]},"parentTaskId":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"assignment":{"anyOf":[{"type":"object","properties":{"kind":{"type":"string","enum":["user","team","agent"]},"id":{"type":"string","minLength":1,"maxLength":256},"returnToAssigner":{"type":"boolean"}},"required":["kind","id"],"additionalProperties":false},{"type":"null"}]},"dueAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"scheduledAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"statusNote":{"type":"string","maxLength":2000},"proofUrl":{"type":"string","format":"uri","maxLength":2000}},"additionalProperties":false},"TaskBoardTaskResponse":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":256},"title":{"type":"string","maxLength":500},"description":{"type":"string","maxLength":4000},"descriptionFormat":{"type":"string","enum":["plain","markdown"]},"taskType":{"type":"string","minLength":1,"maxLength":128},"workItemKind":{"type":"string","enum":["initiative","epic","story","bug","task","subtask"]},"parentTaskId":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"status":{"type":"string","enum":["queued","running","waiting_human","succeeded","failed","cancelled"]},"priority":{"type":"integer","minimum":1,"maximum":10},"assignment":{"anyOf":[{"type":"object","properties":{"kind":{"type":"string","enum":["user","team","agent"]},"id":{"type":"string","minLength":1,"maxLength":256},"label":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}]}},"required":["kind","id","label"],"additionalProperties":false},{"type":"null"}]},"approval":{"type":"object","properties":{"required":{"type":"boolean"},"status":{"anyOf":[{"type":"string","enum":["pending","approved","rejected","changes_requested","cancelled"]},{"type":"null"}]},"reason":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}]},"decidedByUserId":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"decidedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]}},"required":["required","status","reason","decidedByUserId","decidedAt"],"additionalProperties":false},"timing":{"type":"object","properties":{"createdAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"updatedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"dueAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"scheduledAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"startedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"finishedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]}},"required":["createdAt","updatedAt","dueAt","scheduledAt","startedAt","finishedAt"],"additionalProperties":false},"primaryEntity":{"type":"object","properties":{"kind":{"type":"string","minLength":1,"maxLength":128},"id":{"type":"string","minLength":1,"maxLength":256},"label":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}]},"href":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}]},"role":{"type":"string","enum":["context","related"]}},"required":["kind","id","label","href","role"],"additionalProperties":false},"relatedEntities":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","minLength":1,"maxLength":128},"id":{"type":"string","minLength":1,"maxLength":256},"label":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}]},"href":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}]},"role":{"type":"string","enum":["context","related"]}},"required":["kind","id","label","href","role"],"additionalProperties":false},"maxItems":50},"dependencies":{"type":"object","properties":{"blockedBy":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":256},"title":{"type":"string","maxLength":500},"status":{"type":"string","enum":["queued","running","waiting_human","succeeded","failed","cancelled"]}},"required":["id","title","status"],"additionalProperties":false},"maxItems":50},"blocking":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":256},"title":{"type":"string","maxLength":500},"status":{"type":"string","enum":["queued","running","waiting_human","succeeded","failed","cancelled"]}},"required":["id","title","status"],"additionalProperties":false},"maxItems":50}},"required":["blockedBy","blocking"],"additionalProperties":false},"board":{"type":"object","properties":{"lane":{"type":"string","enum":["backlog","todo","in_progress","done","failed"]},"runPrompt":{"type":"string","maxLength":8000},"goalEpicId":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"triageFlags":{"type":"array","items":{"type":"string","minLength":1,"maxLength":128},"maxItems":20},"archivedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]}},"required":["lane","runPrompt","goalEpicId","triageFlags","archivedAt"],"additionalProperties":false}},"required":["id","title","description","taskType","workItemKind","parentTaskId","status","priority","assignment","timing","primaryEntity","relatedEntities","dependencies"],"additionalProperties":false}},"required":["data"],"additionalProperties":false},"TaskExecutionStartRequest":{"type":"object","properties":{"provider":{"type":"string","pattern":"^[a-z0-9][a-z0-9._-]{0,63}$"},"providerExecutionId":{"type":"string","minLength":1,"maxLength":256},"sessionId":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"executorId":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"agentKey":{"anyOf":[{"type":"string","minLength":1,"maxLength":128},{"type":"null"}]}},"required":["provider","providerExecutionId"],"additionalProperties":false},"TaskExecutionAttachSessionRequest":{"type":"object","properties":{"sessionId":{"type":"string","minLength":1,"maxLength":256}},"required":["sessionId"],"additionalProperties":false},"TaskExecutionReportRequest":{"type":"object","properties":{"outcome":{"type":"string","enum":["succeeded","failed","cancelled"]},"summary":{"type":"string","minLength":1,"maxLength":4000},"evidence":{"type":"array","items":{"type":"string","minLength":1,"maxLength":2000},"maxItems":100,"default":[]},"error":{"anyOf":[{"type":"string","maxLength":4000},{"type":"null"}]}},"required":["outcome","summary"],"additionalProperties":false},"TaskExecutionResponse":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":256},"taskId":{"type":"string","minLength":1,"maxLength":256},"provider":{"type":"string","pattern":"^[a-z0-9][a-z0-9._-]{0,63}$"},"providerExecutionId":{"type":"string","minLength":1,"maxLength":256},"sessionId":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"executorId":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"agentKey":{"anyOf":[{"type":"string","minLength":1,"maxLength":128},{"type":"null"}]},"status":{"type":"string","enum":["starting","running","succeeded","failed","cancelled"]},"outcomeSummary":{"anyOf":[{"type":"string","maxLength":4000},{"type":"null"}]},"evidence":{"type":"array","items":{"type":"string","minLength":1,"maxLength":2000},"maxItems":100},"error":{"anyOf":[{"type":"string","maxLength":4000},{"type":"null"}]},"startedAt":{"type":"string","format":"date-time"},"finishedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]}},"required":["id","taskId","provider","providerExecutionId","sessionId","executorId","agentKey","status","outcomeSummary","evidence","error","startedAt","finishedAt"],"additionalProperties":false}},"required":["data"],"additionalProperties":false},"TaskExecutionsListResponse":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":256},"taskId":{"type":"string","minLength":1,"maxLength":256},"provider":{"type":"string","pattern":"^[a-z0-9][a-z0-9._-]{0,63}$"},"providerExecutionId":{"type":"string","minLength":1,"maxLength":256},"sessionId":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"executorId":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"agentKey":{"anyOf":[{"type":"string","minLength":1,"maxLength":128},{"type":"null"}]},"status":{"type":"string","enum":["starting","running","succeeded","failed","cancelled"]},"outcomeSummary":{"anyOf":[{"type":"string","maxLength":4000},{"type":"null"}]},"evidence":{"type":"array","items":{"type":"string","minLength":1,"maxLength":2000},"maxItems":100},"error":{"anyOf":[{"type":"string","maxLength":4000},{"type":"null"}]},"startedAt":{"type":"string","format":"date-time"},"finishedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]}},"required":["id","taskId","provider","providerExecutionId","sessionId","executorId","agentKey","status","outcomeSummary","evidence","error","startedAt","finishedAt"],"additionalProperties":false},"maxItems":100}},"required":["data"],"additionalProperties":false},"TaskApprovalRequest":{"type":"object","properties":{"summary":{"type":"string","minLength":1,"maxLength":2000},"evidence":{"type":"array","items":{"type":"string","minLength":1,"maxLength":2000},"minItems":1,"maxItems":100}},"required":["summary","evidence"],"additionalProperties":false},"TaskApprovalDecisionRequest":{"type":"object","properties":{"decision":{"type":"string","enum":["approved","rejected","changes_requested"]},"reason":{"anyOf":[{"type":"string","minLength":1,"maxLength":2000},{"type":"null"}]}},"required":["decision"],"additionalProperties":false},"TaskArtifactUploadRequest":{"type":"object","properties":{"filename":{"type":"string","minLength":1,"maxLength":180},"contentType":{"type":"string","minLength":1,"maxLength":200},"sizeBytes":{"type":"integer","minimum":1,"maximum":10485760},"checksum":{"type":"string","pattern":"^sha256:[a-f0-9]{64}$"}},"required":["filename","contentType","sizeBytes","checksum"],"additionalProperties":false},"TaskArtifactUploadResponse":{"type":"object","properties":{"data":{"type":"object","properties":{"uploadUrl":{"type":"string","format":"uri","maxLength":8000},"storageKey":{"type":"string","minLength":1,"maxLength":2048},"method":{"type":"string","const":"PUT"},"headers":{"type":"object","additionalProperties":{"type":"string","maxLength":500}},"expiresInSeconds":{"type":"integer","minimum":1,"maximum":3600}},"required":["uploadUrl","storageKey","method","headers","expiresInSeconds"],"additionalProperties":false}},"required":["data"],"additionalProperties":false},"TaskArtifactFinalizeRequest":{"type":"object","properties":{"storageKey":{"type":"string","minLength":1,"maxLength":2048},"title":{"type":"string","minLength":1,"maxLength":500},"description":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}]},"contentType":{"type":"string","minLength":1,"maxLength":200},"sizeBytes":{"type":"integer","minimum":1,"maximum":10485760},"checksum":{"type":"string","pattern":"^sha256:[a-f0-9]{64}$"}},"required":["storageKey","title","contentType","sizeBytes","checksum"],"additionalProperties":false},"TaskArtifactResponse":{"type":"object","properties":{"data":{"type":"object","properties":{"taskId":{"type":"string","minLength":1,"maxLength":256},"fileId":{"type":"string","minLength":1,"maxLength":256},"title":{"type":"string","maxLength":500},"description":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}]},"contentType":{"type":"string","maxLength":200},"sizeBytes":{"type":"integer","minimum":0},"checksum":{"type":"string","pattern":"^sha256:[a-f0-9]{64}$"},"state":{"type":"string","maxLength":100},"createdAt":{"type":"string","format":"date-time"}},"required":["taskId","fileId","title","description","contentType","sizeBytes","checksum","state","createdAt"],"additionalProperties":false}},"required":["data"],"additionalProperties":false},"TaskArtifactFilingRequest":{"anyOf":[{"type":"object","properties":{"folderNodeId":{"type":"string","minLength":1,"maxLength":256}},"required":["folderNodeId"],"additionalProperties":false},{"type":"object","properties":{"destination":{"type":"string","enum":["shared","archive","tasks"]}},"required":["destination"],"additionalProperties":false}]},"TaskArtifactFilingResponse":{"type":"object","properties":{"data":{"type":"object","properties":{"taskId":{"type":"string","minLength":1,"maxLength":256},"fileId":{"type":"string","minLength":1,"maxLength":256},"folderNodeId":{"type":"string","minLength":1,"maxLength":256},"filingNodeId":{"type":"string","minLength":1,"maxLength":256},"status":{"type":"string","const":"filed"}},"required":["taskId","fileId","folderNodeId","filingNodeId","status"],"additionalProperties":false}},"required":["data"],"additionalProperties":false},"TaskSessionLookupResponse":{"type":"object","properties":{"data":{"anyOf":[{"type":"object","properties":{"task":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":256},"title":{"type":"string","maxLength":500},"status":{"type":"string","enum":["queued","running","waiting_human","succeeded","failed","cancelled"]}},"required":["id","title","status"],"additionalProperties":false},"execution":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":256},"taskId":{"type":"string","minLength":1,"maxLength":256},"provider":{"type":"string","pattern":"^[a-z0-9][a-z0-9._-]{0,63}$"},"providerExecutionId":{"type":"string","minLength":1,"maxLength":256},"sessionId":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"executorId":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"agentKey":{"anyOf":[{"type":"string","minLength":1,"maxLength":128},{"type":"null"}]},"status":{"type":"string","enum":["starting","running","succeeded","failed","cancelled"]},"outcomeSummary":{"anyOf":[{"type":"string","maxLength":4000},{"type":"null"}]},"evidence":{"type":"array","items":{"type":"string","minLength":1,"maxLength":2000},"maxItems":100},"error":{"anyOf":[{"type":"string","maxLength":4000},{"type":"null"}]},"startedAt":{"type":"string","format":"date-time"},"finishedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]}},"required":["id","taskId","provider","providerExecutionId","sessionId","executorId","agentKey","status","outcomeSummary","evidence","error","startedAt","finishedAt"],"additionalProperties":false}},"required":["task","execution"],"additionalProperties":false},{"type":"null"}]}},"required":["data"],"additionalProperties":false},"TaskViewsListResponse":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":256},"name":{"type":"string","minLength":1,"maxLength":80},"visibility":{"type":"string","enum":["personal","shared"]},"owned":{"type":"boolean"},"favorited":{"type":"boolean"},"filter":{"type":"object","properties":{"sv":{"type":"string","maxLength":32},"status":{"type":"string","maxLength":64},"assignee":{"type":"string","maxLength":256},"kind":{"type":"string","enum":["initiative","epic","story","bug","task","subtask"]},"type":{"type":"string","maxLength":128},"noun":{"type":"string","maxLength":128},"priority":{"type":"string","maxLength":16},"due":{"type":"string","maxLength":16}},"additionalProperties":false},"display":{"type":"object","properties":{"view":{"type":"string","maxLength":32},"group":{"type":"string","maxLength":32},"order":{"type":"string","maxLength":32}},"additionalProperties":false}},"required":["id","name","visibility","owned","favorited","filter","display"],"additionalProperties":false},"maxItems":100}},"required":["data"],"additionalProperties":false},"TaskViewResponse":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":256},"name":{"type":"string","minLength":1,"maxLength":80},"visibility":{"type":"string","enum":["personal","shared"]},"owned":{"type":"boolean"},"favorited":{"type":"boolean"},"filter":{"type":"object","properties":{"sv":{"type":"string","maxLength":32},"status":{"type":"string","maxLength":64},"assignee":{"type":"string","maxLength":256},"kind":{"type":"string","enum":["initiative","epic","story","bug","task","subtask"]},"type":{"type":"string","maxLength":128},"noun":{"type":"string","maxLength":128},"priority":{"type":"string","maxLength":16},"due":{"type":"string","maxLength":16}},"additionalProperties":false},"display":{"type":"object","properties":{"view":{"type":"string","maxLength":32},"group":{"type":"string","maxLength":32},"order":{"type":"string","maxLength":32}},"additionalProperties":false}},"required":["id","name","visibility","owned","favorited","filter","display"],"additionalProperties":false}},"required":["data"],"additionalProperties":false},"TaskViewCreateRequest":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":80},"visibility":{"type":"string","enum":["personal","shared"],"default":"personal"},"filter":{"type":"object","properties":{"sv":{"type":"string","maxLength":32},"status":{"type":"string","maxLength":64},"assignee":{"type":"string","maxLength":256},"kind":{"type":"string","enum":["initiative","epic","story","bug","task","subtask"]},"type":{"type":"string","maxLength":128},"noun":{"type":"string","maxLength":128},"priority":{"type":"string","maxLength":16},"due":{"type":"string","maxLength":16}},"additionalProperties":false,"default":{}},"display":{"type":"object","properties":{"view":{"type":"string","maxLength":32},"group":{"type":"string","maxLength":32},"order":{"type":"string","maxLength":32}},"additionalProperties":false,"default":{}}},"required":["name"],"additionalProperties":false},"TaskViewFavoriteRequest":{"type":"object","properties":{"favorited":{"type":"boolean"}},"required":["favorited"],"additionalProperties":false},"TaskViewDeleteResponse":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":256}},"required":["id"],"additionalProperties":false}},"required":["data"],"additionalProperties":false},"TaskActionRequest":{"type":"object","properties":{"action":{"type":"string","minLength":1,"maxLength":64}},"required":["action"],"additionalProperties":false},"TaskActionResponse":{"type":"object","properties":{"data":{"type":"object","properties":{"taskId":{"type":"string","minLength":1,"maxLength":256},"action":{"type":"string","minLength":1,"maxLength":64}},"required":["taskId","action"],"additionalProperties":false}},"required":["data"],"additionalProperties":false},"TaskCommentRequest":{"type":"object","properties":{"body":{"type":"string","minLength":1,"maxLength":20000}},"required":["body"],"additionalProperties":false},"TaskCommentResponse":{"type":"object","properties":{"data":{"type":"object","properties":{"taskId":{"type":"string","minLength":1,"maxLength":256}},"required":["taskId"],"additionalProperties":false}},"required":["data"],"additionalProperties":false},"TaskDependencyRequest":{"type":"object","properties":{"dependsOnTaskId":{"type":"string","minLength":1,"maxLength":256}},"required":["dependsOnTaskId"],"additionalProperties":false},"TaskDependencyResponse":{"type":"object","properties":{"data":{"type":"object","properties":{"taskId":{"type":"string","minLength":1,"maxLength":256},"dependsOnTaskId":{"type":"string","minLength":1,"maxLength":256}},"required":["taskId","dependsOnTaskId"],"additionalProperties":false}},"required":["data"],"additionalProperties":false},"TaskDeleteResponse":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":256}},"required":["id"],"additionalProperties":false}},"required":["data"],"additionalProperties":false},"ClientEmailStateResponse":{"type":"object","properties":{"data":{"type":"object","properties":{"rules":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":256},"taskId":{"type":"string","minLength":1,"maxLength":256},"revision":{"type":"integer","minimum":1},"status":{"type":"string"},"pauseReason":{"type":["string","null"]},"completionCondition":{"type":"string"},"lastCheckedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"lastSuccessfulAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"lastSyncedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"processingError":{"type":["string","null"]},"followUpAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"ownedByViewer":{"type":"boolean"}},"required":["id","taskId","revision","status","pauseReason","completionCondition","lastCheckedAt","lastSuccessfulAt","lastSyncedAt","processingError","followUpAt","ownedByViewer"],"additionalProperties":false}},"evidence":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":256},"taskId":{"type":"string","minLength":1,"maxLength":256},"label":{"type":"string"},"summary":{"type":"string"},"occurredAt":{"type":"string","format":"date-time"},"href":{"type":"string"}},"required":["id","taskId","label","summary","occurredAt","href"],"additionalProperties":false}},"current":{"anyOf":[{"type":"object","properties":{"taskId":{"type":"string","minLength":1,"maxLength":256},"status":{"type":"string","enum":["waiting","response_received","reply_completed"]},"senderName":{"type":"string"},"recipientName":{"type":"string"},"completionCondition":{"type":"string"},"evidenceId":{"type":"string","minLength":1,"maxLength":256},"messageId":{"type":"string","minLength":1,"maxLength":256},"observedAt":{"type":"string","format":"date-time"},"href":{"type":"string"},"reason":{"type":"string"},"previousStatus":{"type":"string"},"ruleRevision":{"type":"integer","minimum":1},"completedAt":{"type":"string","format":"date-time"},"followUpAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"limitedSummary":{"type":["string","null"]},"response":{"anyOf":[{"type":"object","properties":{"messageId":{"type":"string","minLength":1,"maxLength":256},"observedAt":{"type":"string","format":"date-time"},"href":{"type":"string"},"senderAddress":{"type":"string"},"recipientAddress":{"type":"string"}},"required":["messageId","observedAt","href","senderAddress","recipientAddress"],"additionalProperties":false},{"type":"null"}]}},"required":["taskId","status","senderName","recipientName","completionCondition","evidenceId","messageId","observedAt","href","reason","previousStatus","ruleRevision","completedAt","followUpAt","limitedSummary"],"additionalProperties":false},{"type":"null"}]}},"required":["rules","evidence","current"],"additionalProperties":false}},"required":["data"],"additionalProperties":false},"ClientEmailConnectionMutationResponse":{"type":"object","properties":{"data":{"type":"object","properties":{"connectionId":{"type":"string","minLength":1,"maxLength":256},"tasksChanged":{"type":"boolean","const":false}},"required":["connectionId","tasksChanged"],"additionalProperties":false}},"required":["data"],"additionalProperties":false},"ClientEmailConnectionSelection":{"type":"object","properties":{"mailboxId":{"type":"string","minLength":1,"maxLength":256},"domain":{"type":"string","minLength":3,"maxLength":253}},"required":["mailboxId","domain"],"additionalProperties":false},"ClientEmailConnectionEnable":{"type":"object","properties":{"mailboxId":{"type":"string","minLength":1,"maxLength":256},"domain":{"type":"string","minLength":3,"maxLength":253},"previewDigest":{"type":"string","minLength":64,"maxLength":64}},"required":["mailboxId","domain","previewDigest"],"additionalProperties":false},"ClientEmailConnectionPreviewResponse":{"type":"object","properties":{"data":{"type":"object","properties":{"mailboxId":{"type":"string","minLength":1,"maxLength":256},"domain":{"type":"string"},"mailboxAddress":{"type":"string"},"previewDigest":{"type":"string"},"sampleMessages":{"type":"array","items":{"type":"object","properties":{"messageId":{"type":"string","minLength":1,"maxLength":256},"threadId":{"type":"string","minLength":1,"maxLength":256},"subject":{"type":"string"},"from":{"type":"string"},"to":{"type":"array","items":{"type":"string"}},"cc":{"type":"array","items":{"type":"string"}},"bcc":{"type":"array","items":{"type":"string"}},"at":{"type":"string","format":"date-time"},"matchingAddresses":{"type":"array","items":{"type":"string"}}},"required":["messageId","threadId","subject","from","to","cc","bcc","at","matchingAddresses"],"additionalProperties":false}},"estimatedTotal":{"type":["number","null"]},"moreAvailable":{"type":"boolean"},"visibility":{"type":"string","const":"enterprise_operator"},"history":{"type":"string","const":"all_available"},"includesSpamTrash":{"type":"boolean","const":true},"matching":{"type":"string","const":"exact_address_domain"},"tasksChanged":{"type":"boolean","const":false}},"required":["mailboxId","domain","mailboxAddress","previewDigest","sampleMessages","estimatedTotal","moreAvailable","visibility","history","includesSpamTrash","matching","tasksChanged"],"additionalProperties":false}},"required":["data"],"additionalProperties":false},"ClientEmailConnectionsResponse":{"type":"object","properties":{"data":{"type":"object","properties":{"connections":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":256},"mailboxId":{"type":"string","minLength":1,"maxLength":256},"domain":{"type":"string"},"mailboxAddress":{"type":"string"},"ownedByViewer":{"type":"boolean"},"status":{"type":"string","enum":["active","paused","revoked","disconnected"]},"phase":{"type":"string","enum":["backfill","history"]},"scannedCount":{"type":"number"},"estimatedTotal":{"type":["number","null"]},"coverageCompletedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"lastSuccessfulAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"processingError":{"type":["string","null"]}},"required":["id","mailboxId","domain","mailboxAddress","ownedByViewer","status","phase","scannedCount","estimatedTotal","coverageCompletedAt","lastSuccessfulAt","processingError"],"additionalProperties":false}},"total":{"type":"number"},"nextOffset":{"type":["number","null"]},"authorizedConnectionIds":{"type":"array","items":{"type":"string","minLength":1,"maxLength":256}},"messages":{"type":"array","items":{"type":"object","properties":{"messageId":{"type":"string","minLength":1,"maxLength":256},"threadId":{"type":"string","minLength":1,"maxLength":256},"subject":{"type":"string"},"from":{"type":"string"},"to":{"type":"array","items":{"type":"string"}},"cc":{"type":"array","items":{"type":"string"}},"bcc":{"type":"array","items":{"type":"string"}},"at":{"type":"string","format":"date-time"},"id":{"type":"string","minLength":1,"maxLength":256},"connectionId":{"type":"string","minLength":1,"maxLength":256},"mailboxId":{"type":"string","minLength":1,"maxLength":256},"domain":{"type":"string"},"href":{"type":"string"}},"required":["messageId","threadId","subject","from","to","cc","bcc","at","id","connectionId","domain","href"],"additionalProperties":false}}},"required":["connections","total","nextOffset","messages"],"additionalProperties":false}},"required":["data"],"additionalProperties":false},"ClientEmailConnectionChange":{"type":"object","properties":{"action":{"type":"string","enum":["pause","unlink"]}},"required":["action"],"additionalProperties":false},"ClientEmailConnectionSync":{"type":"object","properties":{},"additionalProperties":false},"ClientEmailConnectionSyncResponse":{"type":"object","properties":{"data":{"type":"object","properties":{"status":{"type":"string","enum":["paused","syncing","up_to_date","error"]}},"required":["status"],"additionalProperties":false}},"required":["data"],"additionalProperties":false},"EmailRuleSelection":{"type":"object","properties":{"mailboxId":{"type":"string","minLength":1,"maxLength":256},"threadId":{"type":"string","minLength":1,"maxLength":256},"taskId":{"type":"string","minLength":1,"maxLength":256},"baselineMessageId":{"type":"string","minLength":1,"maxLength":256},"expectedSender":{"type":"string","format":"email"},"expectedRecipient":{"type":"string","format":"email"},"source":{"type":"string","enum":["mirror","gmail_live"]},"reviewedSummary":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}]}},"required":["mailboxId","threadId","taskId","baselineMessageId","expectedSender","expectedRecipient"],"additionalProperties":false},"EmailRulePreviewResponse":{"type":"object","properties":{"data":{"type":"object","properties":{"mailboxId":{"type":"string","minLength":1,"maxLength":256},"threadId":{"type":"string","minLength":1,"maxLength":256},"taskId":{"type":"string","minLength":1,"maxLength":256},"baselineMessageId":{"type":"string","minLength":1,"maxLength":256},"expectedSender":{"type":"string","format":"email"},"expectedRecipient":{"type":"string","format":"email"},"source":{"type":"string","enum":["mirror","gmail_live"]},"reviewedSummary":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}]},"taskTitle":{"type":"string"},"senderName":{"type":"string"},"recipientName":{"type":"string"},"mailboxAddress":{"type":"string"},"lastSyncedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"visibility":{"type":"string","const":"enterprise_operator"},"historicalMatches":{"type":"array","items":{"type":"object","properties":{"messageId":{"type":"string","minLength":1,"maxLength":256},"at":{"type":"string","format":"date-time"}},"required":["messageId","at"],"additionalProperties":false}},"reviewRequired":{"type":"boolean"},"moreHistory":{"type":"boolean"},"completionCondition":{"type":"string"},"previewDigest":{"type":"string","minLength":64,"maxLength":64}},"required":["mailboxId","threadId","taskId","baselineMessageId","expectedSender","expectedRecipient","taskTitle","senderName","recipientName","mailboxAddress","lastSyncedAt","visibility","historicalMatches","reviewRequired","moreHistory","completionCondition","previewDigest"],"additionalProperties":false}},"required":["data"],"additionalProperties":false},"EmailRuleEnableRequest":{"type":"object","properties":{"mailboxId":{"type":"string","minLength":1,"maxLength":256},"threadId":{"type":"string","minLength":1,"maxLength":256},"taskId":{"type":"string","minLength":1,"maxLength":256},"baselineMessageId":{"type":"string","minLength":1,"maxLength":256},"expectedSender":{"type":"string","format":"email"},"expectedRecipient":{"type":"string","format":"email"},"source":{"type":"string","enum":["mirror","gmail_live"]},"reviewedSummary":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}]},"previewDigest":{"type":"string","minLength":64,"maxLength":64}},"required":["mailboxId","threadId","taskId","baselineMessageId","expectedSender","expectedRecipient","previewDigest"],"additionalProperties":false},"EmailRulePauseRequest":{"type":"object","properties":{"revokeAuthorization":{"type":"boolean"}},"additionalProperties":false},"EmailRuleFollowUpRequest":{"type":"object","properties":{"followUpAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]}},"required":["followUpAt"],"additionalProperties":false},"EmailRuleIdResponse":{"type":"object","properties":{"data":{"type":"object","properties":{"ruleId":{"type":"string","minLength":1,"maxLength":256}},"required":["ruleId"],"additionalProperties":false}},"required":["data"],"additionalProperties":false},"EmailRuleReconcileRequest":{"type":"object","properties":{},"additionalProperties":false},"EmailRuleReconcileResponse":{"type":"object","properties":{"data":{"type":"object","properties":{"ruleId":{"type":"string","minLength":1,"maxLength":256},"status":{"type":"string"},"completed":{"type":"boolean"}},"required":["ruleId","status","completed"],"additionalProperties":false}},"required":["data"],"additionalProperties":false},"EmailEvidenceSourcesResponse":{"type":"object","properties":{"data":{"type":"object","properties":{"identities":{"type":"array","items":{"type":"object","properties":{"taskId":{"type":"string","minLength":1,"maxLength":256},"expectedSender":{"type":"string"},"expectedRecipient":{"type":"string"},"recipientName":{"type":"string"}},"required":["taskId","expectedSender","expectedRecipient","recipientName"],"additionalProperties":false}},"mailboxes":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":256},"address":{"type":"string"},"lastSyncedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"syncStatus":{"type":"string"}},"required":["id","address","lastSyncedAt","syncStatus"],"additionalProperties":false}},"threads":{"type":"array","items":{"type":"object","properties":{"mailboxId":{"type":"string","minLength":1,"maxLength":256},"threadId":{"type":"string","minLength":1,"maxLength":256},"subject":{"type":["string","null"]},"lastMessageAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]}},"required":["mailboxId","threadId","subject","lastMessageAt"],"additionalProperties":false}}},"required":["identities","mailboxes","threads"],"additionalProperties":false}},"required":["data"],"additionalProperties":false},"EmailSearchContextResponse":{"type":"object","properties":{"data":{"type":"object","properties":{"dealId":{"type":"string","minLength":1,"maxLength":256},"dealName":{"type":"string"},"searchName":{"type":"string"},"stakeholders":{"type":"array","items":{"type":"object","properties":{"personId":{"type":"string","minLength":1,"maxLength":256},"name":{"type":"string"},"email":{"type":"string"}},"required":["personId","name","email"],"additionalProperties":false}},"replyTasks":{"type":"array","items":{"type":"object","properties":{"taskId":{"type":"string","minLength":1,"maxLength":256},"title":{"type":"string"},"sender":{"type":"string"},"recipient":{"type":"string"},"recipientName":{"type":"string"}},"required":["taskId","title","sender","recipient","recipientName"],"additionalProperties":false}},"knownThreads":{"type":"array","items":{"type":"object","properties":{"threadId":{"type":"string","minLength":1,"maxLength":256},"mailboxAddress":{"type":["string","null"]},"sourceId":{"type":"string","minLength":1,"maxLength":256}},"required":["threadId","mailboxAddress","sourceId"],"additionalProperties":false}}},"required":["dealId","dealName","searchName","stakeholders","replyTasks","knownThreads"],"additionalProperties":false}},"required":["data"],"additionalProperties":false},"EmailSearchResponse":{"type":"object","properties":{"data":{"type":"object","properties":{"threads":{"type":"array","items":{"type":"object","properties":{"mailboxId":{"type":"string","minLength":1,"maxLength":256},"threadId":{"type":"string","minLength":1,"maxLength":256},"subject":{"type":"string"},"lastMessageAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"participants":{"type":"array","items":{"type":"object","properties":{"address":{"type":"string"},"name":{"type":["string","null"]}},"required":["address","name"],"additionalProperties":false}},"messageCount":{"type":"integer","minimum":0},"matchReason":{"type":"string"},"gmailUrl":{"type":"string","format":"uri"}},"required":["mailboxId","threadId","subject","lastMessageAt","participants","messageCount","matchReason","gmailUrl"],"additionalProperties":false}},"estimatedTotal":{"anyOf":[{"type":"integer","minimum":0},{"type":"null"}]},"exactTotal":{"anyOf":[{"type":"integer","minimum":0},{"type":"null"}]},"loadedCount":{"type":"integer","minimum":0},"unavailableCount":{"type":"integer","minimum":0},"complete":{"type":"boolean"},"nextCursor":{"type":["string","null"]},"source":{"type":"string","const":"gmail_live"},"searchedAt":{"type":"string","format":"date-time"},"appliedQuery":{"type":"string"}},"required":["threads","estimatedTotal","exactTotal","loadedCount","unavailableCount","complete","nextCursor","source","searchedAt","appliedQuery"],"additionalProperties":false}},"required":["data"],"additionalProperties":false},"EmailEvidenceThreadResponse":{"type":"object","properties":{"data":{"type":"object","properties":{"messages":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":256},"from":{"type":"string"},"to":{"type":"array","items":{"type":"string"}},"subject":{"type":"string"},"at":{"type":"string","format":"date-time"},"draft":{"type":"boolean"}},"required":["id","from","to","subject","at","draft"],"additionalProperties":false}},"nextCursor":{"type":["string","null"]}},"required":["messages","nextCursor"],"additionalProperties":false}},"required":["data"],"additionalProperties":false},"DealApiRecord":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":256},"name":{"type":"string","maxLength":300},"stage":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}]},"status":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}]},"outcome":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}]},"dealType":{"anyOf":[{"type":"string","enum":["commercial_contract","investment"]},{"type":"null"}]},"estimatedTotalContractValue":{"type":["string","null"]},"currency":{"type":"string","minLength":3,"maxLength":3},"ownerUserId":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"stageMilestone":{"type":["string","null"]},"stageBlocker":{"type":["string","null"]},"stageExitCriteria":{"type":["string","null"]},"stageEnteredAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","name","stage","status","outcome","dealType","estimatedTotalContractValue","currency","ownerUserId","stageMilestone","stageBlocker","stageExitCriteria","stageEnteredAt","createdAt","updatedAt"],"additionalProperties":false},"DealListResponse":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":256},"name":{"type":"string","maxLength":300},"stage":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}]},"status":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}]},"outcome":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}]},"dealType":{"anyOf":[{"type":"string","enum":["commercial_contract","investment"]},{"type":"null"}]},"estimatedTotalContractValue":{"type":["string","null"]},"currency":{"type":"string","minLength":3,"maxLength":3},"ownerUserId":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"stageMilestone":{"type":["string","null"]},"stageBlocker":{"type":["string","null"]},"stageExitCriteria":{"type":["string","null"]},"stageEnteredAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","name","stage","status","outcome","dealType","estimatedTotalContractValue","currency","ownerUserId","stageMilestone","stageBlocker","stageExitCriteria","stageEnteredAt","createdAt","updatedAt"],"additionalProperties":false},"maxItems":100},"total":{"type":"integer","minimum":0},"nextCursor":{"type":"null"}},"required":["data","total","nextCursor"],"additionalProperties":false},"DealDetailResponse":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":256},"name":{"type":"string","maxLength":300},"stage":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}]},"status":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}]},"outcome":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}]},"dealType":{"anyOf":[{"type":"string","enum":["commercial_contract","investment"]},{"type":"null"}]},"estimatedTotalContractValue":{"type":["string","null"]},"currency":{"type":"string","minLength":3,"maxLength":3},"ownerUserId":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"stageMilestone":{"type":["string","null"]},"stageBlocker":{"type":["string","null"]},"stageExitCriteria":{"type":["string","null"]},"stageEnteredAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","name","stage","status","outcome","dealType","estimatedTotalContractValue","currency","ownerUserId","stageMilestone","stageBlocker","stageExitCriteria","stageEnteredAt","createdAt","updatedAt"],"additionalProperties":false}},"required":["data"],"additionalProperties":false},"DealCreateRequest":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":300},"stage":{"type":"string","enum":["Lead","Qualification","Proposal","Negotiation","Closed Won","Closed Lost"]},"dealType":{"anyOf":[{"type":"string","enum":["commercial_contract","investment"]},{"type":"null"}]},"estimatedTotalContractValue":{"anyOf":[{"type":"string","pattern":"^\\d{1,12}(?:\\.\\d{1,2})?$"},{"type":"null"}]},"currency":{"type":"string","pattern":"^[A-Z]{3}$"},"ownerUserId":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"stageMilestone":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}]},"stageBlocker":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}]},"stageExitCriteria":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}]}},"required":["name"],"additionalProperties":false},"DealUpdateRequest":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":300},"stage":{"type":"string","enum":["Lead","Qualification","Proposal","Negotiation","Closed Won","Closed Lost"]},"dealType":{"anyOf":[{"type":"string","enum":["commercial_contract","investment"]},{"type":"null"}]},"estimatedTotalContractValue":{"anyOf":[{"type":"string","pattern":"^\\d{1,12}(?:\\.\\d{1,2})?$"},{"type":"null"}]},"currency":{"type":"string","pattern":"^[A-Z]{3}$"},"ownerUserId":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"stageMilestone":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}]},"stageBlocker":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}]},"stageExitCriteria":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}]}},"additionalProperties":false},"DealActivityCreateRequest":{"type":"object","properties":{"kind":{"type":"string","enum":["note","call","meeting"],"default":"note"},"summary":{"type":"string","minLength":1,"maxLength":5000},"occurredAt":{"type":"string","format":"date-time"}},"required":["summary"],"additionalProperties":false},"DealActivityDetailResponse":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":256},"dealId":{"type":"string","minLength":1,"maxLength":256},"kind":{"type":"string","enum":["note","call","meeting"]},"summary":{"type":"string"},"occurredAt":{"type":"string","format":"date-time"},"actorUserId":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]}},"required":["id","dealId","kind","summary","occurredAt","actorUserId"],"additionalProperties":false}},"required":["data"],"additionalProperties":false},"DealActivityListResponse":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":256},"dealId":{"type":"string","minLength":1,"maxLength":256},"kind":{"type":"string","enum":["note","call","meeting"]},"summary":{"type":"string"},"occurredAt":{"type":"string","format":"date-time"},"actorUserId":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]}},"required":["id","dealId","kind","summary","occurredAt","actorUserId"],"additionalProperties":false},"maxItems":100}},"required":["data"],"additionalProperties":false},"DealPlanEvidence":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":256},"kind":{"type":"string","enum":["deal","person","company","activity","task","email_completion"]},"label":{"type":"string"},"summary":{"type":"string"},"occurredAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"href":{"type":"string"},"accessRule":{"type":"string","enum":["workspace_member","enterprise_operator"]},"restricted":{"type":"boolean"}},"required":["id","kind","label","summary","occurredAt","href","accessRule","restricted"],"additionalProperties":false},"DealPlanStep":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":256},"lineageId":{"type":"string","minLength":1,"maxLength":256},"position":{"type":"integer","minimum":0},"phase":{"type":"string","enum":["now","supporting_now","after_event"]},"workMode":{"type":"string","enum":["action","waiting"]},"expectedEvent":{"type":["string","null"]},"followUpAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"title":{"type":"string"},"prerequisite":{"type":["string","null"]},"outcome":{"type":"string"},"why":{"type":"string"},"evidence":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":256},"kind":{"type":"string","enum":["deal","person","company","activity","task","email_completion"]},"label":{"type":"string"},"summary":{"type":"string"},"occurredAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"href":{"type":"string"},"accessRule":{"type":"string","enum":["workspace_member","enterprise_operator"]},"restricted":{"type":"boolean"}},"required":["id","kind","label","summary","occurredAt","href","accessRule","restricted"],"additionalProperties":false}},"existingTaskId":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"ownerUserId":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"dueAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"createdTaskId":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"decision":{"type":"string","enum":["pending","existing","applied","dismissed"]},"dismissalReason":{"type":["string","null"]}},"required":["id","lineageId","position","phase","title","prerequisite","outcome","why","evidence","existingTaskId","ownerUserId","dueAt","createdTaskId","decision","dismissalReason"],"additionalProperties":false},"DealPlan":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":256},"dealId":{"type":"string","minLength":1,"maxLength":256},"version":{"type":"integer","minimum":1},"publishedByUserId":{"type":"string","minLength":1,"maxLength":256},"publishedAt":{"type":"string","format":"date-time"},"changeReason":{"type":["string","null"]},"currentState":{"type":"string"},"nextBestAction":{"type":"string"},"unknowns":{"type":"array","items":{"type":"string"}},"evidence":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":256},"kind":{"type":"string","enum":["deal","person","company","activity","task","email_completion"]},"label":{"type":"string"},"summary":{"type":"string"},"occurredAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"href":{"type":"string"},"accessRule":{"type":"string","enum":["workspace_member","enterprise_operator"]},"restricted":{"type":"boolean"}},"required":["id","kind","label","summary","occurredAt","href","accessRule","restricted"],"additionalProperties":false}},"steps":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":256},"lineageId":{"type":"string","minLength":1,"maxLength":256},"position":{"type":"integer","minimum":0},"phase":{"type":"string","enum":["now","supporting_now","after_event"]},"workMode":{"type":"string","enum":["action","waiting"]},"expectedEvent":{"type":["string","null"]},"followUpAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"title":{"type":"string"},"prerequisite":{"type":["string","null"]},"outcome":{"type":"string"},"why":{"type":"string"},"evidence":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":256},"kind":{"type":"string","enum":["deal","person","company","activity","task","email_completion"]},"label":{"type":"string"},"summary":{"type":"string"},"occurredAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"href":{"type":"string"},"accessRule":{"type":"string","enum":["workspace_member","enterprise_operator"]},"restricted":{"type":"boolean"}},"required":["id","kind","label","summary","occurredAt","href","accessRule","restricted"],"additionalProperties":false}},"existingTaskId":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"ownerUserId":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"dueAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"createdTaskId":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"decision":{"type":"string","enum":["pending","existing","applied","dismissed"]},"dismissalReason":{"type":["string","null"]}},"required":["id","lineageId","position","phase","title","prerequisite","outcome","why","evidence","existingTaskId","ownerUserId","dueAt","createdTaskId","decision","dismissalReason"],"additionalProperties":false}},"generatedAt":{"type":"string","format":"date-time"},"stale":{"type":"boolean"},"visibility":{"type":"string","enum":["workspace","enterprise_operator"]}},"required":["id","dealId","version","publishedByUserId","publishedAt","changeReason","currentState","nextBestAction","unknowns","evidence","steps","generatedAt","stale","visibility"],"additionalProperties":false},"DealPlanReadResponse":{"type":"object","properties":{"data":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":256},"dealId":{"type":"string","minLength":1,"maxLength":256},"version":{"type":"integer","minimum":1},"publishedByUserId":{"type":"string","minLength":1,"maxLength":256},"publishedAt":{"type":"string","format":"date-time"},"changeReason":{"type":["string","null"]},"currentState":{"type":"string"},"nextBestAction":{"type":"string"},"unknowns":{"type":"array","items":{"type":"string"}},"evidence":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":256},"kind":{"type":"string","enum":["deal","person","company","activity","task","email_completion"]},"label":{"type":"string"},"summary":{"type":"string"},"occurredAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"href":{"type":"string"},"accessRule":{"type":"string","enum":["workspace_member","enterprise_operator"]},"restricted":{"type":"boolean"}},"required":["id","kind","label","summary","occurredAt","href","accessRule","restricted"],"additionalProperties":false}},"steps":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":256},"lineageId":{"type":"string","minLength":1,"maxLength":256},"position":{"type":"integer","minimum":0},"phase":{"type":"string","enum":["now","supporting_now","after_event"]},"workMode":{"type":"string","enum":["action","waiting"]},"expectedEvent":{"type":["string","null"]},"followUpAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"title":{"type":"string"},"prerequisite":{"type":["string","null"]},"outcome":{"type":"string"},"why":{"type":"string"},"evidence":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":256},"kind":{"type":"string","enum":["deal","person","company","activity","task","email_completion"]},"label":{"type":"string"},"summary":{"type":"string"},"occurredAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"href":{"type":"string"},"accessRule":{"type":"string","enum":["workspace_member","enterprise_operator"]},"restricted":{"type":"boolean"}},"required":["id","kind","label","summary","occurredAt","href","accessRule","restricted"],"additionalProperties":false}},"existingTaskId":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"ownerUserId":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"dueAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"createdTaskId":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"decision":{"type":"string","enum":["pending","existing","applied","dismissed"]},"dismissalReason":{"type":["string","null"]}},"required":["id","lineageId","position","phase","title","prerequisite","outcome","why","evidence","existingTaskId","ownerUserId","dueAt","createdTaskId","decision","dismissalReason"],"additionalProperties":false}},"generatedAt":{"type":"string","format":"date-time"},"stale":{"type":"boolean"},"visibility":{"type":"string","enum":["workspace","enterprise_operator"]}},"required":["id","dealId","version","publishedByUserId","publishedAt","changeReason","currentState","nextBestAction","unknowns","evidence","steps","generatedAt","stale","visibility"],"additionalProperties":false},{"type":"null"}]}},"required":["data"],"additionalProperties":false},"DealPlanningContextResponse":{"type":"object","properties":{"data":{"type":"object","properties":{"dealId":{"type":"string","minLength":1,"maxLength":256},"viewerUserId":{"type":"string","minLength":1,"maxLength":256},"name":{"type":"string"},"stage":{"type":["string","null"]},"ownerName":{"type":["string","null"]},"stageMilestone":{"type":["string","null"]},"stageBlocker":{"type":["string","null"]},"stageExitCriteria":{"type":["string","null"]},"contextHash":{"type":"string"},"tasks":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":256},"title":{"type":"string"},"status":{"type":"string"},"assigneeUserId":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"assigneeName":{"type":["string","null"]},"dueAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"finishedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"actionKind":{"type":"string","enum":["general","meeting_scheduling"]},"scheduling":{"anyOf":[{"type":"object","properties":{"version":{"type":"number","const":1},"recipientPersonId":{"type":"string","minLength":1,"maxLength":256},"recordedAvailability":{"type":["string","null"]},"sourceActivityId":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"organizerTimezone":{"type":["string","null"]},"recipientTimezone":{"type":["string","null"]},"recipientTimezoneConfirmed":{"type":"boolean"},"confirmedMeetingAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"invitationStatus":{"type":"string","enum":["not_sent","sent"]},"invitationSentAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"unverifiedTimezoneNote":{"type":["string","null"]}},"required":["version","recipientPersonId","recordedAvailability","sourceActivityId","organizerTimezone","recipientTimezone","recipientTimezoneConfirmed","confirmedMeetingAt","invitationStatus","invitationSentAt","unverifiedTimezoneNote"],"additionalProperties":true},{"type":"null"}]},"emailReply":{"anyOf":[{"type":"object","properties":{"version":{"type":"number","const":1},"recipientPersonId":{"type":"string","minLength":1,"maxLength":256},"sourceActivityId":{"type":"string","minLength":1,"maxLength":256},"recordedAvailability":{"type":["string","null"]},"unverifiedTimezoneNote":{"type":["string","null"]},"draftGoal":{"type":"string"}},"required":["version","recipientPersonId","sourceActivityId","recordedAvailability","unverifiedTimezoneNote","draftGoal"],"additionalProperties":true},{"type":"null"}]}},"required":["id","title","status","assigneeUserId","assigneeName","dueAt","finishedAt","actionKind","scheduling","emailReply"],"additionalProperties":false}},"evidence":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":256},"kind":{"type":"string","enum":["deal","person","company","activity","task","email_completion"]},"label":{"type":"string"},"summary":{"type":"string"},"occurredAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"href":{"type":"string"},"accessRule":{"type":"string","enum":["workspace_member","enterprise_operator"]},"restricted":{"type":"boolean"}},"required":["id","kind","label","summary","occurredAt","href","accessRule","restricted"],"additionalProperties":false}},"clientState":{"type":"object","properties":{"rules":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":256},"taskId":{"type":"string","minLength":1,"maxLength":256},"revision":{"type":"integer","minimum":1},"status":{"type":"string"},"pauseReason":{"type":["string","null"]},"completionCondition":{"type":"string"},"lastCheckedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"lastSuccessfulAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"lastSyncedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"processingError":{"type":["string","null"]},"followUpAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"ownedByViewer":{"type":"boolean"}},"required":["id","taskId","revision","status","pauseReason","completionCondition","lastCheckedAt","lastSuccessfulAt","lastSyncedAt","processingError","followUpAt","ownedByViewer"],"additionalProperties":false}},"evidence":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":256},"taskId":{"type":"string","minLength":1,"maxLength":256},"label":{"type":"string"},"summary":{"type":"string"},"occurredAt":{"type":"string","format":"date-time"},"href":{"type":"string"}},"required":["id","taskId","label","summary","occurredAt","href"],"additionalProperties":false}},"current":{"anyOf":[{"type":"object","properties":{"taskId":{"type":"string","minLength":1,"maxLength":256},"status":{"type":"string","enum":["waiting","response_received","reply_completed"]},"senderName":{"type":"string"},"recipientName":{"type":"string"},"completionCondition":{"type":"string"},"evidenceId":{"type":"string","minLength":1,"maxLength":256},"messageId":{"type":"string","minLength":1,"maxLength":256},"observedAt":{"type":"string","format":"date-time"},"href":{"type":"string"},"reason":{"type":"string"},"previousStatus":{"type":"string"},"ruleRevision":{"type":"integer","minimum":1},"completedAt":{"type":"string","format":"date-time"},"followUpAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"limitedSummary":{"type":["string","null"]},"response":{"anyOf":[{"type":"object","properties":{"messageId":{"type":"string","minLength":1,"maxLength":256},"observedAt":{"type":"string","format":"date-time"},"href":{"type":"string"},"senderAddress":{"type":"string"},"recipientAddress":{"type":"string"}},"required":["messageId","observedAt","href","senderAddress","recipientAddress"],"additionalProperties":false},{"type":"null"}]}},"required":["taskId","status","senderName","recipientName","completionCondition","evidenceId","messageId","observedAt","href","reason","previousStatus","ruleRevision","completedAt","followUpAt","limitedSummary"],"additionalProperties":false},{"type":"null"}]}},"required":["rules","evidence","current"],"additionalProperties":false},"plan":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":256},"dealId":{"type":"string","minLength":1,"maxLength":256},"version":{"type":"integer","minimum":1},"publishedByUserId":{"type":"string","minLength":1,"maxLength":256},"publishedAt":{"type":"string","format":"date-time"},"changeReason":{"type":["string","null"]},"currentState":{"type":"string"},"nextBestAction":{"type":"string"},"unknowns":{"type":"array","items":{"type":"string"}},"evidence":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":256},"kind":{"type":"string","enum":["deal","person","company","activity","task","email_completion"]},"label":{"type":"string"},"summary":{"type":"string"},"occurredAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"href":{"type":"string"},"accessRule":{"type":"string","enum":["workspace_member","enterprise_operator"]},"restricted":{"type":"boolean"}},"required":["id","kind","label","summary","occurredAt","href","accessRule","restricted"],"additionalProperties":false}},"steps":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":256},"lineageId":{"type":"string","minLength":1,"maxLength":256},"position":{"type":"integer","minimum":0},"phase":{"type":"string","enum":["now","supporting_now","after_event"]},"workMode":{"type":"string","enum":["action","waiting"]},"expectedEvent":{"type":["string","null"]},"followUpAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"title":{"type":"string"},"prerequisite":{"type":["string","null"]},"outcome":{"type":"string"},"why":{"type":"string"},"evidence":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":256},"kind":{"type":"string","enum":["deal","person","company","activity","task","email_completion"]},"label":{"type":"string"},"summary":{"type":"string"},"occurredAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"href":{"type":"string"},"accessRule":{"type":"string","enum":["workspace_member","enterprise_operator"]},"restricted":{"type":"boolean"}},"required":["id","kind","label","summary","occurredAt","href","accessRule","restricted"],"additionalProperties":false}},"existingTaskId":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"ownerUserId":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"dueAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"createdTaskId":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"decision":{"type":"string","enum":["pending","existing","applied","dismissed"]},"dismissalReason":{"type":["string","null"]}},"required":["id","lineageId","position","phase","title","prerequisite","outcome","why","evidence","existingTaskId","ownerUserId","dueAt","createdTaskId","decision","dismissalReason"],"additionalProperties":false}},"generatedAt":{"type":"string","format":"date-time"},"stale":{"type":"boolean"},"visibility":{"type":"string","enum":["workspace","enterprise_operator"]}},"required":["id","dealId","version","publishedByUserId","publishedAt","changeReason","currentState","nextBestAction","unknowns","evidence","steps","generatedAt","stale","visibility"],"additionalProperties":false},{"type":"null"}]},"planUnavailable":{"type":"boolean"},"draft":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":256},"baseVersion":{"type":"integer","minimum":0},"revision":{"type":"integer","minimum":1},"contextHash":{"type":"string"},"currentState":{"type":"string"},"nextBestAction":{"type":"string"},"unknowns":{"type":"array","items":{"type":"string"}},"evidenceIds":{"type":"array","items":{"type":"string","minLength":1,"maxLength":256}},"steps":{"type":"array","items":{"type":"object","properties":{"lineageId":{"type":"string","minLength":1,"maxLength":256},"phase":{"type":"string","enum":["now","supporting_now","after_event"]},"workMode":{"type":"string","enum":["action","waiting"]},"expectedEvent":{"type":["string","null"]},"followUpAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"title":{"type":"string"},"prerequisite":{"type":["string","null"]},"outcome":{"type":"string"},"why":{"type":"string"},"evidenceIds":{"type":"array","items":{"type":"string","minLength":1,"maxLength":256}},"existingTaskId":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]}},"required":["lineageId","phase","title","prerequisite","outcome","why","evidenceIds","existingTaskId"],"additionalProperties":false}},"changeReason":{"type":["string","null"]},"createdByUserId":{"type":"string","minLength":1,"maxLength":256},"updatedAt":{"type":"string","format":"date-time"},"reviewedDigest":{"type":["string","null"]},"execution":{"type":"array","items":{"type":"object","properties":{"lineageId":{"type":"string","minLength":1,"maxLength":256},"taskId":{"type":"string","minLength":1,"maxLength":256},"title":{"type":"string"},"status":{"type":"string"}},"required":["lineageId","taskId","title","status"],"additionalProperties":false}}},"required":["id","baseVersion","revision","contextHash","currentState","nextBestAction","unknowns","evidenceIds","steps","changeReason","createdByUserId","updatedAt","reviewedDigest"],"additionalProperties":false},{"type":"null"}]},"draftStatus":{"type":"object","properties":{"exists":{"type":"boolean"},"unavailable":{"type":"boolean"},"ownedByViewer":{"type":"boolean"}},"required":["exists","unavailable","ownedByViewer"],"additionalProperties":false},"versions":{"type":"array","items":{"type":"object","properties":{"version":{"type":"integer","minimum":1},"planId":{"type":"string","minLength":1,"maxLength":256},"publishedAt":{"type":"string","format":"date-time"},"publishedByUserId":{"type":"string","minLength":1,"maxLength":256},"changeReason":{"type":["string","null"]},"visibility":{"type":"string","enum":["workspace","enterprise_operator"]}},"required":["version","planId","publishedAt","publishedByUserId","changeReason","visibility"],"additionalProperties":false}},"planUrl":{"type":"string"}},"required":["dealId","viewerUserId","name","stage","ownerName","stageMilestone","stageBlocker","stageExitCriteria","contextHash","tasks","evidence","clientState","plan","planUnavailable","draft","draftStatus","versions","planUrl"],"additionalProperties":false}},"required":["data"],"additionalProperties":false},"DealPlanGenerateRequest":{"type":"object","properties":{},"additionalProperties":false},"DealPlanIdResponse":{"type":"object","properties":{"data":{"type":"object","properties":{"planId":{"type":"string","minLength":1,"maxLength":256}},"required":["planId"],"additionalProperties":false}},"required":["data"],"additionalProperties":false},"DealPlanApplyRequest":{"type":"object","properties":{"title":{"type":"string","minLength":5,"maxLength":250},"assigneeUserId":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"dueAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]}},"required":["title"],"additionalProperties":false},"DealPlanTaskResponse":{"type":"object","properties":{"data":{"type":"object","properties":{"taskId":{"type":"string","minLength":1,"maxLength":256}},"required":["taskId"],"additionalProperties":false}},"required":["data"],"additionalProperties":false},"DealPlanDismissRequest":{"type":"object","properties":{"reason":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}]}},"additionalProperties":false},"DealPlanDismissResponse":{"type":"object","properties":{"data":{"type":"object","properties":{"stepId":{"type":"string","minLength":1,"maxLength":256}},"required":["stepId"],"additionalProperties":false}},"required":["data"],"additionalProperties":false},"DealPlanVersionIndexResponse":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"version":{"type":"integer","minimum":1},"planId":{"type":"string","minLength":1,"maxLength":256},"publishedAt":{"type":"string","format":"date-time"},"publishedByUserId":{"type":"string","minLength":1,"maxLength":256},"changeReason":{"type":["string","null"]},"visibility":{"type":"string","enum":["workspace","enterprise_operator"]}},"required":["version","planId","publishedAt","publishedByUserId","changeReason","visibility"],"additionalProperties":false}}},"required":["data"],"additionalProperties":false},"DealPlanDraftResponse":{"type":"object","properties":{"data":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":256},"baseVersion":{"type":"integer","minimum":0},"revision":{"type":"integer","minimum":1},"contextHash":{"type":"string"},"currentState":{"type":"string"},"nextBestAction":{"type":"string"},"unknowns":{"type":"array","items":{"type":"string"}},"evidenceIds":{"type":"array","items":{"type":"string","minLength":1,"maxLength":256}},"steps":{"type":"array","items":{"type":"object","properties":{"lineageId":{"type":"string","minLength":1,"maxLength":256},"phase":{"type":"string","enum":["now","supporting_now","after_event"]},"workMode":{"type":"string","enum":["action","waiting"]},"expectedEvent":{"type":["string","null"]},"followUpAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"title":{"type":"string"},"prerequisite":{"type":["string","null"]},"outcome":{"type":"string"},"why":{"type":"string"},"evidenceIds":{"type":"array","items":{"type":"string","minLength":1,"maxLength":256}},"existingTaskId":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]}},"required":["lineageId","phase","title","prerequisite","outcome","why","evidenceIds","existingTaskId"],"additionalProperties":false}},"changeReason":{"type":["string","null"]},"createdByUserId":{"type":"string","minLength":1,"maxLength":256},"updatedAt":{"type":"string","format":"date-time"},"reviewedDigest":{"type":["string","null"]},"execution":{"type":"array","items":{"type":"object","properties":{"lineageId":{"type":"string","minLength":1,"maxLength":256},"taskId":{"type":"string","minLength":1,"maxLength":256},"title":{"type":"string"},"status":{"type":"string"}},"required":["lineageId","taskId","title","status"],"additionalProperties":false}}},"required":["id","baseVersion","revision","contextHash","currentState","nextBestAction","unknowns","evidenceIds","steps","changeReason","createdByUserId","updatedAt","reviewedDigest"],"additionalProperties":false},{"type":"null"}]}},"required":["data"],"additionalProperties":false},"DealPlanDraftSaveRequest":{"type":"object","properties":{"expectedRevision":{"anyOf":[{"type":"integer","exclusiveMinimum":0},{"type":"null"}]},"expectedVersion":{"type":"integer","minimum":0},"reviewedContextHash":{"type":"string","pattern":"^[a-f0-9]{64}$"},"acknowledgeContextChange":{"type":"boolean"},"currentState":{"type":"string","minLength":1,"maxLength":4000},"unknowns":{"type":"array","items":{"type":"string","minLength":1,"maxLength":500},"maxItems":20},"evidenceIds":{"type":"array","items":{"type":"string","minLength":1,"maxLength":256},"maxItems":100},"changeReason":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}]},"steps":{"type":"array","items":{"type":"object","properties":{"lineageId":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"phase":{"type":"string","enum":["now","supporting_now","after_event"]},"workMode":{"type":"string","enum":["action","waiting"]},"expectedEvent":{"type":["string","null"]},"followUpAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"title":{"type":"string"},"prerequisite":{"type":["string","null"]},"outcome":{"type":"string"},"why":{"type":"string"},"evidenceIds":{"type":"array","items":{"type":"string","minLength":1,"maxLength":256}},"existingTaskId":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]}},"required":["lineageId","phase","title","prerequisite","outcome","why","evidenceIds","existingTaskId"],"additionalProperties":false},"maxItems":10}},"required":["expectedRevision","expectedVersion","reviewedContextHash","currentState","unknowns","evidenceIds","changeReason","steps"],"additionalProperties":false},"DealPlanDraftContextReviewResponse":{"type":"object","properties":{"data":{"type":"object","properties":{"baseVersion":{"type":"integer","minimum":0},"contextHash":{"type":"string","minLength":64,"maxLength":64},"changed":{"type":"boolean"},"evidence":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":256},"kind":{"type":"string","enum":["deal","person","company","activity","task","email_completion"]},"label":{"type":"string"},"summary":{"type":"string"},"occurredAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"href":{"type":"string"},"accessRule":{"type":"string","enum":["workspace_member","enterprise_operator"]},"restricted":{"type":"boolean"}},"required":["id","kind","label","summary","occurredAt","href","accessRule","restricted"],"additionalProperties":false}},"execution":{"type":"array","items":{"type":"object","properties":{"lineageId":{"type":"string","minLength":1,"maxLength":256},"taskId":{"type":"string","minLength":1,"maxLength":256},"title":{"type":"string"},"status":{"type":"string"}},"required":["lineageId","taskId","title","status"],"additionalProperties":false}},"issues":{"type":"array","items":{"type":"object","properties":{"lineageId":{"type":"string","minLength":1,"maxLength":256},"kind":{"type":"string","enum":["completed_task","missing_task"]},"message":{"type":"string"}},"required":["lineageId","kind","message"],"additionalProperties":false}}},"required":["contextHash","changed","evidence","execution","issues"],"additionalProperties":false}},"required":["data"],"additionalProperties":false},"DealPlanDraftCreateRequest":{"type":"object","properties":{"source":{"type":"string","enum":["current","generate"]},"reason":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}]},"replaceExisting":{"type":"boolean"}},"required":["source"],"additionalProperties":false},"DealPlanDraftChangeRequest":{"type":"object","properties":{"expectedRevision":{"type":"integer","minimum":1},"change":{"anyOf":[{"type":"object","properties":{"kind":{"type":"string","const":"add"},"step":{"type":"object","properties":{"phase":{"type":"string","enum":["now","supporting_now","after_event"]},"workMode":{"type":"string","enum":["action","waiting"]},"expectedEvent":{"type":["string","null"]},"followUpAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"title":{"type":"string"},"prerequisite":{"type":["string","null"]},"outcome":{"type":"string"},"why":{"type":"string"},"evidenceIds":{"type":"array","items":{"type":"string","minLength":1,"maxLength":256}},"existingTaskId":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]}},"required":["phase","title","prerequisite","outcome","why","evidenceIds","existingTaskId"],"additionalProperties":false},"position":{"type":"integer","minimum":0}},"required":["kind","step"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"edit"},"lineageId":{"type":"string","minLength":1,"maxLength":256},"step":{"type":"object","properties":{"phase":{"type":"string","enum":["now","supporting_now","after_event"]},"workMode":{"type":"string","enum":["action","waiting"]},"expectedEvent":{"type":["string","null"]},"followUpAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"title":{"type":"string"},"prerequisite":{"type":["string","null"]},"outcome":{"type":"string"},"why":{"type":"string"},"evidenceIds":{"type":"array","items":{"type":"string","minLength":1,"maxLength":256}},"existingTaskId":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]}},"required":["phase","title","prerequisite","outcome","why","evidenceIds","existingTaskId"],"additionalProperties":false}},"required":["kind","lineageId","step"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"remove"},"lineageId":{"type":"string","minLength":1,"maxLength":256}},"required":["kind","lineageId"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"move"},"lineageId":{"type":"string","minLength":1,"maxLength":256},"position":{"type":"integer","minimum":0}},"required":["kind","lineageId","position"],"additionalProperties":false}]}},"required":["expectedRevision","change"],"additionalProperties":false},"DealPlanDraftReviewRequest":{"type":"object","properties":{"expectedRevision":{"type":"integer","minimum":1},"reason":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}]}},"required":["expectedRevision"],"additionalProperties":false},"DealPlanDraftReviewResponse":{"type":"object","properties":{"data":{"type":"object","properties":{"draftId":{"type":"string","minLength":1,"maxLength":256},"revision":{"type":"integer"},"baseVersion":{"type":"integer"},"digest":{"type":"string"},"added":{"type":"array","items":{"type":"string"}},"removed":{"type":"array","items":{"type":"string"}},"edited":{"type":"array","items":{"type":"string"}},"baselineUnavailable":{"type":"boolean"},"moved":{"type":"array","items":{"type":"string"}},"sourceChanges":{"type":"array","items":{"type":"string","minLength":1,"maxLength":256}},"taskLinkChanges":{"type":"array","items":{"type":"string"}},"summaryChanged":{"type":"boolean"},"questionsChanged":{"type":"boolean"},"contextChanged":{"type":"boolean"}},"required":["draftId","revision","baseVersion","digest","added","removed","edited","moved","sourceChanges","taskLinkChanges"],"additionalProperties":false}},"required":["data"],"additionalProperties":false},"DealPlanDraftPublishRequest":{"type":"object","properties":{"expectedVersion":{"type":"integer","minimum":0},"expectedRevision":{"type":"integer","minimum":1},"reviewDigest":{"type":"string","minLength":64,"maxLength":64}},"required":["expectedVersion","expectedRevision","reviewDigest"],"additionalProperties":false},"DealPlanDraftPublishResponse":{"type":"object","properties":{"data":{"type":"object","properties":{"planId":{"type":"string","minLength":1,"maxLength":256},"version":{"type":"integer","minimum":1}},"required":["planId","version"],"additionalProperties":false}},"required":["data"],"additionalProperties":false},"DealPlanDraftDiscardRequest":{"type":"object","properties":{},"additionalProperties":false},"DealPlanDraftDiscardResponse":{"type":"object","properties":{"data":{"type":"object","properties":{"discarded":{"type":"boolean","const":true}},"required":["discarded"],"additionalProperties":false}},"required":["data"],"additionalProperties":false},"DealLinkRequest":{"type":"object","properties":{"dealId":{"type":"string","minLength":1,"maxLength":256}},"required":["dealId"],"additionalProperties":false},"EnterprisePartnerRecord":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":256},"name":{"type":"string","maxLength":160},"slug":{"type":"string","maxLength":80},"companyName":{"type":["string","null"]},"domain":{"type":["string","null"]},"contacts":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"email":{"anyOf":[{"type":"string","maxLength":320},{"type":"null"}]},"phone":{"anyOf":[{"type":"string","maxLength":50},{"type":"null"}]},"title":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}]},"role":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}]}},"required":["name"],"additionalProperties":false},"maxItems":20},"whatsappGroup":{"anyOf":[{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":160},"inviteUrl":{"anyOf":[{"type":"string","format":"uri","maxLength":2048},{"type":"null"}]}},"required":["name","inviteUrl"],"additionalProperties":false},{"type":"null"}]},"agreementId":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"agreementStatus":{"anyOf":[{"type":"string","enum":["not_started","sent","signed","void","expired"]},{"type":"null"}]},"agreementDealId":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"clientWorkspaceId":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"clientSubOrganizationId":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"clientAgency":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":256},"slug":{"type":"string","minLength":1,"maxLength":80},"name":{"type":"string","maxLength":160},"status":{"type":"string","maxLength":40}},"required":["id","slug","name","status"],"additionalProperties":false},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","name","slug","companyName","domain","contacts","whatsappGroup","agreementId","agreementStatus","agreementDealId","clientWorkspaceId","createdAt","updatedAt"],"additionalProperties":false},"EnterprisePartnerListResponse":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":256},"name":{"type":"string","maxLength":160},"slug":{"type":"string","maxLength":80},"companyName":{"type":["string","null"]},"domain":{"type":["string","null"]},"contacts":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"email":{"anyOf":[{"type":"string","maxLength":320},{"type":"null"}]},"phone":{"anyOf":[{"type":"string","maxLength":50},{"type":"null"}]},"title":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}]},"role":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}]}},"required":["name"],"additionalProperties":false},"maxItems":20},"whatsappGroup":{"anyOf":[{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":160},"inviteUrl":{"anyOf":[{"type":"string","format":"uri","maxLength":2048},{"type":"null"}]}},"required":["name","inviteUrl"],"additionalProperties":false},{"type":"null"}]},"agreementId":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"agreementStatus":{"anyOf":[{"type":"string","enum":["not_started","sent","signed","void","expired"]},{"type":"null"}]},"agreementDealId":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"clientWorkspaceId":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"clientSubOrganizationId":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"clientAgency":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":256},"slug":{"type":"string","minLength":1,"maxLength":80},"name":{"type":"string","maxLength":160},"status":{"type":"string","maxLength":40}},"required":["id","slug","name","status"],"additionalProperties":false},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","name","slug","companyName","domain","contacts","whatsappGroup","agreementId","agreementStatus","agreementDealId","clientWorkspaceId","createdAt","updatedAt"],"additionalProperties":false},"maxItems":100},"total":{"type":"integer","minimum":0}},"required":["data","total"],"additionalProperties":false},"EnterprisePartnerDetailResponse":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":256},"name":{"type":"string","maxLength":160},"slug":{"type":"string","maxLength":80},"companyName":{"type":["string","null"]},"domain":{"type":["string","null"]},"contacts":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"email":{"anyOf":[{"type":"string","maxLength":320},{"type":"null"}]},"phone":{"anyOf":[{"type":"string","maxLength":50},{"type":"null"}]},"title":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}]},"role":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}]}},"required":["name"],"additionalProperties":false},"maxItems":20},"whatsappGroup":{"anyOf":[{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":160},"inviteUrl":{"anyOf":[{"type":"string","format":"uri","maxLength":2048},{"type":"null"}]}},"required":["name","inviteUrl"],"additionalProperties":false},{"type":"null"}]},"agreementId":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"agreementStatus":{"anyOf":[{"type":"string","enum":["not_started","sent","signed","void","expired"]},{"type":"null"}]},"agreementDealId":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"clientWorkspaceId":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"clientSubOrganizationId":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"clientAgency":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":256},"slug":{"type":"string","minLength":1,"maxLength":80},"name":{"type":"string","maxLength":160},"status":{"type":"string","maxLength":40}},"required":["id","slug","name","status"],"additionalProperties":false},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","name","slug","companyName","domain","contacts","whatsappGroup","agreementId","agreementStatus","agreementDealId","clientWorkspaceId","createdAt","updatedAt"],"additionalProperties":false}},"required":["data"],"additionalProperties":false},"EnterprisePartnerCreateRequest":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":160},"slug":{"type":"string","pattern":"^[a-z0-9](?:[a-z0-9-]{0,78}[a-z0-9])?$"},"companyName":{"type":"string","minLength":1,"maxLength":160},"domain":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}]},"contacts":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"email":{"anyOf":[{"type":"string","format":"email","maxLength":320},{"type":"null"}]},"phone":{"anyOf":[{"type":"string","maxLength":50},{"type":"null"}]},"title":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}]},"role":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}]}},"required":["name"],"additionalProperties":false},"maxItems":20},"whatsappGroup":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":160},"inviteUrl":{"anyOf":[{"type":"string","format":"uri","maxLength":2048},{"type":"null"}]}},"required":["name"],"additionalProperties":false},"creationMode":{"type":"string","enum":["legacy","client_only"],"default":"legacy"},"agreementStatus":{"type":"string","enum":["not_started","sent"],"default":"not_started"},"agreementNotes":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}]},"agreementDealId":{"type":"string","minLength":1,"maxLength":256}},"required":["name","slug"],"additionalProperties":false},"EnterprisePartnerUpdateRequest":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":160},"companyName":{"anyOf":[{"type":"string","minLength":1,"maxLength":160},{"type":"null"}]},"domain":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}]},"contacts":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"email":{"anyOf":[{"type":"string","format":"email","maxLength":320},{"type":"null"}]},"phone":{"anyOf":[{"type":"string","maxLength":50},{"type":"null"}]},"title":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}]},"role":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}]}},"required":["name"],"additionalProperties":false},"maxItems":20},"whatsappGroup":{"anyOf":[{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":160},"inviteUrl":{"anyOf":[{"type":"string","format":"uri","maxLength":2048},{"type":"null"}]}},"required":["name"],"additionalProperties":false},{"type":"null"}]},"agreementDealId":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"clientWorkspaceId":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"clientSubOrganizationId":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]}},"additionalProperties":false},"DealKpiApiRecord":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":256},"dealId":{"type":"string","minLength":1,"maxLength":256},"issueInitiativeTaskId":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"legacyInitiativeId":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"kpiKey":{"type":"string","maxLength":128},"label":{"type":"string","maxLength":300},"unit":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}]},"periodStart":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"periodEnd":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"targetValue":{"anyOf":[{"type":"number"},{"type":"null"}]},"actualValue":{"anyOf":[{"type":"number"},{"type":"null"}]},"status":{"type":"string","maxLength":100},"source":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}]},"notes":{"anyOf":[{"type":"string","maxLength":4000},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","dealId","issueInitiativeTaskId","legacyInitiativeId","kpiKey","label","unit","periodStart","periodEnd","targetValue","actualValue","status","source","notes","createdAt","updatedAt"],"additionalProperties":false},"DealKpiCreateRequest":{"type":"object","properties":{"issueInitiativeTaskId":{"type":"string","minLength":1,"maxLength":256},"kpiKey":{"type":"string","minLength":1,"maxLength":128},"label":{"type":"string","minLength":1,"maxLength":300},"unit":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}]},"periodStart":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"periodEnd":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"targetValue":{"anyOf":[{"type":"number"},{"type":"null"}]},"actualValue":{"anyOf":[{"type":"number"},{"type":"null"}]},"status":{"type":"string","minLength":1,"maxLength":100},"source":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}]},"notes":{"anyOf":[{"type":"string","maxLength":4000},{"type":"null"}]}},"required":["issueInitiativeTaskId","kpiKey","label"],"additionalProperties":false},"DealKpiUpdateRequest":{"type":"object","properties":{"issueInitiativeTaskId":{"type":"string","minLength":1,"maxLength":256},"kpiKey":{"type":"string","minLength":1,"maxLength":128},"label":{"type":"string","minLength":1,"maxLength":300},"unit":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}]},"periodStart":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"periodEnd":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"targetValue":{"anyOf":[{"type":"number"},{"type":"null"}]},"actualValue":{"anyOf":[{"type":"number"},{"type":"null"}]},"status":{"type":"string","minLength":1,"maxLength":100},"source":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}]},"notes":{"anyOf":[{"type":"string","maxLength":4000},{"type":"null"}]}},"additionalProperties":false},"DealKpiDetailResponse":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":256},"dealId":{"type":"string","minLength":1,"maxLength":256},"issueInitiativeTaskId":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"legacyInitiativeId":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"kpiKey":{"type":"string","maxLength":128},"label":{"type":"string","maxLength":300},"unit":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}]},"periodStart":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"periodEnd":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"targetValue":{"anyOf":[{"type":"number"},{"type":"null"}]},"actualValue":{"anyOf":[{"type":"number"},{"type":"null"}]},"status":{"type":"string","maxLength":100},"source":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}]},"notes":{"anyOf":[{"type":"string","maxLength":4000},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","dealId","issueInitiativeTaskId","legacyInitiativeId","kpiKey","label","unit","periodStart","periodEnd","targetValue","actualValue","status","source","notes","createdAt","updatedAt"],"additionalProperties":false}},"required":["data"],"additionalProperties":false},"DealKpiListResponse":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":256},"dealId":{"type":"string","minLength":1,"maxLength":256},"issueInitiativeTaskId":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"legacyInitiativeId":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"kpiKey":{"type":"string","maxLength":128},"label":{"type":"string","maxLength":300},"unit":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}]},"periodStart":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"periodEnd":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"targetValue":{"anyOf":[{"type":"number"},{"type":"null"}]},"actualValue":{"anyOf":[{"type":"number"},{"type":"null"}]},"status":{"type":"string","maxLength":100},"source":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}]},"notes":{"anyOf":[{"type":"string","maxLength":4000},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","dealId","issueInitiativeTaskId","legacyInitiativeId","kpiKey","label","unit","periodStart","periodEnd","targetValue","actualValue","status","source","notes","createdAt","updatedAt"],"additionalProperties":false},"maxItems":200},"total":{"type":"integer","minimum":0},"nextCursor":{"type":"null"}},"required":["data","total","nextCursor"],"additionalProperties":false},"RealtimeVoiceClientSecretRequest":{"type":"object","properties":{"agentKey":{"type":"string","const":"evanet.dsh"},"context":{"type":"object","properties":{"viewing":{"type":"object","properties":{"view":{"type":"string","minLength":1,"maxLength":200},"entityLabel":{"type":"string","minLength":1,"maxLength":200},"focus":{"type":"string","minLength":1,"maxLength":200},"summary":{"type":"array","items":{"type":"string","minLength":1,"maxLength":200},"maxItems":8}},"required":["view"],"additionalProperties":false},"noun":{"type":"object","properties":{"type":{"type":"string","enum":["ua_client_family","ua_trip","task"]},"id":{"type":"string","minLength":1,"maxLength":256}},"required":["type","id"],"additionalProperties":false},"callSessionId":{"type":"string","minLength":1,"maxLength":200}},"additionalProperties":false,"default":{}}},"required":["agentKey"],"additionalProperties":false},"RealtimeVoiceClientSecretResponse":{"type":"object","properties":{"value":{"type":"string","minLength":1},"expires_at":{"type":"integer","exclusiveMinimum":0}},"required":["value","expires_at"],"additionalProperties":false},"RealtimeVoiceToolExecuteRequest":{"type":"object","properties":{"agentKey":{"type":"string","const":"evanet.dsh"},"context":{"type":"object","properties":{"viewing":{"type":"object","properties":{"view":{"type":"string","minLength":1,"maxLength":200},"entityLabel":{"type":"string","minLength":1,"maxLength":200},"focus":{"type":"string","minLength":1,"maxLength":200},"summary":{"type":"array","items":{"type":"string","minLength":1,"maxLength":200},"maxItems":8}},"required":["view"],"additionalProperties":false},"noun":{"type":"object","properties":{"type":{"type":"string","enum":["ua_client_family","ua_trip","task"]},"id":{"type":"string","minLength":1,"maxLength":256}},"required":["type","id"],"additionalProperties":false},"callSessionId":{"type":"string","minLength":1,"maxLength":200}},"additionalProperties":false,"default":{}},"toolName":{"type":"string","pattern":"^[A-Za-z][A-Za-z0-9_-]{0,63}$"},"arguments":{"anyOf":[{"type":["string","number","boolean","null"]},{"type":"array","items":{}},{"type":"object","additionalProperties":{}}],"default":{}},"callId":{"type":"string","minLength":1,"maxLength":256}},"required":["agentKey","toolName","callId"],"additionalProperties":false},"RealtimeVoiceToolExecuteResponse":{"type":"object","properties":{"result":{"anyOf":[{"type":["string","number","boolean","null"]},{"type":"array","items":{}},{"type":"object","additionalProperties":{}}]}},"required":["result"],"additionalProperties":false},"PiWorkspaceRenameRequest":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":180},"expectedName":{"type":"string","minLength":1,"maxLength":300}},"required":["name","expectedName"],"additionalProperties":false},"PiWorkspaceRenameResponse":{"type":"object","properties":{"data":{"type":"object","properties":{"workspaceId":{"type":"string","minLength":1},"name":{"type":"string","minLength":1,"maxLength":180}},"required":["workspaceId","name"],"additionalProperties":false}},"required":["data"],"additionalProperties":false},"DshDeviceStartRequest":{"type":"object","properties":{"clientName":{"type":"string","minLength":1,"maxLength":100},"browserHandoff":{"type":"boolean","const":true},"connectionType":{"type":"string","enum":["workspace","personal"],"default":"workspace"},"hostKey":{"type":"object","properties":{"publicKey":{"type":"string","pattern":"^[A-Za-z0-9_-]{59}$"}},"required":["publicKey"],"additionalProperties":false},"scopes":{"type":"array","items":{"type":"string","enum":["chat:read","travel:read","tasks:read","deals:read","partners:read","workspace-assistant:read","memory:read","voice:read","emf:read","content:read","chat:write","travel:write","memory:write","content:write","deals:write","partners:write","workspace-assistant:write","workspaces:read","workspaces:rename","members:read","members:write","credentials:read","files:read","integrations:read","notifications:read","notifications:write","audit:read","automations:read","content:personal","people:read","people:write","inbox:personal:read","inbox:personal:draft","comms:share","comms:sync","tasks:write","tasks:approve","billing:read","meetings:write","emf:draft","emf:write","emf:approve","emf:delete","reviews:read","reviews:write","assistant:read","assistant:write","invitations:accept"]},"minItems":1,"maxItems":43}},"required":["clientName","scopes"],"additionalProperties":false},"DshDeviceStartResponse":{"type":"object","properties":{"data":{"type":"object","properties":{"deviceCode":{"type":"string","minLength":32,"maxLength":128},"userCode":{"type":"string","pattern":"^[A-Z2-9]{4}-[A-Z2-9]{4}$"},"verificationUri":{"type":"string","format":"uri"},"browserPostUri":{"type":"string","format":"uri"},"expiresIn":{"type":"integer","minimum":60,"maximum":1800},"interval":{"type":"integer","minimum":1,"maximum":30},"host":{"type":"object","properties":{"keyId":{"type":"string","format":"uuid"},"hostId":{"type":"string","format":"uuid"},"profileId":{"type":"string","format":"uuid"},"fingerprint":{"type":"string","pattern":"^[a-f0-9]{64}$"},"backendEnvironment":{"type":"string","format":"uri","maxLength":256},"challenge":{"type":"string","pattern":"^[A-Za-z0-9_-]{43}$"}},"required":["keyId","hostId","profileId","fingerprint","backendEnvironment","challenge"],"additionalProperties":false}},"required":["deviceCode","userCode","verificationUri","expiresIn","interval"],"additionalProperties":false}},"required":["data"],"additionalProperties":false},"DshDeviceTokenRequest":{"type":"object","properties":{"deviceCode":{"type":"string","minLength":32,"maxLength":128},"hostProof":{"type":"string","pattern":"^[A-Za-z0-9_-]{86}$"}},"required":["deviceCode"],"additionalProperties":false},"DshDeviceTokenResponse":{"anyOf":[{"type":"object","properties":{"data":{"type":"object","properties":{"status":{"type":"string","const":"pending"}},"required":["status"],"additionalProperties":false}},"required":["data"],"additionalProperties":false},{"type":"object","properties":{"data":{"type":"object","properties":{"status":{"type":"string","const":"granted"},"token":{"type":"string","pattern":"^evk_(live|test)_[0-9A-Za-z]{32}$"},"tokenType":{"type":"string","const":"Bearer"},"expiresAt":{"type":"string","format":"date-time"},"user":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":256}},"required":["id"],"additionalProperties":false},"connectionType":{"type":"string","const":"workspace"},"refreshToken":{"type":"string","pattern":"^evr_(live|test)_[0-9A-Za-z]{48}$"},"refreshExpiresAt":{"type":"string","format":"date-time"},"scopes":{"type":"array","items":{"type":"string","enum":["chat:read","travel:read","tasks:read","deals:read","partners:read","workspace-assistant:read","memory:read","voice:read","emf:read","content:read","chat:write","travel:write","memory:write","content:write","deals:write","partners:write","workspace-assistant:write","workspaces:read","workspaces:rename","members:read","members:write","credentials:read","files:read","integrations:read","notifications:read","notifications:write","audit:read","automations:read","content:personal","people:read","people:write","inbox:personal:read","inbox:personal:draft","comms:share","comms:sync","tasks:write","tasks:approve","billing:read","meetings:write","emf:draft","emf:write","emf:approve","emf:delete"]},"maxItems":43},"workspace":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":256},"name":{"type":"string","minLength":1,"maxLength":300},"slug":{"type":"string","minLength":1,"maxLength":256},"vertical":{"type":"string","minLength":1,"maxLength":100}},"required":["id","name","slug","vertical"],"additionalProperties":false}},"required":["status","token","tokenType","expiresAt","user","connectionType","refreshToken","refreshExpiresAt","scopes","workspace"],"additionalProperties":false}},"required":["data"],"additionalProperties":false},{"type":"object","properties":{"data":{"type":"object","properties":{"status":{"type":"string","const":"granted"},"token":{"type":"string","pattern":"^evk_(live|test)_[0-9A-Za-z]{32}$"},"tokenType":{"type":"string","const":"Bearer"},"expiresAt":{"type":"string","format":"date-time"},"user":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":256}},"required":["id"],"additionalProperties":false},"connectionType":{"type":"string","const":"personal"},"scopes":{"type":"array","items":{"type":"string","enum":["reviews:read","reviews:write","deals:read","tasks:read","partners:read","travel:read","chat:read","chat:write","memory:read","memory:write","assistant:read","assistant:write","voice:read","invitations:accept","content:personal","content:read","content:write"]},"maxItems":17},"host":{"type":"object","properties":{"keyId":{"type":"string","format":"uuid"},"hostId":{"type":"string","format":"uuid"},"profileId":{"type":"string","format":"uuid"},"fingerprint":{"type":"string","pattern":"^[a-f0-9]{64}$"},"backendEnvironment":{"type":"string","format":"uri","maxLength":256}},"required":["keyId","hostId","profileId","fingerprint","backendEnvironment"],"additionalProperties":false}},"required":["status","token","tokenType","expiresAt","user","connectionType","scopes"],"additionalProperties":false}},"required":["data"],"additionalProperties":false}]},"DshDeviceRefreshRequest":{"type":"object","properties":{"refreshToken":{"type":"string","pattern":"^evr_(live|test)_[0-9A-Za-z]{48}$"}},"required":["refreshToken"],"additionalProperties":false},"DshDeviceRefreshResponse":{"type":"object","properties":{"data":{"type":"object","properties":{"status":{"type":"string","const":"granted"},"token":{"type":"string","pattern":"^evk_(live|test)_[0-9A-Za-z]{32}$"},"tokenType":{"type":"string","const":"Bearer"},"expiresAt":{"type":"string","format":"date-time"},"user":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":256}},"required":["id"],"additionalProperties":false},"connectionType":{"type":"string","const":"workspace"},"refreshToken":{"type":"string","pattern":"^evr_(live|test)_[0-9A-Za-z]{48}$"},"refreshExpiresAt":{"type":"string","format":"date-time"},"scopes":{"type":"array","items":{"type":"string","enum":["chat:read","travel:read","tasks:read","deals:read","partners:read","workspace-assistant:read","memory:read","voice:read","emf:read","content:read","chat:write","travel:write","memory:write","content:write","deals:write","partners:write","workspace-assistant:write","workspaces:read","workspaces:rename","members:read","members:write","credentials:read","files:read","integrations:read","notifications:read","notifications:write","audit:read","automations:read","content:personal","people:read","people:write","inbox:personal:read","inbox:personal:draft","comms:share","comms:sync","tasks:write","tasks:approve","billing:read","meetings:write","emf:draft","emf:write","emf:approve","emf:delete"]},"maxItems":43},"workspace":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":256},"name":{"type":"string","minLength":1,"maxLength":300},"slug":{"type":"string","minLength":1,"maxLength":256},"vertical":{"type":"string","minLength":1,"maxLength":100}},"required":["id","name","slug","vertical"],"additionalProperties":false}},"required":["status","token","tokenType","expiresAt","user","connectionType","refreshToken","refreshExpiresAt","scopes","workspace"],"additionalProperties":false}},"required":["data"],"additionalProperties":false},"DshTokenRevokeResponse":{"type":"object","properties":{"data":{"type":"object","properties":{"revoked":{"type":"boolean","const":true}},"required":["revoked"],"additionalProperties":false}},"required":["data"],"additionalProperties":false},"ProvisionWorkspaceRequest":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":255},"vertical":{"type":"string","enum":["travel","medical","construction","education","nonprofit","deals","real-estate","community"]},"customerEmail":{"type":"string","format":"email"},"customerName":{"type":"string","minLength":1,"maxLength":255},"slug":{"type":"string","minLength":3,"maxLength":100,"pattern":"^[a-z0-9-]+$"},"planKey":{"type":"string","minLength":1,"default":"platform-standard"},"trialDays":{"type":"integer","minimum":0,"maximum":365},"seats":{"type":"integer","minimum":1,"maximum":1000,"default":1},"discountCode":{"type":"string","minLength":1}},"required":["name","vertical","customerEmail"],"additionalProperties":false},"ProvisionWorkspaceResponse":{"type":"object","properties":{"workspaceId":{"type":"string"},"slug":{"type":"string"},"name":{"type":"string"},"vertical":{"type":"string"},"owner":{"type":"object","properties":{"userId":{"type":"string"},"email":{"type":["string","null"]}},"required":["userId","email"],"additionalProperties":false},"customerEmail":{"type":"string"},"trialEndsAt":{"type":["string","null"]},"trialProvisioned":{"type":"boolean"},"billing":{"type":"object","properties":{"status":{"type":"string"},"seatsAllocated":{"type":"integer","minimum":1}},"required":["status","seatsAllocated"],"additionalProperties":false}},"required":["workspaceId","slug","name","vertical","owner","customerEmail","trialEndsAt","trialProvisioned","billing"],"additionalProperties":false},"BlueprintWorkspaceCreateV2Request":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":255},"slug":{"type":"string","pattern":"^[a-z0-9-]{3,100}$"},"ownerUserId":{"type":"string","minLength":1,"maxLength":128},"blueprintReleaseId":{"type":"string","minLength":1,"maxLength":100},"dataProfile":{"type":"string","enum":["live","sample"]}},"required":["name","slug","ownerUserId","blueprintReleaseId"],"additionalProperties":false},"BlueprintWorkspaceCreateV2Response":{"type":"object","properties":{"workspaceId":{"type":"string"},"name":{"type":"string"},"slug":{"type":"string"},"blueprintReleaseId":{"type":"string"},"state":{"type":"string","enum":["ready","preparing","needs_attention"]},"detail":{"type":["string","null"]}},"required":["workspaceId","name","slug","blueprintReleaseId","state","detail"],"additionalProperties":false},"WorkspacesListResponse":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"workspaceId":{"type":"string"},"slug":{"type":"string"},"name":{"type":"string"},"vertical":{"type":"string"},"subscriptionStatus":{"anyOf":[{"type":"string","enum":["active","trialing","past_due","canceled","expired"]},{"type":"null"}],"description":"Workspace subscription lifecycle (D2 vocabulary): active | trialing | past_due | canceled | expired. null = no subscription row for this workspace (free/default entitlement)."},"trialEndsAt":{"type":["string","null"]},"createdAt":{"type":"string"}},"required":["workspaceId","slug","name","vertical","subscriptionStatus","trialEndsAt","createdAt"],"additionalProperties":false}},"total":{"type":"integer","minimum":0}},"required":["data","total"],"additionalProperties":false},"PartnerWorkspaceSummary":{"type":"object","properties":{"workspaceId":{"type":"string"},"slug":{"type":"string"},"name":{"type":"string"},"vertical":{"type":"string"},"subscriptionStatus":{"anyOf":[{"type":"string","enum":["active","trialing","past_due","canceled","expired"]},{"type":"null"}],"description":"Workspace subscription lifecycle (D2 vocabulary): active | trialing | past_due | canceled | expired. null = no subscription row for this workspace (free/default entitlement)."},"trialEndsAt":{"type":["string","null"]},"createdAt":{"type":"string"}},"required":["workspaceId","slug","name","vertical","subscriptionStatus","trialEndsAt","createdAt"],"additionalProperties":false},"WorkspaceDetailResponse":{"type":"object","properties":{"workspaceId":{"type":"string"},"slug":{"type":"string"},"name":{"type":"string"},"vertical":{"type":"string"},"customerEmail":{"type":["string","null"]},"subscriptionStatus":{"anyOf":[{"type":"string","enum":["active","trialing","past_due","canceled","expired"]},{"type":"null"}],"description":"Workspace subscription lifecycle (D2 vocabulary): active | trialing | past_due | canceled | expired. null = no subscription row for this workspace (free/default entitlement)."},"trialEndsAt":{"type":["string","null"]},"createdAt":{"type":"string"}},"required":["workspaceId","slug","name","vertical","customerEmail","subscriptionStatus","trialEndsAt","createdAt"],"additionalProperties":false},"PartnerBillingOverview":{"type":"object","properties":{"subscription":{"anyOf":[{"type":"object","properties":{"status":{"anyOf":[{"type":"string","enum":["active","trialing","past_due","canceled","expired"]},{"type":"null"}],"description":"Workspace subscription lifecycle (D2 vocabulary): active | trialing | past_due | canceled | expired. null = no subscription row for this workspace (free/default entitlement)."},"seatsAllocated":{"type":"integer","minimum":1},"trialEndsAt":{"type":["string","null"]},"currentPeriodEnd":{"type":["string","null"]}},"required":["status","seatsAllocated","trialEndsAt","currentPeriodEnd"],"additionalProperties":false},{"type":"null"}]},"seats":{"type":"object","properties":{"used":{"type":"integer","minimum":0},"allocated":{"type":"integer","minimum":0}},"required":["used","allocated"],"additionalProperties":false},"estimateMonthlyCents":{"anyOf":[{"type":"integer"},{"type":"null"}]}},"required":["subscription","seats","estimateMonthlyCents"],"additionalProperties":false},"SeatsUpdateRequest":{"type":"object","properties":{"seats":{"type":"integer","minimum":1,"maximum":1000}},"required":["seats"],"additionalProperties":false},"SeatsUpdateResponse":{"type":"object","properties":{"seatsAllocated":{"type":"integer","minimum":1}},"required":["seatsAllocated"],"additionalProperties":false},"CheckoutSessionResponse":{"type":"object","properties":{"url":{"type":"string","format":"uri"}},"required":["url"],"additionalProperties":false},"PersonalAssistantResponse":{"type":"object","properties":{"data":{"type":"object","properties":{"identity":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":256},"email":{"type":"string","format":"email"},"label":{"type":"string","minLength":1,"maxLength":300}},"required":["id","email","label"],"additionalProperties":false},"assistant":{"type":"object","properties":{"assistantName":{"type":"string","minLength":1,"maxLength":80},"preferredName":{"anyOf":[{"type":"string","minLength":1,"maxLength":120},{"type":"null"}]},"locale":{"type":"string","minLength":2,"maxLength":32},"enabled":{"type":"boolean"},"memoryEnabled":{"type":"boolean"},"memoryCaptureMode":{"type":"string","enum":["review","automatic","off"]},"memoryPaused":{"type":"boolean"},"onboardingState":{"type":"string","enum":["pending","in_progress","completed","dismissed"]},"memoryCount":{"type":"integer","minimum":0}},"required":["assistantName","preferredName","locale","enabled","memoryEnabled","memoryCaptureMode","memoryPaused","onboardingState","memoryCount"],"additionalProperties":false}},"required":["identity","assistant"],"additionalProperties":false}},"required":["data"],"additionalProperties":false},"PersonalAssistantUpdateRequest":{"type":"object","properties":{"assistantName":{"type":"string","minLength":1,"maxLength":80},"preferredName":{"anyOf":[{"type":"string","minLength":1,"maxLength":120},{"type":"null"}]},"locale":{"type":"string","minLength":2,"maxLength":32},"enabled":{"type":"boolean"},"memoryEnabled":{"type":"boolean"},"memoryCaptureMode":{"type":"string","enum":["review","automatic","off"]},"memoryPaused":{"type":"boolean"},"onboardingState":{"type":"string","enum":["pending","in_progress","completed","dismissed"]}},"additionalProperties":false},"PersonalMemoryListResponse":{"type":"object","properties":{"data":{"type":"object","properties":{"memories":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":256},"kind":{"type":"string","minLength":1,"maxLength":80},"value":{"type":"string","minLength":1,"maxLength":4000},"evidence":{"anyOf":[{"type":"string","maxLength":4000},{"type":"null"}]},"source":{"type":"string","enum":["manual","onboarding","voice","assistant","import"]},"importance":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}]},"subjectEntityId":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"predicate":{"anyOf":[{"type":"string","minLength":1,"maxLength":120},{"type":"null"}]},"objectEntityId":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"confidence":{"type":"number","minimum":0,"maximum":1},"provenanceMessageId":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"supersedesMemoryId":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"validFrom":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"validTo":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"lastRecalledAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"recallCount":{"type":"integer","minimum":0},"revision":{"type":"integer","exclusiveMinimum":0},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","kind","value","evidence","source","importance","subjectEntityId","predicate","objectEntityId","confidence","provenanceMessageId","supersedesMemoryId","validFrom","validTo","lastRecalledAt","recallCount","revision","createdAt","updatedAt"],"additionalProperties":false},"maxItems":200}},"required":["memories"],"additionalProperties":false}},"required":["data"],"additionalProperties":false},"PersonalMemoryCreateRequest":{"type":"object","properties":{"kind":{"type":"string","minLength":1,"maxLength":80,"default":"fact"},"value":{"type":"string","minLength":1,"maxLength":4000},"evidence":{"type":"string","maxLength":4000},"source":{"type":"string","enum":["manual","onboarding","voice","assistant","import"],"default":"manual"},"importance":{"type":"string","maxLength":80},"subjectEntityId":{"type":"string","minLength":1,"maxLength":256},"predicate":{"type":"string","minLength":1,"maxLength":120},"objectEntityId":{"type":"string","minLength":1,"maxLength":256},"confidence":{"type":"number","minimum":0,"maximum":1,"default":1},"provenanceMessageId":{"type":"string","minLength":1,"maxLength":256},"supersedesMemoryId":{"type":"string","minLength":1,"maxLength":256},"validFrom":{"type":"string","format":"date-time"},"validTo":{"type":"string","format":"date-time"},"idempotencyKey":{"type":"string","minLength":1,"maxLength":256}},"required":["value"],"additionalProperties":false},"PersonalMemoryCreateResponse":{"type":"object","properties":{"data":{"type":"object","properties":{"memory":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":256},"kind":{"type":"string","minLength":1,"maxLength":80},"value":{"type":"string","minLength":1,"maxLength":4000},"evidence":{"anyOf":[{"type":"string","maxLength":4000},{"type":"null"}]},"source":{"type":"string","enum":["manual","onboarding","voice","assistant","import"]},"importance":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}]},"subjectEntityId":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"predicate":{"anyOf":[{"type":"string","minLength":1,"maxLength":120},{"type":"null"}]},"objectEntityId":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"confidence":{"type":"number","minimum":0,"maximum":1},"provenanceMessageId":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"supersedesMemoryId":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"validFrom":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"validTo":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"lastRecalledAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"recallCount":{"type":"integer","minimum":0},"revision":{"type":"integer","exclusiveMinimum":0},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","kind","value","evidence","source","importance","subjectEntityId","predicate","objectEntityId","confidence","provenanceMessageId","supersedesMemoryId","validFrom","validTo","lastRecalledAt","recallCount","revision","createdAt","updatedAt"],"additionalProperties":false}},"required":["memory"],"additionalProperties":false}},"required":["data"],"additionalProperties":false},"PersonalMemoryDeleteResponse":{"type":"object","properties":{"data":{"type":"object","properties":{"forgotten":{"type":"boolean","const":true}},"required":["forgotten"],"additionalProperties":false}},"required":["data"],"additionalProperties":false},"PersonalMemoryDeleteAllRequest":{"type":"object","properties":{"confirmation":{"type":"string","const":"DELETE ALL PERSONAL MEMORIES"}},"required":["confirmation"],"additionalProperties":false},"PersonalMemoryDeleteAllResponse":{"type":"object","properties":{"data":{"type":"object","properties":{"deleted":{"type":"integer","minimum":0}},"required":["deleted"],"additionalProperties":false}},"required":["data"],"additionalProperties":false},"PersonalMemoryExportResponse":{"type":"object","properties":{"data":{"type":"object","properties":{"exportedAt":{"type":"string","format":"date-time"},"assistant":{"type":"object","properties":{"assistantName":{"type":"string","minLength":1,"maxLength":80},"preferredName":{"anyOf":[{"type":"string","minLength":1,"maxLength":120},{"type":"null"}]},"locale":{"type":"string","minLength":2,"maxLength":32},"enabled":{"type":"boolean"},"memoryEnabled":{"type":"boolean"},"memoryCaptureMode":{"type":"string","enum":["review","automatic","off"]},"memoryPaused":{"type":"boolean"},"onboardingState":{"type":"string","enum":["pending","in_progress","completed","dismissed"]}},"required":["assistantName","preferredName","locale","enabled","memoryEnabled","memoryCaptureMode","memoryPaused","onboardingState"],"additionalProperties":false},"memories":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":256},"kind":{"type":"string","minLength":1,"maxLength":80},"value":{"type":"string","minLength":1,"maxLength":4000},"evidence":{"anyOf":[{"type":"string","maxLength":4000},{"type":"null"}]},"source":{"type":"string","enum":["manual","onboarding","voice","assistant","import"]},"importance":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}]},"subjectEntityId":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"predicate":{"anyOf":[{"type":"string","minLength":1,"maxLength":120},{"type":"null"}]},"objectEntityId":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"confidence":{"type":"number","minimum":0,"maximum":1},"provenanceMessageId":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"supersedesMemoryId":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"validFrom":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"validTo":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"lastRecalledAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"recallCount":{"type":"integer","minimum":0},"revision":{"type":"integer","exclusiveMinimum":0},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"state":{"type":"string","enum":["active","superseded","archived"]}},"required":["id","kind","value","evidence","source","importance","subjectEntityId","predicate","objectEntityId","confidence","provenanceMessageId","supersedesMemoryId","validFrom","validTo","lastRecalledAt","recallCount","revision","createdAt","updatedAt","state"],"additionalProperties":false}},"conversation":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":256},"role":{"type":"string","enum":["user","assistant"]},"content":{"type":"string","minLength":1,"maxLength":8000},"source":{"type":"string","enum":["chat","voice"]},"cards":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"kind":{"type":"string","const":"summary"},"title":{"type":"string","minLength":1,"maxLength":120},"body":{"type":"string","minLength":1,"maxLength":1000}},"required":["kind","title","body"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"checklist"},"title":{"type":"string","minLength":1,"maxLength":120},"items":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string","minLength":1,"maxLength":240},"done":{"type":"boolean","default":false}},"required":["label"],"additionalProperties":false},"minItems":1,"maxItems":8}},"required":["kind","title","items"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"facts"},"title":{"type":"string","minLength":1,"maxLength":120},"items":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string","minLength":1,"maxLength":120},"value":{"type":"string","minLength":1,"maxLength":360}},"required":["label","value"],"additionalProperties":false},"minItems":1,"maxItems":8}},"required":["kind","title","items"],"additionalProperties":false}]},"maxItems":4},"sessionId":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"groundingContext":{"type":"object","properties":{"view":{"type":"string","minLength":1,"maxLength":200},"entityLabel":{"type":"string","minLength":1,"maxLength":200},"focus":{"type":"string","minLength":1,"maxLength":200},"project":{"type":"string","minLength":1,"maxLength":200},"sessionTitle":{"type":"string","minLength":1,"maxLength":240},"summary":{"type":"array","items":{"type":"string","minLength":1,"maxLength":240},"maxItems":8},"sessionBrief":{"type":"object","properties":{"version":{"type":"number","const":1},"status":{"type":"string","enum":["ready","working","blocked","failed"]},"latestIntent":{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":240},"seq":{"type":"integer","minimum":0}},"required":["text","seq"],"additionalProperties":false},"recentTurns":{"type":"array","items":{"type":"object","properties":{"turn":{"type":"integer","minimum":0},"seq":{"type":"integer","minimum":0},"prompt":{"type":"string","maxLength":240},"response":{"type":"string","maxLength":360},"outcome":{"type":"string","enum":["completed","aborted","blocked","error","max-tokens","interrupted"]}},"required":["turn","seq","prompt","response"],"additionalProperties":false},"maxItems":5},"recentTools":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":96},"status":{"type":"string","enum":["running","completed","failed"]},"callSeq":{"type":"integer","minimum":0},"resultSeq":{"type":"integer","minimum":0},"errorCode":{"type":"string","minLength":1,"maxLength":96}},"required":["name","status","callSeq"],"additionalProperties":false},"maxItems":8},"totals":{"type":"object","properties":{"turns":{"type":"integer","minimum":0},"toolCalls":{"type":"integer","minimum":0},"toolFailures":{"type":"integer","minimum":0}},"required":["turns","toolCalls","toolFailures"],"additionalProperties":false}},"required":["version","status","recentTurns","recentTools","totals"],"additionalProperties":false},"sessionDirectory":{"type":"object","properties":{"version":{"type":"number","const":1},"scope":{"type":"string","const":"desktop-profile"},"counts":{"type":"object","properties":{"visible":{"type":"integer","minimum":0,"maximum":100000},"runningNow":{"type":"integer","minimum":0,"maximum":100000},"needsAttention":{"type":"integer","minimum":0,"maximum":100000}},"required":["visible","runningNow","needsAttention"],"additionalProperties":false},"sessions":{"type":"array","items":{"type":"object","properties":{"ref":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,31}$"},"title":{"type":"string","minLength":1,"maxLength":200},"project":{"type":"string","minLength":1,"maxLength":120},"selected":{"type":"boolean"},"status":{"type":"string","enum":["working","ready","completed","blocked","failed"]},"updatedAt":{"type":"integer","minimum":0},"latestIntent":{"type":"string","minLength":1,"maxLength":240},"latestResult":{"type":"string","minLength":1,"maxLength":360}},"required":["ref","title","selected","status","updatedAt"],"additionalProperties":false},"maxItems":12}},"required":["version","scope","counts","sessions"],"additionalProperties":false}},"additionalProperties":false},"retained":{"type":"boolean"},"createdAt":{"type":"string","format":"date-time"},"conversationId":{"type":"string","minLength":1}},"required":["id","role","content","source","cards","sessionId","groundingContext","retained","createdAt"],"additionalProperties":false}},"workspacePromotions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":256},"personalMemoryId":{"type":"string","minLength":1,"maxLength":256},"personalMemoryRevision":{"type":"integer","exclusiveMinimum":0},"state":{"type":"string","enum":["pending","confirmed","expired","cancelled"]},"workspaceId":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"workspaceLabel":{"anyOf":[{"type":"string","minLength":1,"maxLength":300},{"type":"null"}]},"workspaceMemoryId":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"authorizationMethod":{"anyOf":[{"type":"string","enum":["browser_session"]},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time"},"expiresAt":{"type":"string","format":"date-time"},"confirmedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]}},"required":["id","personalMemoryId","personalMemoryRevision","state","workspaceId","workspaceLabel","workspaceMemoryId","authorizationMethod","createdAt","expiresAt","confirmedAt"],"additionalProperties":false}}},"required":["exportedAt","assistant","memories","conversation","workspacePromotions"],"additionalProperties":false}},"required":["data"],"additionalProperties":false},"PersonalVoiceClientSecretRequest":{"type":"object","properties":{"agentKey":{"type":"string","const":"evanet.personal"},"context":{"type":"object","properties":{"viewing":{"type":"object","properties":{"view":{"type":"string","minLength":1,"maxLength":200},"entityLabel":{"type":"string","minLength":1,"maxLength":200},"focus":{"type":"string","minLength":1,"maxLength":200},"summary":{"type":"array","items":{"type":"string","minLength":1,"maxLength":200},"maxItems":8}},"required":["view"],"additionalProperties":false},"callSessionId":{"type":"string","minLength":1,"maxLength":200},"assistantSessionId":{"type":"string","minLength":1,"maxLength":256}},"additionalProperties":false,"default":{}}},"required":["agentKey"],"additionalProperties":false},"PersonalVoiceClientSecretResponse":{"type":"object","properties":{"value":{"type":"string","minLength":1},"expires_at":{"type":"integer","exclusiveMinimum":0},"tools":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","const":"function"},"name":{"type":"string","pattern":"^[A-Za-z][A-Za-z0-9_-]{0,63}$"},"description":{"type":"string","minLength":1,"maxLength":4096},"parameters":{"type":"object","additionalProperties":{"anyOf":[{"type":["string","number","boolean","null"]},{"type":"array","items":{}},{"type":"object","additionalProperties":{}}]}}},"required":["type","name","description","parameters"],"additionalProperties":false},"maxItems":128}},"required":["value","expires_at","tools"],"additionalProperties":false},"PersonalVoiceToolExecuteRequest":{"type":"object","properties":{"agentKey":{"type":"string","const":"evanet.personal"},"context":{"type":"object","properties":{"viewing":{"type":"object","properties":{"view":{"type":"string","minLength":1,"maxLength":200},"entityLabel":{"type":"string","minLength":1,"maxLength":200},"focus":{"type":"string","minLength":1,"maxLength":200},"summary":{"type":"array","items":{"type":"string","minLength":1,"maxLength":200},"maxItems":8}},"required":["view"],"additionalProperties":false},"callSessionId":{"type":"string","minLength":1,"maxLength":200},"assistantSessionId":{"type":"string","minLength":1,"maxLength":256}},"additionalProperties":false,"default":{}},"toolName":{"type":"string","pattern":"^[A-Za-z][A-Za-z0-9_-]{0,63}$"},"arguments":{"anyOf":[{"type":["string","number","boolean","null"]},{"type":"array","items":{}},{"type":"object","additionalProperties":{}}],"default":{}},"callId":{"type":"string","minLength":1,"maxLength":256}},"required":["agentKey","toolName","callId"],"additionalProperties":false},"PersonalVoiceToolExecuteResponse":{"type":"object","properties":{"result":{"anyOf":[{"type":["string","number","boolean","null"]},{"type":"array","items":{}},{"type":"object","additionalProperties":{}}]}},"required":["result"],"additionalProperties":false},"FileScribeMeetingRequest":{"type":"object","properties":{"mode":{"type":"string","enum":["commit","dry_run"],"default":"commit"},"meeting":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":256},"title":{"type":"string","minLength":1,"maxLength":300},"startedAt":{"type":"string","format":"date-time"},"endedAt":{"type":"string","format":"date-time"},"source":{"type":"string","enum":["dsh","scribe"],"default":"dsh"}},"required":["id","title","startedAt"],"additionalProperties":false},"segments":{"type":"array","items":{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":4000},"startMs":{"type":"integer","minimum":0},"endMs":{"type":"integer","minimum":0},"speakerId":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"speakerLabel":{"anyOf":[{"type":"string","minLength":1,"maxLength":300},{"type":"null"}]},"confidence":{"anyOf":[{"type":"number","minimum":0,"maximum":1},{"type":"null"}]}},"required":["text","startMs","endMs"],"additionalProperties":false},"minItems":1,"maxItems":5000}},"required":["meeting","segments"],"additionalProperties":false},"FileScribeMeetingResponse":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"string","minLength":1},"meetingId":{"type":"string","minLength":1},"workspaceId":{"type":"string","minLength":1},"segmentCount":{"type":"integer","exclusiveMinimum":0},"transcriptChars":{"type":"integer","exclusiveMinimum":0},"createdAt":{"type":"string","format":"date-time"},"dryRun":{"type":"boolean"}},"required":["meetingId","workspaceId","segmentCount","transcriptChars","dryRun"],"additionalProperties":false}},"required":["data"],"additionalProperties":false},"EmfWorkspaceResponse":{"type":"object","properties":{"data":{"type":"object","properties":{"key":{"type":"string","minLength":1,"maxLength":256},"name":{"type":"string","minLength":1,"maxLength":300},"mode":{"type":"string","enum":["live","demo"]},"readOnly":{"type":"boolean","const":true},"verticals":{"type":"array","items":{"type":"string","minLength":1,"maxLength":256},"minItems":1,"maxItems":32},"groups":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string","minLength":1,"maxLength":300},"source":{"type":"string","minLength":1,"maxLength":300},"entities":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","minLength":1,"maxLength":256},"segment":{"type":"string","minLength":1,"maxLength":256},"label":{"type":"string","minLength":1,"maxLength":300},"labelPlural":{"type":"string","minLength":1,"maxLength":300},"titleField":{"type":"string","minLength":1,"maxLength":256},"fields":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","minLength":1,"maxLength":256},"label":{"type":"string","minLength":1,"maxLength":300},"type":{"type":"string","minLength":1,"maxLength":64}},"required":["key","label","type"],"additionalProperties":false},"maxItems":24}},"required":["key","segment","label","labelPlural","titleField","fields"],"additionalProperties":false},"maxItems":100}},"required":["label","source","entities"],"additionalProperties":false},"maxItems":100}},"required":["key","name","mode","readOnly","verticals","groups"],"additionalProperties":false}},"required":["data"],"additionalProperties":false},"EmfWorkspaceCapabilitiesResponse":{"type":"object","properties":{"data":{"type":"object","properties":{"contractVersion":{"type":"number","const":2},"key":{"type":"string","minLength":1,"maxLength":256,"pattern":"^[a-z][a-z0-9_.-]*$"},"name":{"type":"string","minLength":1,"maxLength":300},"mode":{"type":"string","enum":["live","demo"]},"readOnly":{"type":"boolean"},"access":{"type":"object","properties":{"read":{"type":"boolean"},"draft":{"type":"boolean"},"directWrite":{"type":"boolean"},"approve":{"type":"boolean"},"hardDelete":{"type":"boolean"}},"required":["read","draft","directWrite","approve","hardDelete"],"additionalProperties":false},"verticals":{"type":"array","items":{"type":"string","minLength":1,"maxLength":259},"minItems":1,"maxItems":32},"groups":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string","minLength":1,"maxLength":300},"source":{"type":"string","minLength":1,"maxLength":300},"entities":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","minLength":1,"maxLength":256,"pattern":"^[a-z][a-z0-9_.-]*$"},"segment":{"type":"string","minLength":1,"maxLength":256,"pattern":"^[a-z][a-z0-9_-]*$"},"label":{"type":"string","minLength":1,"maxLength":300},"labelPlural":{"type":"string","minLength":1,"maxLength":300},"titleField":{"type":"string","minLength":1,"maxLength":256,"pattern":"^[a-z][a-z0-9_.-]*$"},"fields":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","minLength":1,"maxLength":256,"pattern":"^[a-z][a-z0-9_.-]*$"},"label":{"type":"string","minLength":1,"maxLength":300},"type":{"type":"string","enum":["text","textarea","integer","number","money","date","datetime","boolean","status","ref","refs","refAny","json","image"]},"required":{"type":"boolean"},"visibility":{"type":"string","enum":["public","internal"]},"editable":{"anyOf":[{"type":"boolean"},{"type":"object","properties":{"status":{"type":"array","items":{"type":"string","minLength":1,"maxLength":256,"pattern":"^[a-z][a-z0-9_.-]*$"},"minItems":1,"maxItems":32}},"required":["status"],"additionalProperties":false}]},"initial":{"anyOf":[{"type":"string","maxLength":4000},{"type":"number"},{"type":"boolean"},{"type":"null"}]},"help":{"type":"string","maxLength":1000},"enumValues":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string","minLength":1,"maxLength":256},"label":{"type":"string","minLength":1,"maxLength":300}},"required":["value","label"],"additionalProperties":false},"maxItems":100},"reference":{"type":"object","properties":{"entity":{"type":"string","minLength":1,"maxLength":256,"pattern":"^[a-z][a-z0-9_.-]*$"},"multiple":{"type":"boolean"}},"required":["entity","multiple"],"additionalProperties":false},"constraints":{"type":"object","properties":{"min":{"type":"number"},"max":{"type":"number"},"pattern":{"type":"string","minLength":1,"maxLength":512}},"additionalProperties":false}},"required":["key","label","type","required","visibility","editable"],"additionalProperties":false},"maxItems":100},"capabilities":{"type":"object","properties":{"create":{"type":"boolean"},"update":{"type":"boolean"},"archive":{"type":"boolean"},"restore":{"type":"boolean"},"hardDelete":{"type":"boolean"},"actions":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","minLength":1,"maxLength":256,"pattern":"^[a-z][a-z0-9_.-]*$"},"label":{"type":"string","minLength":1,"maxLength":300},"risk":{"type":"string","enum":["low","medium","high","destructive"]}},"required":["key","label","risk"],"additionalProperties":false},"maxItems":100},"transitions":{"type":"array","items":{"type":"object","properties":{"to":{"type":"string","minLength":1,"maxLength":256,"pattern":"^[a-z][a-z0-9_.-]*$"},"label":{"type":"string","minLength":1,"maxLength":300},"risk":{"type":"string","enum":["low","medium","high","destructive"]}},"required":["to","label","risk"],"additionalProperties":false},"maxItems":100}},"required":["create","update","archive","restore","hardDelete","actions","transitions"],"additionalProperties":false}},"required":["key","segment","label","labelPlural","titleField","fields","capabilities"],"additionalProperties":false},"maxItems":100}},"required":["label","source","entities"],"additionalProperties":false},"maxItems":100}},"required":["contractVersion","key","name","mode","readOnly","access","verticals","groups"],"additionalProperties":false}},"required":["data"],"additionalProperties":false},"EmfWorkspaceReadResponse":{"anyOf":[{"type":"object","properties":{"data":{"type":"object","properties":{"key":{"type":"string","minLength":1,"maxLength":256},"name":{"type":"string","minLength":1,"maxLength":300},"mode":{"type":"string","enum":["live","demo"]},"readOnly":{"type":"boolean","const":true},"verticals":{"type":"array","items":{"type":"string","minLength":1,"maxLength":256},"minItems":1,"maxItems":32},"groups":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string","minLength":1,"maxLength":300},"source":{"type":"string","minLength":1,"maxLength":300},"entities":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","minLength":1,"maxLength":256},"segment":{"type":"string","minLength":1,"maxLength":256},"label":{"type":"string","minLength":1,"maxLength":300},"labelPlural":{"type":"string","minLength":1,"maxLength":300},"titleField":{"type":"string","minLength":1,"maxLength":256},"fields":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","minLength":1,"maxLength":256},"label":{"type":"string","minLength":1,"maxLength":300},"type":{"type":"string","minLength":1,"maxLength":64}},"required":["key","label","type"],"additionalProperties":false},"maxItems":24}},"required":["key","segment","label","labelPlural","titleField","fields"],"additionalProperties":false},"maxItems":100}},"required":["label","source","entities"],"additionalProperties":false},"maxItems":100}},"required":["key","name","mode","readOnly","verticals","groups"],"additionalProperties":false}},"required":["data"],"additionalProperties":false},{"type":"object","properties":{"data":{"type":"object","properties":{"contractVersion":{"type":"number","const":2},"key":{"type":"string","minLength":1,"maxLength":256,"pattern":"^[a-z][a-z0-9_.-]*$"},"name":{"type":"string","minLength":1,"maxLength":300},"mode":{"type":"string","enum":["live","demo"]},"readOnly":{"type":"boolean"},"access":{"type":"object","properties":{"read":{"type":"boolean"},"draft":{"type":"boolean"},"directWrite":{"type":"boolean"},"approve":{"type":"boolean"},"hardDelete":{"type":"boolean"}},"required":["read","draft","directWrite","approve","hardDelete"],"additionalProperties":false},"verticals":{"type":"array","items":{"type":"string","minLength":1,"maxLength":259},"minItems":1,"maxItems":32},"groups":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string","minLength":1,"maxLength":300},"source":{"type":"string","minLength":1,"maxLength":300},"entities":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","minLength":1,"maxLength":256,"pattern":"^[a-z][a-z0-9_.-]*$"},"segment":{"type":"string","minLength":1,"maxLength":256,"pattern":"^[a-z][a-z0-9_-]*$"},"label":{"type":"string","minLength":1,"maxLength":300},"labelPlural":{"type":"string","minLength":1,"maxLength":300},"titleField":{"type":"string","minLength":1,"maxLength":256,"pattern":"^[a-z][a-z0-9_.-]*$"},"fields":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","minLength":1,"maxLength":256,"pattern":"^[a-z][a-z0-9_.-]*$"},"label":{"type":"string","minLength":1,"maxLength":300},"type":{"type":"string","enum":["text","textarea","integer","number","money","date","datetime","boolean","status","ref","refs","refAny","json","image"]},"required":{"type":"boolean"},"visibility":{"type":"string","enum":["public","internal"]},"editable":{"anyOf":[{"type":"boolean"},{"type":"object","properties":{"status":{"type":"array","items":{"type":"string","minLength":1,"maxLength":256,"pattern":"^[a-z][a-z0-9_.-]*$"},"minItems":1,"maxItems":32}},"required":["status"],"additionalProperties":false}]},"initial":{"anyOf":[{"type":"string","maxLength":4000},{"type":"number"},{"type":"boolean"},{"type":"null"}]},"help":{"type":"string","maxLength":1000},"enumValues":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string","minLength":1,"maxLength":256},"label":{"type":"string","minLength":1,"maxLength":300}},"required":["value","label"],"additionalProperties":false},"maxItems":100},"reference":{"type":"object","properties":{"entity":{"type":"string","minLength":1,"maxLength":256,"pattern":"^[a-z][a-z0-9_.-]*$"},"multiple":{"type":"boolean"}},"required":["entity","multiple"],"additionalProperties":false},"constraints":{"type":"object","properties":{"min":{"type":"number"},"max":{"type":"number"},"pattern":{"type":"string","minLength":1,"maxLength":512}},"additionalProperties":false}},"required":["key","label","type","required","visibility","editable"],"additionalProperties":false},"maxItems":100},"capabilities":{"type":"object","properties":{"create":{"type":"boolean"},"update":{"type":"boolean"},"archive":{"type":"boolean"},"restore":{"type":"boolean"},"hardDelete":{"type":"boolean"},"actions":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","minLength":1,"maxLength":256,"pattern":"^[a-z][a-z0-9_.-]*$"},"label":{"type":"string","minLength":1,"maxLength":300},"risk":{"type":"string","enum":["low","medium","high","destructive"]}},"required":["key","label","risk"],"additionalProperties":false},"maxItems":100},"transitions":{"type":"array","items":{"type":"object","properties":{"to":{"type":"string","minLength":1,"maxLength":256,"pattern":"^[a-z][a-z0-9_.-]*$"},"label":{"type":"string","minLength":1,"maxLength":300},"risk":{"type":"string","enum":["low","medium","high","destructive"]}},"required":["to","label","risk"],"additionalProperties":false},"maxItems":100}},"required":["create","update","archive","restore","hardDelete","actions","transitions"],"additionalProperties":false}},"required":["key","segment","label","labelPlural","titleField","fields","capabilities"],"additionalProperties":false},"maxItems":100}},"required":["label","source","entities"],"additionalProperties":false},"maxItems":100}},"required":["contractVersion","key","name","mode","readOnly","access","verticals","groups"],"additionalProperties":false}},"required":["data"],"additionalProperties":false}]},"EmfRowsResponse":{"type":"object","properties":{"data":{"type":"object","properties":{"entity":{"type":"object","properties":{"key":{"type":"string","minLength":1,"maxLength":256},"segment":{"type":"string","minLength":1,"maxLength":256},"label":{"type":"string","minLength":1,"maxLength":300},"labelPlural":{"type":"string","minLength":1,"maxLength":300},"titleField":{"type":"string","minLength":1,"maxLength":256},"fields":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","minLength":1,"maxLength":256},"label":{"type":"string","minLength":1,"maxLength":300},"type":{"type":"string","minLength":1,"maxLength":64}},"required":["key","label","type"],"additionalProperties":false},"maxItems":24}},"required":["key","segment","label","labelPlural","titleField","fields"],"additionalProperties":false},"rows":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":512},"title":{"type":"string","minLength":1,"maxLength":1000},"values":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","minLength":1,"maxLength":256},"label":{"type":"string","minLength":1,"maxLength":300},"type":{"type":"string","minLength":1,"maxLength":64},"value":{"anyOf":[{"type":"string","maxLength":4000},{"type":"null"}]}},"required":["key","label","type","value"],"additionalProperties":false},"maxItems":24}},"required":["id","title","values"],"additionalProperties":false},"maxItems":50},"total":{"type":"integer","minimum":0}},"required":["entity","rows","total"],"additionalProperties":false}},"required":["data"],"additionalProperties":false},"EmfRecordDetailResponse":{"type":"object","properties":{"data":{"type":"object","properties":{"contractVersion":{"type":"number","const":2},"entity":{"type":"object","properties":{"key":{"type":"string","minLength":1,"maxLength":256,"pattern":"^[a-z][a-z0-9_.-]*$"},"segment":{"type":"string","minLength":1,"maxLength":256,"pattern":"^[a-z][a-z0-9_-]*$"},"label":{"type":"string","minLength":1,"maxLength":300},"labelPlural":{"type":"string","minLength":1,"maxLength":300},"titleField":{"type":"string","minLength":1,"maxLength":256,"pattern":"^[a-z][a-z0-9_.-]*$"},"fields":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","minLength":1,"maxLength":256,"pattern":"^[a-z][a-z0-9_.-]*$"},"label":{"type":"string","minLength":1,"maxLength":300},"type":{"type":"string","enum":["text","textarea","integer","number","money","date","datetime","boolean","status","ref","refs","refAny","json","image"]},"required":{"type":"boolean"},"visibility":{"type":"string","enum":["public","internal"]},"editable":{"anyOf":[{"type":"boolean"},{"type":"object","properties":{"status":{"type":"array","items":{"type":"string","minLength":1,"maxLength":256,"pattern":"^[a-z][a-z0-9_.-]*$"},"minItems":1,"maxItems":32}},"required":["status"],"additionalProperties":false}]},"initial":{"anyOf":[{"type":"string","maxLength":4000},{"type":"number"},{"type":"boolean"},{"type":"null"}]},"help":{"type":"string","maxLength":1000},"enumValues":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string","minLength":1,"maxLength":256},"label":{"type":"string","minLength":1,"maxLength":300}},"required":["value","label"],"additionalProperties":false},"maxItems":100},"reference":{"type":"object","properties":{"entity":{"type":"string","minLength":1,"maxLength":256,"pattern":"^[a-z][a-z0-9_.-]*$"},"multiple":{"type":"boolean"}},"required":["entity","multiple"],"additionalProperties":false},"constraints":{"type":"object","properties":{"min":{"type":"number"},"max":{"type":"number"},"pattern":{"type":"string","minLength":1,"maxLength":512}},"additionalProperties":false}},"required":["key","label","type","required","visibility","editable"],"additionalProperties":false},"maxItems":100},"capabilities":{"type":"object","properties":{"create":{"type":"boolean"},"update":{"type":"boolean"},"archive":{"type":"boolean"},"restore":{"type":"boolean"},"hardDelete":{"type":"boolean"},"actions":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","minLength":1,"maxLength":256,"pattern":"^[a-z][a-z0-9_.-]*$"},"label":{"type":"string","minLength":1,"maxLength":300},"risk":{"type":"string","enum":["low","medium","high","destructive"]}},"required":["key","label","risk"],"additionalProperties":false},"maxItems":100},"transitions":{"type":"array","items":{"type":"object","properties":{"to":{"type":"string","minLength":1,"maxLength":256,"pattern":"^[a-z][a-z0-9_.-]*$"},"label":{"type":"string","minLength":1,"maxLength":300},"risk":{"type":"string","enum":["low","medium","high","destructive"]}},"required":["to","label","risk"],"additionalProperties":false},"maxItems":100}},"required":["create","update","archive","restore","hardDelete","actions","transitions"],"additionalProperties":false}},"required":["key","segment","label","labelPlural","titleField","fields","capabilities"],"additionalProperties":false},"record":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":512},"title":{"type":"string","minLength":1,"maxLength":1000},"revision":{"type":"string","minLength":1,"maxLength":256},"archived":{"type":"boolean"},"values":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","minLength":1,"maxLength":256,"pattern":"^[a-z][a-z0-9_.-]*$"},"label":{"type":"string","minLength":1,"maxLength":300},"type":{"type":"string","enum":["text","textarea","integer","number","money","date","datetime","boolean","status","ref","refs","refAny","json","image"]},"value":{}},"required":["key","label","type","value"],"additionalProperties":false},"maxItems":100},"capabilities":{"type":"object","properties":{"create":{"type":"boolean"},"update":{"type":"boolean"},"archive":{"type":"boolean"},"restore":{"type":"boolean"},"hardDelete":{"type":"boolean"},"actions":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","minLength":1,"maxLength":256,"pattern":"^[a-z][a-z0-9_.-]*$"},"label":{"type":"string","minLength":1,"maxLength":300},"risk":{"type":"string","enum":["low","medium","high","destructive"]}},"required":["key","label","risk"],"additionalProperties":false},"maxItems":100},"transitions":{"type":"array","items":{"type":"object","properties":{"to":{"type":"string","minLength":1,"maxLength":256,"pattern":"^[a-z][a-z0-9_.-]*$"},"label":{"type":"string","minLength":1,"maxLength":300},"risk":{"type":"string","enum":["low","medium","high","destructive"]}},"required":["to","label","risk"],"additionalProperties":false},"maxItems":100}},"required":["create","update","archive","restore","hardDelete","actions","transitions"],"additionalProperties":false}},"required":["id","title","revision","archived","values","capabilities"],"additionalProperties":false},"relations":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","minLength":1,"maxLength":256,"pattern":"^[a-z][a-z0-9_.-]*$"},"label":{"type":"string","minLength":1,"maxLength":300},"segment":{"type":"string","minLength":1,"maxLength":256,"pattern":"^[a-z][a-z0-9_-]*$"},"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":512},"title":{"type":"string","minLength":1,"maxLength":1000}},"required":["id","title"],"additionalProperties":false},"maxItems":50}},"required":["key","label","segment","items"],"additionalProperties":false},"maxItems":100},"deleteBlock":{"type":"object","properties":{"blocked":{"type":"boolean"},"references":{"type":"array","items":{"type":"object","properties":{"segment":{"type":"string","minLength":1,"maxLength":256,"pattern":"^[a-z][a-z0-9_-]*$"},"label":{"type":"string","minLength":1,"maxLength":300},"count":{"type":"integer","minimum":1,"maximum":1000000}},"required":["segment","label","count"],"additionalProperties":false},"maxItems":100}},"required":["blocked","references"],"additionalProperties":false}},"required":["contractVersion","entity","record","relations","deleteBlock"],"additionalProperties":false}},"required":["data"],"additionalProperties":false},"SubmitEmfOperationRequest":{"type":"object","properties":{"mode":{"type":"string","enum":["draft","apply-now"]},"segment":{"type":"string","minLength":1,"maxLength":256,"pattern":"^[a-z][a-z0-9_-]*$"},"operation":{"type":"string","enum":["create","update","archive","restore","delete","action","transition"]},"rowId":{"type":"string","minLength":1,"maxLength":512},"baseRevision":{"type":"string","minLength":1,"maxLength":256},"patch":{"type":"object","additionalProperties":{},"propertyNames":{"minLength":1,"maxLength":256}},"actionKey":{"type":"string","minLength":1,"maxLength":256,"pattern":"^[a-z][a-z0-9_.-]*$"},"transitionTo":{"type":"string","minLength":1,"maxLength":256,"pattern":"^[a-z][a-z0-9_.-]*$"},"input":{"type":"object","additionalProperties":{},"propertyNames":{"minLength":1,"maxLength":256}},"changesetId":{"type":"string","minLength":1,"maxLength":256}},"required":["mode","segment","operation"],"additionalProperties":false},"EmfDraftResponse":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":256},"kind":{"type":"string","enum":["emf.row.create","emf.row.update","emf.row.archive","emf.row.restore","emf.row.delete","emf.action.invoke","emf.state.transition"]},"status":{"type":"string","enum":["pending","committing","committed","discarded","expired","conflict","failed","reverted"]},"workspaceId":{"type":"string","minLength":1,"maxLength":256},"proposedBy":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":256},"label":{"type":"string","minLength":1,"maxLength":300},"source":{"type":"string","enum":["human","jai","automation","api"]}},"required":["id","label","source"],"additionalProperties":false},"requiredApproverRole":{"type":"string","minLength":1,"maxLength":100},"payload":{"type":"object","properties":{"contractVersion":{"type":"number","const":1},"segment":{"type":"string","minLength":1,"maxLength":256,"pattern":"^[a-z][a-z0-9_-]*$"},"operation":{"type":"string","enum":["create","update","archive","restore","delete","action","transition"]},"rowId":{"type":"string","minLength":1,"maxLength":512},"baseRevision":{"type":"string","minLength":1,"maxLength":256},"patch":{"type":"object","additionalProperties":{},"propertyNames":{"minLength":1,"maxLength":256}},"actionKey":{"type":"string","minLength":1,"maxLength":256,"pattern":"^[a-z][a-z0-9_.-]*$"},"transitionTo":{"type":"string","minLength":1,"maxLength":256,"pattern":"^[a-z][a-z0-9_.-]*$"},"input":{"type":"object","additionalProperties":{},"propertyNames":{"minLength":1,"maxLength":256}},"risk":{"type":"string","enum":["low","medium","high","destructive"]},"validationSnapshot":{"type":"object","properties":{"manifestKey":{"type":"string","minLength":1,"maxLength":256,"pattern":"^[a-z][a-z0-9_.-]*$"},"entityKey":{"type":"string","minLength":1,"maxLength":256,"pattern":"^[a-z][a-z0-9_.-]*$"},"capturedAt":{"type":"string","format":"date-time"}},"required":["manifestKey","entityKey","capturedAt"],"additionalProperties":false}},"required":["contractVersion","segment","operation","risk","validationSnapshot"],"additionalProperties":false},"diff":{"type":"object","properties":{"operation":{"type":"string","enum":["create","update","archive","restore","delete","action","transition"]},"entityLabel":{"type":"string","minLength":1,"maxLength":300},"recordLabel":{"type":"string","minLength":1,"maxLength":1000},"fields":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","minLength":1,"maxLength":256,"pattern":"^[a-z][a-z0-9_.-]*$"},"label":{"type":"string","minLength":1,"maxLength":300},"type":{"type":"string","enum":["text","textarea","integer","number","money","date","datetime","boolean","status","ref","refs","refAny","json","image"]},"before":{},"after":{}},"required":["key","label","type","before","after"],"additionalProperties":false},"maxItems":100},"sideEffects":{"type":"array","items":{"type":"string","minLength":1,"maxLength":1000},"maxItems":50},"warnings":{"type":"array","items":{"type":"string","minLength":1,"maxLength":1000},"maxItems":50}},"required":["operation","entityLabel","fields","sideEffects","warnings"],"additionalProperties":false},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"expiresAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"lastError":{"anyOf":[{"type":"object","properties":{"code":{"type":"string","enum":["not_found","forbidden","validation","conflict","approval_required","unsupported_operation","blocked_by_reference","service_unavailable"]},"message":{"type":"string","minLength":1,"maxLength":1000}},"required":["code","message"],"additionalProperties":false},{"type":"null"}]}},"required":["id","kind","status","workspaceId","proposedBy","requiredApproverRole","payload","diff","createdAt","updatedAt","expiresAt","lastError"],"additionalProperties":false}},"required":["data"],"additionalProperties":false},"EmfDraftListResponse":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":256},"kind":{"type":"string","enum":["emf.row.create","emf.row.update","emf.row.archive","emf.row.restore","emf.row.delete","emf.action.invoke","emf.state.transition"]},"status":{"type":"string","enum":["pending","committing","committed","discarded","expired","conflict","failed","reverted"]},"workspaceId":{"type":"string","minLength":1,"maxLength":256},"proposedBy":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":256},"label":{"type":"string","minLength":1,"maxLength":300},"source":{"type":"string","enum":["human","jai","automation","api"]}},"required":["id","label","source"],"additionalProperties":false},"requiredApproverRole":{"type":"string","minLength":1,"maxLength":100},"payload":{"type":"object","properties":{"contractVersion":{"type":"number","const":1},"segment":{"type":"string","minLength":1,"maxLength":256,"pattern":"^[a-z][a-z0-9_-]*$"},"operation":{"type":"string","enum":["create","update","archive","restore","delete","action","transition"]},"rowId":{"type":"string","minLength":1,"maxLength":512},"baseRevision":{"type":"string","minLength":1,"maxLength":256},"patch":{"type":"object","additionalProperties":{},"propertyNames":{"minLength":1,"maxLength":256}},"actionKey":{"type":"string","minLength":1,"maxLength":256,"pattern":"^[a-z][a-z0-9_.-]*$"},"transitionTo":{"type":"string","minLength":1,"maxLength":256,"pattern":"^[a-z][a-z0-9_.-]*$"},"input":{"type":"object","additionalProperties":{},"propertyNames":{"minLength":1,"maxLength":256}},"risk":{"type":"string","enum":["low","medium","high","destructive"]},"validationSnapshot":{"type":"object","properties":{"manifestKey":{"type":"string","minLength":1,"maxLength":256,"pattern":"^[a-z][a-z0-9_.-]*$"},"entityKey":{"type":"string","minLength":1,"maxLength":256,"pattern":"^[a-z][a-z0-9_.-]*$"},"capturedAt":{"type":"string","format":"date-time"}},"required":["manifestKey","entityKey","capturedAt"],"additionalProperties":false}},"required":["contractVersion","segment","operation","risk","validationSnapshot"],"additionalProperties":false},"diff":{"type":"object","properties":{"operation":{"type":"string","enum":["create","update","archive","restore","delete","action","transition"]},"entityLabel":{"type":"string","minLength":1,"maxLength":300},"recordLabel":{"type":"string","minLength":1,"maxLength":1000},"fields":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","minLength":1,"maxLength":256,"pattern":"^[a-z][a-z0-9_.-]*$"},"label":{"type":"string","minLength":1,"maxLength":300},"type":{"type":"string","enum":["text","textarea","integer","number","money","date","datetime","boolean","status","ref","refs","refAny","json","image"]},"before":{},"after":{}},"required":["key","label","type","before","after"],"additionalProperties":false},"maxItems":100},"sideEffects":{"type":"array","items":{"type":"string","minLength":1,"maxLength":1000},"maxItems":50},"warnings":{"type":"array","items":{"type":"string","minLength":1,"maxLength":1000},"maxItems":50}},"required":["operation","entityLabel","fields","sideEffects","warnings"],"additionalProperties":false},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"expiresAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"lastError":{"anyOf":[{"type":"object","properties":{"code":{"type":"string","enum":["not_found","forbidden","validation","conflict","approval_required","unsupported_operation","blocked_by_reference","service_unavailable"]},"message":{"type":"string","minLength":1,"maxLength":1000}},"required":["code","message"],"additionalProperties":false},{"type":"null"}]}},"required":["id","kind","status","workspaceId","proposedBy","requiredApproverRole","payload","diff","createdAt","updatedAt","expiresAt","lastError"],"additionalProperties":false},"maxItems":100},"total":{"type":"integer","minimum":0}},"required":["data","total"],"additionalProperties":false},"EmfDraftDecisionRequest":{"type":"object","properties":{"decision":{"type":"string","enum":["approve","discard"]},"actionProof":{"type":"string","minLength":32,"maxLength":2048}},"required":["decision"],"additionalProperties":false},"EmfDraftUpdateRequest":{"type":"object","properties":{"baseRevision":{"type":"string","minLength":1,"maxLength":256},"patch":{"type":"object","additionalProperties":{},"propertyNames":{"minLength":1,"maxLength":256}},"input":{"type":"object","additionalProperties":{},"propertyNames":{"minLength":1,"maxLength":256}}},"additionalProperties":false},"EmfDraftActionProofRequest":{"type":"object","properties":{"actionProof":{"type":"string","minLength":32,"maxLength":2048}},"required":["actionProof"],"additionalProperties":false},"EmfDraftActionProofResponse":{"type":"object","properties":{"data":{"type":"object","properties":{"expiresAt":{"type":"string","format":"date-time"}},"required":["expiresAt"],"additionalProperties":false}},"required":["data"],"additionalProperties":false},"EmfDataErrorEnvelope":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["not_found","forbidden","validation","conflict","approval_required","unsupported_operation","blocked_by_reference","service_unavailable"]},"message":{"type":"string","minLength":1,"maxLength":1000},"details":{}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false},"clientAgreementCreateRequestSchema":{"type":"object","properties":{"status":{"type":"string","enum":["not_started","sent","signed","void","expired"],"default":"not_started"},"signedFileId":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"signedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"notes":{"anyOf":[{"type":"string","maxLength":5000},{"type":"null"}]},"commercialTerms":{"anyOf":[{"type":"object","properties":{"kind":{"type":"string","enum":["fixed","recurring"]},"amount":{"anyOf":[{"type":"string","pattern":"^\\d{1,12}(?:\\.\\d{1,2})?$"},{"type":"null"}]},"currency":{"anyOf":[{"type":"string","pattern":"^[A-Z]{3}$"},{"type":"null"}]},"cadence":{"anyOf":[{"type":"string","enum":["monthly","annual"]},{"type":"null"}]},"confirmed":{"type":"boolean"},"initialRetainer":{"anyOf":[{"type":"string","pattern":"^\\d{1,12}(?:\\.\\d{1,2})?$"},{"type":"null"}]},"estimatedTotal":{"anyOf":[{"type":"string","pattern":"^\\d{1,12}(?:\\.\\d{1,2})?$"},{"type":"null"}]},"estimatedTotalBasis":{"anyOf":[{"type":"string","enum":["estimate","cap","fixed"]},{"type":"null"}]},"notes":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}]}},"required":["kind","amount","currency","cadence","confirmed","initialRetainer","estimatedTotal","estimatedTotalBasis","notes"],"additionalProperties":false},{"type":"null"}]}},"additionalProperties":false},"clientAgreementDetailResponseSchema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":256},"engagementId":{"type":"string","minLength":1,"maxLength":256},"partnerId":{"type":"string","minLength":1,"maxLength":256},"status":{"type":"string","enum":["not_started","sent","signed","void","expired"]},"signedFileId":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"signedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"notes":{"type":["string","null"]},"commercialTerms":{"anyOf":[{"type":"object","properties":{"kind":{"type":"string","enum":["fixed","recurring"]},"amount":{"anyOf":[{"type":"string","pattern":"^\\d{1,12}(?:\\.\\d{1,2})?$"},{"type":"null"}]},"currency":{"anyOf":[{"type":"string","pattern":"^[A-Z]{3}$"},{"type":"null"}]},"cadence":{"anyOf":[{"type":"string","enum":["monthly","annual"]},{"type":"null"}]},"confirmed":{"type":"boolean"},"initialRetainer":{"anyOf":[{"type":"string","pattern":"^\\d{1,12}(?:\\.\\d{1,2})?$"},{"type":"null"}]},"estimatedTotal":{"anyOf":[{"type":"string","pattern":"^\\d{1,12}(?:\\.\\d{1,2})?$"},{"type":"null"}]},"estimatedTotalBasis":{"anyOf":[{"type":"string","enum":["estimate","cap","fixed"]},{"type":"null"}]},"notes":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}]}},"required":["kind","amount","currency","cadence","confirmed","initialRetainer","estimatedTotal","estimatedTotalBasis","notes"],"additionalProperties":false},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","engagementId","partnerId","status","signedFileId","signedAt","notes","commercialTerms","createdAt","updatedAt"],"additionalProperties":false}},"required":["data"],"additionalProperties":false},"clientAgreementLinkRequestSchema":{"type":"object","properties":{"agreementId":{"type":"string","minLength":1,"maxLength":256}},"required":["agreementId"],"additionalProperties":false},"clientAgreementListResponseSchema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":256},"engagementId":{"type":"string","minLength":1,"maxLength":256},"partnerId":{"type":"string","minLength":1,"maxLength":256},"status":{"type":"string","enum":["not_started","sent","signed","void","expired"]},"signedFileId":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"signedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"notes":{"type":["string","null"]},"commercialTerms":{"anyOf":[{"type":"object","properties":{"kind":{"type":"string","enum":["fixed","recurring"]},"amount":{"anyOf":[{"type":"string","pattern":"^\\d{1,12}(?:\\.\\d{1,2})?$"},{"type":"null"}]},"currency":{"anyOf":[{"type":"string","pattern":"^[A-Z]{3}$"},{"type":"null"}]},"cadence":{"anyOf":[{"type":"string","enum":["monthly","annual"]},{"type":"null"}]},"confirmed":{"type":"boolean"},"initialRetainer":{"anyOf":[{"type":"string","pattern":"^\\d{1,12}(?:\\.\\d{1,2})?$"},{"type":"null"}]},"estimatedTotal":{"anyOf":[{"type":"string","pattern":"^\\d{1,12}(?:\\.\\d{1,2})?$"},{"type":"null"}]},"estimatedTotalBasis":{"anyOf":[{"type":"string","enum":["estimate","cap","fixed"]},{"type":"null"}]},"notes":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}]}},"required":["kind","amount","currency","cadence","confirmed","initialRetainer","estimatedTotal","estimatedTotalBasis","notes"],"additionalProperties":false},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","engagementId","partnerId","status","signedFileId","signedAt","notes","commercialTerms","createdAt","updatedAt"],"additionalProperties":false}},"selectedAgreementId":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]}},"required":["data","selectedAgreementId"],"additionalProperties":false},"clientAgreementRecordSchema":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":256},"engagementId":{"type":"string","minLength":1,"maxLength":256},"partnerId":{"type":"string","minLength":1,"maxLength":256},"status":{"type":"string","enum":["not_started","sent","signed","void","expired"]},"signedFileId":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"signedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"notes":{"type":["string","null"]},"commercialTerms":{"anyOf":[{"type":"object","properties":{"kind":{"type":"string","enum":["fixed","recurring"]},"amount":{"anyOf":[{"type":"string","pattern":"^\\d{1,12}(?:\\.\\d{1,2})?$"},{"type":"null"}]},"currency":{"anyOf":[{"type":"string","pattern":"^[A-Z]{3}$"},{"type":"null"}]},"cadence":{"anyOf":[{"type":"string","enum":["monthly","annual"]},{"type":"null"}]},"confirmed":{"type":"boolean"},"initialRetainer":{"anyOf":[{"type":"string","pattern":"^\\d{1,12}(?:\\.\\d{1,2})?$"},{"type":"null"}]},"estimatedTotal":{"anyOf":[{"type":"string","pattern":"^\\d{1,12}(?:\\.\\d{1,2})?$"},{"type":"null"}]},"estimatedTotalBasis":{"anyOf":[{"type":"string","enum":["estimate","cap","fixed"]},{"type":"null"}]},"notes":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}]}},"required":["kind","amount","currency","cadence","confirmed","initialRetainer","estimatedTotal","estimatedTotalBasis","notes"],"additionalProperties":false},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","engagementId","partnerId","status","signedFileId","signedAt","notes","commercialTerms","createdAt","updatedAt"],"additionalProperties":false},"clientAgreementUpdateRequestSchema":{"type":"object","properties":{"status":{"type":"string","enum":["not_started","sent","signed","void","expired"],"default":"not_started"},"signedFileId":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"signedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"notes":{"anyOf":[{"type":"string","maxLength":5000},{"type":"null"}]},"commercialTerms":{"anyOf":[{"type":"object","properties":{"kind":{"type":"string","enum":["fixed","recurring"]},"amount":{"anyOf":[{"type":"string","pattern":"^\\d{1,12}(?:\\.\\d{1,2})?$"},{"type":"null"}]},"currency":{"anyOf":[{"type":"string","pattern":"^[A-Z]{3}$"},{"type":"null"}]},"cadence":{"anyOf":[{"type":"string","enum":["monthly","annual"]},{"type":"null"}]},"confirmed":{"type":"boolean"},"initialRetainer":{"anyOf":[{"type":"string","pattern":"^\\d{1,12}(?:\\.\\d{1,2})?$"},{"type":"null"}]},"estimatedTotal":{"anyOf":[{"type":"string","pattern":"^\\d{1,12}(?:\\.\\d{1,2})?$"},{"type":"null"}]},"estimatedTotalBasis":{"anyOf":[{"type":"string","enum":["estimate","cap","fixed"]},{"type":"null"}]},"notes":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}]}},"required":["kind","amount","currency","cadence","confirmed","initialRetainer","estimatedTotal","estimatedTotalBasis","notes"],"additionalProperties":false},{"type":"null"}]}},"additionalProperties":false},"clientCommercialTermsSchema":{"type":"object","properties":{"kind":{"type":"string","enum":["fixed","recurring"]},"amount":{"anyOf":[{"type":"string","pattern":"^\\d{1,12}(?:\\.\\d{1,2})?$"},{"type":"null"}]},"currency":{"anyOf":[{"type":"string","pattern":"^[A-Z]{3}$"},{"type":"null"}]},"cadence":{"anyOf":[{"type":"string","enum":["monthly","annual"]},{"type":"null"}]},"confirmed":{"type":"boolean"},"initialRetainer":{"anyOf":[{"type":"string","pattern":"^\\d{1,12}(?:\\.\\d{1,2})?$"},{"type":"null"}]},"estimatedTotal":{"anyOf":[{"type":"string","pattern":"^\\d{1,12}(?:\\.\\d{1,2})?$"},{"type":"null"}]},"estimatedTotalBasis":{"anyOf":[{"type":"string","enum":["estimate","cap","fixed"]},{"type":"null"}]},"notes":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}]}},"required":["kind","amount","currency","cadence","confirmed","initialRetainer","estimatedTotal","estimatedTotalBasis","notes"],"additionalProperties":false},"clientCurrentEngagementResponseSchema":{"type":"object","properties":{"data":{"type":"object","properties":{"partnerId":{"type":"string","minLength":1,"maxLength":256},"currentEngagementId":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]}},"required":["partnerId","currentEngagementId"],"additionalProperties":false}},"required":["data"],"additionalProperties":false},"clientDeliveryStatusSchema":{"type":"string","enum":["planned","in_progress","completed","cancelled"]},"clientEngagementCreateRequestSchema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":300},"stage":{"type":"string","enum":["Lead","Qualification","Proposal","Negotiation","Closed Won","Closed Lost"]},"dealType":{"anyOf":[{"type":"string","enum":["commercial_contract","investment"]},{"type":"null"}]},"estimatedTotalContractValue":{"anyOf":[{"type":"string","pattern":"^\\d{1,12}(?:\\.\\d{1,2})?$"},{"type":"null"}]},"currency":{"type":"string","pattern":"^[A-Z]{3}$"},"ownerUserId":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"stageMilestone":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}]},"stageBlocker":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}]},"stageExitCriteria":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}]},"deliveryStatus":{"type":"string","enum":["planned","in_progress","completed","cancelled"],"default":"planned"},"objective":{"type":"string","maxLength":4000}},"required":["name"],"additionalProperties":false},"clientEngagementDetailResponseSchema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":256},"partnerId":{"type":"string","minLength":1,"maxLength":256},"workspaceId":{"type":"string","minLength":1,"maxLength":256},"deal":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":256},"name":{"type":"string","maxLength":300},"stage":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}]},"status":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}]},"outcome":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}]},"dealType":{"anyOf":[{"type":"string","enum":["commercial_contract","investment"]},{"type":"null"}]},"estimatedTotalContractValue":{"type":["string","null"]},"currency":{"type":"string","minLength":3,"maxLength":3},"ownerUserId":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"stageMilestone":{"type":["string","null"]},"stageBlocker":{"type":["string","null"]},"stageExitCriteria":{"type":["string","null"]},"stageEnteredAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","name","stage","status","outcome","dealType","estimatedTotalContractValue","currency","ownerUserId","stageMilestone","stageBlocker","stageExitCriteria","stageEnteredAt","createdAt","updatedAt"],"additionalProperties":false},"deliveryStatus":{"type":"string","enum":["planned","in_progress","completed","cancelled"]},"selectedAgreementId":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"fundsReceived":{"type":"boolean"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","partnerId","workspaceId","deal","deliveryStatus","selectedAgreementId","fundsReceived","createdAt","updatedAt"],"additionalProperties":false}},"required":["data"],"additionalProperties":false},"clientEngagementLinkRequestSchema":{"type":"object","properties":{"dealId":{"type":"string","minLength":1,"maxLength":256},"deliveryStatus":{"type":"string","enum":["planned","in_progress","completed","cancelled"]}},"required":["dealId"],"additionalProperties":false},"clientEngagementListResponseSchema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":256},"partnerId":{"type":"string","minLength":1,"maxLength":256},"workspaceId":{"type":"string","minLength":1,"maxLength":256},"deal":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":256},"name":{"type":"string","maxLength":300},"stage":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}]},"status":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}]},"outcome":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}]},"dealType":{"anyOf":[{"type":"string","enum":["commercial_contract","investment"]},{"type":"null"}]},"estimatedTotalContractValue":{"type":["string","null"]},"currency":{"type":"string","minLength":3,"maxLength":3},"ownerUserId":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"stageMilestone":{"type":["string","null"]},"stageBlocker":{"type":["string","null"]},"stageExitCriteria":{"type":["string","null"]},"stageEnteredAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","name","stage","status","outcome","dealType","estimatedTotalContractValue","currency","ownerUserId","stageMilestone","stageBlocker","stageExitCriteria","stageEnteredAt","createdAt","updatedAt"],"additionalProperties":false},"deliveryStatus":{"type":"string","enum":["planned","in_progress","completed","cancelled"]},"selectedAgreementId":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"fundsReceived":{"type":"boolean"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","partnerId","workspaceId","deal","deliveryStatus","selectedAgreementId","fundsReceived","createdAt","updatedAt"],"additionalProperties":false}},"currentEngagementId":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]}},"required":["data","currentEngagementId"],"additionalProperties":false},"clientEngagementRecordSchema":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":256},"partnerId":{"type":"string","minLength":1,"maxLength":256},"workspaceId":{"type":"string","minLength":1,"maxLength":256},"deal":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":256},"name":{"type":"string","maxLength":300},"stage":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}]},"status":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}]},"outcome":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}]},"dealType":{"anyOf":[{"type":"string","enum":["commercial_contract","investment"]},{"type":"null"}]},"estimatedTotalContractValue":{"type":["string","null"]},"currency":{"type":"string","minLength":3,"maxLength":3},"ownerUserId":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"stageMilestone":{"type":["string","null"]},"stageBlocker":{"type":["string","null"]},"stageExitCriteria":{"type":["string","null"]},"stageEnteredAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","name","stage","status","outcome","dealType","estimatedTotalContractValue","currency","ownerUserId","stageMilestone","stageBlocker","stageExitCriteria","stageEnteredAt","createdAt","updatedAt"],"additionalProperties":false},"deliveryStatus":{"type":"string","enum":["planned","in_progress","completed","cancelled"]},"selectedAgreementId":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"fundsReceived":{"type":"boolean"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","partnerId","workspaceId","deal","deliveryStatus","selectedAgreementId","fundsReceived","createdAt","updatedAt"],"additionalProperties":false},"clientEngagementUpdateRequestSchema":{"type":"object","properties":{"deliveryStatus":{"type":"string","enum":["planned","in_progress","completed","cancelled"]}},"required":["deliveryStatus"],"additionalProperties":false},"clientReceiptConfirmationDetailResponseSchema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":256},"engagementId":{"type":"string","minLength":1,"maxLength":256},"partnerId":{"type":"string","minLength":1,"maxLength":256},"workspaceId":{"type":"string","minLength":1,"maxLength":256},"confirmationKey":{"type":"string","minLength":1,"maxLength":256},"amount":{"anyOf":[{"type":"string","pattern":"^\\d{1,12}(?:\\.\\d{1,2})?$"},{"type":"null"}]},"currency":{"anyOf":[{"type":"string","pattern":"^[A-Z]{3}$"},{"type":"null"}]},"receivedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"confirmedByUserId":{"type":"string","minLength":1,"maxLength":256},"confirmedAt":{"type":"string","format":"date-time"},"note":{"type":["string","null"]}},"required":["id","engagementId","partnerId","workspaceId","confirmationKey","amount","currency","receivedAt","confirmedByUserId","confirmedAt","note"],"additionalProperties":false}},"required":["data"],"additionalProperties":false},"clientReceiptConfirmationListResponseSchema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":256},"engagementId":{"type":"string","minLength":1,"maxLength":256},"partnerId":{"type":"string","minLength":1,"maxLength":256},"workspaceId":{"type":"string","minLength":1,"maxLength":256},"confirmationKey":{"type":"string","minLength":1,"maxLength":256},"amount":{"anyOf":[{"type":"string","pattern":"^\\d{1,12}(?:\\.\\d{1,2})?$"},{"type":"null"}]},"currency":{"anyOf":[{"type":"string","pattern":"^[A-Z]{3}$"},{"type":"null"}]},"receivedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"confirmedByUserId":{"type":"string","minLength":1,"maxLength":256},"confirmedAt":{"type":"string","format":"date-time"},"note":{"type":["string","null"]}},"required":["id","engagementId","partnerId","workspaceId","confirmationKey","amount","currency","receivedAt","confirmedByUserId","confirmedAt","note"],"additionalProperties":false}}},"required":["data"],"additionalProperties":false},"clientReceiptConfirmationRecordSchema":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":256},"engagementId":{"type":"string","minLength":1,"maxLength":256},"partnerId":{"type":"string","minLength":1,"maxLength":256},"workspaceId":{"type":"string","minLength":1,"maxLength":256},"confirmationKey":{"type":"string","minLength":1,"maxLength":256},"amount":{"anyOf":[{"type":"string","pattern":"^\\d{1,12}(?:\\.\\d{1,2})?$"},{"type":"null"}]},"currency":{"anyOf":[{"type":"string","pattern":"^[A-Z]{3}$"},{"type":"null"}]},"receivedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"confirmedByUserId":{"type":"string","minLength":1,"maxLength":256},"confirmedAt":{"type":"string","format":"date-time"},"note":{"type":["string","null"]}},"required":["id","engagementId","partnerId","workspaceId","confirmationKey","amount","currency","receivedAt","confirmedByUserId","confirmedAt","note"],"additionalProperties":false},"clientSelectedAgreementResponseSchema":{"type":"object","properties":{"data":{"type":"object","properties":{"engagementId":{"type":"string","minLength":1,"maxLength":256},"selectedAgreementId":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]}},"required":["engagementId","selectedAgreementId"],"additionalProperties":false}},"required":["data"],"additionalProperties":false},"confirmClientFundsReceivedRequestSchema":{"type":"object","properties":{"confirmationKey":{"type":"string","minLength":1,"maxLength":256},"amount":{"anyOf":[{"type":"string","pattern":"^\\d{1,12}(?:\\.\\d{1,2})?$"},{"type":"null"}]},"currency":{"anyOf":[{"type":"string","pattern":"^[A-Z]{3}$"},{"type":"null"}]},"receivedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"note":{"anyOf":[{"type":"string","maxLength":5000},{"type":"null"}]}},"additionalProperties":false},"selectClientAgreementRequestSchema":{"type":"object","properties":{"agreementId":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]}},"required":["agreementId"],"additionalProperties":false},"selectCurrentClientEngagementRequestSchema":{"type":"object","properties":{"engagementId":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]}},"required":["engagementId"],"additionalProperties":false},"attachClientEmailReferenceRequestSchema":{"type":"object","properties":{"url":{"type":"string","format":"uri","maxLength":2048},"subject":{"type":"string","minLength":1,"maxLength":250},"summary":{"type":"string","minLength":1,"maxLength":1500},"occurredAt":{"type":"string","format":"date-time"}},"required":["url","subject","summary","occurredAt"],"additionalProperties":false},"attachClientEmailReferenceResponseSchema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":256},"subject":{"type":"string"},"summary":{"type":"string"},"url":{"type":"string","format":"uri"},"occurredAt":{"type":"string","format":"date-time"},"createdByUserId":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time"}},"required":["id","subject","summary","url","occurredAt","createdByUserId","createdAt"],"additionalProperties":false},"created":{"type":"boolean"}},"required":["data","created"],"additionalProperties":false},"clientDocumentContentResponseSchema":{"type":"object","properties":{"data":{"type":"object","properties":{"downloadUrl":{"type":"string","format":"uri"},"expiresInSeconds":{"type":"integer","exclusiveMinimum":0}},"required":["downloadUrl","expiresInSeconds"],"additionalProperties":false}},"required":["data"],"additionalProperties":false},"clientDocumentContentTypeSchema":{"type":"string","enum":["application/pdf","application/vnd.openxmlformats-officedocument.wordprocessingml.document","text/plain"]},"clientDocumentDetailResponseSchema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":256},"fileId":{"type":"string","minLength":1,"maxLength":256},"partnerId":{"type":"string","minLength":1,"maxLength":256},"engagementId":{"type":"string","minLength":1,"maxLength":256},"agreementId":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"kind":{"type":"string","enum":["draft","redline","executed_agreement","workplan"]},"title":{"type":"string"},"contentType":{"type":"string","enum":["application/pdf","application/vnd.openxmlformats-officedocument.wordprocessingml.document","text/plain"]},"sizeBytes":{"type":"integer","exclusiveMinimum":0},"checksum":{"type":"string","pattern":"^sha256:[a-f0-9]{64}$"},"sourceReference":{"type":["string","null"]},"notes":{"type":["string","null"]},"createdByUserId":{"type":"string","minLength":1,"maxLength":256},"createdAt":{"type":"string","format":"date-time"}},"required":["id","fileId","partnerId","engagementId","agreementId","kind","title","contentType","sizeBytes","checksum","sourceReference","notes","createdByUserId","createdAt"],"additionalProperties":false}},"required":["data"],"additionalProperties":false},"clientDocumentKindSchema":{"type":"string","enum":["draft","redline","executed_agreement","workplan"]},"clientDocumentListResponseSchema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":256},"fileId":{"type":"string","minLength":1,"maxLength":256},"partnerId":{"type":"string","minLength":1,"maxLength":256},"engagementId":{"type":"string","minLength":1,"maxLength":256},"agreementId":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"kind":{"type":"string","enum":["draft","redline","executed_agreement","workplan"]},"title":{"type":"string"},"contentType":{"type":"string","enum":["application/pdf","application/vnd.openxmlformats-officedocument.wordprocessingml.document","text/plain"]},"sizeBytes":{"type":"integer","exclusiveMinimum":0},"checksum":{"type":"string","pattern":"^sha256:[a-f0-9]{64}$"},"sourceReference":{"type":["string","null"]},"notes":{"type":["string","null"]},"createdByUserId":{"type":"string","minLength":1,"maxLength":256},"createdAt":{"type":"string","format":"date-time"}},"required":["id","fileId","partnerId","engagementId","agreementId","kind","title","contentType","sizeBytes","checksum","sourceReference","notes","createdByUserId","createdAt"],"additionalProperties":false}}},"required":["data"],"additionalProperties":false},"clientDocumentRecordSchema":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":256},"fileId":{"type":"string","minLength":1,"maxLength":256},"partnerId":{"type":"string","minLength":1,"maxLength":256},"engagementId":{"type":"string","minLength":1,"maxLength":256},"agreementId":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"kind":{"type":"string","enum":["draft","redline","executed_agreement","workplan"]},"title":{"type":"string"},"contentType":{"type":"string","enum":["application/pdf","application/vnd.openxmlformats-officedocument.wordprocessingml.document","text/plain"]},"sizeBytes":{"type":"integer","exclusiveMinimum":0},"checksum":{"type":"string","pattern":"^sha256:[a-f0-9]{64}$"},"sourceReference":{"type":["string","null"]},"notes":{"type":["string","null"]},"createdByUserId":{"type":"string","minLength":1,"maxLength":256},"createdAt":{"type":"string","format":"date-time"}},"required":["id","fileId","partnerId","engagementId","agreementId","kind","title","contentType","sizeBytes","checksum","sourceReference","notes","createdByUserId","createdAt"],"additionalProperties":false},"clientEmailReferenceRecordSchema":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":256},"subject":{"type":"string"},"summary":{"type":"string"},"url":{"type":"string","format":"uri"},"occurredAt":{"type":"string","format":"date-time"},"createdByUserId":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time"}},"required":["id","subject","summary","url","occurredAt","createdByUserId","createdAt"],"additionalProperties":false},"createClientDocumentUploadRequestSchema":{"type":"object","properties":{"filename":{"type":"string","minLength":1,"maxLength":200},"contentType":{"type":"string","enum":["application/pdf","application/vnd.openxmlformats-officedocument.wordprocessingml.document","text/plain"]},"kind":{"type":"string","enum":["draft","redline","executed_agreement","workplan"]},"sizeBytes":{"type":"integer","exclusiveMinimum":0,"maximum":20971520},"checksum":{"type":"string","pattern":"^sha256:[a-f0-9]{64}$"},"agreementId":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"sourceReference":{"anyOf":[{"type":"string","maxLength":2048},{"type":"null"}]},"notes":{"anyOf":[{"type":"string","maxLength":5000},{"type":"null"}]}},"required":["filename","contentType","kind","sizeBytes","checksum"],"additionalProperties":false},"createClientDocumentUploadResponseSchema":{"type":"object","properties":{"data":{"type":"object","properties":{"uploadId":{"type":"string","minLength":1,"maxLength":256},"uploadUrl":{"type":"string","format":"uri"},"method":{"type":"string","const":"PUT"},"headers":{"type":"object","additionalProperties":{"type":"string"}},"expiresInSeconds":{"type":"integer","exclusiveMinimum":0}},"required":["uploadId","uploadUrl","method","headers","expiresInSeconds"],"additionalProperties":false}},"required":["data"],"additionalProperties":false},"finalizeClientDocumentRequestSchema":{"type":"object","properties":{"uploadId":{"type":"string","minLength":1,"maxLength":256}},"required":["uploadId"],"additionalProperties":false},"finalizeClientDocumentResponseSchema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":256},"fileId":{"type":"string","minLength":1,"maxLength":256},"partnerId":{"type":"string","minLength":1,"maxLength":256},"engagementId":{"type":"string","minLength":1,"maxLength":256},"agreementId":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"kind":{"type":"string","enum":["draft","redline","executed_agreement","workplan"]},"title":{"type":"string"},"contentType":{"type":"string","enum":["application/pdf","application/vnd.openxmlformats-officedocument.wordprocessingml.document","text/plain"]},"sizeBytes":{"type":"integer","exclusiveMinimum":0},"checksum":{"type":"string","pattern":"^sha256:[a-f0-9]{64}$"},"sourceReference":{"type":["string","null"]},"notes":{"type":["string","null"]},"createdByUserId":{"type":"string","minLength":1,"maxLength":256},"createdAt":{"type":"string","format":"date-time"}},"required":["id","fileId","partnerId","engagementId","agreementId","kind","title","contentType","sizeBytes","checksum","sourceReference","notes","createdByUserId","createdAt"],"additionalProperties":false}},"required":["data"],"additionalProperties":false},"listClientEmailReferencesResponseSchema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":256},"subject":{"type":"string"},"summary":{"type":"string"},"url":{"type":"string","format":"uri"},"occurredAt":{"type":"string","format":"date-time"},"createdByUserId":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time"}},"required":["id","subject","summary","url","occurredAt","createdByUserId","createdAt"],"additionalProperties":false}}},"required":["data"],"additionalProperties":false},"clientConversationBatchRequestSchema":{"type":"object","properties":{"provider":{"type":"string","enum":["whatsapp","email","imessage"],"default":"whatsapp"},"chatId":{"type":"string","minLength":1,"maxLength":320},"observedAt":{"type":"string","format":"date-time"},"final":{"type":"boolean"},"coverageFirstAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"coverageLastAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"coverageNote":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}]},"syncError":{"type":"string","minLength":1,"maxLength":500},"messages":{"type":"array","items":{"type":"object","properties":{"sourceId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,256}$"},"sender":{"type":"string","minLength":1,"maxLength":160},"at":{"type":"string","format":"date-time"},"text":{"type":"string","maxLength":20000}},"required":["sourceId","sender","at","text"],"additionalProperties":false},"maxItems":100}},"required":["chatId","observedAt","final","coverageFirstAt","coverageLastAt","coverageNote","messages"],"additionalProperties":false},"clientConversationBatchResponseSchema":{"type":"object","properties":{"accepted":{"type":"integer","minimum":0},"complete":{"type":"boolean"}},"required":["accepted","complete"],"additionalProperties":false},"clientConversationEngagementsRequestSchema":{"type":"object","properties":{"engagementIds":{"type":"array","items":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9_-]+$"},"maxItems":100}},"required":["engagementIds"],"additionalProperties":false},"clientConversationLinkRequestSchema":{"type":"object","properties":{"provider":{"type":"string","enum":["whatsapp","email","imessage"],"default":"whatsapp"},"sourceAccountId":{"type":"string","minLength":1,"maxLength":256},"sourceChatId":{"type":"string","minLength":1,"maxLength":320},"chatName":{"type":"string","minLength":1,"maxLength":160},"publicKey":{"type":"string","pattern":"^[A-Za-z0-9_-]{59}$"},"coverageFirstAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"coverageLastAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"coverageNote":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}]},"engagementIds":{"type":"array","items":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9_-]+$"},"maxItems":100,"default":[]},"confirmShare":{"type":"boolean","const":true},"audience":{"type":"string","const":"operators","default":"operators","description":"New conversations start operator-only. A named team requires separate source-owner approval."}},"required":["sourceAccountId","sourceChatId","chatName","publicKey","coverageFirstAt","coverageLastAt","coverageNote","confirmShare"],"additionalProperties":false},"clientConversationLinkResponseSchema":{"type":"object","properties":{"shareId":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9_-]+$"},"alreadyShared":{"type":"boolean"}},"required":["shareId","alreadyShared"],"additionalProperties":false},"clientConversationListResponseSchema":{"type":"object","properties":{"conversations":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9_-]+$"},"partnerId":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9_-]+$"},"partnerName":{"type":"string"},"provider":{"type":"string","enum":["whatsapp","email","imessage"]},"sourceAccountId":{"type":["string","null"]},"sourceChatId":{"anyOf":[{"type":"string","minLength":1,"maxLength":320},{"type":"null"}]},"chatName":{"type":["string","null"]},"audience":{"type":"string","enum":["operators","team"]},"approvedTeamId":{"anyOf":[{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9_-]+$"},{"type":"null"}]},"engagementIds":{"type":"array","items":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9_-]+$"}},"lastSyncAt":{"anyOf":[{"anyOf":[{"type":"string","format":"date-time"},{"type":"string","format":"date-time"}]},{"type":"null"}]},"sourceObservedAt":{"anyOf":[{"anyOf":[{"type":"string","format":"date-time"},{"type":"string","format":"date-time"}]},{"type":"null"}]},"coverageFirstAt":{"anyOf":[{"anyOf":[{"type":"string","format":"date-time"},{"type":"string","format":"date-time"}]},{"type":"null"}]},"coverageLastAt":{"anyOf":[{"anyOf":[{"type":"string","format":"date-time"},{"type":"string","format":"date-time"}]},{"type":"null"}]},"coverageNote":{"type":["string","null"]},"syncState":{"type":"string","enum":["pending","syncing","current","error"]},"syncError":{"type":["string","null"]},"syncAttemptedAt":{"anyOf":[{"anyOf":[{"type":"string","format":"date-time"},{"type":"string","format":"date-time"}]},{"type":"null"}]}},"required":["id","partnerId","partnerName","provider","sourceAccountId","sourceChatId","chatName","audience","approvedTeamId","engagementIds","lastSyncAt","sourceObservedAt","coverageFirstAt","coverageLastAt","coverageNote","syncState","syncError","syncAttemptedAt"],"additionalProperties":false}}},"required":["conversations"],"additionalProperties":false},"clientConversationMessagesResponseSchema":{"type":"object","properties":{"conversation":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9_-]+$"},"partnerId":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9_-]+$"},"partnerName":{"type":"string"},"provider":{"type":"string","enum":["whatsapp","email","imessage"]},"sourceAccountId":{"type":["string","null"]},"sourceChatId":{"anyOf":[{"type":"string","minLength":1,"maxLength":320},{"type":"null"}]},"chatName":{"type":["string","null"]},"audience":{"type":"string","enum":["operators","team"]},"approvedTeamId":{"anyOf":[{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9_-]+$"},{"type":"null"}]},"engagementIds":{"type":"array","items":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9_-]+$"}},"lastSyncAt":{"anyOf":[{"anyOf":[{"type":"string","format":"date-time"},{"type":"string","format":"date-time"}]},{"type":"null"}]},"sourceObservedAt":{"anyOf":[{"anyOf":[{"type":"string","format":"date-time"},{"type":"string","format":"date-time"}]},{"type":"null"}]},"coverageFirstAt":{"anyOf":[{"anyOf":[{"type":"string","format":"date-time"},{"type":"string","format":"date-time"}]},{"type":"null"}]},"coverageLastAt":{"anyOf":[{"anyOf":[{"type":"string","format":"date-time"},{"type":"string","format":"date-time"}]},{"type":"null"}]},"coverageNote":{"type":["string","null"]},"syncState":{"type":"string","enum":["pending","syncing","current","error"]},"syncError":{"type":["string","null"]},"syncAttemptedAt":{"anyOf":[{"anyOf":[{"type":"string","format":"date-time"},{"type":"string","format":"date-time"}]},{"type":"null"}]}},"required":["id","partnerId","partnerName","provider","sourceAccountId","sourceChatId","chatName","audience","approvedTeamId","engagementIds","lastSyncAt","sourceObservedAt","coverageFirstAt","coverageLastAt","coverageNote","syncState","syncError","syncAttemptedAt"],"additionalProperties":false},"messages":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9_-]+$"},"shareId":{"anyOf":[{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9_-]+$"},{"type":"null"}]},"sender":{"type":"string"},"localTimestamp":{"type":"string"},"sortKey":{"type":"string"},"body":{"type":"string"}},"required":["id","shareId","sender","localTimestamp","sortKey","body"],"additionalProperties":false}},"totalShown":{"type":"integer","minimum":0},"nextCursor":{"type":["string","null"]}},"required":["conversation","messages","totalShown","nextCursor"],"additionalProperties":false},"clientConversationOwnerCreateRequestSchema":{"type":"object","properties":{"provider":{"type":"string","enum":["whatsapp","email","imessage"],"default":"whatsapp"},"sourceAccountId":{"type":"string","minLength":1,"maxLength":256},"sourceChatId":{"type":"string","minLength":1,"maxLength":320},"chatName":{"type":"string","minLength":1,"maxLength":160},"publicKey":{"type":"string","pattern":"^[A-Za-z0-9_-]{59}$"},"coverageFirstAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"coverageLastAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"coverageNote":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}]},"engagementIds":{"type":"array","items":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9_-]+$"},"maxItems":100,"default":[]},"confirmShare":{"type":"boolean","const":true},"partnerId":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9_-]+$"},"audience":{"type":"string","const":"operators","default":"operators","description":"New conversations start operator-only. A named team requires separate source-owner approval."}},"required":["sourceAccountId","sourceChatId","chatName","publicKey","coverageFirstAt","coverageLastAt","coverageNote","confirmShare","partnerId"],"additionalProperties":false},"clientConversationOwnerListResponseSchema":{"type":"object","properties":{"engagements":{"type":"array","items":{"type":"object","properties":{"partnerId":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9_-]+$"},"name":{"type":"string"},"teamId":{"anyOf":[{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9_-]+$"},{"type":"null"}]},"teamName":{"type":["string","null"]},"whatsappGroupName":{"type":["string","null"]},"teamMembers":{"type":"array","items":{"type":"string"}}},"required":["partnerId","name","teamId","teamName","whatsappGroupName","teamMembers"],"additionalProperties":false}},"shares":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9_-]+$"},"partnerId":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9_-]+$"},"partnerName":{"type":"string"},"provider":{"type":"string","enum":["whatsapp","email","imessage"]},"sourceAccountId":{"type":["string","null"]},"sourceChatId":{"anyOf":[{"type":"string","minLength":1,"maxLength":320},{"type":"null"}]},"chatName":{"type":["string","null"]},"audience":{"type":"string","enum":["operators","team"]},"approvedTeamId":{"anyOf":[{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9_-]+$"},{"type":"null"}]},"engagementIds":{"type":"array","items":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9_-]+$"}},"lastSyncAt":{"anyOf":[{"anyOf":[{"type":"string","format":"date-time"},{"type":"string","format":"date-time"}]},{"type":"null"}]},"sourceObservedAt":{"anyOf":[{"anyOf":[{"type":"string","format":"date-time"},{"type":"string","format":"date-time"}]},{"type":"null"}]},"coverageFirstAt":{"anyOf":[{"anyOf":[{"type":"string","format":"date-time"},{"type":"string","format":"date-time"}]},{"type":"null"}]},"coverageLastAt":{"anyOf":[{"anyOf":[{"type":"string","format":"date-time"},{"type":"string","format":"date-time"}]},{"type":"null"}]},"coverageNote":{"type":["string","null"]},"syncState":{"type":"string","enum":["pending","syncing","current","error"]},"syncError":{"type":["string","null"]},"syncAttemptedAt":{"anyOf":[{"anyOf":[{"type":"string","format":"date-time"},{"type":"string","format":"date-time"}]},{"type":"null"}]}},"required":["id","partnerId","partnerName","provider","sourceAccountId","sourceChatId","chatName","audience","approvedTeamId","engagementIds","lastSyncAt","sourceObservedAt","coverageFirstAt","coverageLastAt","coverageNote","syncState","syncError","syncAttemptedAt"],"additionalProperties":false}}},"required":["engagements","shares"],"additionalProperties":false},"clientConversationOwnerRevokeRequestSchema":{"type":"object","properties":{"confirmShareId":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9_-]+$"}},"required":["confirmShareId"],"additionalProperties":false},"clientConversationSchema":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9_-]+$"},"partnerId":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9_-]+$"},"partnerName":{"type":"string"},"provider":{"type":"string","enum":["whatsapp","email","imessage"]},"sourceAccountId":{"type":["string","null"]},"sourceChatId":{"anyOf":[{"type":"string","minLength":1,"maxLength":320},{"type":"null"}]},"chatName":{"type":["string","null"]},"audience":{"type":"string","enum":["operators","team"]},"approvedTeamId":{"anyOf":[{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9_-]+$"},{"type":"null"}]},"engagementIds":{"type":"array","items":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9_-]+$"}},"lastSyncAt":{"anyOf":[{"anyOf":[{"type":"string","format":"date-time"},{"type":"string","format":"date-time"}]},{"type":"null"}]},"sourceObservedAt":{"anyOf":[{"anyOf":[{"type":"string","format":"date-time"},{"type":"string","format":"date-time"}]},{"type":"null"}]},"coverageFirstAt":{"anyOf":[{"anyOf":[{"type":"string","format":"date-time"},{"type":"string","format":"date-time"}]},{"type":"null"}]},"coverageLastAt":{"anyOf":[{"anyOf":[{"type":"string","format":"date-time"},{"type":"string","format":"date-time"}]},{"type":"null"}]},"coverageNote":{"type":["string","null"]},"syncState":{"type":"string","enum":["pending","syncing","current","error"]},"syncError":{"type":["string","null"]},"syncAttemptedAt":{"anyOf":[{"anyOf":[{"type":"string","format":"date-time"},{"type":"string","format":"date-time"}]},{"type":"null"}]}},"required":["id","partnerId","partnerName","provider","sourceAccountId","sourceChatId","chatName","audience","approvedTeamId","engagementIds","lastSyncAt","sourceObservedAt","coverageFirstAt","coverageLastAt","coverageNote","syncState","syncError","syncAttemptedAt"],"additionalProperties":false},"clientConversationSyncStatusResponseSchema":{"type":"object","properties":{"conversation":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9_-]+$"},"partnerId":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9_-]+$"},"partnerName":{"type":"string"},"provider":{"type":"string","enum":["whatsapp","email","imessage"]},"sourceAccountId":{"type":["string","null"]},"sourceChatId":{"anyOf":[{"type":"string","minLength":1,"maxLength":320},{"type":"null"}]},"chatName":{"type":["string","null"]},"audience":{"type":"string","enum":["operators","team"]},"approvedTeamId":{"anyOf":[{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9_-]+$"},{"type":"null"}]},"engagementIds":{"type":"array","items":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9_-]+$"}},"lastSyncAt":{"anyOf":[{"anyOf":[{"type":"string","format":"date-time"},{"type":"string","format":"date-time"}]},{"type":"null"}]},"sourceObservedAt":{"anyOf":[{"anyOf":[{"type":"string","format":"date-time"},{"type":"string","format":"date-time"}]},{"type":"null"}]},"coverageFirstAt":{"anyOf":[{"anyOf":[{"type":"string","format":"date-time"},{"type":"string","format":"date-time"}]},{"type":"null"}]},"coverageLastAt":{"anyOf":[{"anyOf":[{"type":"string","format":"date-time"},{"type":"string","format":"date-time"}]},{"type":"null"}]},"coverageNote":{"type":["string","null"]},"syncState":{"type":"string","enum":["pending","syncing","current","error"]},"syncError":{"type":["string","null"]},"syncAttemptedAt":{"anyOf":[{"anyOf":[{"type":"string","format":"date-time"},{"type":"string","format":"date-time"}]},{"type":"null"}]}},"required":["id","partnerId","partnerName","provider","sourceAccountId","sourceChatId","chatName","audience","approvedTeamId","engagementIds","lastSyncAt","sourceObservedAt","coverageFirstAt","coverageLastAt","coverageNote","syncState","syncError","syncAttemptedAt"],"additionalProperties":false},"stale":{"type":"boolean"},"futureSyncRequiresActiveDevice":{"type":"boolean","const":true}},"required":["conversation","stale","futureSyncRequiresActiveDevice"],"additionalProperties":false},"clientConversationTeamRequestSchema":{"type":"object","properties":{"teamId":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9_-]+$"},"confirmTeamShare":{"type":"boolean","const":true}},"required":["teamId","confirmTeamShare"],"additionalProperties":false},"clientConversationUnlinkRequestSchema":{"type":"object","properties":{"confirmConversationId":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9_-]+$"}},"required":["confirmConversationId"],"additionalProperties":false},"clientConversationUnlinkResponseSchema":{"type":"object","properties":{"removed":{"type":"integer","minimum":0},"alreadyDetached":{"type":"boolean"}},"required":["removed","alreadyDetached"],"additionalProperties":false},"clientConversationUpdateResponseSchema":{"type":"object","properties":{"conversation":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9_-]+$"},"partnerId":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9_-]+$"},"partnerName":{"type":"string"},"provider":{"type":"string","enum":["whatsapp","email","imessage"]},"sourceAccountId":{"type":["string","null"]},"sourceChatId":{"anyOf":[{"type":"string","minLength":1,"maxLength":320},{"type":"null"}]},"chatName":{"type":["string","null"]},"audience":{"type":"string","enum":["operators","team"]},"approvedTeamId":{"anyOf":[{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9_-]+$"},{"type":"null"}]},"engagementIds":{"type":"array","items":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9_-]+$"}},"lastSyncAt":{"anyOf":[{"anyOf":[{"type":"string","format":"date-time"},{"type":"string","format":"date-time"}]},{"type":"null"}]},"sourceObservedAt":{"anyOf":[{"anyOf":[{"type":"string","format":"date-time"},{"type":"string","format":"date-time"}]},{"type":"null"}]},"coverageFirstAt":{"anyOf":[{"anyOf":[{"type":"string","format":"date-time"},{"type":"string","format":"date-time"}]},{"type":"null"}]},"coverageLastAt":{"anyOf":[{"anyOf":[{"type":"string","format":"date-time"},{"type":"string","format":"date-time"}]},{"type":"null"}]},"coverageNote":{"type":["string","null"]},"syncState":{"type":"string","enum":["pending","syncing","current","error"]},"syncError":{"type":["string","null"]},"syncAttemptedAt":{"anyOf":[{"anyOf":[{"type":"string","format":"date-time"},{"type":"string","format":"date-time"}]},{"type":"null"}]}},"required":["id","partnerId","partnerName","provider","sourceAccountId","sourceChatId","chatName","audience","approvedTeamId","engagementIds","lastSyncAt","sourceObservedAt","coverageFirstAt","coverageLastAt","coverageNote","syncState","syncError","syncAttemptedAt"],"additionalProperties":false}},"required":["conversation"],"additionalProperties":false},"briefAgreementCreateRequestSchema":{"type":"object","properties":{"publicationId":{"type":"string","minLength":1,"maxLength":256}},"required":["publicationId"],"additionalProperties":false},"briefAgreementCreateResponseSchema":{"type":"object","properties":{"agreementId":{"type":"string","minLength":1,"maxLength":256},"publicationId":{"type":"string","minLength":1,"maxLength":256}},"required":["agreementId","publicationId"],"additionalProperties":false},"briefAgreementReferenceResponseSchema":{"type":"object","properties":{"data":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":256},"engagementId":{"type":"string","minLength":1,"maxLength":256},"partnerId":{"type":"string","minLength":1,"maxLength":256},"workspaceId":{"type":"string","minLength":1,"maxLength":256},"revision":{"type":"integer","exclusiveMinimum":0},"clientName":{"type":"string"},"engagementName":{"type":"string"},"publishedByUserId":{"type":"string","minLength":1,"maxLength":256},"publishedAt":{"type":"string","format":"date-time"},"reviewUrl":{"type":"string"}},"required":["id","engagementId","partnerId","workspaceId","revision","clientName","engagementName","publishedByUserId","publishedAt","reviewUrl"],"additionalProperties":false},{"type":"null"}]}},"required":["data"],"additionalProperties":false},"briefContentSchema":{"type":"object","properties":{"context":{"type":"string","maxLength":15000},"outcomes":{"type":"string","maxLength":15000},"scope":{"type":"string","maxLength":15000},"exclusions":{"type":"string","maxLength":15000},"deliverables":{"type":"string","maxLength":15000},"milestones":{"type":"string","maxLength":15000},"responsibilities":{"type":"string","maxLength":15000},"proposedCommercials":{"type":"string","maxLength":15000},"assumptions":{"type":"string","maxLength":15000},"openDecisions":{"type":"string","maxLength":15000}},"required":["context","outcomes","scope","exclusions","deliverables","milestones","responsibilities","proposedCommercials","assumptions","openDecisions"],"additionalProperties":false},"briefFeedbackRequestSchema":{"type":"object","properties":{"kind":{"type":"string","enum":["comment","changes_requested","reviewed"]},"body":{"type":"string","maxLength":8000}},"required":["kind","body"],"additionalProperties":false},"briefFeedbackResponseSchema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":256},"publicationId":{"type":"string","minLength":1,"maxLength":256},"revision":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["comment","changes_requested","reviewed"]},"body":{"type":"string"},"authorUserId":{"type":"string","minLength":1,"maxLength":256},"authorName":{"type":"string"},"createdAt":{"type":"string","format":"date-time"}},"required":["id","publicationId","revision","kind","body","authorUserId","authorName","createdAt"],"additionalProperties":false}},"required":["data"],"additionalProperties":false},"briefFeedbackSchema":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":256},"publicationId":{"type":"string","minLength":1,"maxLength":256},"revision":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["comment","changes_requested","reviewed"]},"body":{"type":"string"},"authorUserId":{"type":"string","minLength":1,"maxLength":256},"authorName":{"type":"string"},"createdAt":{"type":"string","format":"date-time"}},"required":["id","publicationId","revision","kind","body","authorUserId","authorName","createdAt"],"additionalProperties":false},"briefInvitationDeliveryResponseSchema":{"type":"object","properties":{"data":{"type":"object","properties":{"grantId":{"type":"string","minLength":1,"maxLength":256},"publicationId":{"type":"string","minLength":1,"maxLength":256},"status":{"type":"string","enum":["sending","accepted","needs_reconciliation","failed"]},"providerMessageId":{"type":["string","null"]},"dispatchState":{"type":"string","enum":["not_attempted","attempted","unknown"]}},"required":["grantId","publicationId","status","providerMessageId","dispatchState"],"additionalProperties":false}},"required":["data"],"additionalProperties":false},"briefInvitationPreviewResponseSchema":{"type":"object","properties":{"data":{"type":"object","properties":{"publicationId":{"type":"string","minLength":1,"maxLength":256},"grantId":{"type":"string","minLength":1,"maxLength":256},"to":{"type":"string","format":"email"},"from":{"type":"string"},"replyTo":{"type":["string","null"]},"subject":{"type":"string"},"body":{"type":"string"},"reviewUrl":{"type":"string","format":"uri"},"previewDigest":{"type":"string","pattern":"^sha256:[a-f0-9]{64}$"},"canSend":{"type":"boolean"}},"required":["publicationId","grantId","to","from","replyTo","subject","body","reviewUrl","previewDigest","canSend"],"additionalProperties":false}},"required":["data"],"additionalProperties":false},"briefInvitationPreviewSchema":{"type":"object","properties":{"publicationId":{"type":"string","minLength":1,"maxLength":256},"grantId":{"type":"string","minLength":1,"maxLength":256},"to":{"type":"string","format":"email"},"from":{"type":"string"},"replyTo":{"type":["string","null"]},"subject":{"type":"string"},"body":{"type":"string"},"reviewUrl":{"type":"string","format":"uri"},"previewDigest":{"type":"string","pattern":"^sha256:[a-f0-9]{64}$"},"canSend":{"type":"boolean"}},"required":["publicationId","grantId","to","from","replyTo","subject","body","reviewUrl","previewDigest","canSend"],"additionalProperties":false},"briefInvitationSendRequestSchema":{"type":"object","properties":{"confirmGrantId":{"type":"string","minLength":1,"maxLength":256},"previewDigest":{"type":"string","pattern":"^sha256:[a-f0-9]{64}$"},"confirmSend":{"type":"boolean","const":true}},"required":["confirmGrantId","previewDigest","confirmSend"],"additionalProperties":false},"briefPublicationListResponseSchema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":256},"engagementId":{"type":"string","minLength":1,"maxLength":256},"partnerId":{"type":"string","minLength":1,"maxLength":256},"workspaceId":{"type":"string","minLength":1,"maxLength":256},"revision":{"type":"integer","exclusiveMinimum":0},"clientName":{"type":"string"},"engagementName":{"type":"string"},"publishedByUserId":{"type":"string","minLength":1,"maxLength":256},"publishedAt":{"type":"string","format":"date-time"},"reviewUrl":{"type":"string"}},"required":["id","engagementId","partnerId","workspaceId","revision","clientName","engagementName","publishedByUserId","publishedAt","reviewUrl"],"additionalProperties":false},"maxItems":50},"nextCursor":{"type":["string","null"]}},"required":["data","nextCursor"],"additionalProperties":false},"briefPublicationResponseSchema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":256},"engagementId":{"type":"string","minLength":1,"maxLength":256},"partnerId":{"type":"string","minLength":1,"maxLength":256},"workspaceId":{"type":"string","minLength":1,"maxLength":256},"revision":{"type":"integer","exclusiveMinimum":0},"content":{"type":"object","properties":{"context":{"type":"string","maxLength":15000},"outcomes":{"type":"string","maxLength":15000},"scope":{"type":"string","maxLength":15000},"exclusions":{"type":"string","maxLength":15000},"deliverables":{"type":"string","maxLength":15000},"milestones":{"type":"string","maxLength":15000},"responsibilities":{"type":"string","maxLength":15000},"proposedCommercials":{"type":"string","maxLength":15000},"assumptions":{"type":"string","maxLength":15000},"openDecisions":{"type":"string","maxLength":15000}},"required":["context","outcomes","scope","exclusions","deliverables","milestones","responsibilities","proposedCommercials","assumptions","openDecisions"],"additionalProperties":false},"clientName":{"type":"string"},"engagementName":{"type":"string"},"publishedByUserId":{"type":"string","minLength":1,"maxLength":256},"publishedAt":{"type":"string","format":"date-time"},"reviewUrl":{"type":"string"}},"required":["id","engagementId","partnerId","workspaceId","revision","content","clientName","engagementName","publishedByUserId","publishedAt","reviewUrl"],"additionalProperties":false},"reviewers":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":256},"publicationId":{"type":"string","minLength":1,"maxLength":256},"email":{"type":"string"},"userId":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time"},"revokedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]}},"required":["id","publicationId","email","userId","createdAt","revokedAt"],"additionalProperties":false}}},"required":["data","reviewers"],"additionalProperties":false},"briefPublicationSchema":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":256},"engagementId":{"type":"string","minLength":1,"maxLength":256},"partnerId":{"type":"string","minLength":1,"maxLength":256},"workspaceId":{"type":"string","minLength":1,"maxLength":256},"revision":{"type":"integer","exclusiveMinimum":0},"content":{"type":"object","properties":{"context":{"type":"string","maxLength":15000},"outcomes":{"type":"string","maxLength":15000},"scope":{"type":"string","maxLength":15000},"exclusions":{"type":"string","maxLength":15000},"deliverables":{"type":"string","maxLength":15000},"milestones":{"type":"string","maxLength":15000},"responsibilities":{"type":"string","maxLength":15000},"proposedCommercials":{"type":"string","maxLength":15000},"assumptions":{"type":"string","maxLength":15000},"openDecisions":{"type":"string","maxLength":15000}},"required":["context","outcomes","scope","exclusions","deliverables","milestones","responsibilities","proposedCommercials","assumptions","openDecisions"],"additionalProperties":false},"clientName":{"type":"string"},"engagementName":{"type":"string"},"publishedByUserId":{"type":"string","minLength":1,"maxLength":256},"publishedAt":{"type":"string","format":"date-time"},"reviewUrl":{"type":"string"}},"required":["id","engagementId","partnerId","workspaceId","revision","content","clientName","engagementName","publishedByUserId","publishedAt","reviewUrl"],"additionalProperties":false},"briefPublicationSummarySchema":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":256},"engagementId":{"type":"string","minLength":1,"maxLength":256},"partnerId":{"type":"string","minLength":1,"maxLength":256},"workspaceId":{"type":"string","minLength":1,"maxLength":256},"revision":{"type":"integer","exclusiveMinimum":0},"clientName":{"type":"string"},"engagementName":{"type":"string"},"publishedByUserId":{"type":"string","minLength":1,"maxLength":256},"publishedAt":{"type":"string","format":"date-time"},"reviewUrl":{"type":"string"}},"required":["id","engagementId","partnerId","workspaceId","revision","clientName","engagementName","publishedByUserId","publishedAt","reviewUrl"],"additionalProperties":false},"briefPublishRequestSchema":{"type":"object","properties":{"expectedRevision":{"type":"integer","exclusiveMinimum":0},"reviewers":{"type":"array","items":{"type":"string","format":"email","maxLength":320},"minItems":1,"maxItems":25},"confirmPublish":{"type":"boolean","const":true}},"required":["expectedRevision","reviewers","confirmPublish"],"additionalProperties":false},"briefReadResponseSchema":{"type":"object","properties":{"data":{"anyOf":[{"type":"object","properties":{"engagementId":{"type":"string","minLength":1,"maxLength":256},"partnerId":{"type":"string","minLength":1,"maxLength":256},"workspaceId":{"type":"string","minLength":1,"maxLength":256},"revision":{"type":"integer","exclusiveMinimum":0},"content":{"type":"object","properties":{"context":{"type":"string","maxLength":15000},"outcomes":{"type":"string","maxLength":15000},"scope":{"type":"string","maxLength":15000},"exclusions":{"type":"string","maxLength":15000},"deliverables":{"type":"string","maxLength":15000},"milestones":{"type":"string","maxLength":15000},"responsibilities":{"type":"string","maxLength":15000},"proposedCommercials":{"type":"string","maxLength":15000},"assumptions":{"type":"string","maxLength":15000},"openDecisions":{"type":"string","maxLength":15000}},"required":["context","outcomes","scope","exclusions","deliverables","milestones","responsibilities","proposedCommercials","assumptions","openDecisions"],"additionalProperties":false},"updatedByUserId":{"type":"string","minLength":1,"maxLength":256},"updatedAt":{"type":"string","format":"date-time"}},"required":["engagementId","partnerId","workspaceId","revision","content","updatedByUserId","updatedAt"],"additionalProperties":false},{"type":"null"}]}},"required":["data"],"additionalProperties":false},"briefRecordSchema":{"type":"object","properties":{"engagementId":{"type":"string","minLength":1,"maxLength":256},"partnerId":{"type":"string","minLength":1,"maxLength":256},"workspaceId":{"type":"string","minLength":1,"maxLength":256},"revision":{"type":"integer","exclusiveMinimum":0},"content":{"type":"object","properties":{"context":{"type":"string","maxLength":15000},"outcomes":{"type":"string","maxLength":15000},"scope":{"type":"string","maxLength":15000},"exclusions":{"type":"string","maxLength":15000},"deliverables":{"type":"string","maxLength":15000},"milestones":{"type":"string","maxLength":15000},"responsibilities":{"type":"string","maxLength":15000},"proposedCommercials":{"type":"string","maxLength":15000},"assumptions":{"type":"string","maxLength":15000},"openDecisions":{"type":"string","maxLength":15000}},"required":["context","outcomes","scope","exclusions","deliverables","milestones","responsibilities","proposedCommercials","assumptions","openDecisions"],"additionalProperties":false},"updatedByUserId":{"type":"string","minLength":1,"maxLength":256},"updatedAt":{"type":"string","format":"date-time"}},"required":["engagementId","partnerId","workspaceId","revision","content","updatedByUserId","updatedAt"],"additionalProperties":false},"briefReviewResponseSchema":{"type":"object","properties":{"publication":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":256},"engagementId":{"type":"string","minLength":1,"maxLength":256},"partnerId":{"type":"string","minLength":1,"maxLength":256},"workspaceId":{"type":"string","minLength":1,"maxLength":256},"revision":{"type":"integer","exclusiveMinimum":0},"content":{"type":"object","properties":{"context":{"type":"string","maxLength":15000},"outcomes":{"type":"string","maxLength":15000},"scope":{"type":"string","maxLength":15000},"exclusions":{"type":"string","maxLength":15000},"deliverables":{"type":"string","maxLength":15000},"milestones":{"type":"string","maxLength":15000},"responsibilities":{"type":"string","maxLength":15000},"proposedCommercials":{"type":"string","maxLength":15000},"assumptions":{"type":"string","maxLength":15000},"openDecisions":{"type":"string","maxLength":15000}},"required":["context","outcomes","scope","exclusions","deliverables","milestones","responsibilities","proposedCommercials","assumptions","openDecisions"],"additionalProperties":false},"clientName":{"type":"string"},"engagementName":{"type":"string"},"publishedByUserId":{"type":"string","minLength":1,"maxLength":256},"publishedAt":{"type":"string","format":"date-time"},"reviewUrl":{"type":"string"}},"required":["id","engagementId","partnerId","workspaceId","revision","content","clientName","engagementName","publishedByUserId","publishedAt","reviewUrl"],"additionalProperties":false},"feedback":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":256},"publicationId":{"type":"string","minLength":1,"maxLength":256},"revision":{"type":"integer","exclusiveMinimum":0},"kind":{"type":"string","enum":["comment","changes_requested","reviewed"]},"body":{"type":"string"},"authorUserId":{"type":"string","minLength":1,"maxLength":256},"authorName":{"type":"string"},"createdAt":{"type":"string","format":"date-time"}},"required":["id","publicationId","revision","kind","body","authorUserId","authorName","createdAt"],"additionalProperties":false},"maxItems":5},"nextFeedbackCursor":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]}},"required":["publication","feedback","nextFeedbackCursor"],"additionalProperties":false},"briefReviewRolloutRequestSchema":{"type":"object","properties":{"qualificationRunId":{"type":"string","minLength":1,"maxLength":256},"expectedBuildSha":{"type":"string","pattern":"^[a-f0-9]{40}$"},"publicationId":{"type":"string","minLength":1,"maxLength":256},"revokedGrantId":{"type":"string","minLength":1,"maxLength":256},"confirmEnable":{"type":"boolean","const":true},"reviewedChecks":{"type":"object","properties":{"success":{"type":"boolean","const":true},"denial":{"type":"boolean","const":true},"retry":{"type":"boolean","const":true},"revocation":{"type":"boolean","const":true},"readback":{"type":"boolean","const":true}},"required":["success","denial","retry","revocation","readback"],"additionalProperties":false}},"required":["qualificationRunId","expectedBuildSha","publicationId","revokedGrantId","confirmEnable","reviewedChecks"],"additionalProperties":false},"briefReviewRolloutResponseSchema":{"type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"],"additionalProperties":false},"briefReviewerAcceptRequestSchema":{"type":"object","properties":{"confirmPublicationId":{"type":"string","minLength":1,"maxLength":256}},"required":["confirmPublicationId"],"additionalProperties":false},"briefReviewerGrantSchema":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":256},"publicationId":{"type":"string","minLength":1,"maxLength":256},"email":{"type":"string"},"userId":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time"},"revokedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]}},"required":["id","publicationId","email","userId","createdAt","revokedAt"],"additionalProperties":false},"briefReviewerRevokeRequestSchema":{"type":"object","properties":{"confirmGrantId":{"type":"string","minLength":1,"maxLength":256}},"required":["confirmGrantId"],"additionalProperties":false},"briefReviewerRevokeResponseSchema":{"type":"object","properties":{"revoked":{"type":"boolean","const":true}},"required":["revoked"],"additionalProperties":false},"briefSaveRequestSchema":{"type":"object","properties":{"expectedRevision":{"type":"integer","minimum":0},"content":{"type":"object","properties":{"context":{"type":"string","maxLength":15000},"outcomes":{"type":"string","maxLength":15000},"scope":{"type":"string","maxLength":15000},"exclusions":{"type":"string","maxLength":15000},"deliverables":{"type":"string","maxLength":15000},"milestones":{"type":"string","maxLength":15000},"responsibilities":{"type":"string","maxLength":15000},"proposedCommercials":{"type":"string","maxLength":15000},"assumptions":{"type":"string","maxLength":15000},"openDecisions":{"type":"string","maxLength":15000}},"required":["context","outcomes","scope","exclusions","deliverables","milestones","responsibilities","proposedCommercials","assumptions","openDecisions"],"additionalProperties":false}},"required":["expectedRevision","content"],"additionalProperties":false},"checklistReadResponseSchema":{"type":"object","properties":{"data":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":256},"partnerId":{"type":"string","minLength":1,"maxLength":256},"workspaceId":{"type":"string","minLength":1,"maxLength":256},"engagementId":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"context":{"type":"string","enum":["client_setup","engagement_kickoff"]},"revision":{"type":"integer","exclusiveMinimum":0},"steps":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","minLength":1,"maxLength":256},"label":{"type":"string","minLength":1,"maxLength":200},"required":{"type":"boolean"},"status":{"type":"string","enum":["todo","in_progress","blocked","done","not_applicable"]},"legacyStepId":{"type":"string","minLength":1,"maxLength":256}},"required":["key","label","required","status"],"additionalProperties":false},"maxItems":50},"activatedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"reviewedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"updatedAt":{"type":"string","format":"date-time"},"updatedByUserId":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"state":{"type":"string","enum":["needs_review","not_configured","not_started","in_progress","blocked","ready","not_required"]}},"required":["id","partnerId","workspaceId","engagementId","context","revision","steps","activatedAt","reviewedAt","updatedAt","updatedByUserId","state"],"additionalProperties":false},{"type":"null"}]}},"required":["data"],"additionalProperties":false},"checklistRecordSchema":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":256},"partnerId":{"type":"string","minLength":1,"maxLength":256},"workspaceId":{"type":"string","minLength":1,"maxLength":256},"engagementId":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"context":{"type":"string","enum":["client_setup","engagement_kickoff"]},"revision":{"type":"integer","exclusiveMinimum":0},"steps":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","minLength":1,"maxLength":256},"label":{"type":"string","minLength":1,"maxLength":200},"required":{"type":"boolean"},"status":{"type":"string","enum":["todo","in_progress","blocked","done","not_applicable"]},"legacyStepId":{"type":"string","minLength":1,"maxLength":256}},"required":["key","label","required","status"],"additionalProperties":false},"maxItems":50},"activatedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"reviewedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"updatedAt":{"type":"string","format":"date-time"},"updatedByUserId":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"state":{"type":"string","enum":["needs_review","not_configured","not_started","in_progress","blocked","ready","not_required"]}},"required":["id","partnerId","workspaceId","engagementId","context","revision","steps","activatedAt","reviewedAt","updatedAt","updatedByUserId","state"],"additionalProperties":false},"checklistSaveRequestSchema":{"type":"object","properties":{"expectedRevision":{"type":"integer","minimum":0},"steps":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","minLength":1,"maxLength":256},"label":{"type":"string","minLength":1,"maxLength":200},"required":{"type":"boolean"},"status":{"type":"string","enum":["todo","in_progress","blocked","done","not_applicable"]},"legacyStepId":{"type":"string","minLength":1,"maxLength":256}},"required":["key","label","required","status"],"additionalProperties":false},"maxItems":50},"activate":{"type":"boolean"},"confirmReviewed":{"type":"boolean","const":true}},"required":["expectedRevision","steps","activate","confirmReviewed"],"additionalProperties":false},"checklistStepSchema":{"type":"object","properties":{"key":{"type":"string","minLength":1,"maxLength":256},"label":{"type":"string","minLength":1,"maxLength":200},"required":{"type":"boolean"},"status":{"type":"string","enum":["todo","in_progress","blocked","done","not_applicable"]},"legacyStepId":{"type":"string","minLength":1,"maxLength":256}},"required":["key","label","required","status"],"additionalProperties":false},"clientRecordPurposeRequestSchema":{"type":"object","properties":{"purpose":{"type":"string","enum":["business","qualification"]},"confirmClientId":{"type":"string","minLength":1,"maxLength":256}},"required":["purpose","confirmClientId"],"additionalProperties":false},"clientRecordPurposeResponseSchema":{"type":"object","properties":{"purpose":{"type":"string","enum":["business","qualification"]}},"required":["purpose"],"additionalProperties":false},"clientSummariesResponseSchema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":256},"name":{"type":"string"},"slug":{"type":"string"},"currentEngagementId":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"currentWork":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":256},"name":{"type":"string"},"deliveryStatus":{"type":"string"}},"required":["id","name","deliveryStatus"],"additionalProperties":false}},"activeEngagementCount":{"type":"integer","minimum":0},"previousEngagementCount":{"type":"integer","minimum":0},"discussion":{"type":"boolean"},"owner":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":256},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":false},{"type":"null"}]},"nextAction":{"type":["string","null"]},"attention":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"engagementId":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]}},"required":["key","label","engagementId"],"additionalProperties":false}},"purpose":{"type":"string","enum":["business","qualification"]},"contacts":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"email":{"anyOf":[{"type":"string","maxLength":320},{"type":"null"}]},"phone":{"anyOf":[{"type":"string","maxLength":50},{"type":"null"}]},"title":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}]},"role":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}]}},"required":["name"],"additionalProperties":false},"maxItems":5},"workspace":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":256},"slug":{"type":"string"},"readiness":{"anyOf":[{"type":"string","enum":["preparing","in_review","pilot","live","paused","archived"]},{"type":"null"}]},"audience":{"anyOf":[{"type":"string","enum":["internal_only","invited_clients"]},{"type":"null"}]},"purpose":{"anyOf":[{"type":"string","enum":["client","internal","demo","qa"]},{"type":"null"}]},"agency":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":256},"slug":{"type":"string","minLength":1,"maxLength":80},"name":{"type":"string","maxLength":160},"status":{"type":"string","maxLength":40}},"required":["id","slug","name","status"],"additionalProperties":false},{"type":"null"}]}},"required":["id","slug","readiness","audience","purpose"],"additionalProperties":false},{"type":"null"}]}},"required":["id","name","slug","currentEngagementId","currentWork","activeEngagementCount","previousEngagementCount","discussion","owner","nextAction","attention","purpose","workspace"],"additionalProperties":false}},"total":{"type":"integer","minimum":0}},"required":["data","total"],"additionalProperties":false},"clientSummarySchema":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":256},"name":{"type":"string"},"slug":{"type":"string"},"currentEngagementId":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"currentWork":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":256},"name":{"type":"string"},"deliveryStatus":{"type":"string"}},"required":["id","name","deliveryStatus"],"additionalProperties":false}},"activeEngagementCount":{"type":"integer","minimum":0},"previousEngagementCount":{"type":"integer","minimum":0},"discussion":{"type":"boolean"},"owner":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":256},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":false},{"type":"null"}]},"nextAction":{"type":["string","null"]},"attention":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"engagementId":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]}},"required":["key","label","engagementId"],"additionalProperties":false}},"purpose":{"type":"string","enum":["business","qualification"]},"contacts":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"email":{"anyOf":[{"type":"string","maxLength":320},{"type":"null"}]},"phone":{"anyOf":[{"type":"string","maxLength":50},{"type":"null"}]},"title":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}]},"role":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}]}},"required":["name"],"additionalProperties":false},"maxItems":5},"workspace":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":256},"slug":{"type":"string"},"readiness":{"anyOf":[{"type":"string","enum":["preparing","in_review","pilot","live","paused","archived"]},{"type":"null"}]},"audience":{"anyOf":[{"type":"string","enum":["internal_only","invited_clients"]},{"type":"null"}]},"purpose":{"anyOf":[{"type":"string","enum":["client","internal","demo","qa"]},{"type":"null"}]},"agency":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":256},"slug":{"type":"string","minLength":1,"maxLength":80},"name":{"type":"string","maxLength":160},"status":{"type":"string","maxLength":40}},"required":["id","slug","name","status"],"additionalProperties":false},{"type":"null"}]}},"required":["id","slug","readiness","audience","purpose"],"additionalProperties":false},{"type":"null"}]}},"required":["id","name","slug","currentEngagementId","currentWork","activeEngagementCount","previousEngagementCount","discussion","owner","nextAction","attention","purpose","workspace"],"additionalProperties":false},"emptyBriefRequestSchema":{"type":"object","properties":{},"additionalProperties":false},"engagementPagePreviewResponseSchema":{"type":"object","properties":{"data":{"type":"object","properties":{"formatVersion":{"type":"number","const":2},"pageId":{"type":"string","minLength":1,"maxLength":256},"pageRevision":{"type":"integer","exclusiveMinimum":0},"title":{"type":"string"},"document":{"type":"array","items":{"type":"object","additionalProperties":{}},"maxItems":1000},"body":{"type":"string"},"digest":{"type":"string","pattern":"^[a-f0-9]{64}$"}},"required":["formatVersion","pageId","pageRevision","title","document","body","digest"],"additionalProperties":false}},"required":["data"],"additionalProperties":false},"engagementPagePublicationResponseSchema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":256},"engagementId":{"type":"string","minLength":1,"maxLength":256},"partnerId":{"type":"string","minLength":1,"maxLength":256},"workspaceId":{"type":"string","minLength":1,"maxLength":256},"revision":{"type":"integer","exclusiveMinimum":0},"content":{"type":"object","properties":{"context":{"type":"string","maxLength":15000},"outcomes":{"type":"string","maxLength":15000},"scope":{"type":"string","maxLength":15000},"exclusions":{"type":"string","maxLength":15000},"deliverables":{"type":"string","maxLength":15000},"milestones":{"type":"string","maxLength":15000},"responsibilities":{"type":"string","maxLength":15000},"proposedCommercials":{"type":"string","maxLength":15000},"assumptions":{"type":"string","maxLength":15000},"openDecisions":{"type":"string","maxLength":15000}},"required":["context","outcomes","scope","exclusions","deliverables","milestones","responsibilities","proposedCommercials","assumptions","openDecisions"],"additionalProperties":false},"clientName":{"type":"string"},"engagementName":{"type":"string"},"publishedByUserId":{"type":"string","minLength":1,"maxLength":256},"publishedAt":{"type":"string","format":"date-time"},"reviewUrl":{"type":"string"}},"required":["id","engagementId","partnerId","workspaceId","revision","content","clientName","engagementName","publishedByUserId","publishedAt","reviewUrl"],"additionalProperties":false},"reviewers":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":256},"publicationId":{"type":"string","minLength":1,"maxLength":256},"email":{"type":"string"},"userId":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time"},"revokedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]}},"required":["id","publicationId","email","userId","createdAt","revokedAt"],"additionalProperties":false}},"pageSnapshot":{"type":"object","properties":{"formatVersion":{"type":"number","const":2},"pageId":{"type":"string","minLength":1,"maxLength":256},"pageRevision":{"type":"integer","exclusiveMinimum":0},"title":{"type":"string"},"document":{"type":"array","items":{"type":"object","additionalProperties":{}},"maxItems":1000},"body":{"type":"string"},"digest":{"type":"string","pattern":"^[a-f0-9]{64}$"}},"required":["formatVersion","pageId","pageRevision","title","document","body","digest"],"additionalProperties":false}},"required":["data","reviewers","pageSnapshot"],"additionalProperties":false},"engagementPagePublishRequestSchema":{"type":"object","properties":{"expectedRevision":{"type":"integer","exclusiveMinimum":0},"previewDigest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"reviewers":{"type":"array","items":{"type":"string","format":"email"},"minItems":1,"maxItems":25},"confirmPublish":{"type":"boolean","const":true}},"required":["expectedRevision","previewDigest","reviewers","confirmPublish"],"additionalProperties":false},"engagementPageResponseSchema":{"type":"object","properties":{"data":{"anyOf":[{"type":"object","properties":{"pageId":{"type":"string","minLength":1,"maxLength":256},"state":{"type":"string","enum":["pending","ready","needs_attention","unavailable"]},"href":{"type":"string"},"page":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":256},"revision":{"type":"integer","exclusiveMinimum":0},"title":{"type":"string"},"body":{"type":"string"},"document":{}},"required":["id","revision","title","body"],"additionalProperties":true},{"type":"null"}]}},"required":["pageId","state","href","page"],"additionalProperties":false},{"type":"null"}]}},"required":["data"],"additionalProperties":false},"engagementPageReviewResponseSchema":{"type":"object","properties":{"data":{"anyOf":[{"type":"object","properties":{"formatVersion":{"type":"number","const":2},"pageId":{"type":"string","minLength":1,"maxLength":256},"pageRevision":{"type":"integer","exclusiveMinimum":0},"title":{"type":"string"},"document":{"type":"array","items":{"type":"object","additionalProperties":{}},"maxItems":1000},"body":{"type":"string"},"digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"publicationId":{"type":"string","minLength":1,"maxLength":256}},"required":["formatVersion","pageId","pageRevision","title","document","body","digest","publicationId"],"additionalProperties":false},{"type":"null"}]}},"required":["data"],"additionalProperties":false},"engagementPageSnapshotSchema":{"type":"object","properties":{"formatVersion":{"type":"number","const":2},"pageId":{"type":"string","minLength":1,"maxLength":256},"pageRevision":{"type":"integer","exclusiveMinimum":0},"title":{"type":"string"},"document":{"type":"array","items":{"type":"object","additionalProperties":{}},"maxItems":1000},"body":{"type":"string"},"digest":{"type":"string","pattern":"^[a-f0-9]{64}$"}},"required":["formatVersion","pageId","pageRevision","title","document","body","digest"],"additionalProperties":false},"enterpriseEngagementListResponseSchema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":256},"partnerId":{"type":"string","minLength":1,"maxLength":256},"clientName":{"type":"string"},"name":{"type":"string"},"stage":{"type":"string"},"deliveryStatus":{"type":"string"},"current":{"type":"boolean"},"owner":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":256},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":false},{"type":"null"}]},"nextAction":{"type":["string","null"]},"purpose":{"type":"string","enum":["business","qualification"]}},"required":["id","partnerId","clientName","name","stage","deliveryStatus","current","owner","nextAction","purpose"],"additionalProperties":false}},"total":{"type":"integer","minimum":0}},"required":["data","total"],"additionalProperties":false},"partnerClientAgencySchema":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":256},"slug":{"type":"string","minLength":1,"maxLength":80},"name":{"type":"string","maxLength":160},"status":{"type":"string","maxLength":40}},"required":["id","slug","name","status"],"additionalProperties":false},"partnerContactSchema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"email":{"anyOf":[{"type":"string","maxLength":320},{"type":"null"}]},"phone":{"anyOf":[{"type":"string","maxLength":50},{"type":"null"}]},"title":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}]},"role":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}]}},"required":["name"],"additionalProperties":false},"workspaceGovernanceResponseSchema":{"type":"object","properties":{"data":{"anyOf":[{"type":"object","properties":{"version":{"type":"number","const":1},"revision":{"type":"integer","exclusiveMinimum":0},"purpose":{"type":"string","enum":["client","internal","demo","qa"]},"readiness":{"type":"string","enum":["preparing","in_review","pilot","live","paused","archived"]},"audience":{"type":"string","enum":["internal_only","invited_clients"]},"resumeState":{"anyOf":[{"type":"string","enum":["preparing","in_review","pilot","live","paused","archived"]},{"type":"null"}]},"reviewedAt":{"type":"string","format":"date-time"},"reviewedBy":{"type":"string","minLength":1}},"required":["version","revision","purpose","readiness","audience","resumeState","reviewedAt","reviewedBy"],"additionalProperties":false},{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"slug":{"type":"string"},"partnerId":{"type":["string","null"]},"governance":{"anyOf":[{"type":"object","properties":{"version":{"type":"number","const":1},"revision":{"type":"integer","exclusiveMinimum":0},"purpose":{"type":"string","enum":["client","internal","demo","qa"]},"readiness":{"type":"string","enum":["preparing","in_review","pilot","live","paused","archived"]},"audience":{"type":"string","enum":["internal_only","invited_clients"]},"resumeState":{"anyOf":[{"type":"string","enum":["preparing","in_review","pilot","live","paused","archived"]},{"type":"null"}]},"reviewedAt":{"type":"string","format":"date-time"},"reviewedBy":{"type":"string","minLength":1}},"required":["version","revision","purpose","readiness","audience","resumeState","reviewedAt","reviewedBy"],"additionalProperties":false},{"type":"null"}]},"members":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"role":{"type":"string"},"internal":{"type":"boolean"}},"required":["id","name","role","internal"],"additionalProperties":false}},"runtime":{"anyOf":[{"type":"object","properties":{"workspaceId":{"type":"string"},"state":{"type":"string"},"template":{"type":"string"}},"required":["workspaceId","state","template"],"additionalProperties":false},{"type":"null"}]},"exceptions":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["survey","brief_review"]},"label":{"type":"string"},"recipient":{"type":"string"},"href":{"type":"string"}},"required":["kind","label","recipient","href"],"additionalProperties":false}},"agencies":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1},"slug":{"type":"string"},"name":{"type":"string"},"status":{"type":"string"},"governance":{"anyOf":[{"type":"object","properties":{"version":{"type":"number","const":1},"revision":{"type":"integer","exclusiveMinimum":0},"purpose":{"type":"string","enum":["client","internal","demo","qa"]},"readiness":{"type":"string","enum":["preparing","in_review","pilot","live","paused","archived"]},"audience":{"type":"string","enum":["internal_only","invited_clients"]},"resumeState":{"anyOf":[{"type":"string","enum":["preparing","in_review","pilot","live","paused","archived"]},{"type":"null"}]},"reviewedAt":{"type":"string","format":"date-time"},"reviewedBy":{"type":"string","minLength":1}},"required":["version","revision","purpose","readiness","audience","resumeState","reviewedAt","reviewedBy"],"additionalProperties":false},{"type":"null"}]}},"required":["id","slug","name","status","governance"],"additionalProperties":false}}},"required":["id","name","slug","partnerId","governance","members","runtime","exceptions"],"additionalProperties":false},{"type":"null"}]},{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"slug":{"type":"string"},"partnerId":{"type":["string","null"]},"governance":{"anyOf":[{"type":"object","properties":{"version":{"type":"number","const":1},"revision":{"type":"integer","exclusiveMinimum":0},"purpose":{"type":"string","enum":["client","internal","demo","qa"]},"readiness":{"type":"string","enum":["preparing","in_review","pilot","live","paused","archived"]},"audience":{"type":"string","enum":["internal_only","invited_clients"]},"resumeState":{"anyOf":[{"type":"string","enum":["preparing","in_review","pilot","live","paused","archived"]},{"type":"null"}]},"reviewedAt":{"type":"string","format":"date-time"},"reviewedBy":{"type":"string","minLength":1}},"required":["version","revision","purpose","readiness","audience","resumeState","reviewedAt","reviewedBy"],"additionalProperties":false},{"type":"null"}]},"members":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"role":{"type":"string"},"internal":{"type":"boolean"}},"required":["id","name","role","internal"],"additionalProperties":false}},"runtime":{"anyOf":[{"type":"object","properties":{"workspaceId":{"type":"string"},"state":{"type":"string"},"template":{"type":"string"}},"required":["workspaceId","state","template"],"additionalProperties":false},{"type":"null"}]},"exceptions":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["survey","brief_review"]},"label":{"type":"string"},"recipient":{"type":"string"},"href":{"type":"string"}},"required":["kind","label","recipient","href"],"additionalProperties":false}},"agencies":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1},"slug":{"type":"string"},"name":{"type":"string"},"status":{"type":"string"},"governance":{"anyOf":[{"type":"object","properties":{"version":{"type":"number","const":1},"revision":{"type":"integer","exclusiveMinimum":0},"purpose":{"type":"string","enum":["client","internal","demo","qa"]},"readiness":{"type":"string","enum":["preparing","in_review","pilot","live","paused","archived"]},"audience":{"type":"string","enum":["internal_only","invited_clients"]},"resumeState":{"anyOf":[{"type":"string","enum":["preparing","in_review","pilot","live","paused","archived"]},{"type":"null"}]},"reviewedAt":{"type":"string","format":"date-time"},"reviewedBy":{"type":"string","minLength":1}},"required":["version","revision","purpose","readiness","audience","resumeState","reviewedAt","reviewedBy"],"additionalProperties":false},{"type":"null"}]}},"required":["id","slug","name","status","governance"],"additionalProperties":false}}},"required":["id","name","slug","partnerId","governance","members","runtime","exceptions"],"additionalProperties":false}}]}},"required":["data"],"additionalProperties":false},"workspaceGovernanceUpdateSchema":{"type":"object","properties":{"expectedRevision":{"type":"integer","minimum":0},"purpose":{"type":"string","enum":["client","internal","demo","qa"]},"readiness":{"type":"string","enum":["preparing","in_review","pilot","live","paused","archived"]},"audience":{"type":"string","enum":["internal_only","invited_clients"]},"confirmWorkspaceId":{"type":"string","minLength":1},"confirmMemberImpact":{"type":"boolean","const":true},"subOrganizationId":{"type":"string","minLength":1}},"required":["expectedRevision","purpose","readiness","audience","confirmWorkspaceId","confirmMemberImpact"],"additionalProperties":false},"activityDateSchema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"activityTimeZoneSchema":{"type":"string","minLength":1,"maxLength":100},"clientActivityEventSchema":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string"},"title":{"type":"string"},"summary":{"type":["string","null"]},"actorName":{"type":["string","null"]},"occurredAt":{"type":"string","format":"date-time"},"day":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"engagementId":{"type":"string"},"engagementName":{"type":"string"},"sourceAvailable":{"type":"boolean"},"sourceHref":{"type":["string","null"]},"sourceTitle":{"type":["string","null"]}},"required":["id","kind","title","summary","actorName","occurredAt","day","engagementId","engagementName","sourceAvailable","sourceHref","sourceTitle"],"additionalProperties":false},"clientActivityQuerySchema":{"type":"object","properties":{"from":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"to":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"timeZone":{"type":"string","minLength":1,"maxLength":100},"day":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"cursor":{"type":"string","minLength":1,"maxLength":4096}},"required":["from","to","timeZone"],"additionalProperties":false},"clientActivityResponseSchema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string"},"title":{"type":"string"},"summary":{"type":["string","null"]},"actorName":{"type":["string","null"]},"occurredAt":{"type":"string","format":"date-time"},"day":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"engagementId":{"type":"string"},"engagementName":{"type":"string"},"sourceAvailable":{"type":"boolean"},"sourceHref":{"type":["string","null"]},"sourceTitle":{"type":["string","null"]}},"required":["id","kind","title","summary","actorName","occurredAt","day","engagementId","engagementName","sourceAvailable","sourceHref","sourceTitle"],"additionalProperties":false}},"days":{"type":"array","items":{"type":"object","properties":{"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"count":{"type":"integer","minimum":0}},"required":["date","count"],"additionalProperties":false}},"total":{"type":"integer","minimum":0},"nextCursor":{"type":["string","null"]},"range":{"type":"object","properties":{"from":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"to":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"timeZone":{"type":"string","minLength":1,"maxLength":100},"day":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]}},"required":["from","to","timeZone","day"],"additionalProperties":false}},"required":["data","days","total","nextCursor","range"],"additionalProperties":false},"EmptyClientRequest":{"type":"object","properties":{},"additionalProperties":false}}}}