{"openapi":"3.0.3","info":{"title":"Sekential Public API","version":"0.10.6","description":"Tenant collection operations are listed below. Create a REST API key in Personal Integrations and send it in the x-sekential-api-key header. Requests retain the key owner's tenant and document permissions. MCP uses separate credentials."},"servers":[{"url":"https://app.sekential.com"}],"paths":{"/api/agent-goals":{"get":{"operationId":"listAgentGoals","summary":"Retrieve a list of Agent Goals","tags":["Agent Goals"],"parameters":[{"in":"query","name":"page","schema":{"type":"number"}},{"in":"query","name":"limit","schema":{"type":"number"}},{"in":"query","name":"depth","schema":{"type":"number"}},{"in":"query","name":"locale","schema":{"type":"string"}},{"in":"query","name":"fallback-locale","schema":{"type":"string"}},{"in":"query","name":"sort","schema":{"type":"string","enum":["skill","-skill","scheduleTime","-scheduleTime","scheduleWeekday","-scheduleWeekday","assignmentKey","-assignmentKey","timeZone","-timeZone","title","-title","meetingOffset","-meetingOffset","nextCheckAt","-nextCheckAt","blockReason","-blockReason","archivedAt","-archivedAt","updatedAt","-updatedAt","createdAt","-createdAt"]}},{"in":"query","name":"where","style":"deepObject","schema":{"allOf":[{"type":"object"},{"anyOf":[{"$ref":"#/components/schemas/AgentGoalQueryOperations"},{"$ref":"#/components/schemas/AgentGoalQueryOperationsAnd"},{"$ref":"#/components/schemas/AgentGoalQueryOperationsOr"}]}],"description":"Filter with Payload query objects, for example {customer:{equals:'ID'}}. Combine conditions with and/or arrays. Tenant access is always enforced."}},{"in":"query","name":"select","style":"deepObject","description":"Select readable fields for a compact response; nested fields use nested objects.","schema":{"type":"object","description":"For compact reads, set only needed readable fields to true, for example {title:true,priority:true}; use nested objects for nested fields. Use false only for exclusion mode, without mixing true and false. Selection does not grant field access. Combine with depth:0 and a small limit.","additionalProperties":{"anyOf":[{"type":"boolean"},{"type":"object","additionalProperties":true}]}}}],"responses":{"200":{"$ref":"#/components/responses/AgentGoalListResponse"}},"security":[{"ApiKey":[]}]},"post":{"operationId":"createAgentGoal","summary":"Create a new Agent Goal","tags":["Agent Goals"],"parameters":[{"in":"query","name":"depth","schema":{"type":"number"}},{"in":"query","name":"locale","schema":{"type":"string"}}],"requestBody":{"$ref":"#/components/requestBodies/AgentGoalRequestBody"},"responses":{"201":{"$ref":"#/components/responses/MutateAgentGoalResponse"}},"security":[{"ApiKey":[]}]}},"/api/agent-goals/{id}":{"parameters":[{"in":"query","name":"depth","schema":{"type":"number"}},{"in":"query","name":"locale","schema":{"type":"string"}},{"in":"query","name":"fallback-locale","schema":{"type":"string"}},{"in":"path","name":"id","description":"ID of the Agent Goal","required":true,"schema":{"type":"string"}}],"get":{"operationId":"findAgentGoalById","summary":"Find a Agent Goal by ID","tags":["Agent Goals"],"responses":{"200":{"description":"The requested record.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentGoal"}}}}},"security":[{"ApiKey":[]}],"parameters":[{"in":"query","name":"select","style":"deepObject","description":"Select readable fields for a compact response; nested fields use nested objects.","schema":{"type":"object","description":"For compact reads, set only needed readable fields to true, for example {title:true,priority:true}; use nested objects for nested fields. Use false only for exclusion mode, without mixing true and false. Selection does not grant field access. Combine with depth:0 and a small limit.","additionalProperties":{"anyOf":[{"type":"boolean"},{"type":"object","additionalProperties":true}]}}}]},"patch":{"operationId":"updateAgentGoal","summary":"Update a Agent Goal","tags":["Agent Goals"],"requestBody":{"$ref":"#/components/requestBodies/AgentGoalPatchRequestBody"},"responses":{"200":{"$ref":"#/components/responses/AgentGoalResponse"},"404":{"$ref":"#/components/responses/AgentGoalNotFoundResponse"}},"security":[{"ApiKey":[]}]},"delete":{"operationId":"deleteAgentGoal","summary":"Delete a Agent Goal","tags":["Agent Goals"],"responses":{"200":{"$ref":"#/components/responses/AgentGoalResponse"},"404":{"$ref":"#/components/responses/AgentGoalNotFoundResponse"}},"security":[{"ApiKey":[]}]}},"/api/assets":{"get":{"operationId":"listAssets","summary":"Retrieve a list of Assets","tags":["Assets"],"parameters":[{"in":"query","name":"page","schema":{"type":"number"}},{"in":"query","name":"limit","schema":{"type":"number"}},{"in":"query","name":"depth","schema":{"type":"number"}},{"in":"query","name":"locale","schema":{"type":"string"}},{"in":"query","name":"fallback-locale","schema":{"type":"string"}},{"in":"query","name":"sort","schema":{"type":"string","enum":["name","-name","externalUrl","-externalUrl","stepKey","-stepKey","prefix","-prefix","updatedAt","-updatedAt","createdAt","-createdAt","url","-url","thumbnailURL","-thumbnailURL","filename","-filename","mimeType","-mimeType","filesize","-filesize","width","-width","height","-height","focalX","-focalX","focalY","-focalY"]}},{"in":"query","name":"where","style":"deepObject","schema":{"allOf":[{"type":"object"},{"anyOf":[{"$ref":"#/components/schemas/AssetQueryOperations"},{"$ref":"#/components/schemas/AssetQueryOperationsAnd"},{"$ref":"#/components/schemas/AssetQueryOperationsOr"}]}],"description":"Filter with Payload query objects, for example {customer:{equals:'ID'}}. Combine conditions with and/or arrays. Tenant access is always enforced."}},{"in":"query","name":"select","style":"deepObject","description":"Select readable fields for a compact response; nested fields use nested objects.","schema":{"type":"object","description":"For compact reads, set only needed readable fields to true, for example {title:true,priority:true}; use nested objects for nested fields. Use false only for exclusion mode, without mixing true and false. Selection does not grant field access. Combine with depth:0 and a small limit.","additionalProperties":{"anyOf":[{"type":"boolean"},{"type":"object","additionalProperties":true}]}}}],"responses":{"200":{"$ref":"#/components/responses/AssetListResponse"}},"security":[{"ApiKey":[]}]},"post":{"operationId":"createAsset","summary":"Create a new Asset","tags":["Assets"],"parameters":[{"in":"query","name":"depth","schema":{"type":"number"}},{"in":"query","name":"locale","schema":{"type":"string"}}],"requestBody":{"$ref":"#/components/requestBodies/AssetRequestBody"},"responses":{"201":{"$ref":"#/components/responses/MutateAssetResponse"}},"security":[{"ApiKey":[]}]}},"/api/assets/{id}":{"parameters":[{"in":"query","name":"depth","schema":{"type":"number"}},{"in":"query","name":"locale","schema":{"type":"string"}},{"in":"query","name":"fallback-locale","schema":{"type":"string"}},{"in":"path","name":"id","description":"ID of the Asset","required":true,"schema":{"type":"string"}}],"get":{"operationId":"findAssetById","summary":"Find a Asset by ID","tags":["Assets"],"responses":{"200":{"description":"The requested record.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Asset"}}}}},"security":[{"ApiKey":[]}],"parameters":[{"in":"query","name":"select","style":"deepObject","description":"Select readable fields for a compact response; nested fields use nested objects.","schema":{"type":"object","description":"For compact reads, set only needed readable fields to true, for example {title:true,priority:true}; use nested objects for nested fields. Use false only for exclusion mode, without mixing true and false. Selection does not grant field access. Combine with depth:0 and a small limit.","additionalProperties":{"anyOf":[{"type":"boolean"},{"type":"object","additionalProperties":true}]}}}]},"patch":{"operationId":"updateAsset","summary":"Update a Asset","tags":["Assets"],"requestBody":{"$ref":"#/components/requestBodies/AssetPatchRequestBody"},"responses":{"200":{"$ref":"#/components/responses/AssetResponse"},"404":{"$ref":"#/components/responses/AssetNotFoundResponse"}},"security":[{"ApiKey":[]}]},"delete":{"operationId":"deleteAsset","summary":"Delete a Asset","tags":["Assets"],"responses":{"200":{"$ref":"#/components/responses/AssetResponse"},"404":{"$ref":"#/components/responses/AssetNotFoundResponse"}},"security":[{"ApiKey":[]}]}},"/api/customer-variable-values":{"get":{"operationId":"listCustomerVariableValues","summary":"Retrieve a list of Customer Variable Values","tags":["Customer Variable Values"],"parameters":[{"in":"query","name":"page","schema":{"type":"number"}},{"in":"query","name":"limit","schema":{"type":"number"}},{"in":"query","name":"depth","schema":{"type":"number"}},{"in":"query","name":"locale","schema":{"type":"string"}},{"in":"query","name":"fallback-locale","schema":{"type":"string"}},{"in":"query","name":"sort","schema":{"type":"string","enum":["archivedAt","-archivedAt","updatedAt","-updatedAt","createdAt","-createdAt"]}},{"in":"query","name":"where","style":"deepObject","schema":{"allOf":[{"type":"object"},{"anyOf":[{"$ref":"#/components/schemas/CustomerVariableValueQueryOperations"},{"$ref":"#/components/schemas/CustomerVariableValueQueryOperationsAnd"},{"$ref":"#/components/schemas/CustomerVariableValueQueryOperationsOr"}]}],"description":"Filter with Payload query objects, for example {customer:{equals:'ID'}}. Combine conditions with and/or arrays. Tenant access is always enforced."}},{"in":"query","name":"select","style":"deepObject","description":"Select readable fields for a compact response; nested fields use nested objects.","schema":{"type":"object","description":"For compact reads, set only needed readable fields to true, for example {title:true,priority:true}; use nested objects for nested fields. Use false only for exclusion mode, without mixing true and false. Selection does not grant field access. Combine with depth:0 and a small limit.","additionalProperties":{"anyOf":[{"type":"boolean"},{"type":"object","additionalProperties":true}]}}}],"responses":{"200":{"$ref":"#/components/responses/CustomerVariableValueListResponse"}},"security":[{"ApiKey":[]}]},"post":{"operationId":"createCustomerVariableValue","summary":"Create a new Customer Variable Value","tags":["Customer Variable Values"],"parameters":[{"in":"query","name":"depth","schema":{"type":"number"}},{"in":"query","name":"locale","schema":{"type":"string"}}],"requestBody":{"$ref":"#/components/requestBodies/CustomerVariableValueRequestBody"},"responses":{"201":{"$ref":"#/components/responses/MutateCustomerVariableValueResponse"}},"security":[{"ApiKey":[]}]}},"/api/customer-variable-values/{id}":{"parameters":[{"in":"query","name":"depth","schema":{"type":"number"}},{"in":"query","name":"locale","schema":{"type":"string"}},{"in":"query","name":"fallback-locale","schema":{"type":"string"}},{"in":"path","name":"id","description":"ID of the Customer Variable Value","required":true,"schema":{"type":"string"}}],"get":{"operationId":"findCustomerVariableValueById","summary":"Find a Customer Variable Value by ID","tags":["Customer Variable Values"],"responses":{"200":{"description":"The requested record.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerVariableValue"}}}}},"security":[{"ApiKey":[]}],"parameters":[{"in":"query","name":"select","style":"deepObject","description":"Select readable fields for a compact response; nested fields use nested objects.","schema":{"type":"object","description":"For compact reads, set only needed readable fields to true, for example {title:true,priority:true}; use nested objects for nested fields. Use false only for exclusion mode, without mixing true and false. Selection does not grant field access. Combine with depth:0 and a small limit.","additionalProperties":{"anyOf":[{"type":"boolean"},{"type":"object","additionalProperties":true}]}}}]},"patch":{"operationId":"updateCustomerVariableValue","summary":"Update a Customer Variable Value","tags":["Customer Variable Values"],"requestBody":{"$ref":"#/components/requestBodies/CustomerVariableValuePatchRequestBody"},"responses":{"200":{"$ref":"#/components/responses/CustomerVariableValueResponse"},"404":{"$ref":"#/components/responses/CustomerVariableValueNotFoundResponse"}},"security":[{"ApiKey":[]}]},"delete":{"operationId":"deleteCustomerVariableValue","summary":"Delete a Customer Variable Value","tags":["Customer Variable Values"],"responses":{"200":{"$ref":"#/components/responses/CustomerVariableValueResponse"},"404":{"$ref":"#/components/responses/CustomerVariableValueNotFoundResponse"}},"security":[{"ApiKey":[]}]}},"/api/customers":{"get":{"operationId":"listCustomers","summary":"Retrieve a list of Customers","tags":["Customers"],"parameters":[{"in":"query","name":"page","schema":{"type":"number"}},{"in":"query","name":"limit","schema":{"type":"number"}},{"in":"query","name":"depth","schema":{"type":"number"}},{"in":"query","name":"locale","schema":{"type":"string"}},{"in":"query","name":"fallback-locale","schema":{"type":"string"}},{"in":"query","name":"sort","schema":{"type":"string","enum":["name","-name","logoUrl","-logoUrl","archivedAt","-archivedAt","emailDomains","-emailDomains","lastCommentAt","-lastCommentAt","updatedAt","-updatedAt","createdAt","-createdAt"]}},{"in":"query","name":"where","style":"deepObject","schema":{"allOf":[{"type":"object"},{"anyOf":[{"$ref":"#/components/schemas/CustomerQueryOperations"},{"$ref":"#/components/schemas/CustomerQueryOperationsAnd"},{"$ref":"#/components/schemas/CustomerQueryOperationsOr"}]}],"description":"Filter with Payload query objects, for example {customer:{equals:'ID'}}. Combine conditions with and/or arrays. Tenant access is always enforced."}},{"in":"query","name":"select","style":"deepObject","description":"Select readable fields for a compact response; nested fields use nested objects.","schema":{"type":"object","description":"For compact reads, set only needed readable fields to true, for example {title:true,priority:true}; use nested objects for nested fields. Use false only for exclusion mode, without mixing true and false. Selection does not grant field access. Combine with depth:0 and a small limit.","additionalProperties":{"anyOf":[{"type":"boolean"},{"type":"object","additionalProperties":true}]}}}],"responses":{"200":{"$ref":"#/components/responses/CustomerListResponse"}},"security":[{"ApiKey":[]}]},"post":{"operationId":"createCustomer","summary":"Create a new Customer","tags":["Customers"],"parameters":[{"in":"query","name":"depth","schema":{"type":"number"}},{"in":"query","name":"locale","schema":{"type":"string"}}],"requestBody":{"$ref":"#/components/requestBodies/CustomerRequestBody"},"responses":{"201":{"$ref":"#/components/responses/MutateCustomerResponse"}},"security":[{"ApiKey":[]}]}},"/api/customers/{id}":{"parameters":[{"in":"query","name":"depth","schema":{"type":"number"}},{"in":"query","name":"locale","schema":{"type":"string"}},{"in":"query","name":"fallback-locale","schema":{"type":"string"}},{"in":"path","name":"id","description":"ID of the Customer","required":true,"schema":{"type":"string"}}],"get":{"operationId":"findCustomerById","summary":"Find a Customer by ID","tags":["Customers"],"responses":{"200":{"description":"The requested record.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Customer"}}}}},"security":[{"ApiKey":[]}],"parameters":[{"in":"query","name":"select","style":"deepObject","description":"Select readable fields for a compact response; nested fields use nested objects.","schema":{"type":"object","description":"For compact reads, set only needed readable fields to true, for example {title:true,priority:true}; use nested objects for nested fields. Use false only for exclusion mode, without mixing true and false. Selection does not grant field access. Combine with depth:0 and a small limit.","additionalProperties":{"anyOf":[{"type":"boolean"},{"type":"object","additionalProperties":true}]}}}]},"patch":{"operationId":"updateCustomer","summary":"Update a Customer","tags":["Customers"],"requestBody":{"$ref":"#/components/requestBodies/CustomerPatchRequestBody"},"responses":{"200":{"$ref":"#/components/responses/CustomerResponse"},"404":{"$ref":"#/components/responses/CustomerNotFoundResponse"}},"security":[{"ApiKey":[]}]},"delete":{"operationId":"deleteCustomer","summary":"Delete a Customer","tags":["Customers"],"responses":{"200":{"$ref":"#/components/responses/CustomerResponse"},"404":{"$ref":"#/components/responses/CustomerNotFoundResponse"}},"security":[{"ApiKey":[]}]}},"/api/domains":{"get":{"operationId":"listTenantDomains","summary":"Retrieve a list of Tenant domains","tags":["Tenant domains"],"parameters":[{"in":"query","name":"page","schema":{"type":"number"}},{"in":"query","name":"limit","schema":{"type":"number"}},{"in":"query","name":"depth","schema":{"type":"number"}},{"in":"query","name":"locale","schema":{"type":"string"}},{"in":"query","name":"fallback-locale","schema":{"type":"string"}},{"in":"query","name":"sort","schema":{"type":"string","enum":["name","-name","lastCheckedAt","-lastCheckedAt","updatedAt","-updatedAt","createdAt","-createdAt"]}},{"in":"query","name":"where","style":"deepObject","schema":{"allOf":[{"type":"object"},{"anyOf":[{"$ref":"#/components/schemas/TenantDomainQueryOperations"},{"$ref":"#/components/schemas/TenantDomainQueryOperationsAnd"},{"$ref":"#/components/schemas/TenantDomainQueryOperationsOr"}]}],"description":"Filter with Payload query objects, for example {customer:{equals:'ID'}}. Combine conditions with and/or arrays. Tenant access is always enforced."}},{"in":"query","name":"select","style":"deepObject","description":"Select readable fields for a compact response; nested fields use nested objects.","schema":{"type":"object","description":"For compact reads, set only needed readable fields to true, for example {title:true,priority:true}; use nested objects for nested fields. Use false only for exclusion mode, without mixing true and false. Selection does not grant field access. Combine with depth:0 and a small limit.","additionalProperties":{"anyOf":[{"type":"boolean"},{"type":"object","additionalProperties":true}]}}}],"responses":{"200":{"$ref":"#/components/responses/TenantDomainListResponse"}},"security":[{"ApiKey":[]}]},"post":{"operationId":"createTenantDomain","summary":"Create a new Tenant domain","tags":["Tenant domains"],"parameters":[{"in":"query","name":"depth","schema":{"type":"number"}},{"in":"query","name":"locale","schema":{"type":"string"}}],"requestBody":{"$ref":"#/components/requestBodies/TenantDomainRequestBody"},"responses":{"201":{"$ref":"#/components/responses/MutateTenantDomainResponse"}},"security":[{"ApiKey":[]}]}},"/api/domains/{id}":{"parameters":[{"in":"query","name":"depth","schema":{"type":"number"}},{"in":"query","name":"locale","schema":{"type":"string"}},{"in":"query","name":"fallback-locale","schema":{"type":"string"}},{"in":"path","name":"id","description":"ID of the Tenant domain","required":true,"schema":{"type":"string"}}],"get":{"operationId":"findTenantDomainById","summary":"Find a Tenant domain by ID","tags":["Tenant domains"],"responses":{"200":{"description":"The requested record.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TenantDomain"}}}}},"security":[{"ApiKey":[]}],"parameters":[{"in":"query","name":"select","style":"deepObject","description":"Select readable fields for a compact response; nested fields use nested objects.","schema":{"type":"object","description":"For compact reads, set only needed readable fields to true, for example {title:true,priority:true}; use nested objects for nested fields. Use false only for exclusion mode, without mixing true and false. Selection does not grant field access. Combine with depth:0 and a small limit.","additionalProperties":{"anyOf":[{"type":"boolean"},{"type":"object","additionalProperties":true}]}}}]},"patch":{"operationId":"updateTenantDomain","summary":"Update a Tenant domain","tags":["Tenant domains"],"requestBody":{"$ref":"#/components/requestBodies/TenantDomainPatchRequestBody"},"responses":{"200":{"$ref":"#/components/responses/TenantDomainResponse"},"404":{"$ref":"#/components/responses/TenantDomainNotFoundResponse"}},"security":[{"ApiKey":[]}]},"delete":{"operationId":"deleteTenantDomain","summary":"Delete a Tenant domain","tags":["Tenant domains"],"responses":{"200":{"$ref":"#/components/responses/TenantDomainResponse"},"404":{"$ref":"#/components/responses/TenantDomainNotFoundResponse"}},"security":[{"ApiKey":[]}]}},"/api/email-template-versions":{"get":{"operationId":"listEmailTemplateVersions","summary":"Retrieve a list of Email Template Versions","tags":["Email Template Versions"],"parameters":[{"in":"query","name":"page","schema":{"type":"number"}},{"in":"query","name":"limit","schema":{"type":"number"}},{"in":"query","name":"depth","schema":{"type":"number"}},{"in":"query","name":"locale","schema":{"type":"string"}},{"in":"query","name":"fallback-locale","schema":{"type":"string"}},{"in":"query","name":"sort","schema":{"type":"string","enum":["archivedAt","-archivedAt","creationTotalTasks","-creationTotalTasks","creationCompletedTasks","-creationCompletedTasks","versionNumber","-versionNumber","publishedAt","-publishedAt","publishedByName","-publishedByName","publishNote","-publishNote","updatedAt","-updatedAt","createdAt","-createdAt"]}},{"in":"query","name":"where","style":"deepObject","schema":{"allOf":[{"type":"object"},{"anyOf":[{"$ref":"#/components/schemas/EmailTemplateVersionQueryOperations"},{"$ref":"#/components/schemas/EmailTemplateVersionQueryOperationsAnd"},{"$ref":"#/components/schemas/EmailTemplateVersionQueryOperationsOr"}]}],"description":"Filter with Payload query objects, for example {customer:{equals:'ID'}}. Combine conditions with and/or arrays. Tenant access is always enforced."}},{"in":"query","name":"select","style":"deepObject","description":"Select readable fields for a compact response; nested fields use nested objects.","schema":{"type":"object","description":"For compact reads, set only needed readable fields to true, for example {title:true,priority:true}; use nested objects for nested fields. Use false only for exclusion mode, without mixing true and false. Selection does not grant field access. Combine with depth:0 and a small limit.","additionalProperties":{"anyOf":[{"type":"boolean"},{"type":"object","additionalProperties":true}]}}}],"responses":{"200":{"$ref":"#/components/responses/EmailTemplateVersionListResponse"}},"security":[{"ApiKey":[]}]},"post":{"operationId":"createEmailTemplateVersion","summary":"Create a new Email Template Version","tags":["Email Template Versions"],"parameters":[{"in":"query","name":"depth","schema":{"type":"number"}},{"in":"query","name":"locale","schema":{"type":"string"}}],"requestBody":{"$ref":"#/components/requestBodies/EmailTemplateVersionRequestBody"},"responses":{"201":{"$ref":"#/components/responses/MutateEmailTemplateVersionResponse"}},"security":[{"ApiKey":[]}]}},"/api/email-template-versions/{id}":{"parameters":[{"in":"query","name":"depth","schema":{"type":"number"}},{"in":"query","name":"locale","schema":{"type":"string"}},{"in":"query","name":"fallback-locale","schema":{"type":"string"}},{"in":"path","name":"id","description":"ID of the Email Template Version","required":true,"schema":{"type":"string"}}],"get":{"operationId":"findEmailTemplateVersionById","summary":"Find a Email Template Version by ID","tags":["Email Template Versions"],"responses":{"200":{"description":"The requested record.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailTemplateVersion"}}}}},"security":[{"ApiKey":[]}],"parameters":[{"in":"query","name":"select","style":"deepObject","description":"Select readable fields for a compact response; nested fields use nested objects.","schema":{"type":"object","description":"For compact reads, set only needed readable fields to true, for example {title:true,priority:true}; use nested objects for nested fields. Use false only for exclusion mode, without mixing true and false. Selection does not grant field access. Combine with depth:0 and a small limit.","additionalProperties":{"anyOf":[{"type":"boolean"},{"type":"object","additionalProperties":true}]}}}]},"patch":{"operationId":"updateEmailTemplateVersion","summary":"Update a Email Template Version","tags":["Email Template Versions"],"requestBody":{"$ref":"#/components/requestBodies/EmailTemplateVersionPatchRequestBody"},"responses":{"200":{"$ref":"#/components/responses/EmailTemplateVersionResponse"},"404":{"$ref":"#/components/responses/EmailTemplateVersionNotFoundResponse"}},"security":[{"ApiKey":[]}]},"delete":{"operationId":"deleteEmailTemplateVersion","summary":"Delete a Email Template Version","tags":["Email Template Versions"],"responses":{"200":{"$ref":"#/components/responses/EmailTemplateVersionResponse"},"404":{"$ref":"#/components/responses/EmailTemplateVersionNotFoundResponse"}},"security":[{"ApiKey":[]}]}},"/api/email-templates":{"get":{"operationId":"listEmailTemplates","summary":"Retrieve a list of Email Templates","tags":["Email Templates"],"parameters":[{"in":"query","name":"page","schema":{"type":"number"}},{"in":"query","name":"limit","schema":{"type":"number"}},{"in":"query","name":"depth","schema":{"type":"number"}},{"in":"query","name":"locale","schema":{"type":"string"}},{"in":"query","name":"fallback-locale","schema":{"type":"string"}},{"in":"query","name":"sort","schema":{"type":"string","enum":["name","-name","archivedAt","-archivedAt","updatedAt","-updatedAt","createdAt","-createdAt"]}},{"in":"query","name":"where","style":"deepObject","schema":{"allOf":[{"type":"object"},{"anyOf":[{"$ref":"#/components/schemas/EmailTemplateQueryOperations"},{"$ref":"#/components/schemas/EmailTemplateQueryOperationsAnd"},{"$ref":"#/components/schemas/EmailTemplateQueryOperationsOr"}]}],"description":"Filter with Payload query objects, for example {customer:{equals:'ID'}}. Combine conditions with and/or arrays. Tenant access is always enforced."}},{"in":"query","name":"select","style":"deepObject","description":"Select readable fields for a compact response; nested fields use nested objects.","schema":{"type":"object","description":"For compact reads, set only needed readable fields to true, for example {title:true,priority:true}; use nested objects for nested fields. Use false only for exclusion mode, without mixing true and false. Selection does not grant field access. Combine with depth:0 and a small limit.","additionalProperties":{"anyOf":[{"type":"boolean"},{"type":"object","additionalProperties":true}]}}}],"responses":{"200":{"$ref":"#/components/responses/EmailTemplateListResponse"}},"security":[{"ApiKey":[]}]},"post":{"operationId":"createEmailTemplate","summary":"Create a new Email Template","tags":["Email Templates"],"parameters":[{"in":"query","name":"depth","schema":{"type":"number"}},{"in":"query","name":"locale","schema":{"type":"string"}}],"requestBody":{"$ref":"#/components/requestBodies/EmailTemplateRequestBody"},"responses":{"201":{"$ref":"#/components/responses/MutateEmailTemplateResponse"}},"security":[{"ApiKey":[]}]}},"/api/email-templates/{id}":{"parameters":[{"in":"query","name":"depth","schema":{"type":"number"}},{"in":"query","name":"locale","schema":{"type":"string"}},{"in":"query","name":"fallback-locale","schema":{"type":"string"}},{"in":"path","name":"id","description":"ID of the Email Template","required":true,"schema":{"type":"string"}}],"get":{"operationId":"findEmailTemplateById","summary":"Find a Email Template by ID","tags":["Email Templates"],"responses":{"200":{"description":"The requested record.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailTemplate"}}}}},"security":[{"ApiKey":[]}],"parameters":[{"in":"query","name":"select","style":"deepObject","description":"Select readable fields for a compact response; nested fields use nested objects.","schema":{"type":"object","description":"For compact reads, set only needed readable fields to true, for example {title:true,priority:true}; use nested objects for nested fields. Use false only for exclusion mode, without mixing true and false. Selection does not grant field access. Combine with depth:0 and a small limit.","additionalProperties":{"anyOf":[{"type":"boolean"},{"type":"object","additionalProperties":true}]}}}]},"patch":{"operationId":"updateEmailTemplate","summary":"Update a Email Template","tags":["Email Templates"],"requestBody":{"$ref":"#/components/requestBodies/EmailTemplatePatchRequestBody"},"responses":{"200":{"$ref":"#/components/responses/EmailTemplateResponse"},"404":{"$ref":"#/components/responses/EmailTemplateNotFoundResponse"}},"security":[{"ApiKey":[]}]},"delete":{"operationId":"deleteEmailTemplate","summary":"Delete a Email Template","tags":["Email Templates"],"responses":{"200":{"$ref":"#/components/responses/EmailTemplateResponse"},"404":{"$ref":"#/components/responses/EmailTemplateNotFoundResponse"}},"security":[{"ApiKey":[]}]}},"/api/emails":{"get":{"operationId":"listEmails","summary":"Retrieve a list of Emails","tags":["Emails"],"parameters":[{"in":"query","name":"page","schema":{"type":"number"}},{"in":"query","name":"limit","schema":{"type":"number"}},{"in":"query","name":"depth","schema":{"type":"number"}},{"in":"query","name":"locale","schema":{"type":"string"}},{"in":"query","name":"fallback-locale","schema":{"type":"string"}},{"in":"query","name":"sort","schema":{"type":"string","enum":["name","-name","subject","-subject","archivedAt","-archivedAt","updatedAt","-updatedAt","createdAt","-createdAt"]}},{"in":"query","name":"where","style":"deepObject","schema":{"allOf":[{"type":"object"},{"anyOf":[{"$ref":"#/components/schemas/EmailQueryOperations"},{"$ref":"#/components/schemas/EmailQueryOperationsAnd"},{"$ref":"#/components/schemas/EmailQueryOperationsOr"}]}],"description":"Filter with Payload query objects, for example {customer:{equals:'ID'}}. Combine conditions with and/or arrays. Tenant access is always enforced."}},{"in":"query","name":"select","style":"deepObject","description":"Select readable fields for a compact response; nested fields use nested objects.","schema":{"type":"object","description":"For compact reads, set only needed readable fields to true, for example {title:true,priority:true}; use nested objects for nested fields. Use false only for exclusion mode, without mixing true and false. Selection does not grant field access. Combine with depth:0 and a small limit.","additionalProperties":{"anyOf":[{"type":"boolean"},{"type":"object","additionalProperties":true}]}}}],"responses":{"200":{"$ref":"#/components/responses/EmailListResponse"}},"security":[{"ApiKey":[]}]},"post":{"operationId":"createEmail","summary":"Create a new Email","tags":["Emails"],"parameters":[{"in":"query","name":"depth","schema":{"type":"number"}},{"in":"query","name":"locale","schema":{"type":"string"}}],"requestBody":{"$ref":"#/components/requestBodies/EmailRequestBody"},"responses":{"201":{"$ref":"#/components/responses/MutateEmailResponse"}},"security":[{"ApiKey":[]}]}},"/api/emails/{id}":{"parameters":[{"in":"query","name":"depth","schema":{"type":"number"}},{"in":"query","name":"locale","schema":{"type":"string"}},{"in":"query","name":"fallback-locale","schema":{"type":"string"}},{"in":"path","name":"id","description":"ID of the Email","required":true,"schema":{"type":"string"}}],"get":{"operationId":"findEmailById","summary":"Find a Email by ID","tags":["Emails"],"responses":{"200":{"description":"The requested record.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Email"}}}}},"security":[{"ApiKey":[]}],"parameters":[{"in":"query","name":"select","style":"deepObject","description":"Select readable fields for a compact response; nested fields use nested objects.","schema":{"type":"object","description":"For compact reads, set only needed readable fields to true, for example {title:true,priority:true}; use nested objects for nested fields. Use false only for exclusion mode, without mixing true and false. Selection does not grant field access. Combine with depth:0 and a small limit.","additionalProperties":{"anyOf":[{"type":"boolean"},{"type":"object","additionalProperties":true}]}}}]},"patch":{"operationId":"updateEmail","summary":"Update a Email","tags":["Emails"],"requestBody":{"$ref":"#/components/requestBodies/EmailPatchRequestBody"},"responses":{"200":{"$ref":"#/components/responses/EmailResponse"},"404":{"$ref":"#/components/responses/EmailNotFoundResponse"}},"security":[{"ApiKey":[]}]},"delete":{"operationId":"deleteEmail","summary":"Delete a Email","tags":["Emails"],"responses":{"200":{"$ref":"#/components/responses/EmailResponse"},"404":{"$ref":"#/components/responses/EmailNotFoundResponse"}},"security":[{"ApiKey":[]}]}},"/api/form-completions":{"get":{"operationId":"listFormCompletions","summary":"Retrieve a list of Form Completions","tags":["Form Completions"],"parameters":[{"in":"query","name":"page","schema":{"type":"number"}},{"in":"query","name":"limit","schema":{"type":"number"}},{"in":"query","name":"depth","schema":{"type":"number"}},{"in":"query","name":"locale","schema":{"type":"string"}},{"in":"query","name":"fallback-locale","schema":{"type":"string"}},{"in":"query","name":"sort","schema":{"type":"string","enum":["startedAt","-startedAt","completedAt","-completedAt","archivedAt","-archivedAt","updatedAt","-updatedAt","createdAt","-createdAt"]}},{"in":"query","name":"where","style":"deepObject","schema":{"allOf":[{"type":"object"},{"anyOf":[{"$ref":"#/components/schemas/FormCompletionQueryOperations"},{"$ref":"#/components/schemas/FormCompletionQueryOperationsAnd"},{"$ref":"#/components/schemas/FormCompletionQueryOperationsOr"}]}],"description":"Filter with Payload query objects, for example {customer:{equals:'ID'}}. Combine conditions with and/or arrays. Tenant access is always enforced."}},{"in":"query","name":"select","style":"deepObject","description":"Select readable fields for a compact response; nested fields use nested objects.","schema":{"type":"object","description":"For compact reads, set only needed readable fields to true, for example {title:true,priority:true}; use nested objects for nested fields. Use false only for exclusion mode, without mixing true and false. Selection does not grant field access. Combine with depth:0 and a small limit.","additionalProperties":{"anyOf":[{"type":"boolean"},{"type":"object","additionalProperties":true}]}}}],"responses":{"200":{"$ref":"#/components/responses/FormCompletionListResponse"}},"security":[{"ApiKey":[]}]},"post":{"operationId":"createFormCompletion","summary":"Create a new Form Completion","tags":["Form Completions"],"parameters":[{"in":"query","name":"depth","schema":{"type":"number"}},{"in":"query","name":"locale","schema":{"type":"string"}}],"requestBody":{"$ref":"#/components/requestBodies/FormCompletionRequestBody"},"responses":{"201":{"$ref":"#/components/responses/MutateFormCompletionResponse"}},"security":[{"ApiKey":[]}]}},"/api/form-completions/{id}":{"parameters":[{"in":"query","name":"depth","schema":{"type":"number"}},{"in":"query","name":"locale","schema":{"type":"string"}},{"in":"query","name":"fallback-locale","schema":{"type":"string"}},{"in":"path","name":"id","description":"ID of the Form Completion","required":true,"schema":{"type":"string"}}],"get":{"operationId":"findFormCompletionById","summary":"Find a Form Completion by ID","tags":["Form Completions"],"responses":{"200":{"description":"The requested record.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormCompletion"}}}}},"security":[{"ApiKey":[]}],"parameters":[{"in":"query","name":"select","style":"deepObject","description":"Select readable fields for a compact response; nested fields use nested objects.","schema":{"type":"object","description":"For compact reads, set only needed readable fields to true, for example {title:true,priority:true}; use nested objects for nested fields. Use false only for exclusion mode, without mixing true and false. Selection does not grant field access. Combine with depth:0 and a small limit.","additionalProperties":{"anyOf":[{"type":"boolean"},{"type":"object","additionalProperties":true}]}}}]},"patch":{"operationId":"updateFormCompletion","summary":"Update a Form Completion","tags":["Form Completions"],"requestBody":{"$ref":"#/components/requestBodies/FormCompletionPatchRequestBody"},"responses":{"200":{"$ref":"#/components/responses/FormCompletionResponse"},"404":{"$ref":"#/components/responses/FormCompletionNotFoundResponse"}},"security":[{"ApiKey":[]}]},"delete":{"operationId":"deleteFormCompletion","summary":"Delete a Form Completion","tags":["Form Completions"],"responses":{"200":{"$ref":"#/components/responses/FormCompletionResponse"},"404":{"$ref":"#/components/responses/FormCompletionNotFoundResponse"}},"security":[{"ApiKey":[]}]}},"/api/form-template-versions":{"get":{"operationId":"listFormTemplateVersions","summary":"Retrieve a list of Form Template Versions","tags":["Form Template Versions"],"parameters":[{"in":"query","name":"page","schema":{"type":"number"}},{"in":"query","name":"limit","schema":{"type":"number"}},{"in":"query","name":"depth","schema":{"type":"number"}},{"in":"query","name":"locale","schema":{"type":"string"}},{"in":"query","name":"fallback-locale","schema":{"type":"string"}},{"in":"query","name":"sort","schema":{"type":"string","enum":["archivedAt","-archivedAt","creationTotalTasks","-creationTotalTasks","creationCompletedTasks","-creationCompletedTasks","versionNumber","-versionNumber","publishedAt","-publishedAt","publishedByName","-publishedByName","publishNote","-publishNote","updatedAt","-updatedAt","createdAt","-createdAt"]}},{"in":"query","name":"where","style":"deepObject","schema":{"allOf":[{"type":"object"},{"anyOf":[{"$ref":"#/components/schemas/FormTemplateVersionQueryOperations"},{"$ref":"#/components/schemas/FormTemplateVersionQueryOperationsAnd"},{"$ref":"#/components/schemas/FormTemplateVersionQueryOperationsOr"}]}],"description":"Filter with Payload query objects, for example {customer:{equals:'ID'}}. Combine conditions with and/or arrays. Tenant access is always enforced."}},{"in":"query","name":"select","style":"deepObject","description":"Select readable fields for a compact response; nested fields use nested objects.","schema":{"type":"object","description":"For compact reads, set only needed readable fields to true, for example {title:true,priority:true}; use nested objects for nested fields. Use false only for exclusion mode, without mixing true and false. Selection does not grant field access. Combine with depth:0 and a small limit.","additionalProperties":{"anyOf":[{"type":"boolean"},{"type":"object","additionalProperties":true}]}}}],"responses":{"200":{"$ref":"#/components/responses/FormTemplateVersionListResponse"}},"security":[{"ApiKey":[]}]},"post":{"operationId":"createFormTemplateVersion","summary":"Create a new Form Template Version","tags":["Form Template Versions"],"parameters":[{"in":"query","name":"depth","schema":{"type":"number"}},{"in":"query","name":"locale","schema":{"type":"string"}}],"requestBody":{"$ref":"#/components/requestBodies/FormTemplateVersionRequestBody"},"responses":{"201":{"$ref":"#/components/responses/MutateFormTemplateVersionResponse"}},"security":[{"ApiKey":[]}]}},"/api/form-template-versions/{id}":{"parameters":[{"in":"query","name":"depth","schema":{"type":"number"}},{"in":"query","name":"locale","schema":{"type":"string"}},{"in":"query","name":"fallback-locale","schema":{"type":"string"}},{"in":"path","name":"id","description":"ID of the Form Template Version","required":true,"schema":{"type":"string"}}],"get":{"operationId":"findFormTemplateVersionById","summary":"Find a Form Template Version by ID","tags":["Form Template Versions"],"responses":{"200":{"description":"The requested record.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormTemplateVersion"}}}}},"security":[{"ApiKey":[]}],"parameters":[{"in":"query","name":"select","style":"deepObject","description":"Select readable fields for a compact response; nested fields use nested objects.","schema":{"type":"object","description":"For compact reads, set only needed readable fields to true, for example {title:true,priority:true}; use nested objects for nested fields. Use false only for exclusion mode, without mixing true and false. Selection does not grant field access. Combine with depth:0 and a small limit.","additionalProperties":{"anyOf":[{"type":"boolean"},{"type":"object","additionalProperties":true}]}}}]},"patch":{"operationId":"updateFormTemplateVersion","summary":"Update a Form Template Version","tags":["Form Template Versions"],"requestBody":{"$ref":"#/components/requestBodies/FormTemplateVersionPatchRequestBody"},"responses":{"200":{"$ref":"#/components/responses/FormTemplateVersionResponse"},"404":{"$ref":"#/components/responses/FormTemplateVersionNotFoundResponse"}},"security":[{"ApiKey":[]}]},"delete":{"operationId":"deleteFormTemplateVersion","summary":"Delete a Form Template Version","tags":["Form Template Versions"],"responses":{"200":{"$ref":"#/components/responses/FormTemplateVersionResponse"},"404":{"$ref":"#/components/responses/FormTemplateVersionNotFoundResponse"}},"security":[{"ApiKey":[]}]}},"/api/form-templates":{"get":{"operationId":"listFormTemplates","summary":"Retrieve a list of Form Templates","tags":["Form Templates"],"parameters":[{"in":"query","name":"page","schema":{"type":"number"}},{"in":"query","name":"limit","schema":{"type":"number"}},{"in":"query","name":"depth","schema":{"type":"number"}},{"in":"query","name":"locale","schema":{"type":"string"}},{"in":"query","name":"fallback-locale","schema":{"type":"string"}},{"in":"query","name":"sort","schema":{"type":"string","enum":["name","-name","archivedAt","-archivedAt","updatedAt","-updatedAt","createdAt","-createdAt"]}},{"in":"query","name":"where","style":"deepObject","schema":{"allOf":[{"type":"object"},{"anyOf":[{"$ref":"#/components/schemas/FormTemplateQueryOperations"},{"$ref":"#/components/schemas/FormTemplateQueryOperationsAnd"},{"$ref":"#/components/schemas/FormTemplateQueryOperationsOr"}]}],"description":"Filter with Payload query objects, for example {customer:{equals:'ID'}}. Combine conditions with and/or arrays. Tenant access is always enforced."}},{"in":"query","name":"select","style":"deepObject","description":"Select readable fields for a compact response; nested fields use nested objects.","schema":{"type":"object","description":"For compact reads, set only needed readable fields to true, for example {title:true,priority:true}; use nested objects for nested fields. Use false only for exclusion mode, without mixing true and false. Selection does not grant field access. Combine with depth:0 and a small limit.","additionalProperties":{"anyOf":[{"type":"boolean"},{"type":"object","additionalProperties":true}]}}}],"responses":{"200":{"$ref":"#/components/responses/FormTemplateListResponse"}},"security":[{"ApiKey":[]}]},"post":{"operationId":"createFormTemplate","summary":"Create a new Form Template","tags":["Form Templates"],"parameters":[{"in":"query","name":"depth","schema":{"type":"number"}},{"in":"query","name":"locale","schema":{"type":"string"}}],"requestBody":{"$ref":"#/components/requestBodies/FormTemplateRequestBody"},"responses":{"201":{"$ref":"#/components/responses/MutateFormTemplateResponse"}},"security":[{"ApiKey":[]}]}},"/api/form-templates/{id}":{"parameters":[{"in":"query","name":"depth","schema":{"type":"number"}},{"in":"query","name":"locale","schema":{"type":"string"}},{"in":"query","name":"fallback-locale","schema":{"type":"string"}},{"in":"path","name":"id","description":"ID of the Form Template","required":true,"schema":{"type":"string"}}],"get":{"operationId":"findFormTemplateById","summary":"Find a Form Template by ID","tags":["Form Templates"],"responses":{"200":{"description":"The requested record.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormTemplate"}}}}},"security":[{"ApiKey":[]}],"parameters":[{"in":"query","name":"select","style":"deepObject","description":"Select readable fields for a compact response; nested fields use nested objects.","schema":{"type":"object","description":"For compact reads, set only needed readable fields to true, for example {title:true,priority:true}; use nested objects for nested fields. Use false only for exclusion mode, without mixing true and false. Selection does not grant field access. Combine with depth:0 and a small limit.","additionalProperties":{"anyOf":[{"type":"boolean"},{"type":"object","additionalProperties":true}]}}}]},"patch":{"operationId":"updateFormTemplate","summary":"Update a Form Template","tags":["Form Templates"],"requestBody":{"$ref":"#/components/requestBodies/FormTemplatePatchRequestBody"},"responses":{"200":{"$ref":"#/components/responses/FormTemplateResponse"},"404":{"$ref":"#/components/responses/FormTemplateNotFoundResponse"}},"security":[{"ApiKey":[]}]},"delete":{"operationId":"deleteFormTemplate","summary":"Delete a Form Template","tags":["Form Templates"],"responses":{"200":{"$ref":"#/components/responses/FormTemplateResponse"},"404":{"$ref":"#/components/responses/FormTemplateNotFoundResponse"}},"security":[{"ApiKey":[]}]}},"/api/forms":{"get":{"operationId":"listForms","summary":"Retrieve a list of Forms","tags":["Forms"],"parameters":[{"in":"query","name":"page","schema":{"type":"number"}},{"in":"query","name":"limit","schema":{"type":"number"}},{"in":"query","name":"depth","schema":{"type":"number"}},{"in":"query","name":"locale","schema":{"type":"string"}},{"in":"query","name":"fallback-locale","schema":{"type":"string"}},{"in":"query","name":"sort","schema":{"type":"string","enum":["name","-name","archivedAt","-archivedAt","updatedAt","-updatedAt","createdAt","-createdAt"]}},{"in":"query","name":"where","style":"deepObject","schema":{"allOf":[{"type":"object"},{"anyOf":[{"$ref":"#/components/schemas/FormQueryOperations"},{"$ref":"#/components/schemas/FormQueryOperationsAnd"},{"$ref":"#/components/schemas/FormQueryOperationsOr"}]}],"description":"Filter with Payload query objects, for example {customer:{equals:'ID'}}. Combine conditions with and/or arrays. Tenant access is always enforced."}},{"in":"query","name":"select","style":"deepObject","description":"Select readable fields for a compact response; nested fields use nested objects.","schema":{"type":"object","description":"For compact reads, set only needed readable fields to true, for example {title:true,priority:true}; use nested objects for nested fields. Use false only for exclusion mode, without mixing true and false. Selection does not grant field access. Combine with depth:0 and a small limit.","additionalProperties":{"anyOf":[{"type":"boolean"},{"type":"object","additionalProperties":true}]}}}],"responses":{"200":{"$ref":"#/components/responses/FormListResponse"}},"security":[{"ApiKey":[]}]},"post":{"operationId":"createForm","summary":"Create a new Form","tags":["Forms"],"parameters":[{"in":"query","name":"depth","schema":{"type":"number"}},{"in":"query","name":"locale","schema":{"type":"string"}}],"requestBody":{"$ref":"#/components/requestBodies/FormRequestBody"},"responses":{"201":{"$ref":"#/components/responses/MutateFormResponse"}},"security":[{"ApiKey":[]}]}},"/api/forms/{id}":{"parameters":[{"in":"query","name":"depth","schema":{"type":"number"}},{"in":"query","name":"locale","schema":{"type":"string"}},{"in":"query","name":"fallback-locale","schema":{"type":"string"}},{"in":"path","name":"id","description":"ID of the Form","required":true,"schema":{"type":"string"}}],"get":{"operationId":"findFormById","summary":"Find a Form by ID","tags":["Forms"],"responses":{"200":{"description":"The requested record.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Form"}}}}},"security":[{"ApiKey":[]}],"parameters":[{"in":"query","name":"select","style":"deepObject","description":"Select readable fields for a compact response; nested fields use nested objects.","schema":{"type":"object","description":"For compact reads, set only needed readable fields to true, for example {title:true,priority:true}; use nested objects for nested fields. Use false only for exclusion mode, without mixing true and false. Selection does not grant field access. Combine with depth:0 and a small limit.","additionalProperties":{"anyOf":[{"type":"boolean"},{"type":"object","additionalProperties":true}]}}}]},"patch":{"operationId":"updateForm","summary":"Update a Form","tags":["Forms"],"requestBody":{"$ref":"#/components/requestBodies/FormPatchRequestBody"},"responses":{"200":{"$ref":"#/components/responses/FormResponse"},"404":{"$ref":"#/components/responses/FormNotFoundResponse"}},"security":[{"ApiKey":[]}]},"delete":{"operationId":"deleteForm","summary":"Delete a Form","tags":["Forms"],"responses":{"200":{"$ref":"#/components/responses/FormResponse"},"404":{"$ref":"#/components/responses/FormNotFoundResponse"}},"security":[{"ApiKey":[]}]}},"/api/groups":{"get":{"operationId":"listGroups","summary":"Retrieve a list of Groups","tags":["Groups"],"parameters":[{"in":"query","name":"page","schema":{"type":"number"}},{"in":"query","name":"limit","schema":{"type":"number"}},{"in":"query","name":"depth","schema":{"type":"number"}},{"in":"query","name":"locale","schema":{"type":"string"}},{"in":"query","name":"fallback-locale","schema":{"type":"string"}},{"in":"query","name":"sort","schema":{"type":"string","enum":["name","-name","color","-color","updatedAt","-updatedAt","createdAt","-createdAt"]}},{"in":"query","name":"where","style":"deepObject","schema":{"allOf":[{"type":"object"},{"anyOf":[{"$ref":"#/components/schemas/GroupQueryOperations"},{"$ref":"#/components/schemas/GroupQueryOperationsAnd"},{"$ref":"#/components/schemas/GroupQueryOperationsOr"}]}],"description":"Filter with Payload query objects, for example {customer:{equals:'ID'}}. Combine conditions with and/or arrays. Tenant access is always enforced."}},{"in":"query","name":"select","style":"deepObject","description":"Select readable fields for a compact response; nested fields use nested objects.","schema":{"type":"object","description":"For compact reads, set only needed readable fields to true, for example {title:true,priority:true}; use nested objects for nested fields. Use false only for exclusion mode, without mixing true and false. Selection does not grant field access. Combine with depth:0 and a small limit.","additionalProperties":{"anyOf":[{"type":"boolean"},{"type":"object","additionalProperties":true}]}}}],"responses":{"200":{"$ref":"#/components/responses/GroupListResponse"}},"security":[{"ApiKey":[]}]},"post":{"operationId":"createGroup","summary":"Create a new Group","tags":["Groups"],"parameters":[{"in":"query","name":"depth","schema":{"type":"number"}},{"in":"query","name":"locale","schema":{"type":"string"}}],"requestBody":{"$ref":"#/components/requestBodies/GroupRequestBody"},"responses":{"201":{"$ref":"#/components/responses/MutateGroupResponse"}},"security":[{"ApiKey":[]}]}},"/api/groups/{id}":{"parameters":[{"in":"query","name":"depth","schema":{"type":"number"}},{"in":"query","name":"locale","schema":{"type":"string"}},{"in":"query","name":"fallback-locale","schema":{"type":"string"}},{"in":"path","name":"id","description":"ID of the Group","required":true,"schema":{"type":"string"}}],"get":{"operationId":"findGroupById","summary":"Find a Group by ID","tags":["Groups"],"responses":{"200":{"description":"The requested record.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Group"}}}}},"security":[{"ApiKey":[]}],"parameters":[{"in":"query","name":"select","style":"deepObject","description":"Select readable fields for a compact response; nested fields use nested objects.","schema":{"type":"object","description":"For compact reads, set only needed readable fields to true, for example {title:true,priority:true}; use nested objects for nested fields. Use false only for exclusion mode, without mixing true and false. Selection does not grant field access. Combine with depth:0 and a small limit.","additionalProperties":{"anyOf":[{"type":"boolean"},{"type":"object","additionalProperties":true}]}}}]},"patch":{"operationId":"updateGroup","summary":"Update a Group","tags":["Groups"],"requestBody":{"$ref":"#/components/requestBodies/GroupPatchRequestBody"},"responses":{"200":{"$ref":"#/components/responses/GroupResponse"},"404":{"$ref":"#/components/responses/GroupNotFoundResponse"}},"security":[{"ApiKey":[]}]},"delete":{"operationId":"deleteGroup","summary":"Delete a Group","tags":["Groups"],"responses":{"200":{"$ref":"#/components/responses/GroupResponse"},"404":{"$ref":"#/components/responses/GroupNotFoundResponse"}},"security":[{"ApiKey":[]}]}},"/api/insights":{"get":{"operationId":"listInsights","summary":"Retrieve a list of Insights","tags":["Insights"],"parameters":[{"in":"query","name":"page","schema":{"type":"number"}},{"in":"query","name":"limit","schema":{"type":"number"}},{"in":"query","name":"depth","schema":{"type":"number"}},{"in":"query","name":"locale","schema":{"type":"string"}},{"in":"query","name":"fallback-locale","schema":{"type":"string"}},{"in":"query","name":"sort","schema":{"type":"string","enum":["name","-name","updatedAt","-updatedAt","createdAt","-createdAt"]}},{"in":"query","name":"where","style":"deepObject","schema":{"allOf":[{"type":"object"},{"anyOf":[{"$ref":"#/components/schemas/InsightQueryOperations"},{"$ref":"#/components/schemas/InsightQueryOperationsAnd"},{"$ref":"#/components/schemas/InsightQueryOperationsOr"}]}],"description":"Filter with Payload query objects, for example {customer:{equals:'ID'}}. Combine conditions with and/or arrays. Tenant access is always enforced."}},{"in":"query","name":"select","style":"deepObject","description":"Select readable fields for a compact response; nested fields use nested objects.","schema":{"type":"object","description":"For compact reads, set only needed readable fields to true, for example {title:true,priority:true}; use nested objects for nested fields. Use false only for exclusion mode, without mixing true and false. Selection does not grant field access. Combine with depth:0 and a small limit.","additionalProperties":{"anyOf":[{"type":"boolean"},{"type":"object","additionalProperties":true}]}}}],"responses":{"200":{"$ref":"#/components/responses/InsightListResponse"}},"security":[{"ApiKey":[]}]},"post":{"operationId":"createInsight","summary":"Create a new Insight","tags":["Insights"],"parameters":[{"in":"query","name":"depth","schema":{"type":"number"}},{"in":"query","name":"locale","schema":{"type":"string"}}],"requestBody":{"$ref":"#/components/requestBodies/InsightRequestBody"},"responses":{"201":{"$ref":"#/components/responses/MutateInsightResponse"}},"security":[{"ApiKey":[]}]}},"/api/insights/{id}":{"parameters":[{"in":"query","name":"depth","schema":{"type":"number"}},{"in":"query","name":"locale","schema":{"type":"string"}},{"in":"query","name":"fallback-locale","schema":{"type":"string"}},{"in":"path","name":"id","description":"ID of the Insight","required":true,"schema":{"type":"string"}}],"get":{"operationId":"findInsightById","summary":"Find a Insight by ID","tags":["Insights"],"responses":{"200":{"description":"The requested record.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Insight"}}}}},"security":[{"ApiKey":[]}],"parameters":[{"in":"query","name":"select","style":"deepObject","description":"Select readable fields for a compact response; nested fields use nested objects.","schema":{"type":"object","description":"For compact reads, set only needed readable fields to true, for example {title:true,priority:true}; use nested objects for nested fields. Use false only for exclusion mode, without mixing true and false. Selection does not grant field access. Combine with depth:0 and a small limit.","additionalProperties":{"anyOf":[{"type":"boolean"},{"type":"object","additionalProperties":true}]}}}]},"patch":{"operationId":"updateInsight","summary":"Update a Insight","tags":["Insights"],"requestBody":{"$ref":"#/components/requestBodies/InsightPatchRequestBody"},"responses":{"200":{"$ref":"#/components/responses/InsightResponse"},"404":{"$ref":"#/components/responses/InsightNotFoundResponse"}},"security":[{"ApiKey":[]}]},"delete":{"operationId":"deleteInsight","summary":"Delete a Insight","tags":["Insights"],"responses":{"200":{"$ref":"#/components/responses/InsightResponse"},"404":{"$ref":"#/components/responses/InsightNotFoundResponse"}},"security":[{"ApiKey":[]}]}},"/api/journey-template-versions":{"get":{"operationId":"listJourneyTemplateVersions","summary":"Retrieve a list of Journey Template Versions","tags":["Journey Template Versions"],"parameters":[{"in":"query","name":"page","schema":{"type":"number"}},{"in":"query","name":"limit","schema":{"type":"number"}},{"in":"query","name":"depth","schema":{"type":"number"}},{"in":"query","name":"locale","schema":{"type":"string"}},{"in":"query","name":"fallback-locale","schema":{"type":"string"}},{"in":"query","name":"sort","schema":{"type":"string","enum":["archivedAt","-archivedAt","creationTotalTasks","-creationTotalTasks","creationCompletedTasks","-creationCompletedTasks","versionNumber","-versionNumber","publishedAt","-publishedAt","publishedByName","-publishedByName","publishNote","-publishNote","updatedAt","-updatedAt","createdAt","-createdAt"]}},{"in":"query","name":"where","style":"deepObject","schema":{"allOf":[{"type":"object"},{"anyOf":[{"$ref":"#/components/schemas/JourneyTemplateVersionQueryOperations"},{"$ref":"#/components/schemas/JourneyTemplateVersionQueryOperationsAnd"},{"$ref":"#/components/schemas/JourneyTemplateVersionQueryOperationsOr"}]}],"description":"Filter with Payload query objects, for example {customer:{equals:'ID'}}. Combine conditions with and/or arrays. Tenant access is always enforced."}},{"in":"query","name":"select","style":"deepObject","description":"Select readable fields for a compact response; nested fields use nested objects.","schema":{"type":"object","description":"For compact reads, set only needed readable fields to true, for example {title:true,priority:true}; use nested objects for nested fields. Use false only for exclusion mode, without mixing true and false. Selection does not grant field access. Combine with depth:0 and a small limit.","additionalProperties":{"anyOf":[{"type":"boolean"},{"type":"object","additionalProperties":true}]}}}],"responses":{"200":{"$ref":"#/components/responses/JourneyTemplateVersionListResponse"}},"security":[{"ApiKey":[]}]},"post":{"operationId":"createJourneyTemplateVersion","summary":"Create a new Journey Template Version","tags":["Journey Template Versions"],"parameters":[{"in":"query","name":"depth","schema":{"type":"number"}},{"in":"query","name":"locale","schema":{"type":"string"}}],"requestBody":{"$ref":"#/components/requestBodies/JourneyTemplateVersionRequestBody"},"responses":{"201":{"$ref":"#/components/responses/MutateJourneyTemplateVersionResponse"}},"security":[{"ApiKey":[]}]}},"/api/journey-template-versions/{id}":{"parameters":[{"in":"query","name":"depth","schema":{"type":"number"}},{"in":"query","name":"locale","schema":{"type":"string"}},{"in":"query","name":"fallback-locale","schema":{"type":"string"}},{"in":"path","name":"id","description":"ID of the Journey Template Version","required":true,"schema":{"type":"string"}}],"get":{"operationId":"findJourneyTemplateVersionById","summary":"Find a Journey Template Version by ID","tags":["Journey Template Versions"],"responses":{"200":{"description":"The requested record.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JourneyTemplateVersion"}}}}},"security":[{"ApiKey":[]}],"parameters":[{"in":"query","name":"select","style":"deepObject","description":"Select readable fields for a compact response; nested fields use nested objects.","schema":{"type":"object","description":"For compact reads, set only needed readable fields to true, for example {title:true,priority:true}; use nested objects for nested fields. Use false only for exclusion mode, without mixing true and false. Selection does not grant field access. Combine with depth:0 and a small limit.","additionalProperties":{"anyOf":[{"type":"boolean"},{"type":"object","additionalProperties":true}]}}}]},"patch":{"operationId":"updateJourneyTemplateVersion","summary":"Update a Journey Template Version","tags":["Journey Template Versions"],"requestBody":{"$ref":"#/components/requestBodies/JourneyTemplateVersionPatchRequestBody"},"responses":{"200":{"$ref":"#/components/responses/JourneyTemplateVersionResponse"},"404":{"$ref":"#/components/responses/JourneyTemplateVersionNotFoundResponse"}},"security":[{"ApiKey":[]}]},"delete":{"operationId":"deleteJourneyTemplateVersion","summary":"Delete a Journey Template Version","tags":["Journey Template Versions"],"responses":{"200":{"$ref":"#/components/responses/JourneyTemplateVersionResponse"},"404":{"$ref":"#/components/responses/JourneyTemplateVersionNotFoundResponse"}},"security":[{"ApiKey":[]}]}},"/api/journey-templates":{"get":{"operationId":"listJourneyTemplates","summary":"Retrieve a list of Journey Templates","tags":["Journey Templates"],"parameters":[{"in":"query","name":"page","schema":{"type":"number"}},{"in":"query","name":"limit","schema":{"type":"number"}},{"in":"query","name":"depth","schema":{"type":"number"}},{"in":"query","name":"locale","schema":{"type":"string"}},{"in":"query","name":"fallback-locale","schema":{"type":"string"}},{"in":"query","name":"sort","schema":{"type":"string","enum":["name","-name","archivedAt","-archivedAt","updatedAt","-updatedAt","createdAt","-createdAt"]}},{"in":"query","name":"where","style":"deepObject","schema":{"allOf":[{"type":"object"},{"anyOf":[{"$ref":"#/components/schemas/JourneyTemplateQueryOperations"},{"$ref":"#/components/schemas/JourneyTemplateQueryOperationsAnd"},{"$ref":"#/components/schemas/JourneyTemplateQueryOperationsOr"}]}],"description":"Filter with Payload query objects, for example {customer:{equals:'ID'}}. Combine conditions with and/or arrays. Tenant access is always enforced."}},{"in":"query","name":"select","style":"deepObject","description":"Select readable fields for a compact response; nested fields use nested objects.","schema":{"type":"object","description":"For compact reads, set only needed readable fields to true, for example {title:true,priority:true}; use nested objects for nested fields. Use false only for exclusion mode, without mixing true and false. Selection does not grant field access. Combine with depth:0 and a small limit.","additionalProperties":{"anyOf":[{"type":"boolean"},{"type":"object","additionalProperties":true}]}}}],"responses":{"200":{"$ref":"#/components/responses/JourneyTemplateListResponse"}},"security":[{"ApiKey":[]}]},"post":{"operationId":"createJourneyTemplate","summary":"Create a new Journey Template","tags":["Journey Templates"],"parameters":[{"in":"query","name":"depth","schema":{"type":"number"}},{"in":"query","name":"locale","schema":{"type":"string"}}],"requestBody":{"$ref":"#/components/requestBodies/JourneyTemplateRequestBody"},"responses":{"201":{"$ref":"#/components/responses/MutateJourneyTemplateResponse"}},"security":[{"ApiKey":[]}]}},"/api/journey-templates/{id}":{"parameters":[{"in":"query","name":"depth","schema":{"type":"number"}},{"in":"query","name":"locale","schema":{"type":"string"}},{"in":"query","name":"fallback-locale","schema":{"type":"string"}},{"in":"path","name":"id","description":"ID of the Journey Template","required":true,"schema":{"type":"string"}}],"get":{"operationId":"findJourneyTemplateById","summary":"Find a Journey Template by ID","tags":["Journey Templates"],"responses":{"200":{"description":"The requested record.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JourneyTemplate"}}}}},"security":[{"ApiKey":[]}],"parameters":[{"in":"query","name":"select","style":"deepObject","description":"Select readable fields for a compact response; nested fields use nested objects.","schema":{"type":"object","description":"For compact reads, set only needed readable fields to true, for example {title:true,priority:true}; use nested objects for nested fields. Use false only for exclusion mode, without mixing true and false. Selection does not grant field access. Combine with depth:0 and a small limit.","additionalProperties":{"anyOf":[{"type":"boolean"},{"type":"object","additionalProperties":true}]}}}]},"patch":{"operationId":"updateJourneyTemplate","summary":"Update a Journey Template","tags":["Journey Templates"],"requestBody":{"$ref":"#/components/requestBodies/JourneyTemplatePatchRequestBody"},"responses":{"200":{"$ref":"#/components/responses/JourneyTemplateResponse"},"404":{"$ref":"#/components/responses/JourneyTemplateNotFoundResponse"}},"security":[{"ApiKey":[]}]},"delete":{"operationId":"deleteJourneyTemplate","summary":"Delete a Journey Template","tags":["Journey Templates"],"responses":{"200":{"$ref":"#/components/responses/JourneyTemplateResponse"},"404":{"$ref":"#/components/responses/JourneyTemplateNotFoundResponse"}},"security":[{"ApiKey":[]}]}},"/api/journey-variable-values":{"get":{"operationId":"listJourneyVariableValues","summary":"Retrieve a list of Journey Variable Values","tags":["Journey Variable Values"],"parameters":[{"in":"query","name":"page","schema":{"type":"number"}},{"in":"query","name":"limit","schema":{"type":"number"}},{"in":"query","name":"depth","schema":{"type":"number"}},{"in":"query","name":"locale","schema":{"type":"string"}},{"in":"query","name":"fallback-locale","schema":{"type":"string"}},{"in":"query","name":"sort","schema":{"type":"string","enum":["archivedAt","-archivedAt","updatedAt","-updatedAt","createdAt","-createdAt"]}},{"in":"query","name":"where","style":"deepObject","schema":{"allOf":[{"type":"object"},{"anyOf":[{"$ref":"#/components/schemas/JourneyVariableValueQueryOperations"},{"$ref":"#/components/schemas/JourneyVariableValueQueryOperationsAnd"},{"$ref":"#/components/schemas/JourneyVariableValueQueryOperationsOr"}]}],"description":"Filter with Payload query objects, for example {customer:{equals:'ID'}}. Combine conditions with and/or arrays. Tenant access is always enforced."}},{"in":"query","name":"select","style":"deepObject","description":"Select readable fields for a compact response; nested fields use nested objects.","schema":{"type":"object","description":"For compact reads, set only needed readable fields to true, for example {title:true,priority:true}; use nested objects for nested fields. Use false only for exclusion mode, without mixing true and false. Selection does not grant field access. Combine with depth:0 and a small limit.","additionalProperties":{"anyOf":[{"type":"boolean"},{"type":"object","additionalProperties":true}]}}}],"responses":{"200":{"$ref":"#/components/responses/JourneyVariableValueListResponse"}},"security":[{"ApiKey":[]}]},"post":{"operationId":"createJourneyVariableValue","summary":"Create a new Journey Variable Value","tags":["Journey Variable Values"],"parameters":[{"in":"query","name":"depth","schema":{"type":"number"}},{"in":"query","name":"locale","schema":{"type":"string"}}],"requestBody":{"$ref":"#/components/requestBodies/JourneyVariableValueRequestBody"},"responses":{"201":{"$ref":"#/components/responses/MutateJourneyVariableValueResponse"}},"security":[{"ApiKey":[]}]}},"/api/journey-variable-values/{id}":{"parameters":[{"in":"query","name":"depth","schema":{"type":"number"}},{"in":"query","name":"locale","schema":{"type":"string"}},{"in":"query","name":"fallback-locale","schema":{"type":"string"}},{"in":"path","name":"id","description":"ID of the Journey Variable Value","required":true,"schema":{"type":"string"}}],"get":{"operationId":"findJourneyVariableValueById","summary":"Find a Journey Variable Value by ID","tags":["Journey Variable Values"],"responses":{"200":{"description":"The requested record.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JourneyVariableValue"}}}}},"security":[{"ApiKey":[]}],"parameters":[{"in":"query","name":"select","style":"deepObject","description":"Select readable fields for a compact response; nested fields use nested objects.","schema":{"type":"object","description":"For compact reads, set only needed readable fields to true, for example {title:true,priority:true}; use nested objects for nested fields. Use false only for exclusion mode, without mixing true and false. Selection does not grant field access. Combine with depth:0 and a small limit.","additionalProperties":{"anyOf":[{"type":"boolean"},{"type":"object","additionalProperties":true}]}}}]},"patch":{"operationId":"updateJourneyVariableValue","summary":"Update a Journey Variable Value","tags":["Journey Variable Values"],"requestBody":{"$ref":"#/components/requestBodies/JourneyVariableValuePatchRequestBody"},"responses":{"200":{"$ref":"#/components/responses/JourneyVariableValueResponse"},"404":{"$ref":"#/components/responses/JourneyVariableValueNotFoundResponse"}},"security":[{"ApiKey":[]}]},"delete":{"operationId":"deleteJourneyVariableValue","summary":"Delete a Journey Variable Value","tags":["Journey Variable Values"],"responses":{"200":{"$ref":"#/components/responses/JourneyVariableValueResponse"},"404":{"$ref":"#/components/responses/JourneyVariableValueNotFoundResponse"}},"security":[{"ApiKey":[]}]}},"/api/journeys":{"get":{"operationId":"listJourneys","summary":"Retrieve a list of Journeys","tags":["Journeys"],"parameters":[{"in":"query","name":"page","schema":{"type":"number"}},{"in":"query","name":"limit","schema":{"type":"number"}},{"in":"query","name":"depth","schema":{"type":"number"}},{"in":"query","name":"locale","schema":{"type":"string"}},{"in":"query","name":"fallback-locale","schema":{"type":"string"}},{"in":"query","name":"sort","schema":{"type":"string","enum":["name","-name","slug","-slug","lastStepNumber","-lastStepNumber","startedAt","-startedAt","deadlineAt","-deadlineAt","archivedAt","-archivedAt","customerName","-customerName","lastCommentAt","-lastCommentAt","updatedAt","-updatedAt","createdAt","-createdAt"]}},{"in":"query","name":"where","style":"deepObject","schema":{"allOf":[{"type":"object"},{"anyOf":[{"$ref":"#/components/schemas/JourneyQueryOperations"},{"$ref":"#/components/schemas/JourneyQueryOperationsAnd"},{"$ref":"#/components/schemas/JourneyQueryOperationsOr"}]}],"description":"Filter with Payload query objects, for example {customer:{equals:'ID'}}. Combine conditions with and/or arrays. Tenant access is always enforced."}},{"in":"query","name":"select","style":"deepObject","description":"Select readable fields for a compact response; nested fields use nested objects.","schema":{"type":"object","description":"For compact reads, set only needed readable fields to true, for example {title:true,priority:true}; use nested objects for nested fields. Use false only for exclusion mode, without mixing true and false. Selection does not grant field access. Combine with depth:0 and a small limit.","additionalProperties":{"anyOf":[{"type":"boolean"},{"type":"object","additionalProperties":true}]}}}],"responses":{"200":{"$ref":"#/components/responses/JourneyListResponse"}},"security":[{"ApiKey":[]}]},"post":{"operationId":"createJourney","summary":"Create a new Journey","tags":["Journeys"],"parameters":[{"in":"query","name":"depth","schema":{"type":"number"}},{"in":"query","name":"locale","schema":{"type":"string"}}],"requestBody":{"$ref":"#/components/requestBodies/JourneyRequestBody"},"responses":{"201":{"$ref":"#/components/responses/MutateJourneyResponse"}},"security":[{"ApiKey":[]}]}},"/api/journeys/{id}":{"parameters":[{"in":"query","name":"depth","schema":{"type":"number"}},{"in":"query","name":"locale","schema":{"type":"string"}},{"in":"query","name":"fallback-locale","schema":{"type":"string"}},{"in":"path","name":"id","description":"ID of the Journey","required":true,"schema":{"type":"string"}}],"get":{"operationId":"findJourneyById","summary":"Find a Journey by ID","tags":["Journeys"],"responses":{"200":{"description":"The requested record.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Journey"}}}}},"security":[{"ApiKey":[]}],"parameters":[{"in":"query","name":"select","style":"deepObject","description":"Select readable fields for a compact response; nested fields use nested objects.","schema":{"type":"object","description":"For compact reads, set only needed readable fields to true, for example {title:true,priority:true}; use nested objects for nested fields. Use false only for exclusion mode, without mixing true and false. Selection does not grant field access. Combine with depth:0 and a small limit.","additionalProperties":{"anyOf":[{"type":"boolean"},{"type":"object","additionalProperties":true}]}}}]},"patch":{"operationId":"updateJourney","summary":"Update a Journey","tags":["Journeys"],"requestBody":{"$ref":"#/components/requestBodies/JourneyPatchRequestBody"},"responses":{"200":{"$ref":"#/components/responses/JourneyResponse"},"404":{"$ref":"#/components/responses/JourneyNotFoundResponse"}},"security":[{"ApiKey":[]}]},"delete":{"operationId":"deleteJourney","summary":"Delete a Journey","tags":["Journeys"],"responses":{"200":{"$ref":"#/components/responses/JourneyResponse"},"404":{"$ref":"#/components/responses/JourneyNotFoundResponse"}},"security":[{"ApiKey":[]}]}},"/api/notifications":{"get":{"operationId":"listNotifications","summary":"Retrieve a list of Notifications","tags":["Notifications"],"parameters":[{"in":"query","name":"page","schema":{"type":"number"}},{"in":"query","name":"limit","schema":{"type":"number"}},{"in":"query","name":"depth","schema":{"type":"number"}},{"in":"query","name":"locale","schema":{"type":"string"}},{"in":"query","name":"fallback-locale","schema":{"type":"string"}},{"in":"query","name":"sort","schema":{"type":"string","enum":["title","-title","href","-href","readAt","-readAt","updatedAt","-updatedAt","createdAt","-createdAt"]}},{"in":"query","name":"where","style":"deepObject","schema":{"allOf":[{"type":"object"},{"anyOf":[{"$ref":"#/components/schemas/NotificationQueryOperations"},{"$ref":"#/components/schemas/NotificationQueryOperationsAnd"},{"$ref":"#/components/schemas/NotificationQueryOperationsOr"}]}],"description":"Filter with Payload query objects, for example {customer:{equals:'ID'}}. Combine conditions with and/or arrays. Tenant access is always enforced."}},{"in":"query","name":"select","style":"deepObject","description":"Select readable fields for a compact response; nested fields use nested objects.","schema":{"type":"object","description":"For compact reads, set only needed readable fields to true, for example {title:true,priority:true}; use nested objects for nested fields. Use false only for exclusion mode, without mixing true and false. Selection does not grant field access. Combine with depth:0 and a small limit.","additionalProperties":{"anyOf":[{"type":"boolean"},{"type":"object","additionalProperties":true}]}}}],"responses":{"200":{"$ref":"#/components/responses/NotificationListResponse"}},"security":[{"ApiKey":[]}],"description":"Read notifications belonging to the current recipient."}},"/api/notifications/{id}":{"parameters":[{"in":"query","name":"depth","schema":{"type":"number"}},{"in":"query","name":"locale","schema":{"type":"string"}},{"in":"query","name":"fallback-locale","schema":{"type":"string"}},{"in":"path","name":"id","description":"ID of the Notification","required":true,"schema":{"type":"string"}}],"get":{"operationId":"findNotificationById","summary":"Find a Notification by ID","tags":["Notifications"],"responses":{"200":{"description":"The requested record.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Notification"}}}}},"security":[{"ApiKey":[]}],"description":"Read notifications belonging to the current recipient.","parameters":[{"in":"query","name":"select","style":"deepObject","description":"Select readable fields for a compact response; nested fields use nested objects.","schema":{"type":"object","description":"For compact reads, set only needed readable fields to true, for example {title:true,priority:true}; use nested objects for nested fields. Use false only for exclusion mode, without mixing true and false. Selection does not grant field access. Combine with depth:0 and a small limit.","additionalProperties":{"anyOf":[{"type":"boolean"},{"type":"object","additionalProperties":true}]}}}]},"patch":{"operationId":"updateNotification","summary":"Update a Notification","tags":["Notifications"],"requestBody":{"$ref":"#/components/requestBodies/NotificationPatchRequestBody"},"responses":{"200":{"$ref":"#/components/responses/NotificationResponse"},"404":{"$ref":"#/components/responses/NotificationNotFoundResponse"}},"security":[{"ApiKey":[]}]},"delete":{"operationId":"deleteNotification","summary":"Delete a Notification","tags":["Notifications"],"responses":{"200":{"$ref":"#/components/responses/NotificationResponse"},"404":{"$ref":"#/components/responses/NotificationNotFoundResponse"}},"security":[{"ApiKey":[]}]}},"/api/object-record-variable-values":{"get":{"operationId":"listObjectRecordVariableValues","summary":"Retrieve a list of Object Record Variable Values","tags":["Object Record Variable Values"],"parameters":[{"in":"query","name":"page","schema":{"type":"number"}},{"in":"query","name":"limit","schema":{"type":"number"}},{"in":"query","name":"depth","schema":{"type":"number"}},{"in":"query","name":"locale","schema":{"type":"string"}},{"in":"query","name":"fallback-locale","schema":{"type":"string"}},{"in":"query","name":"sort","schema":{"type":"string","enum":["archivedAt","-archivedAt","updatedAt","-updatedAt","createdAt","-createdAt"]}},{"in":"query","name":"where","style":"deepObject","schema":{"allOf":[{"type":"object"},{"anyOf":[{"$ref":"#/components/schemas/ObjectRecordVariableValueQueryOperations"},{"$ref":"#/components/schemas/ObjectRecordVariableValueQueryOperationsAnd"},{"$ref":"#/components/schemas/ObjectRecordVariableValueQueryOperationsOr"}]}],"description":"Filter with Payload query objects, for example {customer:{equals:'ID'}}. Combine conditions with and/or arrays. Tenant access is always enforced."}},{"in":"query","name":"select","style":"deepObject","description":"Select readable fields for a compact response; nested fields use nested objects.","schema":{"type":"object","description":"For compact reads, set only needed readable fields to true, for example {title:true,priority:true}; use nested objects for nested fields. Use false only for exclusion mode, without mixing true and false. Selection does not grant field access. Combine with depth:0 and a small limit.","additionalProperties":{"anyOf":[{"type":"boolean"},{"type":"object","additionalProperties":true}]}}}],"responses":{"200":{"$ref":"#/components/responses/ObjectRecordVariableValueListResponse"}},"security":[{"ApiKey":[]}]},"post":{"operationId":"createObjectRecordVariableValue","summary":"Create a new Object Record Variable Value","tags":["Object Record Variable Values"],"parameters":[{"in":"query","name":"depth","schema":{"type":"number"}},{"in":"query","name":"locale","schema":{"type":"string"}}],"requestBody":{"$ref":"#/components/requestBodies/ObjectRecordVariableValueRequestBody"},"responses":{"201":{"$ref":"#/components/responses/MutateObjectRecordVariableValueResponse"}},"security":[{"ApiKey":[]}]}},"/api/object-record-variable-values/{id}":{"parameters":[{"in":"query","name":"depth","schema":{"type":"number"}},{"in":"query","name":"locale","schema":{"type":"string"}},{"in":"query","name":"fallback-locale","schema":{"type":"string"}},{"in":"path","name":"id","description":"ID of the Object Record Variable Value","required":true,"schema":{"type":"string"}}],"get":{"operationId":"findObjectRecordVariableValueById","summary":"Find a Object Record Variable Value by ID","tags":["Object Record Variable Values"],"responses":{"200":{"description":"The requested record.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ObjectRecordVariableValue"}}}}},"security":[{"ApiKey":[]}],"parameters":[{"in":"query","name":"select","style":"deepObject","description":"Select readable fields for a compact response; nested fields use nested objects.","schema":{"type":"object","description":"For compact reads, set only needed readable fields to true, for example {title:true,priority:true}; use nested objects for nested fields. Use false only for exclusion mode, without mixing true and false. Selection does not grant field access. Combine with depth:0 and a small limit.","additionalProperties":{"anyOf":[{"type":"boolean"},{"type":"object","additionalProperties":true}]}}}]},"patch":{"operationId":"updateObjectRecordVariableValue","summary":"Update a Object Record Variable Value","tags":["Object Record Variable Values"],"requestBody":{"$ref":"#/components/requestBodies/ObjectRecordVariableValuePatchRequestBody"},"responses":{"200":{"$ref":"#/components/responses/ObjectRecordVariableValueResponse"},"404":{"$ref":"#/components/responses/ObjectRecordVariableValueNotFoundResponse"}},"security":[{"ApiKey":[]}]},"delete":{"operationId":"deleteObjectRecordVariableValue","summary":"Delete a Object Record Variable Value","tags":["Object Record Variable Values"],"responses":{"200":{"$ref":"#/components/responses/ObjectRecordVariableValueResponse"},"404":{"$ref":"#/components/responses/ObjectRecordVariableValueNotFoundResponse"}},"security":[{"ApiKey":[]}]}},"/api/object-records":{"get":{"operationId":"listObjectRecords","summary":"Retrieve a list of Object Records","tags":["Object Records"],"parameters":[{"in":"query","name":"page","schema":{"type":"number"}},{"in":"query","name":"limit","schema":{"type":"number"}},{"in":"query","name":"depth","schema":{"type":"number"}},{"in":"query","name":"locale","schema":{"type":"string"}},{"in":"query","name":"fallback-locale","schema":{"type":"string"}},{"in":"query","name":"sort","schema":{"type":"string","enum":["name","-name","objectSlug","-objectSlug","archivedAt","-archivedAt","updatedAt","-updatedAt","createdAt","-createdAt"]}},{"in":"query","name":"where","style":"deepObject","schema":{"allOf":[{"type":"object"},{"anyOf":[{"$ref":"#/components/schemas/ObjectRecordQueryOperations"},{"$ref":"#/components/schemas/ObjectRecordQueryOperationsAnd"},{"$ref":"#/components/schemas/ObjectRecordQueryOperationsOr"}]}],"description":"Filter with Payload query objects, for example {customer:{equals:'ID'}}. Combine conditions with and/or arrays. Tenant access is always enforced."}},{"in":"query","name":"select","style":"deepObject","description":"Select readable fields for a compact response; nested fields use nested objects.","schema":{"type":"object","description":"For compact reads, set only needed readable fields to true, for example {title:true,priority:true}; use nested objects for nested fields. Use false only for exclusion mode, without mixing true and false. Selection does not grant field access. Combine with depth:0 and a small limit.","additionalProperties":{"anyOf":[{"type":"boolean"},{"type":"object","additionalProperties":true}]}}}],"responses":{"200":{"$ref":"#/components/responses/ObjectRecordListResponse"}},"security":[{"ApiKey":[]}]},"post":{"operationId":"createObjectRecord","summary":"Create a new Object Record","tags":["Object Records"],"parameters":[{"in":"query","name":"depth","schema":{"type":"number"}},{"in":"query","name":"locale","schema":{"type":"string"}}],"requestBody":{"$ref":"#/components/requestBodies/ObjectRecordRequestBody"},"responses":{"201":{"$ref":"#/components/responses/MutateObjectRecordResponse"}},"security":[{"ApiKey":[]}]}},"/api/object-records/{id}":{"parameters":[{"in":"query","name":"depth","schema":{"type":"number"}},{"in":"query","name":"locale","schema":{"type":"string"}},{"in":"query","name":"fallback-locale","schema":{"type":"string"}},{"in":"path","name":"id","description":"ID of the Object Record","required":true,"schema":{"type":"string"}}],"get":{"operationId":"findObjectRecordById","summary":"Find a Object Record by ID","tags":["Object Records"],"responses":{"200":{"description":"The requested record.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ObjectRecord"}}}}},"security":[{"ApiKey":[]}],"parameters":[{"in":"query","name":"select","style":"deepObject","description":"Select readable fields for a compact response; nested fields use nested objects.","schema":{"type":"object","description":"For compact reads, set only needed readable fields to true, for example {title:true,priority:true}; use nested objects for nested fields. Use false only for exclusion mode, without mixing true and false. Selection does not grant field access. Combine with depth:0 and a small limit.","additionalProperties":{"anyOf":[{"type":"boolean"},{"type":"object","additionalProperties":true}]}}}]},"patch":{"operationId":"updateObjectRecord","summary":"Update a Object Record","tags":["Object Records"],"requestBody":{"$ref":"#/components/requestBodies/ObjectRecordPatchRequestBody"},"responses":{"200":{"$ref":"#/components/responses/ObjectRecordResponse"},"404":{"$ref":"#/components/responses/ObjectRecordNotFoundResponse"}},"security":[{"ApiKey":[]}]},"delete":{"operationId":"deleteObjectRecord","summary":"Delete a Object Record","tags":["Object Records"],"responses":{"200":{"$ref":"#/components/responses/ObjectRecordResponse"},"404":{"$ref":"#/components/responses/ObjectRecordNotFoundResponse"}},"security":[{"ApiKey":[]}]}},"/api/objects":{"get":{"operationId":"listObjects","summary":"Retrieve a list of Objects","tags":["Objects"],"parameters":[{"in":"query","name":"page","schema":{"type":"number"}},{"in":"query","name":"limit","schema":{"type":"number"}},{"in":"query","name":"depth","schema":{"type":"number"}},{"in":"query","name":"locale","schema":{"type":"string"}},{"in":"query","name":"fallback-locale","schema":{"type":"string"}},{"in":"query","name":"sort","schema":{"type":"string","enum":["name","-name","slug","-slug","integrationKey","-integrationKey","archivedAt","-archivedAt","updatedAt","-updatedAt","createdAt","-createdAt"]}},{"in":"query","name":"where","style":"deepObject","schema":{"allOf":[{"type":"object"},{"anyOf":[{"$ref":"#/components/schemas/ObjectQueryOperations"},{"$ref":"#/components/schemas/ObjectQueryOperationsAnd"},{"$ref":"#/components/schemas/ObjectQueryOperationsOr"}]}],"description":"Filter with Payload query objects, for example {customer:{equals:'ID'}}. Combine conditions with and/or arrays. Tenant access is always enforced."}},{"in":"query","name":"select","style":"deepObject","description":"Select readable fields for a compact response; nested fields use nested objects.","schema":{"type":"object","description":"For compact reads, set only needed readable fields to true, for example {title:true,priority:true}; use nested objects for nested fields. Use false only for exclusion mode, without mixing true and false. Selection does not grant field access. Combine with depth:0 and a small limit.","additionalProperties":{"anyOf":[{"type":"boolean"},{"type":"object","additionalProperties":true}]}}}],"responses":{"200":{"$ref":"#/components/responses/ObjectListResponse"}},"security":[{"ApiKey":[]}]},"post":{"operationId":"createObject","summary":"Create a new Object","tags":["Objects"],"parameters":[{"in":"query","name":"depth","schema":{"type":"number"}},{"in":"query","name":"locale","schema":{"type":"string"}}],"requestBody":{"$ref":"#/components/requestBodies/ObjectRequestBody"},"responses":{"201":{"$ref":"#/components/responses/MutateObjectResponse"}},"security":[{"ApiKey":[]}]}},"/api/objects/{id}":{"parameters":[{"in":"query","name":"depth","schema":{"type":"number"}},{"in":"query","name":"locale","schema":{"type":"string"}},{"in":"query","name":"fallback-locale","schema":{"type":"string"}},{"in":"path","name":"id","description":"ID of the Object","required":true,"schema":{"type":"string"}}],"get":{"operationId":"findObjectById","summary":"Find a Object by ID","tags":["Objects"],"responses":{"200":{"description":"The requested record.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Object"}}}}},"security":[{"ApiKey":[]}],"parameters":[{"in":"query","name":"select","style":"deepObject","description":"Select readable fields for a compact response; nested fields use nested objects.","schema":{"type":"object","description":"For compact reads, set only needed readable fields to true, for example {title:true,priority:true}; use nested objects for nested fields. Use false only for exclusion mode, without mixing true and false. Selection does not grant field access. Combine with depth:0 and a small limit.","additionalProperties":{"anyOf":[{"type":"boolean"},{"type":"object","additionalProperties":true}]}}}]},"patch":{"operationId":"updateObject","summary":"Update a Object","tags":["Objects"],"requestBody":{"$ref":"#/components/requestBodies/ObjectPatchRequestBody"},"responses":{"200":{"$ref":"#/components/responses/ObjectResponse"},"404":{"$ref":"#/components/responses/ObjectNotFoundResponse"}},"security":[{"ApiKey":[]}]},"delete":{"operationId":"deleteObject","summary":"Delete a Object","tags":["Objects"],"responses":{"200":{"$ref":"#/components/responses/ObjectResponse"},"404":{"$ref":"#/components/responses/ObjectNotFoundResponse"}},"security":[{"ApiKey":[]}]}},"/api/outcomes":{"get":{"operationId":"listOutcomes","summary":"Retrieve a list of Outcomes","tags":["Outcomes"],"parameters":[{"in":"query","name":"page","schema":{"type":"number"}},{"in":"query","name":"limit","schema":{"type":"number"}},{"in":"query","name":"depth","schema":{"type":"number"}},{"in":"query","name":"locale","schema":{"type":"string"}},{"in":"query","name":"fallback-locale","schema":{"type":"string"}},{"in":"query","name":"sort","schema":{"type":"string","enum":["name","-name","unit","-unit","startValue","-startValue","targetValue","-targetValue","achievedValue","-achievedValue","achievedAt","-achievedAt","removedValues","-removedValues","deadlineAt","-deadlineAt","archivedAt","-archivedAt","updatedAt","-updatedAt","createdAt","-createdAt"]}},{"in":"query","name":"where","style":"deepObject","schema":{"allOf":[{"type":"object"},{"anyOf":[{"$ref":"#/components/schemas/OutcomeQueryOperations"},{"$ref":"#/components/schemas/OutcomeQueryOperationsAnd"},{"$ref":"#/components/schemas/OutcomeQueryOperationsOr"}]}],"description":"Filter with Payload query objects, for example {customer:{equals:'ID'}}. Combine conditions with and/or arrays. Tenant access is always enforced."}},{"in":"query","name":"select","style":"deepObject","description":"Select readable fields for a compact response; nested fields use nested objects.","schema":{"type":"object","description":"For compact reads, set only needed readable fields to true, for example {title:true,priority:true}; use nested objects for nested fields. Use false only for exclusion mode, without mixing true and false. Selection does not grant field access. Combine with depth:0 and a small limit.","additionalProperties":{"anyOf":[{"type":"boolean"},{"type":"object","additionalProperties":true}]}}}],"responses":{"200":{"$ref":"#/components/responses/OutcomeListResponse"}},"security":[{"ApiKey":[]}]},"post":{"operationId":"createOutcome","summary":"Create a new Outcome","tags":["Outcomes"],"parameters":[{"in":"query","name":"depth","schema":{"type":"number"}},{"in":"query","name":"locale","schema":{"type":"string"}}],"requestBody":{"$ref":"#/components/requestBodies/OutcomeRequestBody"},"responses":{"201":{"$ref":"#/components/responses/MutateOutcomeResponse"}},"security":[{"ApiKey":[]}]}},"/api/outcomes/{id}":{"parameters":[{"in":"query","name":"depth","schema":{"type":"number"}},{"in":"query","name":"locale","schema":{"type":"string"}},{"in":"query","name":"fallback-locale","schema":{"type":"string"}},{"in":"path","name":"id","description":"ID of the Outcome","required":true,"schema":{"type":"string"}}],"get":{"operationId":"findOutcomeById","summary":"Find a Outcome by ID","tags":["Outcomes"],"responses":{"200":{"description":"The requested record.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Outcome"}}}}},"security":[{"ApiKey":[]}],"parameters":[{"in":"query","name":"select","style":"deepObject","description":"Select readable fields for a compact response; nested fields use nested objects.","schema":{"type":"object","description":"For compact reads, set only needed readable fields to true, for example {title:true,priority:true}; use nested objects for nested fields. Use false only for exclusion mode, without mixing true and false. Selection does not grant field access. Combine with depth:0 and a small limit.","additionalProperties":{"anyOf":[{"type":"boolean"},{"type":"object","additionalProperties":true}]}}}]},"patch":{"operationId":"updateOutcome","summary":"Update a Outcome","tags":["Outcomes"],"requestBody":{"$ref":"#/components/requestBodies/OutcomePatchRequestBody"},"responses":{"200":{"$ref":"#/components/responses/OutcomeResponse"},"404":{"$ref":"#/components/responses/OutcomeNotFoundResponse"}},"security":[{"ApiKey":[]}]},"delete":{"operationId":"deleteOutcome","summary":"Delete a Outcome","tags":["Outcomes"],"responses":{"200":{"$ref":"#/components/responses/OutcomeResponse"},"404":{"$ref":"#/components/responses/OutcomeNotFoundResponse"}},"security":[{"ApiKey":[]}]}},"/api/pages":{"get":{"operationId":"listPages","summary":"Retrieve a list of Pages","tags":["Pages"],"parameters":[{"in":"query","name":"page","schema":{"type":"number"}},{"in":"query","name":"limit","schema":{"type":"number"}},{"in":"query","name":"depth","schema":{"type":"number"}},{"in":"query","name":"locale","schema":{"type":"string"}},{"in":"query","name":"fallback-locale","schema":{"type":"string"}},{"in":"query","name":"sort","schema":{"type":"string","enum":["name","-name","slug","-slug","url","-url","activeStateId","-activeStateId","archivedAt","-archivedAt","updatedAt","-updatedAt","createdAt","-createdAt"]}},{"in":"query","name":"where","style":"deepObject","schema":{"allOf":[{"type":"object"},{"anyOf":[{"$ref":"#/components/schemas/PageQueryOperations"},{"$ref":"#/components/schemas/PageQueryOperationsAnd"},{"$ref":"#/components/schemas/PageQueryOperationsOr"}]}],"description":"Filter with Payload query objects, for example {customer:{equals:'ID'}}. Combine conditions with and/or arrays. Tenant access is always enforced."}},{"in":"query","name":"select","style":"deepObject","description":"Select readable fields for a compact response; nested fields use nested objects.","schema":{"type":"object","description":"For compact reads, set only needed readable fields to true, for example {title:true,priority:true}; use nested objects for nested fields. Use false only for exclusion mode, without mixing true and false. Selection does not grant field access. Combine with depth:0 and a small limit.","additionalProperties":{"anyOf":[{"type":"boolean"},{"type":"object","additionalProperties":true}]}}}],"responses":{"200":{"$ref":"#/components/responses/PageListResponse"}},"security":[{"ApiKey":[]}]},"post":{"operationId":"createPage","summary":"Create a new Page","tags":["Pages"],"parameters":[{"in":"query","name":"depth","schema":{"type":"number"}},{"in":"query","name":"locale","schema":{"type":"string"}}],"requestBody":{"$ref":"#/components/requestBodies/PageRequestBody"},"responses":{"201":{"$ref":"#/components/responses/MutatePageResponse"}},"security":[{"ApiKey":[]}]}},"/api/pages/{id}":{"parameters":[{"in":"query","name":"depth","schema":{"type":"number"}},{"in":"query","name":"locale","schema":{"type":"string"}},{"in":"query","name":"fallback-locale","schema":{"type":"string"}},{"in":"path","name":"id","description":"ID of the Page","required":true,"schema":{"type":"string"}}],"get":{"operationId":"findPageById","summary":"Find a Page by ID","tags":["Pages"],"responses":{"200":{"description":"The requested record.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page"}}}}},"security":[{"ApiKey":[]}],"parameters":[{"in":"query","name":"select","style":"deepObject","description":"Select readable fields for a compact response; nested fields use nested objects.","schema":{"type":"object","description":"For compact reads, set only needed readable fields to true, for example {title:true,priority:true}; use nested objects for nested fields. Use false only for exclusion mode, without mixing true and false. Selection does not grant field access. Combine with depth:0 and a small limit.","additionalProperties":{"anyOf":[{"type":"boolean"},{"type":"object","additionalProperties":true}]}}}]},"patch":{"operationId":"updatePage","summary":"Update a Page","tags":["Pages"],"requestBody":{"$ref":"#/components/requestBodies/PagePatchRequestBody"},"responses":{"200":{"$ref":"#/components/responses/PageResponse"},"404":{"$ref":"#/components/responses/PageNotFoundResponse"}},"security":[{"ApiKey":[]}]},"delete":{"operationId":"deletePage","summary":"Delete a Page","tags":["Pages"],"responses":{"200":{"$ref":"#/components/responses/PageResponse"},"404":{"$ref":"#/components/responses/PageNotFoundResponse"}},"security":[{"ApiKey":[]}]}},"/api/playbook-template-variables":{"get":{"operationId":"listPlaybookTemplateVariables","summary":"Retrieve a list of Playbook Template Variables","tags":["Playbook Template Variables"],"parameters":[{"in":"query","name":"page","schema":{"type":"number"}},{"in":"query","name":"limit","schema":{"type":"number"}},{"in":"query","name":"depth","schema":{"type":"number"}},{"in":"query","name":"locale","schema":{"type":"string"}},{"in":"query","name":"fallback-locale","schema":{"type":"string"}},{"in":"query","name":"sort","schema":{"type":"string","enum":["name","-name","slug","-slug","archivedAt","-archivedAt","updatedAt","-updatedAt","createdAt","-createdAt"]}},{"in":"query","name":"where","style":"deepObject","schema":{"allOf":[{"type":"object"},{"anyOf":[{"$ref":"#/components/schemas/PlaybookTemplateVariableQueryOperations"},{"$ref":"#/components/schemas/PlaybookTemplateVariableQueryOperationsAnd"},{"$ref":"#/components/schemas/PlaybookTemplateVariableQueryOperationsOr"}]}],"description":"Filter with Payload query objects, for example {customer:{equals:'ID'}}. Combine conditions with and/or arrays. Tenant access is always enforced."}},{"in":"query","name":"select","style":"deepObject","description":"Select readable fields for a compact response; nested fields use nested objects.","schema":{"type":"object","description":"For compact reads, set only needed readable fields to true, for example {title:true,priority:true}; use nested objects for nested fields. Use false only for exclusion mode, without mixing true and false. Selection does not grant field access. Combine with depth:0 and a small limit.","additionalProperties":{"anyOf":[{"type":"boolean"},{"type":"object","additionalProperties":true}]}}}],"responses":{"200":{"$ref":"#/components/responses/PlaybookTemplateVariableListResponse"}},"security":[{"ApiKey":[]}]},"post":{"operationId":"createPlaybookTemplateVariable","summary":"Create a new Playbook Template Variable","tags":["Playbook Template Variables"],"parameters":[{"in":"query","name":"depth","schema":{"type":"number"}},{"in":"query","name":"locale","schema":{"type":"string"}}],"requestBody":{"$ref":"#/components/requestBodies/PlaybookTemplateVariableRequestBody"},"responses":{"201":{"$ref":"#/components/responses/MutatePlaybookTemplateVariableResponse"}},"security":[{"ApiKey":[]}]}},"/api/playbook-template-variables/{id}":{"parameters":[{"in":"query","name":"depth","schema":{"type":"number"}},{"in":"query","name":"locale","schema":{"type":"string"}},{"in":"query","name":"fallback-locale","schema":{"type":"string"}},{"in":"path","name":"id","description":"ID of the Playbook Template Variable","required":true,"schema":{"type":"string"}}],"get":{"operationId":"findPlaybookTemplateVariableById","summary":"Find a Playbook Template Variable by ID","tags":["Playbook Template Variables"],"responses":{"200":{"description":"The requested record.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaybookTemplateVariable"}}}}},"security":[{"ApiKey":[]}],"parameters":[{"in":"query","name":"select","style":"deepObject","description":"Select readable fields for a compact response; nested fields use nested objects.","schema":{"type":"object","description":"For compact reads, set only needed readable fields to true, for example {title:true,priority:true}; use nested objects for nested fields. Use false only for exclusion mode, without mixing true and false. Selection does not grant field access. Combine with depth:0 and a small limit.","additionalProperties":{"anyOf":[{"type":"boolean"},{"type":"object","additionalProperties":true}]}}}]},"patch":{"operationId":"updatePlaybookTemplateVariable","summary":"Update a Playbook Template Variable","tags":["Playbook Template Variables"],"requestBody":{"$ref":"#/components/requestBodies/PlaybookTemplateVariablePatchRequestBody"},"responses":{"200":{"$ref":"#/components/responses/PlaybookTemplateVariableResponse"},"404":{"$ref":"#/components/responses/PlaybookTemplateVariableNotFoundResponse"}},"security":[{"ApiKey":[]}]},"delete":{"operationId":"deletePlaybookTemplateVariable","summary":"Delete a Playbook Template Variable","tags":["Playbook Template Variables"],"responses":{"200":{"$ref":"#/components/responses/PlaybookTemplateVariableResponse"},"404":{"$ref":"#/components/responses/PlaybookTemplateVariableNotFoundResponse"}},"security":[{"ApiKey":[]}]}},"/api/playbook-template-versions":{"get":{"operationId":"listPlaybookTemplateVersions","summary":"Retrieve a list of Playbook Template Versions","tags":["Playbook Template Versions"],"parameters":[{"in":"query","name":"page","schema":{"type":"number"}},{"in":"query","name":"limit","schema":{"type":"number"}},{"in":"query","name":"depth","schema":{"type":"number"}},{"in":"query","name":"locale","schema":{"type":"string"}},{"in":"query","name":"fallback-locale","schema":{"type":"string"}},{"in":"query","name":"sort","schema":{"type":"string","enum":["archivedAt","-archivedAt","creationTotalTasks","-creationTotalTasks","creationCompletedTasks","-creationCompletedTasks","versionNumber","-versionNumber","publishedAt","-publishedAt","publishedByName","-publishedByName","publishNote","-publishNote","updatedAt","-updatedAt","createdAt","-createdAt"]}},{"in":"query","name":"where","style":"deepObject","schema":{"allOf":[{"type":"object"},{"anyOf":[{"$ref":"#/components/schemas/PlaybookTemplateVersionQueryOperations"},{"$ref":"#/components/schemas/PlaybookTemplateVersionQueryOperationsAnd"},{"$ref":"#/components/schemas/PlaybookTemplateVersionQueryOperationsOr"}]}],"description":"Filter with Payload query objects, for example {customer:{equals:'ID'}}. Combine conditions with and/or arrays. Tenant access is always enforced."}},{"in":"query","name":"select","style":"deepObject","description":"Select readable fields for a compact response; nested fields use nested objects.","schema":{"type":"object","description":"For compact reads, set only needed readable fields to true, for example {title:true,priority:true}; use nested objects for nested fields. Use false only for exclusion mode, without mixing true and false. Selection does not grant field access. Combine with depth:0 and a small limit.","additionalProperties":{"anyOf":[{"type":"boolean"},{"type":"object","additionalProperties":true}]}}}],"responses":{"200":{"$ref":"#/components/responses/PlaybookTemplateVersionListResponse"}},"security":[{"ApiKey":[]}]},"post":{"operationId":"createPlaybookTemplateVersion","summary":"Create a new Playbook Template Version","tags":["Playbook Template Versions"],"parameters":[{"in":"query","name":"depth","schema":{"type":"number"}},{"in":"query","name":"locale","schema":{"type":"string"}}],"requestBody":{"$ref":"#/components/requestBodies/PlaybookTemplateVersionRequestBody"},"responses":{"201":{"$ref":"#/components/responses/MutatePlaybookTemplateVersionResponse"}},"security":[{"ApiKey":[]}]}},"/api/playbook-template-versions/{id}":{"parameters":[{"in":"query","name":"depth","schema":{"type":"number"}},{"in":"query","name":"locale","schema":{"type":"string"}},{"in":"query","name":"fallback-locale","schema":{"type":"string"}},{"in":"path","name":"id","description":"ID of the Playbook Template Version","required":true,"schema":{"type":"string"}}],"get":{"operationId":"findPlaybookTemplateVersionById","summary":"Find a Playbook Template Version by ID","tags":["Playbook Template Versions"],"responses":{"200":{"description":"The requested record.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaybookTemplateVersion"}}}}},"security":[{"ApiKey":[]}],"parameters":[{"in":"query","name":"select","style":"deepObject","description":"Select readable fields for a compact response; nested fields use nested objects.","schema":{"type":"object","description":"For compact reads, set only needed readable fields to true, for example {title:true,priority:true}; use nested objects for nested fields. Use false only for exclusion mode, without mixing true and false. Selection does not grant field access. Combine with depth:0 and a small limit.","additionalProperties":{"anyOf":[{"type":"boolean"},{"type":"object","additionalProperties":true}]}}}]},"patch":{"operationId":"updatePlaybookTemplateVersion","summary":"Update a Playbook Template Version","tags":["Playbook Template Versions"],"requestBody":{"$ref":"#/components/requestBodies/PlaybookTemplateVersionPatchRequestBody"},"responses":{"200":{"$ref":"#/components/responses/PlaybookTemplateVersionResponse"},"404":{"$ref":"#/components/responses/PlaybookTemplateVersionNotFoundResponse"}},"security":[{"ApiKey":[]}]},"delete":{"operationId":"deletePlaybookTemplateVersion","summary":"Delete a Playbook Template Version","tags":["Playbook Template Versions"],"responses":{"200":{"$ref":"#/components/responses/PlaybookTemplateVersionResponse"},"404":{"$ref":"#/components/responses/PlaybookTemplateVersionNotFoundResponse"}},"security":[{"ApiKey":[]}]}},"/api/playbook-templates":{"get":{"operationId":"listPlaybookTemplates","summary":"Retrieve a list of Playbook Templates","tags":["Playbook Templates"],"parameters":[{"in":"query","name":"page","schema":{"type":"number"}},{"in":"query","name":"limit","schema":{"type":"number"}},{"in":"query","name":"depth","schema":{"type":"number"}},{"in":"query","name":"locale","schema":{"type":"string"}},{"in":"query","name":"fallback-locale","schema":{"type":"string"}},{"in":"query","name":"sort","schema":{"type":"string","enum":["name","-name","archivedAt","-archivedAt","updatedAt","-updatedAt","createdAt","-createdAt"]}},{"in":"query","name":"where","style":"deepObject","schema":{"allOf":[{"type":"object"},{"anyOf":[{"$ref":"#/components/schemas/PlaybookTemplateQueryOperations"},{"$ref":"#/components/schemas/PlaybookTemplateQueryOperationsAnd"},{"$ref":"#/components/schemas/PlaybookTemplateQueryOperationsOr"}]}],"description":"Filter with Payload query objects, for example {customer:{equals:'ID'}}. Combine conditions with and/or arrays. Tenant access is always enforced."}},{"in":"query","name":"select","style":"deepObject","description":"Select readable fields for a compact response; nested fields use nested objects.","schema":{"type":"object","description":"For compact reads, set only needed readable fields to true, for example {title:true,priority:true}; use nested objects for nested fields. Use false only for exclusion mode, without mixing true and false. Selection does not grant field access. Combine with depth:0 and a small limit.","additionalProperties":{"anyOf":[{"type":"boolean"},{"type":"object","additionalProperties":true}]}}}],"responses":{"200":{"$ref":"#/components/responses/PlaybookTemplateListResponse"}},"security":[{"ApiKey":[]}]},"post":{"operationId":"createPlaybookTemplate","summary":"Create a new Playbook Template","tags":["Playbook Templates"],"parameters":[{"in":"query","name":"depth","schema":{"type":"number"}},{"in":"query","name":"locale","schema":{"type":"string"}}],"requestBody":{"$ref":"#/components/requestBodies/PlaybookTemplateRequestBody"},"responses":{"201":{"$ref":"#/components/responses/MutatePlaybookTemplateResponse"}},"security":[{"ApiKey":[]}]}},"/api/playbook-templates/{id}":{"parameters":[{"in":"query","name":"depth","schema":{"type":"number"}},{"in":"query","name":"locale","schema":{"type":"string"}},{"in":"query","name":"fallback-locale","schema":{"type":"string"}},{"in":"path","name":"id","description":"ID of the Playbook Template","required":true,"schema":{"type":"string"}}],"get":{"operationId":"findPlaybookTemplateById","summary":"Find a Playbook Template by ID","tags":["Playbook Templates"],"responses":{"200":{"description":"The requested record.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaybookTemplate"}}}}},"security":[{"ApiKey":[]}],"parameters":[{"in":"query","name":"select","style":"deepObject","description":"Select readable fields for a compact response; nested fields use nested objects.","schema":{"type":"object","description":"For compact reads, set only needed readable fields to true, for example {title:true,priority:true}; use nested objects for nested fields. Use false only for exclusion mode, without mixing true and false. Selection does not grant field access. Combine with depth:0 and a small limit.","additionalProperties":{"anyOf":[{"type":"boolean"},{"type":"object","additionalProperties":true}]}}}]},"patch":{"operationId":"updatePlaybookTemplate","summary":"Update a Playbook Template","tags":["Playbook Templates"],"requestBody":{"$ref":"#/components/requestBodies/PlaybookTemplatePatchRequestBody"},"responses":{"200":{"$ref":"#/components/responses/PlaybookTemplateResponse"},"404":{"$ref":"#/components/responses/PlaybookTemplateNotFoundResponse"}},"security":[{"ApiKey":[]}]},"delete":{"operationId":"deletePlaybookTemplate","summary":"Delete a Playbook Template","tags":["Playbook Templates"],"responses":{"200":{"$ref":"#/components/responses/PlaybookTemplateResponse"},"404":{"$ref":"#/components/responses/PlaybookTemplateNotFoundResponse"}},"security":[{"ApiKey":[]}]}},"/api/playbooks":{"get":{"operationId":"listPlaybooks","summary":"Retrieve a list of Playbooks","tags":["Playbooks"],"parameters":[{"in":"query","name":"page","schema":{"type":"number"}},{"in":"query","name":"limit","schema":{"type":"number"}},{"in":"query","name":"depth","schema":{"type":"number"}},{"in":"query","name":"locale","schema":{"type":"string"}},{"in":"query","name":"fallback-locale","schema":{"type":"string"}},{"in":"query","name":"sort","schema":{"type":"string","enum":["name","-name","startedAt","-startedAt","deadlineAt","-deadlineAt","archivedAt","-archivedAt","templateId","-templateId","templateName","-templateName","lastCommentAt","-lastCommentAt","updatedAt","-updatedAt","createdAt","-createdAt"]}},{"in":"query","name":"where","style":"deepObject","schema":{"allOf":[{"type":"object"},{"anyOf":[{"$ref":"#/components/schemas/PlaybookQueryOperations"},{"$ref":"#/components/schemas/PlaybookQueryOperationsAnd"},{"$ref":"#/components/schemas/PlaybookQueryOperationsOr"}]}],"description":"Filter with Payload query objects, for example {customer:{equals:'ID'}}. Combine conditions with and/or arrays. Tenant access is always enforced."}},{"in":"query","name":"select","style":"deepObject","description":"Select readable fields for a compact response; nested fields use nested objects.","schema":{"type":"object","description":"For compact reads, set only needed readable fields to true, for example {title:true,priority:true}; use nested objects for nested fields. Use false only for exclusion mode, without mixing true and false. Selection does not grant field access. Combine with depth:0 and a small limit.","additionalProperties":{"anyOf":[{"type":"boolean"},{"type":"object","additionalProperties":true}]}}}],"responses":{"200":{"$ref":"#/components/responses/PlaybookListResponse"}},"security":[{"ApiKey":[]}]},"post":{"operationId":"createPlaybook","summary":"Create a new Playbook","tags":["Playbooks"],"parameters":[{"in":"query","name":"depth","schema":{"type":"number"}},{"in":"query","name":"locale","schema":{"type":"string"}}],"requestBody":{"$ref":"#/components/requestBodies/PlaybookRequestBody"},"responses":{"201":{"$ref":"#/components/responses/MutatePlaybookResponse"}},"security":[{"ApiKey":[]}]}},"/api/playbooks/{id}":{"parameters":[{"in":"query","name":"depth","schema":{"type":"number"}},{"in":"query","name":"locale","schema":{"type":"string"}},{"in":"query","name":"fallback-locale","schema":{"type":"string"}},{"in":"path","name":"id","description":"ID of the Playbook","required":true,"schema":{"type":"string"}}],"get":{"operationId":"findPlaybookById","summary":"Find a Playbook by ID","tags":["Playbooks"],"responses":{"200":{"description":"The requested record.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Playbook"}}}}},"security":[{"ApiKey":[]}],"parameters":[{"in":"query","name":"select","style":"deepObject","description":"Select readable fields for a compact response; nested fields use nested objects.","schema":{"type":"object","description":"For compact reads, set only needed readable fields to true, for example {title:true,priority:true}; use nested objects for nested fields. Use false only for exclusion mode, without mixing true and false. Selection does not grant field access. Combine with depth:0 and a small limit.","additionalProperties":{"anyOf":[{"type":"boolean"},{"type":"object","additionalProperties":true}]}}}]},"patch":{"operationId":"updatePlaybook","summary":"Update a Playbook","tags":["Playbooks"],"requestBody":{"$ref":"#/components/requestBodies/PlaybookPatchRequestBody"},"responses":{"200":{"$ref":"#/components/responses/PlaybookResponse"},"404":{"$ref":"#/components/responses/PlaybookNotFoundResponse"}},"security":[{"ApiKey":[]}]},"delete":{"operationId":"deletePlaybook","summary":"Delete a Playbook","tags":["Playbooks"],"responses":{"200":{"$ref":"#/components/responses/PlaybookResponse"},"404":{"$ref":"#/components/responses/PlaybookNotFoundResponse"}},"security":[{"ApiKey":[]}]}},"/api/portals":{"get":{"operationId":"listPortals","summary":"Retrieve a list of Portals","tags":["Portals"],"parameters":[{"in":"query","name":"page","schema":{"type":"number"}},{"in":"query","name":"limit","schema":{"type":"number"}},{"in":"query","name":"depth","schema":{"type":"number"}},{"in":"query","name":"locale","schema":{"type":"string"}},{"in":"query","name":"fallback-locale","schema":{"type":"string"}},{"in":"query","name":"sort","schema":{"type":"string","enum":["viewUrl","-viewUrl","updatedAt","-updatedAt","createdAt","-createdAt"]}},{"in":"query","name":"where","style":"deepObject","schema":{"allOf":[{"type":"object"},{"anyOf":[{"$ref":"#/components/schemas/PortalQueryOperations"},{"$ref":"#/components/schemas/PortalQueryOperationsAnd"},{"$ref":"#/components/schemas/PortalQueryOperationsOr"}]}],"description":"Filter with Payload query objects, for example {customer:{equals:'ID'}}. Combine conditions with and/or arrays. Tenant access is always enforced."}},{"in":"query","name":"select","style":"deepObject","description":"Select readable fields for a compact response; nested fields use nested objects.","schema":{"type":"object","description":"For compact reads, set only needed readable fields to true, for example {title:true,priority:true}; use nested objects for nested fields. Use false only for exclusion mode, without mixing true and false. Selection does not grant field access. Combine with depth:0 and a small limit.","additionalProperties":{"anyOf":[{"type":"boolean"},{"type":"object","additionalProperties":true}]}}}],"responses":{"200":{"$ref":"#/components/responses/PortalListResponse"}},"security":[{"ApiKey":[]}]},"post":{"operationId":"createPortal","summary":"Create a new Portal","tags":["Portals"],"parameters":[{"in":"query","name":"depth","schema":{"type":"number"}},{"in":"query","name":"locale","schema":{"type":"string"}}],"requestBody":{"$ref":"#/components/requestBodies/PortalRequestBody"},"responses":{"201":{"$ref":"#/components/responses/MutatePortalResponse"}},"security":[{"ApiKey":[]}]}},"/api/portals/{id}":{"parameters":[{"in":"query","name":"depth","schema":{"type":"number"}},{"in":"query","name":"locale","schema":{"type":"string"}},{"in":"query","name":"fallback-locale","schema":{"type":"string"}},{"in":"path","name":"id","description":"ID of the Portal","required":true,"schema":{"type":"string"}}],"get":{"operationId":"findPortalById","summary":"Find a Portal by ID","tags":["Portals"],"responses":{"200":{"description":"The requested record.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Portal"}}}}},"security":[{"ApiKey":[]}],"parameters":[{"in":"query","name":"select","style":"deepObject","description":"Select readable fields for a compact response; nested fields use nested objects.","schema":{"type":"object","description":"For compact reads, set only needed readable fields to true, for example {title:true,priority:true}; use nested objects for nested fields. Use false only for exclusion mode, without mixing true and false. Selection does not grant field access. Combine with depth:0 and a small limit.","additionalProperties":{"anyOf":[{"type":"boolean"},{"type":"object","additionalProperties":true}]}}}]},"patch":{"operationId":"updatePortal","summary":"Update a Portal","tags":["Portals"],"requestBody":{"$ref":"#/components/requestBodies/PortalPatchRequestBody"},"responses":{"200":{"$ref":"#/components/responses/PortalResponse"},"404":{"$ref":"#/components/responses/PortalNotFoundResponse"}},"security":[{"ApiKey":[]}]},"delete":{"operationId":"deletePortal","summary":"Delete a Portal","tags":["Portals"],"responses":{"200":{"$ref":"#/components/responses/PortalResponse"},"404":{"$ref":"#/components/responses/PortalNotFoundResponse"}},"security":[{"ApiKey":[]}]}},"/api/role-assignments":{"get":{"operationId":"listRoleAssignments","summary":"Retrieve a list of Role Assignments","tags":["Role Assignments"],"parameters":[{"in":"query","name":"page","schema":{"type":"number"}},{"in":"query","name":"limit","schema":{"type":"number"}},{"in":"query","name":"depth","schema":{"type":"number"}},{"in":"query","name":"locale","schema":{"type":"string"}},{"in":"query","name":"fallback-locale","schema":{"type":"string"}},{"in":"query","name":"sort","schema":{"type":"string","enum":["customerName","-customerName","archivedAt","-archivedAt","updatedAt","-updatedAt","createdAt","-createdAt"]}},{"in":"query","name":"where","style":"deepObject","schema":{"allOf":[{"type":"object"},{"anyOf":[{"$ref":"#/components/schemas/RoleAssignmentQueryOperations"},{"$ref":"#/components/schemas/RoleAssignmentQueryOperationsAnd"},{"$ref":"#/components/schemas/RoleAssignmentQueryOperationsOr"}]}],"description":"Filter with Payload query objects, for example {customer:{equals:'ID'}}. Combine conditions with and/or arrays. Tenant access is always enforced."}},{"in":"query","name":"select","style":"deepObject","description":"Select readable fields for a compact response; nested fields use nested objects.","schema":{"type":"object","description":"For compact reads, set only needed readable fields to true, for example {title:true,priority:true}; use nested objects for nested fields. Use false only for exclusion mode, without mixing true and false. Selection does not grant field access. Combine with depth:0 and a small limit.","additionalProperties":{"anyOf":[{"type":"boolean"},{"type":"object","additionalProperties":true}]}}}],"responses":{"200":{"$ref":"#/components/responses/RoleAssignmentListResponse"}},"security":[{"ApiKey":[]}]},"post":{"operationId":"createRoleAssignment","summary":"Create a new Role Assignment","tags":["Role Assignments"],"parameters":[{"in":"query","name":"depth","schema":{"type":"number"}},{"in":"query","name":"locale","schema":{"type":"string"}}],"requestBody":{"$ref":"#/components/requestBodies/RoleAssignmentRequestBody"},"responses":{"201":{"$ref":"#/components/responses/MutateRoleAssignmentResponse"}},"security":[{"ApiKey":[]}]}},"/api/role-assignments/{id}":{"parameters":[{"in":"query","name":"depth","schema":{"type":"number"}},{"in":"query","name":"locale","schema":{"type":"string"}},{"in":"query","name":"fallback-locale","schema":{"type":"string"}},{"in":"path","name":"id","description":"ID of the Role Assignment","required":true,"schema":{"type":"string"}}],"get":{"operationId":"findRoleAssignmentById","summary":"Find a Role Assignment by ID","tags":["Role Assignments"],"responses":{"200":{"description":"The requested record.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoleAssignment"}}}}},"security":[{"ApiKey":[]}],"parameters":[{"in":"query","name":"select","style":"deepObject","description":"Select readable fields for a compact response; nested fields use nested objects.","schema":{"type":"object","description":"For compact reads, set only needed readable fields to true, for example {title:true,priority:true}; use nested objects for nested fields. Use false only for exclusion mode, without mixing true and false. Selection does not grant field access. Combine with depth:0 and a small limit.","additionalProperties":{"anyOf":[{"type":"boolean"},{"type":"object","additionalProperties":true}]}}}]},"patch":{"operationId":"updateRoleAssignment","summary":"Update a Role Assignment","tags":["Role Assignments"],"requestBody":{"$ref":"#/components/requestBodies/RoleAssignmentPatchRequestBody"},"responses":{"200":{"$ref":"#/components/responses/RoleAssignmentResponse"},"404":{"$ref":"#/components/responses/RoleAssignmentNotFoundResponse"}},"security":[{"ApiKey":[]}]},"delete":{"operationId":"deleteRoleAssignment","summary":"Delete a Role Assignment","tags":["Role Assignments"],"responses":{"200":{"$ref":"#/components/responses/RoleAssignmentResponse"},"404":{"$ref":"#/components/responses/RoleAssignmentNotFoundResponse"}},"security":[{"ApiKey":[]}]}},"/api/roles":{"get":{"operationId":"listRoles","summary":"Retrieve a list of Roles","tags":["Roles"],"parameters":[{"in":"query","name":"page","schema":{"type":"number"}},{"in":"query","name":"limit","schema":{"type":"number"}},{"in":"query","name":"depth","schema":{"type":"number"}},{"in":"query","name":"locale","schema":{"type":"string"}},{"in":"query","name":"fallback-locale","schema":{"type":"string"}},{"in":"query","name":"sort","schema":{"type":"string","enum":["name","-name","archivedAt","-archivedAt","updatedAt","-updatedAt","createdAt","-createdAt"]}},{"in":"query","name":"where","style":"deepObject","schema":{"allOf":[{"type":"object"},{"anyOf":[{"$ref":"#/components/schemas/RoleQueryOperations"},{"$ref":"#/components/schemas/RoleQueryOperationsAnd"},{"$ref":"#/components/schemas/RoleQueryOperationsOr"}]}],"description":"Filter with Payload query objects, for example {customer:{equals:'ID'}}. Combine conditions with and/or arrays. Tenant access is always enforced."}},{"in":"query","name":"select","style":"deepObject","description":"Select readable fields for a compact response; nested fields use nested objects.","schema":{"type":"object","description":"For compact reads, set only needed readable fields to true, for example {title:true,priority:true}; use nested objects for nested fields. Use false only for exclusion mode, without mixing true and false. Selection does not grant field access. Combine with depth:0 and a small limit.","additionalProperties":{"anyOf":[{"type":"boolean"},{"type":"object","additionalProperties":true}]}}}],"responses":{"200":{"$ref":"#/components/responses/RoleListResponse"}},"security":[{"ApiKey":[]}]},"post":{"operationId":"createRole","summary":"Create a new Role","tags":["Roles"],"parameters":[{"in":"query","name":"depth","schema":{"type":"number"}},{"in":"query","name":"locale","schema":{"type":"string"}}],"requestBody":{"$ref":"#/components/requestBodies/RoleRequestBody"},"responses":{"201":{"$ref":"#/components/responses/MutateRoleResponse"}},"security":[{"ApiKey":[]}]}},"/api/roles/{id}":{"parameters":[{"in":"query","name":"depth","schema":{"type":"number"}},{"in":"query","name":"locale","schema":{"type":"string"}},{"in":"query","name":"fallback-locale","schema":{"type":"string"}},{"in":"path","name":"id","description":"ID of the Role","required":true,"schema":{"type":"string"}}],"get":{"operationId":"findRoleById","summary":"Find a Role by ID","tags":["Roles"],"responses":{"200":{"description":"The requested record.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Role"}}}}},"security":[{"ApiKey":[]}],"parameters":[{"in":"query","name":"select","style":"deepObject","description":"Select readable fields for a compact response; nested fields use nested objects.","schema":{"type":"object","description":"For compact reads, set only needed readable fields to true, for example {title:true,priority:true}; use nested objects for nested fields. Use false only for exclusion mode, without mixing true and false. Selection does not grant field access. Combine with depth:0 and a small limit.","additionalProperties":{"anyOf":[{"type":"boolean"},{"type":"object","additionalProperties":true}]}}}]},"patch":{"operationId":"updateRole","summary":"Update a Role","tags":["Roles"],"requestBody":{"$ref":"#/components/requestBodies/RolePatchRequestBody"},"responses":{"200":{"$ref":"#/components/responses/RoleResponse"},"404":{"$ref":"#/components/responses/RoleNotFoundResponse"}},"security":[{"ApiKey":[]}]},"delete":{"operationId":"deleteRole","summary":"Delete a Role","tags":["Roles"],"responses":{"200":{"$ref":"#/components/responses/RoleResponse"},"404":{"$ref":"#/components/responses/RoleNotFoundResponse"}},"security":[{"ApiKey":[]}]}},"/api/stakeholders":{"get":{"operationId":"listStakeholders","summary":"Retrieve a list of Stakeholders","tags":["Stakeholders"],"parameters":[{"in":"query","name":"page","schema":{"type":"number"}},{"in":"query","name":"limit","schema":{"type":"number"}},{"in":"query","name":"depth","schema":{"type":"number"}},{"in":"query","name":"locale","schema":{"type":"string"}},{"in":"query","name":"fallback-locale","schema":{"type":"string"}},{"in":"query","name":"sort","schema":{"type":"string","enum":["customerName","-customerName","name","-name","title","-title","email","-email","archivedAt","-archivedAt","updatedAt","-updatedAt","createdAt","-createdAt"]}},{"in":"query","name":"where","style":"deepObject","schema":{"allOf":[{"type":"object"},{"anyOf":[{"$ref":"#/components/schemas/StakeholderQueryOperations"},{"$ref":"#/components/schemas/StakeholderQueryOperationsAnd"},{"$ref":"#/components/schemas/StakeholderQueryOperationsOr"}]}],"description":"Filter with Payload query objects, for example {customer:{equals:'ID'}}. Combine conditions with and/or arrays. Tenant access is always enforced."}},{"in":"query","name":"select","style":"deepObject","description":"Select readable fields for a compact response; nested fields use nested objects.","schema":{"type":"object","description":"For compact reads, set only needed readable fields to true, for example {title:true,priority:true}; use nested objects for nested fields. Use false only for exclusion mode, without mixing true and false. Selection does not grant field access. Combine with depth:0 and a small limit.","additionalProperties":{"anyOf":[{"type":"boolean"},{"type":"object","additionalProperties":true}]}}}],"responses":{"200":{"$ref":"#/components/responses/StakeholderListResponse"}},"security":[{"ApiKey":[]}]},"post":{"operationId":"createStakeholder","summary":"Create a new Stakeholder","tags":["Stakeholders"],"parameters":[{"in":"query","name":"depth","schema":{"type":"number"}},{"in":"query","name":"locale","schema":{"type":"string"}}],"requestBody":{"$ref":"#/components/requestBodies/StakeholderRequestBody"},"responses":{"201":{"$ref":"#/components/responses/MutateStakeholderResponse"}},"security":[{"ApiKey":[]}]}},"/api/stakeholders/{id}":{"parameters":[{"in":"query","name":"depth","schema":{"type":"number"}},{"in":"query","name":"locale","schema":{"type":"string"}},{"in":"query","name":"fallback-locale","schema":{"type":"string"}},{"in":"path","name":"id","description":"ID of the Stakeholder","required":true,"schema":{"type":"string"}}],"get":{"operationId":"findStakeholderById","summary":"Find a Stakeholder by ID","tags":["Stakeholders"],"responses":{"200":{"description":"The requested record.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Stakeholder"}}}}},"security":[{"ApiKey":[]}],"parameters":[{"in":"query","name":"select","style":"deepObject","description":"Select readable fields for a compact response; nested fields use nested objects.","schema":{"type":"object","description":"For compact reads, set only needed readable fields to true, for example {title:true,priority:true}; use nested objects for nested fields. Use false only for exclusion mode, without mixing true and false. Selection does not grant field access. Combine with depth:0 and a small limit.","additionalProperties":{"anyOf":[{"type":"boolean"},{"type":"object","additionalProperties":true}]}}}]},"patch":{"operationId":"updateStakeholder","summary":"Update a Stakeholder","tags":["Stakeholders"],"requestBody":{"$ref":"#/components/requestBodies/StakeholderPatchRequestBody"},"responses":{"200":{"$ref":"#/components/responses/StakeholderResponse"},"404":{"$ref":"#/components/responses/StakeholderNotFoundResponse"}},"security":[{"ApiKey":[]}]},"delete":{"operationId":"deleteStakeholder","summary":"Delete a Stakeholder","tags":["Stakeholders"],"responses":{"200":{"$ref":"#/components/responses/StakeholderResponse"},"404":{"$ref":"#/components/responses/StakeholderNotFoundResponse"}},"security":[{"ApiKey":[]}]}},"/api/steps":{"get":{"operationId":"listSteps","summary":"Retrieve a list of Steps","tags":["Steps"],"parameters":[{"in":"query","name":"page","schema":{"type":"number"}},{"in":"query","name":"limit","schema":{"type":"number"}},{"in":"query","name":"depth","schema":{"type":"number"}},{"in":"query","name":"locale","schema":{"type":"string"}},{"in":"query","name":"fallback-locale","schema":{"type":"string"}},{"in":"query","name":"sort","schema":{"type":"string","enum":["number","-number","substepCount","-substepCount","completedSubstepCount","-completedSubstepCount","title","-title","nodeId","-nodeId","parentNodeId","-parentNodeId","scheduledUntil","-scheduledUntil","deadlineAt","-deadlineAt","duration","-duration","lastCommentAt","-lastCommentAt","startedAt","-startedAt","completedAt","-completedAt","endedAt","-endedAt","archivedAt","-archivedAt","updatedAt","-updatedAt","createdAt","-createdAt"]}},{"in":"query","name":"where","style":"deepObject","schema":{"allOf":[{"type":"object"},{"anyOf":[{"$ref":"#/components/schemas/StepQueryOperations"},{"$ref":"#/components/schemas/StepQueryOperationsAnd"},{"$ref":"#/components/schemas/StepQueryOperationsOr"}]}],"description":"Filter with Payload query objects, for example {customer:{equals:'ID'}}. Combine conditions with and/or arrays. Tenant access is always enforced."}},{"in":"query","name":"select","style":"deepObject","description":"Select readable fields for a compact response; nested fields use nested objects.","schema":{"type":"object","description":"For compact reads, set only needed readable fields to true, for example {title:true,priority:true}; use nested objects for nested fields. Use false only for exclusion mode, without mixing true and false. Selection does not grant field access. Combine with depth:0 and a small limit.","additionalProperties":{"anyOf":[{"type":"boolean"},{"type":"object","additionalProperties":true}]}}}],"responses":{"200":{"$ref":"#/components/responses/StepListResponse"}},"security":[{"ApiKey":[]}]},"post":{"operationId":"createStep","summary":"Create a new Step","tags":["Steps"],"parameters":[{"in":"query","name":"depth","schema":{"type":"number"}},{"in":"query","name":"locale","schema":{"type":"string"}}],"requestBody":{"$ref":"#/components/requestBodies/StepRequestBody"},"responses":{"201":{"$ref":"#/components/responses/MutateStepResponse"}},"security":[{"ApiKey":[]}]}},"/api/steps/{id}":{"parameters":[{"in":"query","name":"depth","schema":{"type":"number"}},{"in":"query","name":"locale","schema":{"type":"string"}},{"in":"query","name":"fallback-locale","schema":{"type":"string"}},{"in":"path","name":"id","description":"ID of the Step","required":true,"schema":{"type":"string"}}],"get":{"operationId":"findStepById","summary":"Find a Step by ID","tags":["Steps"],"responses":{"200":{"description":"The requested record.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Step"}}}}},"security":[{"ApiKey":[]}],"parameters":[{"in":"query","name":"select","style":"deepObject","description":"Select readable fields for a compact response; nested fields use nested objects.","schema":{"type":"object","description":"For compact reads, set only needed readable fields to true, for example {title:true,priority:true}; use nested objects for nested fields. Use false only for exclusion mode, without mixing true and false. Selection does not grant field access. Combine with depth:0 and a small limit.","additionalProperties":{"anyOf":[{"type":"boolean"},{"type":"object","additionalProperties":true}]}}}]},"patch":{"operationId":"updateStep","summary":"Update a Step","tags":["Steps"],"requestBody":{"$ref":"#/components/requestBodies/StepPatchRequestBody"},"responses":{"200":{"$ref":"#/components/responses/StepResponse"},"404":{"$ref":"#/components/responses/StepNotFoundResponse"}},"security":[{"ApiKey":[]}]},"delete":{"operationId":"deleteStep","summary":"Delete a Step","tags":["Steps"],"responses":{"200":{"$ref":"#/components/responses/StepResponse"},"404":{"$ref":"#/components/responses/StepNotFoundResponse"}},"security":[{"ApiKey":[]}]}},"/api/tenants":{"get":{"operationId":"listTenants","summary":"Retrieve a list of Tenants","tags":["Tenants"],"parameters":[{"in":"query","name":"page","schema":{"type":"number"}},{"in":"query","name":"limit","schema":{"type":"number"}},{"in":"query","name":"depth","schema":{"type":"number"}},{"in":"query","name":"locale","schema":{"type":"string"}},{"in":"query","name":"fallback-locale","schema":{"type":"string"}},{"in":"query","name":"sort","schema":{"type":"string","enum":["createdAt","-createdAt","name","-name","slug","-slug","tenantUrl","-tenantUrl","updatedAt","-updatedAt"]}},{"in":"query","name":"where","style":"deepObject","schema":{"allOf":[{"type":"object"},{"anyOf":[{"$ref":"#/components/schemas/TenantQueryOperations"},{"$ref":"#/components/schemas/TenantQueryOperationsAnd"},{"$ref":"#/components/schemas/TenantQueryOperationsOr"}]}],"description":"Filter with Payload query objects, for example {customer:{equals:'ID'}}. Combine conditions with and/or arrays. Tenant access is always enforced."}},{"in":"query","name":"select","style":"deepObject","description":"Select readable fields for a compact response; nested fields use nested objects.","schema":{"type":"object","description":"For compact reads, set only needed readable fields to true, for example {title:true,priority:true}; use nested objects for nested fields. Use false only for exclusion mode, without mixing true and false. Selection does not grant field access. Combine with depth:0 and a small limit.","additionalProperties":{"anyOf":[{"type":"boolean"},{"type":"object","additionalProperties":true}]}}}],"responses":{"200":{"$ref":"#/components/responses/TenantListResponse"}},"security":[{"ApiKey":[]}],"description":"Read workspaces visible to the current principal."}},"/api/tenants/{id}":{"parameters":[{"in":"query","name":"depth","schema":{"type":"number"}},{"in":"query","name":"locale","schema":{"type":"string"}},{"in":"query","name":"fallback-locale","schema":{"type":"string"}},{"in":"path","name":"id","description":"ID of the Tenant","required":true,"schema":{"type":"string"}}],"get":{"operationId":"findTenantById","summary":"Find a Tenant by ID","tags":["Tenants"],"responses":{"200":{"description":"The requested record.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Tenant"}}}}},"security":[{"ApiKey":[]}],"description":"Read workspaces visible to the current principal.","parameters":[{"in":"query","name":"select","style":"deepObject","description":"Select readable fields for a compact response; nested fields use nested objects.","schema":{"type":"object","description":"For compact reads, set only needed readable fields to true, for example {title:true,priority:true}; use nested objects for nested fields. Use false only for exclusion mode, without mixing true and false. Selection does not grant field access. Combine with depth:0 and a small limit.","additionalProperties":{"anyOf":[{"type":"boolean"},{"type":"object","additionalProperties":true}]}}}]},"patch":{"operationId":"updateTenant","summary":"Update a Tenant","tags":["Tenants"],"requestBody":{"$ref":"#/components/requestBodies/TenantPatchRequestBody"},"responses":{"200":{"$ref":"#/components/responses/TenantResponse"},"404":{"$ref":"#/components/responses/TenantNotFoundResponse"}},"security":[{"ApiKey":[]}],"description":"Update workspace settings with the caller's tenant-admin permissions. Send only the fields being changed."}},"/api/users":{"get":{"operationId":"listUsers","summary":"Retrieve a list of Users","tags":["Users"],"parameters":[{"in":"query","name":"page","schema":{"type":"number"}},{"in":"query","name":"limit","schema":{"type":"number"}},{"in":"query","name":"depth","schema":{"type":"number"}},{"in":"query","name":"locale","schema":{"type":"string"}},{"in":"query","name":"fallback-locale","schema":{"type":"string"}},{"in":"query","name":"sort","schema":{"type":"string","enum":["firstName","-firstName","lastName","-lastName","jobTitle","-jobTitle","updatedAt","-updatedAt","createdAt","-createdAt"]}},{"in":"query","name":"where","style":"deepObject","schema":{"allOf":[{"type":"object"},{"anyOf":[{"$ref":"#/components/schemas/UserQueryOperations"},{"$ref":"#/components/schemas/UserQueryOperationsAnd"},{"$ref":"#/components/schemas/UserQueryOperationsOr"}]}],"description":"Filter with Payload query objects, for example {customer:{equals:'ID'}}. Combine conditions with and/or arrays. Tenant access is always enforced."}},{"in":"query","name":"select","style":"deepObject","description":"Select readable fields for a compact response; nested fields use nested objects.","schema":{"type":"object","description":"For compact reads, set only needed readable fields to true, for example {title:true,priority:true}; use nested objects for nested fields. Use false only for exclusion mode, without mixing true and false. Selection does not grant field access. Combine with depth:0 and a small limit.","additionalProperties":{"anyOf":[{"type":"boolean"},{"type":"object","additionalProperties":true}]}}}],"responses":{"200":{"$ref":"#/components/responses/UserListResponse"}},"security":[{"ApiKey":[]}],"description":"Read people visible to the current workspace. Field access still applies; MCP omits private values such as email."}},"/api/users/{id}":{"parameters":[{"in":"query","name":"depth","schema":{"type":"number"}},{"in":"query","name":"locale","schema":{"type":"string"}},{"in":"query","name":"fallback-locale","schema":{"type":"string"}},{"in":"path","name":"id","description":"ID of the User","required":true,"schema":{"type":"string"}}],"get":{"operationId":"findUserById","summary":"Find a User by ID","tags":["Users"],"responses":{"200":{"description":"The requested record.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/User"}}}}},"security":[{"ApiKey":[]}],"description":"Read people visible to the current workspace. Field access still applies; MCP omits private values such as email.","parameters":[{"in":"query","name":"select","style":"deepObject","description":"Select readable fields for a compact response; nested fields use nested objects.","schema":{"type":"object","description":"For compact reads, set only needed readable fields to true, for example {title:true,priority:true}; use nested objects for nested fields. Use false only for exclusion mode, without mixing true and false. Selection does not grant field access. Combine with depth:0 and a small limit.","additionalProperties":{"anyOf":[{"type":"boolean"},{"type":"object","additionalProperties":true}]}}}]},"patch":{"operationId":"updateUser","summary":"Update a User","tags":["Users"],"requestBody":{"$ref":"#/components/requestBodies/UserPatchRequestBody"},"responses":{"200":{"$ref":"#/components/responses/UserResponse"},"404":{"$ref":"#/components/responses/UserNotFoundResponse"}},"security":[{"ApiKey":[]}],"description":"Update the current person's workspace profile. Other people and membership changes use their existing access policies and focused tools."}},"/api/variables":{"get":{"operationId":"listVariables","summary":"Retrieve a list of Variables","tags":["Variables"],"parameters":[{"in":"query","name":"page","schema":{"type":"number"}},{"in":"query","name":"limit","schema":{"type":"number"}},{"in":"query","name":"depth","schema":{"type":"number"}},{"in":"query","name":"locale","schema":{"type":"string"}},{"in":"query","name":"fallback-locale","schema":{"type":"string"}},{"in":"query","name":"sort","schema":{"type":"string","enum":["name","-name","objectSlug","-objectSlug","archivedAt","-archivedAt","updatedAt","-updatedAt","createdAt","-createdAt"]}},{"in":"query","name":"where","style":"deepObject","schema":{"allOf":[{"type":"object"},{"anyOf":[{"$ref":"#/components/schemas/VariableQueryOperations"},{"$ref":"#/components/schemas/VariableQueryOperationsAnd"},{"$ref":"#/components/schemas/VariableQueryOperationsOr"}]}],"description":"Filter with Payload query objects, for example {customer:{equals:'ID'}}. Combine conditions with and/or arrays. Tenant access is always enforced."}},{"in":"query","name":"select","style":"deepObject","description":"Select readable fields for a compact response; nested fields use nested objects.","schema":{"type":"object","description":"For compact reads, set only needed readable fields to true, for example {title:true,priority:true}; use nested objects for nested fields. Use false only for exclusion mode, without mixing true and false. Selection does not grant field access. Combine with depth:0 and a small limit.","additionalProperties":{"anyOf":[{"type":"boolean"},{"type":"object","additionalProperties":true}]}}}],"responses":{"200":{"$ref":"#/components/responses/VariableListResponse"}},"security":[{"ApiKey":[]}]},"post":{"operationId":"createVariable","summary":"Create a new Variable","tags":["Variables"],"parameters":[{"in":"query","name":"depth","schema":{"type":"number"}},{"in":"query","name":"locale","schema":{"type":"string"}}],"requestBody":{"$ref":"#/components/requestBodies/VariableRequestBody"},"responses":{"201":{"$ref":"#/components/responses/MutateVariableResponse"}},"security":[{"ApiKey":[]}]}},"/api/variables/{id}":{"parameters":[{"in":"query","name":"depth","schema":{"type":"number"}},{"in":"query","name":"locale","schema":{"type":"string"}},{"in":"query","name":"fallback-locale","schema":{"type":"string"}},{"in":"path","name":"id","description":"ID of the Variable","required":true,"schema":{"type":"string"}}],"get":{"operationId":"findVariableById","summary":"Find a Variable by ID","tags":["Variables"],"responses":{"200":{"description":"The requested record.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Variable"}}}}},"security":[{"ApiKey":[]}],"parameters":[{"in":"query","name":"select","style":"deepObject","description":"Select readable fields for a compact response; nested fields use nested objects.","schema":{"type":"object","description":"For compact reads, set only needed readable fields to true, for example {title:true,priority:true}; use nested objects for nested fields. Use false only for exclusion mode, without mixing true and false. Selection does not grant field access. Combine with depth:0 and a small limit.","additionalProperties":{"anyOf":[{"type":"boolean"},{"type":"object","additionalProperties":true}]}}}]},"patch":{"operationId":"updateVariable","summary":"Update a Variable","tags":["Variables"],"requestBody":{"$ref":"#/components/requestBodies/VariablePatchRequestBody"},"responses":{"200":{"$ref":"#/components/responses/VariableResponse"},"404":{"$ref":"#/components/responses/VariableNotFoundResponse"}},"security":[{"ApiKey":[]}]},"delete":{"operationId":"deleteVariable","summary":"Delete a Variable","tags":["Variables"],"responses":{"200":{"$ref":"#/components/responses/VariableResponse"},"404":{"$ref":"#/components/responses/VariableNotFoundResponse"}},"security":[{"ApiKey":[]}]}},"/api/webhooks":{"get":{"operationId":"listWebhooks","summary":"Retrieve a list of Webhooks","tags":["Webhooks"],"parameters":[{"in":"query","name":"page","schema":{"type":"number"}},{"in":"query","name":"limit","schema":{"type":"number"}},{"in":"query","name":"depth","schema":{"type":"number"}},{"in":"query","name":"locale","schema":{"type":"string"}},{"in":"query","name":"fallback-locale","schema":{"type":"string"}},{"in":"query","name":"sort","schema":{"type":"string","enum":["label","-label","secretPreview","-secretPreview","lastInvokedAt","-lastInvokedAt","archivedAt","-archivedAt","updatedAt","-updatedAt","createdAt","-createdAt"]}},{"in":"query","name":"where","style":"deepObject","schema":{"allOf":[{"type":"object"},{"anyOf":[{"$ref":"#/components/schemas/WebhookQueryOperations"},{"$ref":"#/components/schemas/WebhookQueryOperationsAnd"},{"$ref":"#/components/schemas/WebhookQueryOperationsOr"}]}],"description":"Filter with Payload query objects, for example {customer:{equals:'ID'}}. Combine conditions with and/or arrays. Tenant access is always enforced."}},{"in":"query","name":"select","style":"deepObject","description":"Select readable fields for a compact response; nested fields use nested objects.","schema":{"type":"object","description":"For compact reads, set only needed readable fields to true, for example {title:true,priority:true}; use nested objects for nested fields. Use false only for exclusion mode, without mixing true and false. Selection does not grant field access. Combine with depth:0 and a small limit.","additionalProperties":{"anyOf":[{"type":"boolean"},{"type":"object","additionalProperties":true}]}}}],"responses":{"200":{"$ref":"#/components/responses/WebhookListResponse"}},"security":[{"ApiKey":[]}]},"post":{"operationId":"createWebhook","summary":"Create a new Webhook","tags":["Webhooks"],"parameters":[{"in":"query","name":"depth","schema":{"type":"number"}},{"in":"query","name":"locale","schema":{"type":"string"}}],"requestBody":{"$ref":"#/components/requestBodies/WebhookRequestBody"},"responses":{"201":{"$ref":"#/components/responses/MutateWebhookResponse"}},"security":[{"ApiKey":[]}]}},"/api/webhooks/{id}":{"parameters":[{"in":"query","name":"depth","schema":{"type":"number"}},{"in":"query","name":"locale","schema":{"type":"string"}},{"in":"query","name":"fallback-locale","schema":{"type":"string"}},{"in":"path","name":"id","description":"ID of the Webhook","required":true,"schema":{"type":"string"}}],"get":{"operationId":"findWebhookById","summary":"Find a Webhook by ID","tags":["Webhooks"],"responses":{"200":{"description":"The requested record.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Webhook"}}}}},"security":[{"ApiKey":[]}],"parameters":[{"in":"query","name":"select","style":"deepObject","description":"Select readable fields for a compact response; nested fields use nested objects.","schema":{"type":"object","description":"For compact reads, set only needed readable fields to true, for example {title:true,priority:true}; use nested objects for nested fields. Use false only for exclusion mode, without mixing true and false. Selection does not grant field access. Combine with depth:0 and a small limit.","additionalProperties":{"anyOf":[{"type":"boolean"},{"type":"object","additionalProperties":true}]}}}]},"patch":{"operationId":"updateWebhook","summary":"Update a Webhook","tags":["Webhooks"],"requestBody":{"$ref":"#/components/requestBodies/WebhookPatchRequestBody"},"responses":{"200":{"$ref":"#/components/responses/WebhookResponse"},"404":{"$ref":"#/components/responses/WebhookNotFoundResponse"}},"security":[{"ApiKey":[]}]},"delete":{"operationId":"deleteWebhook","summary":"Delete a Webhook","tags":["Webhooks"],"responses":{"200":{"$ref":"#/components/responses/WebhookResponse"},"404":{"$ref":"#/components/responses/WebhookNotFoundResponse"}},"security":[{"ApiKey":[]}]}}},"components":{"securitySchemes":{"ApiKey":{"type":"apiKey","in":"header","name":"x-sekential-api-key"}},"responses":{"WebhookNotFoundResponse":{"description":"Webhook not found"},"WebhookResponse":{"description":"Webhook object","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Webhook"}}}},"MutateWebhookResponse":{"description":"Webhook object","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"doc":{"allOf":[{"$ref":"#/components/schemas/Webhook"},{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","createdAt","updatedAt"]}]}},"required":["message","doc"]}}}},"WebhookListResponse":{"description":"List of Webhooks","content":{"application/json":{"schema":{"type":"object","properties":{"docs":{"type":"array","items":{"$ref":"#/components/schemas/Webhook"}},"totalDocs":{"type":"integer"},"limit":{"type":"integer"},"totalPages":{"type":"integer"},"page":{"type":"integer"},"pagingCounter":{"type":"integer"},"hasPrevPage":{"type":"boolean"},"hasNextPage":{"type":"boolean"},"prevPage":{"type":"integer","nullable":true},"nextPage":{"type":"integer","nullable":true}},"required":["docs","totalDocs","limit","totalPages","page","pagingCounter","hasPrevPage","hasNextPage","prevPage","nextPage"]}}}},"VariableNotFoundResponse":{"description":"Variable not found"},"VariableResponse":{"description":"Variable object","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Variable"}}}},"MutateVariableResponse":{"description":"Variable object","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"doc":{"allOf":[{"$ref":"#/components/schemas/Variable"},{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","createdAt","updatedAt"]}]}},"required":["message","doc"]}}}},"VariableListResponse":{"description":"List of Variables","content":{"application/json":{"schema":{"type":"object","properties":{"docs":{"type":"array","items":{"$ref":"#/components/schemas/Variable"}},"totalDocs":{"type":"integer"},"limit":{"type":"integer"},"totalPages":{"type":"integer"},"page":{"type":"integer"},"pagingCounter":{"type":"integer"},"hasPrevPage":{"type":"boolean"},"hasNextPage":{"type":"boolean"},"prevPage":{"type":"integer","nullable":true},"nextPage":{"type":"integer","nullable":true}},"required":["docs","totalDocs","limit","totalPages","page","pagingCounter","hasPrevPage","hasNextPage","prevPage","nextPage"]}}}},"UserNotFoundResponse":{"description":"User not found"},"UserResponse":{"description":"User object","content":{"application/json":{"schema":{"$ref":"#/components/schemas/User"}}}},"UserListResponse":{"description":"List of Users","content":{"application/json":{"schema":{"type":"object","properties":{"docs":{"type":"array","items":{"$ref":"#/components/schemas/User"}},"totalDocs":{"type":"integer"},"limit":{"type":"integer"},"totalPages":{"type":"integer"},"page":{"type":"integer"},"pagingCounter":{"type":"integer"},"hasPrevPage":{"type":"boolean"},"hasNextPage":{"type":"boolean"},"prevPage":{"type":"integer","nullable":true},"nextPage":{"type":"integer","nullable":true}},"required":["docs","totalDocs","limit","totalPages","page","pagingCounter","hasPrevPage","hasNextPage","prevPage","nextPage"]}}}},"TenantNotFoundResponse":{"description":"Tenant not found"},"TenantResponse":{"description":"Tenant object","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Tenant"}}}},"TenantListResponse":{"description":"List of Tenants","content":{"application/json":{"schema":{"type":"object","properties":{"docs":{"type":"array","items":{"$ref":"#/components/schemas/Tenant"}},"totalDocs":{"type":"integer"},"limit":{"type":"integer"},"totalPages":{"type":"integer"},"page":{"type":"integer"},"pagingCounter":{"type":"integer"},"hasPrevPage":{"type":"boolean"},"hasNextPage":{"type":"boolean"},"prevPage":{"type":"integer","nullable":true},"nextPage":{"type":"integer","nullable":true}},"required":["docs","totalDocs","limit","totalPages","page","pagingCounter","hasPrevPage","hasNextPage","prevPage","nextPage"]}}}},"StepNotFoundResponse":{"description":"Step not found"},"StepResponse":{"description":"Step object","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Step"}}}},"MutateStepResponse":{"description":"Step object","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"doc":{"allOf":[{"$ref":"#/components/schemas/Step"},{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","createdAt","updatedAt"]}]}},"required":["message","doc"]}}}},"StepListResponse":{"description":"List of Steps","content":{"application/json":{"schema":{"type":"object","properties":{"docs":{"type":"array","items":{"$ref":"#/components/schemas/Step"}},"totalDocs":{"type":"integer"},"limit":{"type":"integer"},"totalPages":{"type":"integer"},"page":{"type":"integer"},"pagingCounter":{"type":"integer"},"hasPrevPage":{"type":"boolean"},"hasNextPage":{"type":"boolean"},"prevPage":{"type":"integer","nullable":true},"nextPage":{"type":"integer","nullable":true}},"required":["docs","totalDocs","limit","totalPages","page","pagingCounter","hasPrevPage","hasNextPage","prevPage","nextPage"]}}}},"StakeholderNotFoundResponse":{"description":"Stakeholder not found"},"StakeholderResponse":{"description":"Stakeholder object","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Stakeholder"}}}},"MutateStakeholderResponse":{"description":"Stakeholder object","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"doc":{"allOf":[{"$ref":"#/components/schemas/Stakeholder"},{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","createdAt","updatedAt"]}]}},"required":["message","doc"]}}}},"StakeholderListResponse":{"description":"List of Stakeholders","content":{"application/json":{"schema":{"type":"object","properties":{"docs":{"type":"array","items":{"$ref":"#/components/schemas/Stakeholder"}},"totalDocs":{"type":"integer"},"limit":{"type":"integer"},"totalPages":{"type":"integer"},"page":{"type":"integer"},"pagingCounter":{"type":"integer"},"hasPrevPage":{"type":"boolean"},"hasNextPage":{"type":"boolean"},"prevPage":{"type":"integer","nullable":true},"nextPage":{"type":"integer","nullable":true}},"required":["docs","totalDocs","limit","totalPages","page","pagingCounter","hasPrevPage","hasNextPage","prevPage","nextPage"]}}}},"RoleNotFoundResponse":{"description":"Role not found"},"RoleResponse":{"description":"Role object","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Role"}}}},"MutateRoleResponse":{"description":"Role object","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"doc":{"allOf":[{"$ref":"#/components/schemas/Role"},{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","createdAt","updatedAt"]}]}},"required":["message","doc"]}}}},"RoleListResponse":{"description":"List of Roles","content":{"application/json":{"schema":{"type":"object","properties":{"docs":{"type":"array","items":{"$ref":"#/components/schemas/Role"}},"totalDocs":{"type":"integer"},"limit":{"type":"integer"},"totalPages":{"type":"integer"},"page":{"type":"integer"},"pagingCounter":{"type":"integer"},"hasPrevPage":{"type":"boolean"},"hasNextPage":{"type":"boolean"},"prevPage":{"type":"integer","nullable":true},"nextPage":{"type":"integer","nullable":true}},"required":["docs","totalDocs","limit","totalPages","page","pagingCounter","hasPrevPage","hasNextPage","prevPage","nextPage"]}}}},"RoleAssignmentNotFoundResponse":{"description":"Role Assignment not found"},"RoleAssignmentResponse":{"description":"Role Assignment object","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoleAssignment"}}}},"MutateRoleAssignmentResponse":{"description":"Role Assignment object","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"doc":{"allOf":[{"$ref":"#/components/schemas/RoleAssignment"},{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","createdAt","updatedAt"]}]}},"required":["message","doc"]}}}},"RoleAssignmentListResponse":{"description":"List of Role Assignments","content":{"application/json":{"schema":{"type":"object","properties":{"docs":{"type":"array","items":{"$ref":"#/components/schemas/RoleAssignment"}},"totalDocs":{"type":"integer"},"limit":{"type":"integer"},"totalPages":{"type":"integer"},"page":{"type":"integer"},"pagingCounter":{"type":"integer"},"hasPrevPage":{"type":"boolean"},"hasNextPage":{"type":"boolean"},"prevPage":{"type":"integer","nullable":true},"nextPage":{"type":"integer","nullable":true}},"required":["docs","totalDocs","limit","totalPages","page","pagingCounter","hasPrevPage","hasNextPage","prevPage","nextPage"]}}}},"PortalNotFoundResponse":{"description":"Portal not found"},"PortalResponse":{"description":"Portal object","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Portal"}}}},"MutatePortalResponse":{"description":"Portal object","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"doc":{"allOf":[{"$ref":"#/components/schemas/Portal"},{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","createdAt","updatedAt"]}]}},"required":["message","doc"]}}}},"PortalListResponse":{"description":"List of Portals","content":{"application/json":{"schema":{"type":"object","properties":{"docs":{"type":"array","items":{"$ref":"#/components/schemas/Portal"}},"totalDocs":{"type":"integer"},"limit":{"type":"integer"},"totalPages":{"type":"integer"},"page":{"type":"integer"},"pagingCounter":{"type":"integer"},"hasPrevPage":{"type":"boolean"},"hasNextPage":{"type":"boolean"},"prevPage":{"type":"integer","nullable":true},"nextPage":{"type":"integer","nullable":true}},"required":["docs","totalDocs","limit","totalPages","page","pagingCounter","hasPrevPage","hasNextPage","prevPage","nextPage"]}}}},"PlaybookNotFoundResponse":{"description":"Playbook not found"},"PlaybookResponse":{"description":"Playbook object","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Playbook"}}}},"MutatePlaybookResponse":{"description":"Playbook object","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"doc":{"allOf":[{"$ref":"#/components/schemas/Playbook"},{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","createdAt","updatedAt"]}]}},"required":["message","doc"]}}}},"PlaybookListResponse":{"description":"List of Playbooks","content":{"application/json":{"schema":{"type":"object","properties":{"docs":{"type":"array","items":{"$ref":"#/components/schemas/Playbook"}},"totalDocs":{"type":"integer"},"limit":{"type":"integer"},"totalPages":{"type":"integer"},"page":{"type":"integer"},"pagingCounter":{"type":"integer"},"hasPrevPage":{"type":"boolean"},"hasNextPage":{"type":"boolean"},"prevPage":{"type":"integer","nullable":true},"nextPage":{"type":"integer","nullable":true}},"required":["docs","totalDocs","limit","totalPages","page","pagingCounter","hasPrevPage","hasNextPage","prevPage","nextPage"]}}}},"PlaybookTemplateNotFoundResponse":{"description":"Playbook Template not found"},"PlaybookTemplateResponse":{"description":"Playbook Template object","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaybookTemplate"}}}},"MutatePlaybookTemplateResponse":{"description":"Playbook Template object","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"doc":{"allOf":[{"$ref":"#/components/schemas/PlaybookTemplate"},{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","createdAt","updatedAt"]}]}},"required":["message","doc"]}}}},"PlaybookTemplateListResponse":{"description":"List of Playbook Templates","content":{"application/json":{"schema":{"type":"object","properties":{"docs":{"type":"array","items":{"$ref":"#/components/schemas/PlaybookTemplate"}},"totalDocs":{"type":"integer"},"limit":{"type":"integer"},"totalPages":{"type":"integer"},"page":{"type":"integer"},"pagingCounter":{"type":"integer"},"hasPrevPage":{"type":"boolean"},"hasNextPage":{"type":"boolean"},"prevPage":{"type":"integer","nullable":true},"nextPage":{"type":"integer","nullable":true}},"required":["docs","totalDocs","limit","totalPages","page","pagingCounter","hasPrevPage","hasNextPage","prevPage","nextPage"]}}}},"PlaybookTemplateVersionNotFoundResponse":{"description":"Playbook Template Version not found"},"PlaybookTemplateVersionResponse":{"description":"Playbook Template Version object","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaybookTemplateVersion"}}}},"MutatePlaybookTemplateVersionResponse":{"description":"Playbook Template Version object","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"doc":{"allOf":[{"$ref":"#/components/schemas/PlaybookTemplateVersion"},{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","createdAt","updatedAt"]}]}},"required":["message","doc"]}}}},"PlaybookTemplateVersionListResponse":{"description":"List of Playbook Template Versions","content":{"application/json":{"schema":{"type":"object","properties":{"docs":{"type":"array","items":{"$ref":"#/components/schemas/PlaybookTemplateVersion"}},"totalDocs":{"type":"integer"},"limit":{"type":"integer"},"totalPages":{"type":"integer"},"page":{"type":"integer"},"pagingCounter":{"type":"integer"},"hasPrevPage":{"type":"boolean"},"hasNextPage":{"type":"boolean"},"prevPage":{"type":"integer","nullable":true},"nextPage":{"type":"integer","nullable":true}},"required":["docs","totalDocs","limit","totalPages","page","pagingCounter","hasPrevPage","hasNextPage","prevPage","nextPage"]}}}},"PlaybookTemplateVariableNotFoundResponse":{"description":"Playbook Template Variable not found"},"PlaybookTemplateVariableResponse":{"description":"Playbook Template Variable object","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaybookTemplateVariable"}}}},"MutatePlaybookTemplateVariableResponse":{"description":"Playbook Template Variable object","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"doc":{"allOf":[{"$ref":"#/components/schemas/PlaybookTemplateVariable"},{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","createdAt","updatedAt"]}]}},"required":["message","doc"]}}}},"PlaybookTemplateVariableListResponse":{"description":"List of Playbook Template Variables","content":{"application/json":{"schema":{"type":"object","properties":{"docs":{"type":"array","items":{"$ref":"#/components/schemas/PlaybookTemplateVariable"}},"totalDocs":{"type":"integer"},"limit":{"type":"integer"},"totalPages":{"type":"integer"},"page":{"type":"integer"},"pagingCounter":{"type":"integer"},"hasPrevPage":{"type":"boolean"},"hasNextPage":{"type":"boolean"},"prevPage":{"type":"integer","nullable":true},"nextPage":{"type":"integer","nullable":true}},"required":["docs","totalDocs","limit","totalPages","page","pagingCounter","hasPrevPage","hasNextPage","prevPage","nextPage"]}}}},"PageNotFoundResponse":{"description":"Page not found"},"PageResponse":{"description":"Page object","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page"}}}},"MutatePageResponse":{"description":"Page object","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"doc":{"allOf":[{"$ref":"#/components/schemas/Page"},{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","createdAt","updatedAt"]}]}},"required":["message","doc"]}}}},"PageListResponse":{"description":"List of Pages","content":{"application/json":{"schema":{"type":"object","properties":{"docs":{"type":"array","items":{"$ref":"#/components/schemas/Page"}},"totalDocs":{"type":"integer"},"limit":{"type":"integer"},"totalPages":{"type":"integer"},"page":{"type":"integer"},"pagingCounter":{"type":"integer"},"hasPrevPage":{"type":"boolean"},"hasNextPage":{"type":"boolean"},"prevPage":{"type":"integer","nullable":true},"nextPage":{"type":"integer","nullable":true}},"required":["docs","totalDocs","limit","totalPages","page","pagingCounter","hasPrevPage","hasNextPage","prevPage","nextPage"]}}}},"OutcomeNotFoundResponse":{"description":"Outcome not found"},"OutcomeResponse":{"description":"Outcome object","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Outcome"}}}},"MutateOutcomeResponse":{"description":"Outcome object","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"doc":{"allOf":[{"$ref":"#/components/schemas/Outcome"},{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","createdAt","updatedAt"]}]}},"required":["message","doc"]}}}},"OutcomeListResponse":{"description":"List of Outcomes","content":{"application/json":{"schema":{"type":"object","properties":{"docs":{"type":"array","items":{"$ref":"#/components/schemas/Outcome"}},"totalDocs":{"type":"integer"},"limit":{"type":"integer"},"totalPages":{"type":"integer"},"page":{"type":"integer"},"pagingCounter":{"type":"integer"},"hasPrevPage":{"type":"boolean"},"hasNextPage":{"type":"boolean"},"prevPage":{"type":"integer","nullable":true},"nextPage":{"type":"integer","nullable":true}},"required":["docs","totalDocs","limit","totalPages","page","pagingCounter","hasPrevPage","hasNextPage","prevPage","nextPage"]}}}},"ObjectNotFoundResponse":{"description":"Object not found"},"ObjectResponse":{"description":"Object object","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Object"}}}},"MutateObjectResponse":{"description":"Object object","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"doc":{"allOf":[{"$ref":"#/components/schemas/Object"},{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","createdAt","updatedAt"]}]}},"required":["message","doc"]}}}},"ObjectListResponse":{"description":"List of Objects","content":{"application/json":{"schema":{"type":"object","properties":{"docs":{"type":"array","items":{"$ref":"#/components/schemas/Object"}},"totalDocs":{"type":"integer"},"limit":{"type":"integer"},"totalPages":{"type":"integer"},"page":{"type":"integer"},"pagingCounter":{"type":"integer"},"hasPrevPage":{"type":"boolean"},"hasNextPage":{"type":"boolean"},"prevPage":{"type":"integer","nullable":true},"nextPage":{"type":"integer","nullable":true}},"required":["docs","totalDocs","limit","totalPages","page","pagingCounter","hasPrevPage","hasNextPage","prevPage","nextPage"]}}}},"ObjectRecordNotFoundResponse":{"description":"Object Record not found"},"ObjectRecordResponse":{"description":"Object Record object","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ObjectRecord"}}}},"MutateObjectRecordResponse":{"description":"Object Record object","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"doc":{"allOf":[{"$ref":"#/components/schemas/ObjectRecord"},{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","createdAt","updatedAt"]}]}},"required":["message","doc"]}}}},"ObjectRecordListResponse":{"description":"List of Object Records","content":{"application/json":{"schema":{"type":"object","properties":{"docs":{"type":"array","items":{"$ref":"#/components/schemas/ObjectRecord"}},"totalDocs":{"type":"integer"},"limit":{"type":"integer"},"totalPages":{"type":"integer"},"page":{"type":"integer"},"pagingCounter":{"type":"integer"},"hasPrevPage":{"type":"boolean"},"hasNextPage":{"type":"boolean"},"prevPage":{"type":"integer","nullable":true},"nextPage":{"type":"integer","nullable":true}},"required":["docs","totalDocs","limit","totalPages","page","pagingCounter","hasPrevPage","hasNextPage","prevPage","nextPage"]}}}},"ObjectRecordVariableValueNotFoundResponse":{"description":"Object Record Variable Value not found"},"ObjectRecordVariableValueResponse":{"description":"Object Record Variable Value object","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ObjectRecordVariableValue"}}}},"MutateObjectRecordVariableValueResponse":{"description":"Object Record Variable Value object","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"doc":{"allOf":[{"$ref":"#/components/schemas/ObjectRecordVariableValue"},{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","createdAt","updatedAt"]}]}},"required":["message","doc"]}}}},"ObjectRecordVariableValueListResponse":{"description":"List of Object Record Variable Values","content":{"application/json":{"schema":{"type":"object","properties":{"docs":{"type":"array","items":{"$ref":"#/components/schemas/ObjectRecordVariableValue"}},"totalDocs":{"type":"integer"},"limit":{"type":"integer"},"totalPages":{"type":"integer"},"page":{"type":"integer"},"pagingCounter":{"type":"integer"},"hasPrevPage":{"type":"boolean"},"hasNextPage":{"type":"boolean"},"prevPage":{"type":"integer","nullable":true},"nextPage":{"type":"integer","nullable":true}},"required":["docs","totalDocs","limit","totalPages","page","pagingCounter","hasPrevPage","hasNextPage","prevPage","nextPage"]}}}},"NotificationNotFoundResponse":{"description":"Notification not found"},"NotificationResponse":{"description":"Notification object","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Notification"}}}},"NotificationListResponse":{"description":"List of Notifications","content":{"application/json":{"schema":{"type":"object","properties":{"docs":{"type":"array","items":{"$ref":"#/components/schemas/Notification"}},"totalDocs":{"type":"integer"},"limit":{"type":"integer"},"totalPages":{"type":"integer"},"page":{"type":"integer"},"pagingCounter":{"type":"integer"},"hasPrevPage":{"type":"boolean"},"hasNextPage":{"type":"boolean"},"prevPage":{"type":"integer","nullable":true},"nextPage":{"type":"integer","nullable":true}},"required":["docs","totalDocs","limit","totalPages","page","pagingCounter","hasPrevPage","hasNextPage","prevPage","nextPage"]}}}},"JourneyNotFoundResponse":{"description":"Journey not found"},"JourneyResponse":{"description":"Journey object","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Journey"}}}},"MutateJourneyResponse":{"description":"Journey object","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"doc":{"allOf":[{"$ref":"#/components/schemas/Journey"},{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","createdAt","updatedAt"]}]}},"required":["message","doc"]}}}},"JourneyListResponse":{"description":"List of Journeys","content":{"application/json":{"schema":{"type":"object","properties":{"docs":{"type":"array","items":{"$ref":"#/components/schemas/Journey"}},"totalDocs":{"type":"integer"},"limit":{"type":"integer"},"totalPages":{"type":"integer"},"page":{"type":"integer"},"pagingCounter":{"type":"integer"},"hasPrevPage":{"type":"boolean"},"hasNextPage":{"type":"boolean"},"prevPage":{"type":"integer","nullable":true},"nextPage":{"type":"integer","nullable":true}},"required":["docs","totalDocs","limit","totalPages","page","pagingCounter","hasPrevPage","hasNextPage","prevPage","nextPage"]}}}},"JourneyVariableValueNotFoundResponse":{"description":"Journey Variable Value not found"},"JourneyVariableValueResponse":{"description":"Journey Variable Value object","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JourneyVariableValue"}}}},"MutateJourneyVariableValueResponse":{"description":"Journey Variable Value object","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"doc":{"allOf":[{"$ref":"#/components/schemas/JourneyVariableValue"},{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","createdAt","updatedAt"]}]}},"required":["message","doc"]}}}},"JourneyVariableValueListResponse":{"description":"List of Journey Variable Values","content":{"application/json":{"schema":{"type":"object","properties":{"docs":{"type":"array","items":{"$ref":"#/components/schemas/JourneyVariableValue"}},"totalDocs":{"type":"integer"},"limit":{"type":"integer"},"totalPages":{"type":"integer"},"page":{"type":"integer"},"pagingCounter":{"type":"integer"},"hasPrevPage":{"type":"boolean"},"hasNextPage":{"type":"boolean"},"prevPage":{"type":"integer","nullable":true},"nextPage":{"type":"integer","nullable":true}},"required":["docs","totalDocs","limit","totalPages","page","pagingCounter","hasPrevPage","hasNextPage","prevPage","nextPage"]}}}},"JourneyTemplateNotFoundResponse":{"description":"Journey Template not found"},"JourneyTemplateResponse":{"description":"Journey Template object","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JourneyTemplate"}}}},"MutateJourneyTemplateResponse":{"description":"Journey Template object","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"doc":{"allOf":[{"$ref":"#/components/schemas/JourneyTemplate"},{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","createdAt","updatedAt"]}]}},"required":["message","doc"]}}}},"JourneyTemplateListResponse":{"description":"List of Journey Templates","content":{"application/json":{"schema":{"type":"object","properties":{"docs":{"type":"array","items":{"$ref":"#/components/schemas/JourneyTemplate"}},"totalDocs":{"type":"integer"},"limit":{"type":"integer"},"totalPages":{"type":"integer"},"page":{"type":"integer"},"pagingCounter":{"type":"integer"},"hasPrevPage":{"type":"boolean"},"hasNextPage":{"type":"boolean"},"prevPage":{"type":"integer","nullable":true},"nextPage":{"type":"integer","nullable":true}},"required":["docs","totalDocs","limit","totalPages","page","pagingCounter","hasPrevPage","hasNextPage","prevPage","nextPage"]}}}},"JourneyTemplateVersionNotFoundResponse":{"description":"Journey Template Version not found"},"JourneyTemplateVersionResponse":{"description":"Journey Template Version object","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JourneyTemplateVersion"}}}},"MutateJourneyTemplateVersionResponse":{"description":"Journey Template Version object","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"doc":{"allOf":[{"$ref":"#/components/schemas/JourneyTemplateVersion"},{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","createdAt","updatedAt"]}]}},"required":["message","doc"]}}}},"JourneyTemplateVersionListResponse":{"description":"List of Journey Template Versions","content":{"application/json":{"schema":{"type":"object","properties":{"docs":{"type":"array","items":{"$ref":"#/components/schemas/JourneyTemplateVersion"}},"totalDocs":{"type":"integer"},"limit":{"type":"integer"},"totalPages":{"type":"integer"},"page":{"type":"integer"},"pagingCounter":{"type":"integer"},"hasPrevPage":{"type":"boolean"},"hasNextPage":{"type":"boolean"},"prevPage":{"type":"integer","nullable":true},"nextPage":{"type":"integer","nullable":true}},"required":["docs","totalDocs","limit","totalPages","page","pagingCounter","hasPrevPage","hasNextPage","prevPage","nextPage"]}}}},"InsightNotFoundResponse":{"description":"Insight not found"},"InsightResponse":{"description":"Insight object","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Insight"}}}},"MutateInsightResponse":{"description":"Insight object","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"doc":{"allOf":[{"$ref":"#/components/schemas/Insight"},{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","createdAt","updatedAt"]}]}},"required":["message","doc"]}}}},"InsightListResponse":{"description":"List of Insights","content":{"application/json":{"schema":{"type":"object","properties":{"docs":{"type":"array","items":{"$ref":"#/components/schemas/Insight"}},"totalDocs":{"type":"integer"},"limit":{"type":"integer"},"totalPages":{"type":"integer"},"page":{"type":"integer"},"pagingCounter":{"type":"integer"},"hasPrevPage":{"type":"boolean"},"hasNextPage":{"type":"boolean"},"prevPage":{"type":"integer","nullable":true},"nextPage":{"type":"integer","nullable":true}},"required":["docs","totalDocs","limit","totalPages","page","pagingCounter","hasPrevPage","hasNextPage","prevPage","nextPage"]}}}},"GroupNotFoundResponse":{"description":"Group not found"},"GroupResponse":{"description":"Group object","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Group"}}}},"MutateGroupResponse":{"description":"Group object","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"doc":{"allOf":[{"$ref":"#/components/schemas/Group"},{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","createdAt","updatedAt"]}]}},"required":["message","doc"]}}}},"GroupListResponse":{"description":"List of Groups","content":{"application/json":{"schema":{"type":"object","properties":{"docs":{"type":"array","items":{"$ref":"#/components/schemas/Group"}},"totalDocs":{"type":"integer"},"limit":{"type":"integer"},"totalPages":{"type":"integer"},"page":{"type":"integer"},"pagingCounter":{"type":"integer"},"hasPrevPage":{"type":"boolean"},"hasNextPage":{"type":"boolean"},"prevPage":{"type":"integer","nullable":true},"nextPage":{"type":"integer","nullable":true}},"required":["docs","totalDocs","limit","totalPages","page","pagingCounter","hasPrevPage","hasNextPage","prevPage","nextPage"]}}}},"FormNotFoundResponse":{"description":"Form not found"},"FormResponse":{"description":"Form object","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Form"}}}},"MutateFormResponse":{"description":"Form object","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"doc":{"allOf":[{"$ref":"#/components/schemas/Form"},{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","createdAt","updatedAt"]}]}},"required":["message","doc"]}}}},"FormListResponse":{"description":"List of Forms","content":{"application/json":{"schema":{"type":"object","properties":{"docs":{"type":"array","items":{"$ref":"#/components/schemas/Form"}},"totalDocs":{"type":"integer"},"limit":{"type":"integer"},"totalPages":{"type":"integer"},"page":{"type":"integer"},"pagingCounter":{"type":"integer"},"hasPrevPage":{"type":"boolean"},"hasNextPage":{"type":"boolean"},"prevPage":{"type":"integer","nullable":true},"nextPage":{"type":"integer","nullable":true}},"required":["docs","totalDocs","limit","totalPages","page","pagingCounter","hasPrevPage","hasNextPage","prevPage","nextPage"]}}}},"FormTemplateNotFoundResponse":{"description":"Form Template not found"},"FormTemplateResponse":{"description":"Form Template object","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormTemplate"}}}},"MutateFormTemplateResponse":{"description":"Form Template object","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"doc":{"allOf":[{"$ref":"#/components/schemas/FormTemplate"},{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","createdAt","updatedAt"]}]}},"required":["message","doc"]}}}},"FormTemplateListResponse":{"description":"List of Form Templates","content":{"application/json":{"schema":{"type":"object","properties":{"docs":{"type":"array","items":{"$ref":"#/components/schemas/FormTemplate"}},"totalDocs":{"type":"integer"},"limit":{"type":"integer"},"totalPages":{"type":"integer"},"page":{"type":"integer"},"pagingCounter":{"type":"integer"},"hasPrevPage":{"type":"boolean"},"hasNextPage":{"type":"boolean"},"prevPage":{"type":"integer","nullable":true},"nextPage":{"type":"integer","nullable":true}},"required":["docs","totalDocs","limit","totalPages","page","pagingCounter","hasPrevPage","hasNextPage","prevPage","nextPage"]}}}},"FormTemplateVersionNotFoundResponse":{"description":"Form Template Version not found"},"FormTemplateVersionResponse":{"description":"Form Template Version object","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormTemplateVersion"}}}},"MutateFormTemplateVersionResponse":{"description":"Form Template Version object","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"doc":{"allOf":[{"$ref":"#/components/schemas/FormTemplateVersion"},{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","createdAt","updatedAt"]}]}},"required":["message","doc"]}}}},"FormTemplateVersionListResponse":{"description":"List of Form Template Versions","content":{"application/json":{"schema":{"type":"object","properties":{"docs":{"type":"array","items":{"$ref":"#/components/schemas/FormTemplateVersion"}},"totalDocs":{"type":"integer"},"limit":{"type":"integer"},"totalPages":{"type":"integer"},"page":{"type":"integer"},"pagingCounter":{"type":"integer"},"hasPrevPage":{"type":"boolean"},"hasNextPage":{"type":"boolean"},"prevPage":{"type":"integer","nullable":true},"nextPage":{"type":"integer","nullable":true}},"required":["docs","totalDocs","limit","totalPages","page","pagingCounter","hasPrevPage","hasNextPage","prevPage","nextPage"]}}}},"FormCompletionNotFoundResponse":{"description":"Form Completion not found"},"FormCompletionResponse":{"description":"Form Completion object","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormCompletion"}}}},"MutateFormCompletionResponse":{"description":"Form Completion object","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"doc":{"allOf":[{"$ref":"#/components/schemas/FormCompletion"},{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","createdAt","updatedAt"]}]}},"required":["message","doc"]}}}},"FormCompletionListResponse":{"description":"List of Form Completions","content":{"application/json":{"schema":{"type":"object","properties":{"docs":{"type":"array","items":{"$ref":"#/components/schemas/FormCompletion"}},"totalDocs":{"type":"integer"},"limit":{"type":"integer"},"totalPages":{"type":"integer"},"page":{"type":"integer"},"pagingCounter":{"type":"integer"},"hasPrevPage":{"type":"boolean"},"hasNextPage":{"type":"boolean"},"prevPage":{"type":"integer","nullable":true},"nextPage":{"type":"integer","nullable":true}},"required":["docs","totalDocs","limit","totalPages","page","pagingCounter","hasPrevPage","hasNextPage","prevPage","nextPage"]}}}},"EmailNotFoundResponse":{"description":"Email not found"},"EmailResponse":{"description":"Email object","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Email"}}}},"MutateEmailResponse":{"description":"Email object","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"doc":{"allOf":[{"$ref":"#/components/schemas/Email"},{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","createdAt","updatedAt"]}]}},"required":["message","doc"]}}}},"EmailListResponse":{"description":"List of Emails","content":{"application/json":{"schema":{"type":"object","properties":{"docs":{"type":"array","items":{"$ref":"#/components/schemas/Email"}},"totalDocs":{"type":"integer"},"limit":{"type":"integer"},"totalPages":{"type":"integer"},"page":{"type":"integer"},"pagingCounter":{"type":"integer"},"hasPrevPage":{"type":"boolean"},"hasNextPage":{"type":"boolean"},"prevPage":{"type":"integer","nullable":true},"nextPage":{"type":"integer","nullable":true}},"required":["docs","totalDocs","limit","totalPages","page","pagingCounter","hasPrevPage","hasNextPage","prevPage","nextPage"]}}}},"EmailTemplateNotFoundResponse":{"description":"Email Template not found"},"EmailTemplateResponse":{"description":"Email Template object","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailTemplate"}}}},"MutateEmailTemplateResponse":{"description":"Email Template object","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"doc":{"allOf":[{"$ref":"#/components/schemas/EmailTemplate"},{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","createdAt","updatedAt"]}]}},"required":["message","doc"]}}}},"EmailTemplateListResponse":{"description":"List of Email Templates","content":{"application/json":{"schema":{"type":"object","properties":{"docs":{"type":"array","items":{"$ref":"#/components/schemas/EmailTemplate"}},"totalDocs":{"type":"integer"},"limit":{"type":"integer"},"totalPages":{"type":"integer"},"page":{"type":"integer"},"pagingCounter":{"type":"integer"},"hasPrevPage":{"type":"boolean"},"hasNextPage":{"type":"boolean"},"prevPage":{"type":"integer","nullable":true},"nextPage":{"type":"integer","nullable":true}},"required":["docs","totalDocs","limit","totalPages","page","pagingCounter","hasPrevPage","hasNextPage","prevPage","nextPage"]}}}},"EmailTemplateVersionNotFoundResponse":{"description":"Email Template Version not found"},"EmailTemplateVersionResponse":{"description":"Email Template Version object","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailTemplateVersion"}}}},"MutateEmailTemplateVersionResponse":{"description":"Email Template Version object","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"doc":{"allOf":[{"$ref":"#/components/schemas/EmailTemplateVersion"},{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","createdAt","updatedAt"]}]}},"required":["message","doc"]}}}},"EmailTemplateVersionListResponse":{"description":"List of Email Template Versions","content":{"application/json":{"schema":{"type":"object","properties":{"docs":{"type":"array","items":{"$ref":"#/components/schemas/EmailTemplateVersion"}},"totalDocs":{"type":"integer"},"limit":{"type":"integer"},"totalPages":{"type":"integer"},"page":{"type":"integer"},"pagingCounter":{"type":"integer"},"hasPrevPage":{"type":"boolean"},"hasNextPage":{"type":"boolean"},"prevPage":{"type":"integer","nullable":true},"nextPage":{"type":"integer","nullable":true}},"required":["docs","totalDocs","limit","totalPages","page","pagingCounter","hasPrevPage","hasNextPage","prevPage","nextPage"]}}}},"TenantDomainNotFoundResponse":{"description":"Tenant domain not found"},"TenantDomainResponse":{"description":"Tenant domain object","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TenantDomain"}}}},"MutateTenantDomainResponse":{"description":"Tenant domain object","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"doc":{"allOf":[{"$ref":"#/components/schemas/TenantDomain"},{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","createdAt","updatedAt"]}]}},"required":["message","doc"]}}}},"TenantDomainListResponse":{"description":"List of Tenant domains","content":{"application/json":{"schema":{"type":"object","properties":{"docs":{"type":"array","items":{"$ref":"#/components/schemas/TenantDomain"}},"totalDocs":{"type":"integer"},"limit":{"type":"integer"},"totalPages":{"type":"integer"},"page":{"type":"integer"},"pagingCounter":{"type":"integer"},"hasPrevPage":{"type":"boolean"},"hasNextPage":{"type":"boolean"},"prevPage":{"type":"integer","nullable":true},"nextPage":{"type":"integer","nullable":true}},"required":["docs","totalDocs","limit","totalPages","page","pagingCounter","hasPrevPage","hasNextPage","prevPage","nextPage"]}}}},"CustomerNotFoundResponse":{"description":"Customer not found"},"CustomerResponse":{"description":"Customer object","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Customer"}}}},"MutateCustomerResponse":{"description":"Customer object","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"doc":{"allOf":[{"$ref":"#/components/schemas/Customer"},{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","createdAt","updatedAt"]}]}},"required":["message","doc"]}}}},"CustomerListResponse":{"description":"List of Customers","content":{"application/json":{"schema":{"type":"object","properties":{"docs":{"type":"array","items":{"$ref":"#/components/schemas/Customer"}},"totalDocs":{"type":"integer"},"limit":{"type":"integer"},"totalPages":{"type":"integer"},"page":{"type":"integer"},"pagingCounter":{"type":"integer"},"hasPrevPage":{"type":"boolean"},"hasNextPage":{"type":"boolean"},"prevPage":{"type":"integer","nullable":true},"nextPage":{"type":"integer","nullable":true}},"required":["docs","totalDocs","limit","totalPages","page","pagingCounter","hasPrevPage","hasNextPage","prevPage","nextPage"]}}}},"CustomerVariableValueNotFoundResponse":{"description":"Customer Variable Value not found"},"CustomerVariableValueResponse":{"description":"Customer Variable Value object","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerVariableValue"}}}},"MutateCustomerVariableValueResponse":{"description":"Customer Variable Value object","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"doc":{"allOf":[{"$ref":"#/components/schemas/CustomerVariableValue"},{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","createdAt","updatedAt"]}]}},"required":["message","doc"]}}}},"CustomerVariableValueListResponse":{"description":"List of Customer Variable Values","content":{"application/json":{"schema":{"type":"object","properties":{"docs":{"type":"array","items":{"$ref":"#/components/schemas/CustomerVariableValue"}},"totalDocs":{"type":"integer"},"limit":{"type":"integer"},"totalPages":{"type":"integer"},"page":{"type":"integer"},"pagingCounter":{"type":"integer"},"hasPrevPage":{"type":"boolean"},"hasNextPage":{"type":"boolean"},"prevPage":{"type":"integer","nullable":true},"nextPage":{"type":"integer","nullable":true}},"required":["docs","totalDocs","limit","totalPages","page","pagingCounter","hasPrevPage","hasNextPage","prevPage","nextPage"]}}}},"AssetNotFoundResponse":{"description":"Asset not found"},"AssetResponse":{"description":"Asset object","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Asset"}}}},"MutateAssetResponse":{"description":"Asset object","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"doc":{"allOf":[{"$ref":"#/components/schemas/Asset"},{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","createdAt","updatedAt"]}]}},"required":["message","doc"]}}}},"AssetListResponse":{"description":"List of Assets","content":{"application/json":{"schema":{"type":"object","properties":{"docs":{"type":"array","items":{"$ref":"#/components/schemas/Asset"}},"totalDocs":{"type":"integer"},"limit":{"type":"integer"},"totalPages":{"type":"integer"},"page":{"type":"integer"},"pagingCounter":{"type":"integer"},"hasPrevPage":{"type":"boolean"},"hasNextPage":{"type":"boolean"},"prevPage":{"type":"integer","nullable":true},"nextPage":{"type":"integer","nullable":true}},"required":["docs","totalDocs","limit","totalPages","page","pagingCounter","hasPrevPage","hasNextPage","prevPage","nextPage"]}}}},"AgentGoalNotFoundResponse":{"description":"Agent Goal not found"},"AgentGoalResponse":{"description":"Agent Goal object","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentGoal"}}}},"MutateAgentGoalResponse":{"description":"Agent Goal object","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"doc":{"allOf":[{"$ref":"#/components/schemas/AgentGoal"},{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","createdAt","updatedAt"]}]}},"required":["message","doc"]}}}},"AgentGoalListResponse":{"description":"List of Agent Goals","content":{"application/json":{"schema":{"type":"object","properties":{"docs":{"type":"array","items":{"$ref":"#/components/schemas/AgentGoal"}},"totalDocs":{"type":"integer"},"limit":{"type":"integer"},"totalPages":{"type":"integer"},"page":{"type":"integer"},"pagingCounter":{"type":"integer"},"hasPrevPage":{"type":"boolean"},"hasNextPage":{"type":"boolean"},"prevPage":{"type":"integer","nullable":true},"nextPage":{"type":"integer","nullable":true}},"required":["docs","totalDocs","limit","totalPages","page","pagingCounter","hasPrevPage","hasNextPage","prevPage","nextPage"]}}}}},"schemas":{"Webhook":{"type":"object","additionalProperties":false,"title":"Webhook","properties":{"id":{"type":"string"},"label":{"type":"string"},"templateVersion":{"oneOf":[{"type":"object","additionalProperties":false,"properties":{"relationTo":{"enum":["journey-template-versions"]},"value":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/JourneyTemplateVersion"}]}},"required":["value","relationTo"]},{"type":"object","additionalProperties":false,"properties":{"relationTo":{"enum":["playbook-template-versions"]},"value":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/PlaybookTemplateVersion"}]}},"required":["value","relationTo"]}]},"secretPreview":{"type":"string","nullable":true},"status":{"type":"string","enum":["unconfigured","active","revoked"]},"lastInvokedAt":{"description":"Deprecated since v0.10.4. This field is never filled in.","type":"string","deprecated":true,"x-sekential-deprecation":{"since":"v0.10.4"},"nullable":true},"createdBy":{"oneOf":[{"type":"string","nullable":true},{"$ref":"#/components/schemas/User"}]},"archivedAt":{"description":"When this record was archived. Null when active.","type":"string","nullable":true},"updatedAt":{"type":"string"},"createdAt":{"type":"string"}},"required":["id","label","templateVersion","status","updatedAt","createdAt"]},"User":{"type":"object","additionalProperties":false,"title":"User","properties":{"id":{"type":"string"},"firstName":{"type":"string","nullable":true},"lastName":{"type":"string","nullable":true},"jobTitle":{"type":"string","nullable":true},"avatar":{"oneOf":[{"type":"string","nullable":true},{"type":"object","additionalProperties":true,"description":"Related record; fields depend on access."}]},"tenantAssignments":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"firstName":{"type":"string","nullable":true},"lastName":{"type":"string","nullable":true},"jobTitle":{"type":"string","nullable":true},"preferences":{"description":"Working hours and assistant preferences in this organization.","type":"object","additionalProperties":false,"properties":{"workingHours":{"description":"Usual weekly working hours. Empty values use the default Monday to Friday hours.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"showWeekends":{"description":"Show Saturday and Sunday in the calendar week view.","type":"boolean","nullable":true},"aiFunctions":{"nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"assistantApprovalMode":{"type":"string","enum":["ask","auto-approve","auto","read-only"],"nullable":true},"assistantNavigationEnabled":{"description":"Allow Sekential to change the active page in chat. Background work cannot navigate.","type":"boolean","nullable":true},"assistantRiskInstructions":{"type":"string","nullable":true}},"required":[]},"tenantRole":{"type":"string","enum":["admin","member","contact"]},"groups":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"group":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Group"}]},"role":{"type":"string","enum":["member","manager"]},"id":{"type":"string","nullable":true}},"required":["group","role"]},"nullable":true},"customers":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"customer":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Customer"}]},"id":{"type":"string","nullable":true}},"required":["customer"]},"nullable":true},"id":{"type":"string","nullable":true}},"required":["tenantRole"]},"nullable":true},"updatedAt":{"type":"string"},"createdAt":{"type":"string"}},"required":["id","updatedAt","createdAt"]},"Customer":{"type":"object","additionalProperties":false,"title":"Customer","properties":{"id":{"type":"string"},"name":{"type":"string"},"logo":{"type":"string","nullable":true},"logoUrl":{"type":"string","nullable":true},"orgChart":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"manager":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"managee":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"id":{"type":"string","nullable":true}},"required":["manager","managee"]},"nullable":true},"state":{"type":"string","enum":["draft","active","break","churned"]},"archivedAt":{"description":"When this record was archived. Null when active.","type":"string","nullable":true},"status":{"description":"The state, or Archived once archived. The Customers list sorts and groups by it.","type":"string","enum":["draft","active","break","churned","archived"],"nullable":true},"emailDomains":{"description":"Exact domains whose emails reach this customer's Activity. A contact's company domain is added with the contact.","type":"array","items":{"type":"string"},"nullable":true},"slackChannels":{"description":"Slack channels whose messages reach this customer's Activity.","type":"array","items":{"type":"object","additionalProperties":false,"properties":{"teamId":{"type":"string"},"teamName":{"type":"string","nullable":true},"channelId":{"type":"string"},"channelName":{"type":"string"},"id":{"type":"string","nullable":true}},"required":["teamId","channelId","channelName"]},"nullable":true},"hubspotCompany":{"description":"Deprecated since v0.10.4. Link the HubSpot company record to the customer in Relations.","type":"object","additionalProperties":false,"properties":{"connectionId":{"type":"string","nullable":true},"companyId":{"type":"string","nullable":true},"name":{"type":"string","nullable":true},"domain":{"type":"string","nullable":true}},"required":[],"deprecated":true,"x-sekential-deprecation":{"since":"v0.10.4"}},"slackChannel":{"description":"Deprecated since v0.10.4. This contract has a replacement. Use customers.slackChannels instead.","type":"object","additionalProperties":false,"properties":{"teamId":{"type":"string","nullable":true},"teamName":{"type":"string","nullable":true},"channelId":{"type":"string","nullable":true},"channelName":{"type":"string","nullable":true}},"required":[],"deprecated":true,"x-sekential-deprecation":{"since":"v0.10.4","replacement":"customers.slackChannels"}},"journeys":{"type":"object","additionalProperties":false,"properties":{"docs":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Journey"}]}},"hasNextPage":{"type":"boolean"},"totalDocs":{"type":"number"}}},"stakeholders":{"type":"object","additionalProperties":false,"properties":{"docs":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Stakeholder"}]}},"hasNextPage":{"type":"boolean"},"totalDocs":{"type":"number"}}},"comments":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"content":{"type":"string"},"author":{"description":"Deprecated since v0.10.4. This field will become optional: it is empty once the member's account is deleted.","oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}],"deprecated":true,"x-sekential-deprecation":{"since":"v0.10.4"}},"createdAt":{"type":"string"},"visibility":{"type":"string","enum":["internal","external"]},"mentions":{"description":"Users mentioned in this comment's content via @mention; server-validated on write.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"nullable":true},"aiWritten":{"description":"Posted by the AI on the author's behalf.","type":"boolean","nullable":true},"id":{"type":"string","nullable":true}},"required":["content","author","createdAt","visibility"]},"nullable":true},"lastCommentAt":{"type":"string","nullable":true},"permissions":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"entity":{"oneOf":[{"type":"object","additionalProperties":false,"properties":{"relationTo":{"enum":["users"]},"value":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]}},"required":["value","relationTo"]},{"type":"object","additionalProperties":false,"properties":{"relationTo":{"enum":["groups"]},"value":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Group"}]}},"required":["value","relationTo"]}]},"level":{"type":"number"},"origin":{"description":"Document where this permission was declared and can be edited.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"inheritedFrom":{"description":"Immediate parent that synchronized this read-only entry.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"id":{"type":"string","nullable":true}},"required":["entity","level"]},"nullable":true},"updatedAt":{"type":"string"},"createdAt":{"type":"string"}},"required":["id","name","state","updatedAt","createdAt"]},"Group":{"type":"object","additionalProperties":false,"title":"Group","properties":{"id":{"type":"string"},"name":{"type":"string"},"description":{"type":"string","nullable":true},"color":{"type":"string","nullable":true},"updatedAt":{"type":"string"},"createdAt":{"type":"string"}},"required":["id","name","updatedAt","createdAt"]},"Stakeholder":{"type":"object","additionalProperties":false,"title":"Stakeholder","properties":{"id":{"type":"string"},"customer":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Customer"}]},"customerName":{"type":"string","nullable":true},"contactUser":{"oneOf":[{"type":"string","nullable":true},{"$ref":"#/components/schemas/User"}]},"name":{"type":"string"},"title":{"type":"string","nullable":true},"email":{"type":"string","nullable":true},"reportsTo":{"oneOf":[{"type":"string","nullable":true},{"$ref":"#/components/schemas/Stakeholder"}]},"disposition":{"type":"string","enum":["decision-maker","economic-buyer","champion","supporter","neutral","skeptic","blocker","end-user"]},"influence":{"type":"string","enum":["low","medium","high"]},"archivedAt":{"description":"When this record was archived. Null when active.","type":"string","nullable":true},"permissions":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"entity":{"oneOf":[{"type":"object","additionalProperties":false,"properties":{"relationTo":{"enum":["users"]},"value":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]}},"required":["value","relationTo"]},{"type":"object","additionalProperties":false,"properties":{"relationTo":{"enum":["groups"]},"value":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Group"}]}},"required":["value","relationTo"]}]},"level":{"type":"number"},"origin":{"description":"Document where this permission was declared and can be edited.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"inheritedFrom":{"description":"Immediate parent that synchronized this read-only entry.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"id":{"type":"string","nullable":true}},"required":["entity","level"]},"nullable":true},"updatedAt":{"type":"string"},"createdAt":{"type":"string"}},"required":["id","customer","name","disposition","influence","updatedAt","createdAt"]},"Journey":{"type":"object","additionalProperties":false,"title":"Journey","properties":{"id":{"type":"string"},"name":{"type":"string"},"description":{"type":"string","nullable":true},"slug":{"description":"Short journey identifier, unique within the tenant. Auto-generated on creation and editable afterwards.","type":"string"},"lastStepNumber":{"description":"Last step number assigned in this journey. Used to build aliases like <journeySlug>-<stepNumber>.","type":"number"},"state":{"type":"string","enum":["draft","started","paused","completed","cancelled"]},"startedAt":{"description":"When this record actually started. Auto-set on first start.","type":"string","nullable":true},"deadlineAt":{"description":"Target date and time for completing this work.","type":"string","nullable":true},"archivedAt":{"description":"When this record was archived. Null when active.","type":"string","nullable":true},"customer":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Customer"}]},"customerName":{"type":"string","nullable":true},"relatedRecords":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/ObjectRecord"}]},"nullable":true},"playbooks":{"type":"object","additionalProperties":false,"properties":{"docs":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Playbook"}]}},"hasNextPage":{"type":"boolean"},"totalDocs":{"type":"number"}}},"sourceTemplateVersion":{"description":"Pinned journey template version used to create this journey.","oneOf":[{"type":"string","nullable":true},{"$ref":"#/components/schemas/JourneyTemplateVersion"}]},"activeVersion":{"description":"Standalone editable version for this journey. Editors must wait until it is ready.","oneOf":[{"type":"string","nullable":true},{"$ref":"#/components/schemas/JourneyTemplateVersion"}]},"internalAssets":{"oneOf":[{"type":"string","nullable":true},{"$ref":"#/components/schemas/Asset"}]},"externalAssets":{"oneOf":[{"type":"string","nullable":true},{"$ref":"#/components/schemas/Asset"}]},"comments":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"content":{"type":"string"},"author":{"description":"Deprecated since v0.10.4. This field will become optional: it is empty once the member's account is deleted.","oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}],"deprecated":true,"x-sekential-deprecation":{"since":"v0.10.4"}},"createdAt":{"type":"string"},"visibility":{"type":"string","enum":["internal","external"]},"mentions":{"description":"Users mentioned in this comment's content via @mention; server-validated on write.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"nullable":true},"aiWritten":{"description":"Posted by the AI on the author's behalf.","type":"boolean","nullable":true},"id":{"type":"string","nullable":true}},"required":["content","author","createdAt","visibility"]},"nullable":true},"lastCommentAt":{"type":"string","nullable":true},"permissions":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"entity":{"oneOf":[{"type":"object","additionalProperties":false,"properties":{"relationTo":{"enum":["users"]},"value":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]}},"required":["value","relationTo"]},{"type":"object","additionalProperties":false,"properties":{"relationTo":{"enum":["groups"]},"value":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Group"}]}},"required":["value","relationTo"]}]},"level":{"type":"number"},"origin":{"description":"Document where this permission was declared and can be edited.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"inheritedFrom":{"description":"Immediate parent that synchronized this read-only entry.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"id":{"type":"string","nullable":true}},"required":["entity","level"]},"nullable":true},"updatedAt":{"type":"string"},"createdAt":{"type":"string"}},"required":["id","name","slug","lastStepNumber","state","customer","updatedAt","createdAt"]},"Asset":{"type":"object","additionalProperties":false,"title":"Asset","properties":{"id":{"type":"string"},"name":{"type":"string"},"assetType":{"description":"Classifies the asset for Drive behavior and rendering.","type":"string","enum":["file","note","folder","link"]},"externalUrl":{"description":"Destination of a link asset, such as a Google Drive document. The file stays in the external repository.","type":"string","nullable":true},"driveScope":{"oneOf":[{"type":"object","additionalProperties":false,"properties":{"relationTo":{"enum":["tenants"]},"value":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Tenant"}]}},"required":["value","relationTo"]},{"type":"object","additionalProperties":false,"properties":{"relationTo":{"enum":["customers"]},"value":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Customer"}]}},"required":["value","relationTo"]},{"type":"object","additionalProperties":false,"properties":{"relationTo":{"enum":["journeys"]},"value":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Journey"}]}},"required":["value","relationTo"]},{"type":"object","additionalProperties":false,"properties":{"relationTo":{"enum":["object-records"]},"value":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/ObjectRecord"}]}},"required":["value","relationTo"]},{"type":"object","additionalProperties":false,"properties":{"relationTo":{"enum":["journey-templates"]},"value":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/JourneyTemplate"}]}},"required":["value","relationTo"]},{"type":"object","additionalProperties":false,"properties":{"relationTo":{"enum":["journey-template-versions"]},"value":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/JourneyTemplateVersion"}]}},"required":["value","relationTo"]},{"type":"object","additionalProperties":false,"properties":{"relationTo":{"enum":["playbook-templates"]},"value":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/PlaybookTemplate"}]}},"required":["value","relationTo"]},{"type":"object","additionalProperties":false,"properties":{"relationTo":{"enum":["playbook-template-versions"]},"value":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/PlaybookTemplateVersion"}]}},"required":["value","relationTo"]},{"type":"object","additionalProperties":false,"properties":{"relationTo":{"enum":["email-templates"]},"value":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/EmailTemplate"}]}},"required":["value","relationTo"]},{"type":"object","additionalProperties":false,"properties":{"relationTo":{"enum":["email-template-versions"]},"value":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/EmailTemplateVersion"}]}},"required":["value","relationTo"]},{"type":"object","additionalProperties":false,"properties":{"relationTo":{"enum":["form-templates"]},"value":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/FormTemplate"}]}},"required":["value","relationTo"]},{"type":"object","additionalProperties":false,"properties":{"relationTo":{"enum":["form-template-versions"]},"value":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/FormTemplateVersion"}]}},"required":["value","relationTo"]},{"type":"object","additionalProperties":false,"properties":{"relationTo":{"enum":["playbooks"]},"value":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Playbook"}]}},"required":["value","relationTo"]},{"type":"object","additionalProperties":false,"properties":{"relationTo":{"enum":["steps"]},"value":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Step"}]}},"required":["value","relationTo"]},{"type":"object","additionalProperties":false,"properties":{"relationTo":{"enum":["skills"]},"value":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":true,"description":"Related record; fields depend on access."}]}},"required":["value","relationTo"]}]},"parent":{"oneOf":[{"type":"string","nullable":true},{"$ref":"#/components/schemas/Asset"}]},"stepKey":{"type":"string","nullable":true},"permissions":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"entity":{"oneOf":[{"type":"object","additionalProperties":false,"properties":{"relationTo":{"enum":["users"]},"value":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]}},"required":["value","relationTo"]},{"type":"object","additionalProperties":false,"properties":{"relationTo":{"enum":["groups"]},"value":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Group"}]}},"required":["value","relationTo"]}]},"level":{"type":"number"},"origin":{"description":"Document where this permission was declared and can be edited.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"inheritedFrom":{"description":"Immediate parent that synchronized this read-only entry.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"id":{"type":"string","nullable":true}},"required":["entity","level"]},"nullable":true},"contentResource":{"oneOf":[{"type":"string","nullable":true},{"type":"object","additionalProperties":true,"description":"Related record; fields depend on access."}]},"contentRevision":{"oneOf":[{"type":"string","nullable":true},{"type":"object","additionalProperties":true,"description":"Related record; fields depend on access."}]},"contentSource":{"oneOf":[{"type":"string","nullable":true},{"$ref":"#/components/schemas/Asset"}]},"storageAlias":{"type":"boolean","nullable":true},"contentAccess":{"type":"string","enum":["owned","reference"],"nullable":true},"public":{"description":"Anyone with the file's link can view it, signed in or not.","type":"boolean","nullable":true},"prefix":{"type":"string","nullable":true},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"url":{"type":"string","nullable":true},"thumbnailURL":{"type":"string","nullable":true},"filename":{"type":"string","nullable":true},"mimeType":{"type":"string","nullable":true},"filesize":{"type":"number","nullable":true},"width":{"type":"number","nullable":true},"height":{"type":"number","nullable":true},"focalX":{"type":"number","nullable":true},"focalY":{"type":"number","nullable":true}},"required":["id","name","assetType","driveScope","updatedAt","createdAt"],"description":"assets upload media"},"Step":{"type":"object","additionalProperties":false,"title":"Step","properties":{"id":{"type":"string"},"number":{"description":"Journey-scoped human identifier.","type":"number"},"type":{"description":"What kind of step this is; fixed once created.","type":"string","enum":["task","meeting","decision","request-file","form","email"]},"parentStep":{"oneOf":[{"type":"string","nullable":true},{"$ref":"#/components/schemas/Step"}]},"eachAssignee":{"type":"boolean","nullable":true},"assigneeSubstepFor":{"oneOf":[{"type":"string","nullable":true},{"$ref":"#/components/schemas/User"}]},"assigneeRemoved":{"type":"boolean","nullable":true},"substepCount":{"type":"number","nullable":true},"completedSubstepCount":{"type":"number","nullable":true},"title":{"type":"string"},"description":{"type":"string","nullable":true},"instructions":{"description":"Agent-facing instructions for this step.","type":"string","nullable":true},"playbook":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Playbook"}]},"journey":{"oneOf":[{"type":"string","nullable":true},{"$ref":"#/components/schemas/Journey"}]},"sourceVersion":{"oneOf":[{"type":"string","nullable":true},{"$ref":"#/components/schemas/PlaybookTemplateVersion"}]},"nodeId":{"type":"string","nullable":true},"parentNodeId":{"description":"nodeId of the containing node: a flow group, or the parent step of a substep.","type":"string","nullable":true},"state":{"type":"string","enum":["blocked","todo","in-progress","done","skipped","cancelled","to-plan","scheduled","requires-attention","finished","pending","decided","requested","uploaded","to-complete","completed","to-send","sent"]},"emailDelivery":{"type":"object","additionalProperties":false,"properties":{"deliveryId":{"type":"string","nullable":true},"status":{"type":"string","enum":["pending","dispatching","accepted","accepted-with-uncertainty","failed","uncertain","sent","sent-with-uncertainty"],"nullable":true},"failureKey":{"type":"string","nullable":true}},"required":[]},"status":{"description":"The status of the state. The Steps list sorts and groups by it.","type":"string","enum":["idle","todo","progress","attention","done","cancelled"],"nullable":true},"priority":{"type":"string","enum":["low","medium","high"]},"contributingOutcomes":{"description":"Outcomes this step explicitly contributed to, now the outcomes linked to it. Deprecated since v0.10.4. This contract has a replacement. Use outcomes.linkedTo instead.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Outcome"}]},"deprecated":true,"x-sekential-deprecation":{"since":"v0.10.4","replacement":"outcomes.linkedTo"},"nullable":true},"assignedRoles":{"description":"Internal assignees receive Reader access to the playbook and parent journey while this step is active.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Role"}]},"nullable":true},"assignedUsers":{"description":"Internal assignees receive Reader access to the playbook and parent journey while this step is active.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"nullable":true},"reviewerRoles":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Role"}]},"nullable":true},"reviewerUsers":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"nullable":true},"reviews":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"reviewer":{"oneOf":[{"type":"object","additionalProperties":false,"properties":{"relationTo":{"enum":["users"]},"value":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]}},"required":["value","relationTo"]},{"type":"object","additionalProperties":false,"properties":{"relationTo":{"enum":["roles"]},"value":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Role"}]}},"required":["value","relationTo"]}]},"state":{"type":"string","enum":["approved","changes-requested"]},"decidedBy":{"description":"Deprecated since v0.10.4. This field will become optional: it is empty once the member's account is deleted.","oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}],"deprecated":true,"x-sekential-deprecation":{"since":"v0.10.4"}},"decidedAt":{"type":"string"},"comment":{"type":"string","nullable":true},"id":{"type":"string","nullable":true}},"required":["reviewer","state","decidedBy","decidedAt"]},"nullable":true},"pendingReviewerRoles":{"description":"Reviewer roles yet to decide. The Steps list's Review tab reads it.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Role"}]},"nullable":true},"pendingReviewerUsers":{"description":"Reviewers yet to decide. The Steps list's Review tab reads it.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"nullable":true},"documents":{"description":"Source Drive documents shared when this step is reached.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Asset"}]},"nullable":true},"documentRecipientRoles":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Role"}]},"nullable":true},"documentRecipientUsers":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"nullable":true},"createdBy":{"description":"User who created this step; empty for flow runs.","oneOf":[{"type":"string","nullable":true},{"$ref":"#/components/schemas/User"}]},"watcherRoles":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Role"}]},"nullable":true},"watchers":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"nullable":true},"participantRoles":{"description":"Meeting attendees, internal or external — the only way a contact is associated with a meeting.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Role"}]},"nullable":true},"participantUsers":{"description":"Meeting attendees, internal or external — the only way a contact is associated with a meeting.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"nullable":true},"timeBlocks":{"description":"Planned and worked intervals of the step, one person each. A meeting has at most one: its time, for all its people.","type":"array","items":{"type":"object","additionalProperties":false,"properties":{"calendarEventId":{"type":"string","nullable":true},"confirmedAt":{"type":"string","nullable":true},"user":{"description":"Whose time it is. Not required: the time block stays when that person is deleted, and a meeting's time is no one person's.","oneOf":[{"type":"string","nullable":true},{"$ref":"#/components/schemas/User"}]},"startsAt":{"type":"string"},"endsAt":{"type":"string"},"anyTime":{"description":"Planned for its day without a time. It ends with that day, and starts its length earlier.","type":"boolean","nullable":true},"id":{"type":"string","nullable":true}},"required":["startsAt","endsAt"]},"nullable":true},"scheduledUntil":{"description":"When the step's last time block ends.","type":"string","nullable":true},"deadlineAt":{"description":"Target date and time for completing this work.","type":"string","nullable":true},"duration":{"description":"Estimate, in minutes. Tasks and meetings always have one.","type":"number","nullable":true},"transcriptAsset":{"description":"Existing Drive document displayed in meeting Replay.","oneOf":[{"type":"string","nullable":true},{"$ref":"#/components/schemas/Asset"}]},"details":{"type":"array","items":{"oneOf":[{"type":"object","additionalProperties":false,"properties":{"googleCalendar":{"description":"Durable Google Calendar projection or explicitly linked event.","type":"object","additionalProperties":false,"properties":{"accountSubject":{"type":"string","nullable":true},"ownerUserId":{"type":"string","nullable":true},"calendarId":{"type":"string","nullable":true},"eventId":{"type":"string","nullable":true},"timeBlockId":{"type":"string","nullable":true},"projectionGeneration":{"type":"string","nullable":true},"sessionEvents":{"description":"Google events projected from this step's sessions in the linked account and calendar.","type":"array","items":{"type":"object","additionalProperties":false,"properties":{"timeBlockId":{"type":"string"},"eventId":{"type":"string"},"pending":{"type":"boolean","nullable":true},"id":{"type":"string","nullable":true}},"required":["timeBlockId","eventId"]},"nullable":true},"recurringEventId":{"type":"string","nullable":true},"originalStartTime":{"type":"string","nullable":true},"source":{"type":"string","enum":["sekential","google"],"nullable":true},"syncStatus":{"type":"string","enum":["linked","syncing","requires-attention","error"],"nullable":true},"etag":{"type":"string","nullable":true},"eventUpdatedAt":{"type":"string","nullable":true},"lastSyncedAt":{"type":"string","nullable":true},"lastError":{"type":"string","nullable":true},"participants":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"email":{"type":"string"},"name":{"type":"string","nullable":true},"id":{"type":"string","nullable":true}},"required":["email"]},"nullable":true},"history":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"at":{"type":"string"},"status":{"type":"string"},"message":{"type":"string","nullable":true},"id":{"type":"string","nullable":true}},"required":["at","status"]},"nullable":true}},"required":[]},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["task"]}},"required":["blockType"]},{"type":"object","additionalProperties":false,"properties":{"joinLink":{"description":"URL for joining the meeting.","type":"string","nullable":true},"location":{"type":"string","nullable":true},"googleCalendar":{"description":"Durable Google Calendar projection or explicitly linked event.","type":"object","additionalProperties":false,"properties":{"accountSubject":{"type":"string","nullable":true},"ownerUserId":{"type":"string","nullable":true},"calendarId":{"type":"string","nullable":true},"eventId":{"type":"string","nullable":true},"timeBlockId":{"type":"string","nullable":true},"projectionGeneration":{"type":"string","nullable":true},"sessionEvents":{"description":"Google events projected from this step's sessions in the linked account and calendar.","type":"array","items":{"type":"object","additionalProperties":false,"properties":{"timeBlockId":{"type":"string"},"eventId":{"type":"string"},"pending":{"type":"boolean","nullable":true},"id":{"type":"string","nullable":true}},"required":["timeBlockId","eventId"]},"nullable":true},"recurringEventId":{"type":"string","nullable":true},"originalStartTime":{"type":"string","nullable":true},"source":{"type":"string","enum":["sekential","google"],"nullable":true},"syncStatus":{"type":"string","enum":["linked","syncing","requires-attention","error"],"nullable":true},"etag":{"type":"string","nullable":true},"eventUpdatedAt":{"type":"string","nullable":true},"lastSyncedAt":{"type":"string","nullable":true},"lastError":{"type":"string","nullable":true},"participants":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"email":{"type":"string"},"name":{"type":"string","nullable":true},"id":{"type":"string","nullable":true}},"required":["email"]},"nullable":true},"history":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"at":{"type":"string"},"status":{"type":"string"},"message":{"type":"string","nullable":true},"id":{"type":"string","nullable":true}},"required":["at","status"]},"nullable":true}},"required":[]},"calendarImport":{"description":"Read-only calendar source and invited people; these addresses never grant access.","type":"object","additionalProperties":false,"properties":{"sourceEventId":{"type":"string","nullable":true},"sourceTitle":{"type":"string","nullable":true},"controlsTitle":{"type":"boolean","nullable":true},"sourceUrl":{"type":"string","nullable":true},"participants":{"nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"cancelled":{"type":"boolean","nullable":true}},"required":[]},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["meeting"]}},"required":["blockType"]},{"type":"object","additionalProperties":false,"properties":{"uploadedAssets":{"description":"Assets uploaded to fulfill this file request.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Asset"}]},"nullable":true},"googleCalendar":{"description":"Durable Google Calendar projection or explicitly linked event.","type":"object","additionalProperties":false,"properties":{"accountSubject":{"type":"string","nullable":true},"ownerUserId":{"type":"string","nullable":true},"calendarId":{"type":"string","nullable":true},"eventId":{"type":"string","nullable":true},"timeBlockId":{"type":"string","nullable":true},"projectionGeneration":{"type":"string","nullable":true},"sessionEvents":{"description":"Google events projected from this step's sessions in the linked account and calendar.","type":"array","items":{"type":"object","additionalProperties":false,"properties":{"timeBlockId":{"type":"string"},"eventId":{"type":"string"},"pending":{"type":"boolean","nullable":true},"id":{"type":"string","nullable":true}},"required":["timeBlockId","eventId"]},"nullable":true},"recurringEventId":{"type":"string","nullable":true},"originalStartTime":{"type":"string","nullable":true},"source":{"type":"string","enum":["sekential","google"],"nullable":true},"syncStatus":{"type":"string","enum":["linked","syncing","requires-attention","error"],"nullable":true},"etag":{"type":"string","nullable":true},"eventUpdatedAt":{"type":"string","nullable":true},"lastSyncedAt":{"type":"string","nullable":true},"lastError":{"type":"string","nullable":true},"participants":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"email":{"type":"string"},"name":{"type":"string","nullable":true},"id":{"type":"string","nullable":true}},"required":["email"]},"nullable":true},"history":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"at":{"type":"string"},"status":{"type":"string"},"message":{"type":"string","nullable":true},"id":{"type":"string","nullable":true}},"required":["at","status"]},"nullable":true}},"required":[]},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["request-file"]}},"required":["blockType"]},{"type":"object","additionalProperties":false,"properties":{"form":{"description":"Form that should be completed for this step.","oneOf":[{"type":"string","nullable":true},{"$ref":"#/components/schemas/Form"}]},"googleCalendar":{"description":"Durable Google Calendar projection or explicitly linked event.","type":"object","additionalProperties":false,"properties":{"accountSubject":{"type":"string","nullable":true},"ownerUserId":{"type":"string","nullable":true},"calendarId":{"type":"string","nullable":true},"eventId":{"type":"string","nullable":true},"timeBlockId":{"type":"string","nullable":true},"projectionGeneration":{"type":"string","nullable":true},"sessionEvents":{"description":"Google events projected from this step's sessions in the linked account and calendar.","type":"array","items":{"type":"object","additionalProperties":false,"properties":{"timeBlockId":{"type":"string"},"eventId":{"type":"string"},"pending":{"type":"boolean","nullable":true},"id":{"type":"string","nullable":true}},"required":["timeBlockId","eventId"]},"nullable":true},"recurringEventId":{"type":"string","nullable":true},"originalStartTime":{"type":"string","nullable":true},"source":{"type":"string","enum":["sekential","google"],"nullable":true},"syncStatus":{"type":"string","enum":["linked","syncing","requires-attention","error"],"nullable":true},"etag":{"type":"string","nullable":true},"eventUpdatedAt":{"type":"string","nullable":true},"lastSyncedAt":{"type":"string","nullable":true},"lastError":{"type":"string","nullable":true},"participants":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"email":{"type":"string"},"name":{"type":"string","nullable":true},"id":{"type":"string","nullable":true}},"required":["email"]},"nullable":true},"history":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"at":{"type":"string"},"status":{"type":"string"},"message":{"type":"string","nullable":true},"id":{"type":"string","nullable":true}},"required":["at","status"]},"nullable":true}},"required":[]},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["form"]}},"required":["blockType"]},{"type":"object","additionalProperties":false,"properties":{"choices":{"description":"Options this decision can resolve to.","type":"array","items":{"type":"object","additionalProperties":false,"properties":{"handleId":{"description":"Stable identifier for this choice.","type":"string"},"label":{"type":"string"},"id":{"type":"string","nullable":true}},"required":["handleId","label"]},"nullable":true},"selectedChoice":{"description":"Selected choice handle. Immutable once set.","type":"string","nullable":true},"decidedAt":{"type":"string","nullable":true},"googleCalendar":{"description":"Durable Google Calendar projection or explicitly linked event.","type":"object","additionalProperties":false,"properties":{"accountSubject":{"type":"string","nullable":true},"ownerUserId":{"type":"string","nullable":true},"calendarId":{"type":"string","nullable":true},"eventId":{"type":"string","nullable":true},"timeBlockId":{"type":"string","nullable":true},"projectionGeneration":{"type":"string","nullable":true},"sessionEvents":{"description":"Google events projected from this step's sessions in the linked account and calendar.","type":"array","items":{"type":"object","additionalProperties":false,"properties":{"timeBlockId":{"type":"string"},"eventId":{"type":"string"},"pending":{"type":"boolean","nullable":true},"id":{"type":"string","nullable":true}},"required":["timeBlockId","eventId"]},"nullable":true},"recurringEventId":{"type":"string","nullable":true},"originalStartTime":{"type":"string","nullable":true},"source":{"type":"string","enum":["sekential","google"],"nullable":true},"syncStatus":{"type":"string","enum":["linked","syncing","requires-attention","error"],"nullable":true},"etag":{"type":"string","nullable":true},"eventUpdatedAt":{"type":"string","nullable":true},"lastSyncedAt":{"type":"string","nullable":true},"lastError":{"type":"string","nullable":true},"participants":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"email":{"type":"string"},"name":{"type":"string","nullable":true},"id":{"type":"string","nullable":true}},"required":["email"]},"nullable":true},"history":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"at":{"type":"string"},"status":{"type":"string"},"message":{"type":"string","nullable":true},"id":{"type":"string","nullable":true}},"required":["at","status"]},"nullable":true}},"required":[]},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["decision"]}},"required":["blockType"]},{"type":"object","additionalProperties":false,"properties":{"email":{"description":"The email owned by this step.","oneOf":[{"type":"string","nullable":true},{"$ref":"#/components/schemas/Email"}]},"autoSend":{"description":"Sent automatically by the flow rather than composed manually.","type":"boolean","nullable":true},"recipientRoles":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Role"}]},"nullable":true},"recipientUsers":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"nullable":true},"ccRoles":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Role"}]},"nullable":true},"ccUsers":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"nullable":true},"bccRoles":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Role"}]},"nullable":true},"bccUsers":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"nullable":true},"googleCalendar":{"description":"Durable Google Calendar projection or explicitly linked event.","type":"object","additionalProperties":false,"properties":{"accountSubject":{"type":"string","nullable":true},"ownerUserId":{"type":"string","nullable":true},"calendarId":{"type":"string","nullable":true},"eventId":{"type":"string","nullable":true},"timeBlockId":{"type":"string","nullable":true},"projectionGeneration":{"type":"string","nullable":true},"sessionEvents":{"description":"Google events projected from this step's sessions in the linked account and calendar.","type":"array","items":{"type":"object","additionalProperties":false,"properties":{"timeBlockId":{"type":"string"},"eventId":{"type":"string"},"pending":{"type":"boolean","nullable":true},"id":{"type":"string","nullable":true}},"required":["timeBlockId","eventId"]},"nullable":true},"recurringEventId":{"type":"string","nullable":true},"originalStartTime":{"type":"string","nullable":true},"source":{"type":"string","enum":["sekential","google"],"nullable":true},"syncStatus":{"type":"string","enum":["linked","syncing","requires-attention","error"],"nullable":true},"etag":{"type":"string","nullable":true},"eventUpdatedAt":{"type":"string","nullable":true},"lastSyncedAt":{"type":"string","nullable":true},"lastError":{"type":"string","nullable":true},"participants":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"email":{"type":"string"},"name":{"type":"string","nullable":true},"id":{"type":"string","nullable":true}},"required":["email"]},"nullable":true},"history":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"at":{"type":"string"},"status":{"type":"string"},"message":{"type":"string","nullable":true},"id":{"type":"string","nullable":true}},"required":["at","status"]},"nullable":true}},"required":[]},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["email"]}},"required":["blockType"]}]}},"comments":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"content":{"type":"string"},"author":{"description":"Deprecated since v0.10.4. This field will become optional: it is empty once the member's account is deleted.","oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}],"deprecated":true,"x-sekential-deprecation":{"since":"v0.10.4"}},"createdAt":{"type":"string"},"visibility":{"type":"string","enum":["internal","external"]},"mentions":{"description":"Users mentioned in this comment's content via @mention; server-validated on write.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"nullable":true},"aiWritten":{"description":"Posted by the AI on the author's behalf.","type":"boolean","nullable":true},"id":{"type":"string","nullable":true}},"required":["content","author","createdAt","visibility"]},"nullable":true},"lastCommentAt":{"type":"string","nullable":true},"startedAt":{"description":"When this record actually started. Auto-set on first start.","type":"string","nullable":true},"completedAt":{"description":"When this work was completed. Auto-set when marked done.","type":"string","nullable":true},"endedAt":{"description":"When this record reached a terminal state (completed or cancelled). Auto-set on first terminal state.","type":"string","nullable":true},"archivedAt":{"description":"When this record was archived. Null when active.","type":"string","nullable":true},"internalAssets":{"oneOf":[{"type":"string","nullable":true},{"$ref":"#/components/schemas/Asset"}]},"externalAssets":{"oneOf":[{"type":"string","nullable":true},{"$ref":"#/components/schemas/Asset"}]},"permissions":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"entity":{"oneOf":[{"type":"object","additionalProperties":false,"properties":{"relationTo":{"enum":["users"]},"value":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]}},"required":["value","relationTo"]},{"type":"object","additionalProperties":false,"properties":{"relationTo":{"enum":["groups"]},"value":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Group"}]}},"required":["value","relationTo"]}]},"level":{"type":"number"},"origin":{"description":"Document where this permission was declared and can be edited.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"inheritedFrom":{"description":"Immediate parent that synchronized this read-only entry.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"id":{"type":"string","nullable":true}},"required":["entity","level"]},"nullable":true},"updatedAt":{"type":"string"},"createdAt":{"type":"string"}},"required":["id","number","type","title","playbook","state","priority","details","updatedAt","createdAt"]},"Role":{"type":"object","additionalProperties":false,"title":"Role","properties":{"id":{"type":"string"},"name":{"type":"string"},"description":{"type":"string","nullable":true},"internal":{"type":"boolean"},"origin":{"description":"Playbook ad-hoc roles are hidden roles used for one-off step participants.","type":"string","enum":["template","playbook-ad-hoc"]},"playbook":{"oneOf":[{"type":"string","nullable":true},{"$ref":"#/components/schemas/Playbook"}]},"templateVersion":{"oneOf":[{"type":"string","nullable":true},{"$ref":"#/components/schemas/PlaybookTemplateVersion"}]},"user":{"oneOf":[{"type":"string","nullable":true},{"$ref":"#/components/schemas/User"}]},"archivedAt":{"description":"When this record was archived. Null when active.","type":"string","nullable":true},"permissions":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"entity":{"oneOf":[{"type":"object","additionalProperties":false,"properties":{"relationTo":{"enum":["users"]},"value":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]}},"required":["value","relationTo"]},{"type":"object","additionalProperties":false,"properties":{"relationTo":{"enum":["groups"]},"value":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Group"}]}},"required":["value","relationTo"]}]},"level":{"type":"number"},"origin":{"description":"Document where this permission was declared and can be edited.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"inheritedFrom":{"description":"Immediate parent that synchronized this read-only entry.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"id":{"type":"string","nullable":true}},"required":["entity","level"]},"nullable":true},"updatedAt":{"type":"string"},"createdAt":{"type":"string"}},"required":["id","name","internal","origin","updatedAt","createdAt"]},"PlaybookTemplateVersion":{"type":"object","additionalProperties":false,"title":"Playbook Template Version","properties":{"id":{"type":"string"},"playbookTemplate":{"description":"Reusable template identity that owns this version.","oneOf":[{"type":"string","nullable":true},{"$ref":"#/components/schemas/PlaybookTemplate"}]},"playbook":{"description":"Live record that owns this standalone editable version.","oneOf":[{"type":"string","nullable":true},{"$ref":"#/components/schemas/Playbook"}]},"sourceVersion":{"description":"Pinned source version used to create this version asynchronously.","oneOf":[{"type":"string","nullable":true},{"$ref":"#/components/schemas/PlaybookTemplateVersion"}]},"portalPages":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"page":{"oneOf":[{"type":"string","nullable":true},{"$ref":"#/components/schemas/Page"}]},"order":{"type":"number"},"id":{"type":"string","nullable":true}},"required":["order"]},"nullable":true},"flow":{"type":"object","additionalProperties":false,"properties":{"type":{"type":"string","enum":["journey","playbook"]},"nodes":{"type":"array","items":{"oneOf":[{"type":"object","additionalProperties":false,"properties":{"nodeId":{"type":"string"},"systemRole":{"type":"string","enum":["start","root-paths","default-group","flow-out"],"nullable":true},"containerId":{"description":"The containing node id: a Flow Group, or the step this one is a substep of.","type":"string","nullable":true},"isMilestone":{"description":"Marks this node as a key moment for flow summaries and milestone views.","type":"boolean","nullable":true},"label":{"type":"string","nullable":true},"skill":{"type":"string","nullable":true},"skillOwner":{"oneOf":[{"type":"string","nullable":true},{"$ref":"#/components/schemas/User"}]},"agent":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"instruction":{"description":"The bounded instruction the AI should execute in the current flow context.","type":"string"},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["node-agent"]}},"required":["blockType","nodeId","agent","instruction"]},{"type":"object","additionalProperties":false,"properties":{"nodeId":{"type":"string"},"systemRole":{"type":"string","enum":["start","root-paths","default-group","flow-out"],"nullable":true},"containerId":{"description":"The containing node id: a Flow Group, or the step this one is a substep of.","type":"string","nullable":true},"isMilestone":{"description":"Marks this node as a key moment for flow summaries and milestone views.","type":"boolean","nullable":true},"label":{"type":"string","nullable":true},"description":{"type":"string","nullable":true},"instructions":{"description":"Agent-facing instructions copied to the live step.","type":"string","nullable":true},"duration":{"type":"number","nullable":true},"assignedRoles":{"description":"Internal assignees receive Reader access to the live playbook and parent journey.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Role"}]},"nullable":true},"assignedUsers":{"description":"Internal assignees receive Reader access to the live playbook and parent journey.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"nullable":true},"watcherRoles":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Role"}]},"nullable":true},"watchers":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"nullable":true},"choices":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"handleId":{"type":"string","nullable":true},"label":{"type":"string","nullable":true},"id":{"type":"string","nullable":true}},"required":[]},"nullable":true},"eachAssignee":{"type":"boolean","nullable":true},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["node-decision"]}},"required":["blockType","nodeId"]},{"type":"object","additionalProperties":false,"properties":{"nodeId":{"type":"string"},"systemRole":{"type":"string","enum":["start","root-paths","default-group","flow-out"],"nullable":true},"containerId":{"description":"The containing node id: a Flow Group, or the step this one is a substep of.","type":"string","nullable":true},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["node-flow-out"]}},"required":["blockType","nodeId"]},{"type":"object","additionalProperties":false,"properties":{"nodeId":{"type":"string"},"systemRole":{"type":"string","enum":["start","root-paths","default-group","flow-out"],"nullable":true},"containerId":{"description":"The containing node id: a Flow Group, or the step this one is a substep of.","type":"string","nullable":true},"label":{"type":"string","nullable":true},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["node-flow-group"]}},"required":["blockType","nodeId"]},{"type":"object","additionalProperties":false,"properties":{"nodeId":{"type":"string"},"systemRole":{"type":"string","enum":["start","root-paths","default-group","flow-out"],"nullable":true},"containerId":{"description":"The containing node id: a Flow Group, or the step this one is a substep of.","type":"string","nullable":true},"isMilestone":{"description":"Marks this node as a key moment for flow summaries and milestone views.","type":"boolean","nullable":true},"label":{"type":"string","nullable":true},"description":{"type":"string","nullable":true},"instructions":{"description":"Agent-facing instructions copied to the live step.","type":"string","nullable":true},"form":{"oneOf":[{"type":"string","nullable":true},{"$ref":"#/components/schemas/Form"}]},"assignedRoles":{"description":"Internal assignees receive Reader access to the live playbook and parent journey.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Role"}]},"nullable":true},"assignedUsers":{"description":"Internal assignees receive Reader access to the live playbook and parent journey.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"nullable":true},"watcherRoles":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Role"}]},"nullable":true},"watchers":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"nullable":true},"priority":{"type":"string","enum":["low","medium","high"],"nullable":true},"documents":{"description":"Drive documents copied to the live step when this node runs.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Asset"}]},"nullable":true},"documentRecipientRoles":{"description":"Client roles that receive the selected documents when this node executes.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Role"}]},"nullable":true},"documentRecipientUsers":{"description":"Specific participants that receive the selected documents when this node executes.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"nullable":true},"eachAssignee":{"type":"boolean","nullable":true},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["node-form"]}},"required":["blockType","nodeId"]},{"type":"object","additionalProperties":false,"properties":{"nodeId":{"type":"string"},"systemRole":{"type":"string","enum":["start","root-paths","default-group","flow-out"],"nullable":true},"containerId":{"description":"The containing node id: a Flow Group, or the step this one is a substep of.","type":"string","nullable":true},"method":{"type":"string","enum":["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"],"nullable":true},"url":{"description":"External URL to call. Local and private network targets are blocked.","type":"string","nullable":true},"credential":{"oneOf":[{"type":"string","nullable":true},{"type":"object","additionalProperties":true,"description":"Related record; fields depend on access."}]},"headers":{"description":"Optional JSON object of request headers.","type":"string","nullable":true},"queryParams":{"description":"Optional JSON object of query parameters.","type":"string","nullable":true},"bodyType":{"type":"string","enum":["none","json","text"],"nullable":true},"body":{"type":"string","nullable":true},"timeoutMs":{"type":"number","nullable":true},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["node-http-request"]}},"required":["blockType","nodeId"]},{"type":"object","additionalProperties":false,"properties":{"nodeId":{"type":"string"},"systemRole":{"type":"string","enum":["start","root-paths","default-group","flow-out"],"nullable":true},"containerId":{"description":"The containing node id: a Flow Group, or the step this one is a substep of.","type":"string","nullable":true},"conditionSource":{"type":"string","enum":["variable","decision","agent"],"nullable":true},"variable":{"oneOf":[{"type":"object","additionalProperties":false,"properties":{"relationTo":{"enum":["variables"]},"value":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Variable"}]}},"required":["value","relationTo"],"nullable":true},{"type":"object","additionalProperties":false,"properties":{"relationTo":{"enum":["playbook-template-variables"]},"value":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/PlaybookTemplateVariable"}]}},"required":["value","relationTo"],"nullable":true}]},"decisionNodeId":{"description":"Node id of the decision whose selected choice is used.","type":"string","nullable":true},"decisionChoice":{"description":"Choice handle to compare against.","type":"string","nullable":true},"skill":{"type":"string","nullable":true},"skillOwner":{"oneOf":[{"type":"string","nullable":true},{"$ref":"#/components/schemas/User"}]},"agent":{"oneOf":[{"type":"string","nullable":true},{"$ref":"#/components/schemas/User"}]},"question":{"description":"Asked to the agent with the playbook, its journey and its customer as context; its Yes or No answer picks the output.","type":"string","nullable":true},"operator":{"type":"string","enum":["equals","not_equals","less","less_or_equal","greater","greater_or_equal"],"nullable":true},"compareToNow":{"description":"For date variables, compare against the current date (UTC calendar day) instead of a fixed value.","type":"boolean","nullable":true},"compareTo":{"type":"array","items":{"oneOf":[{"type":"object","additionalProperties":false,"properties":{"data":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/ObjectRecord"}]},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["object-reference-value"]}},"required":["blockType","data"]},{"type":"object","additionalProperties":false,"properties":{"data":{"type":"string"},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["text"]}},"required":["blockType","data"]},{"type":"object","additionalProperties":false,"properties":{"data":{"type":"number"},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["number"]}},"required":["blockType","data"]},{"type":"object","additionalProperties":false,"properties":{"data":{"type":"boolean"},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["boolean"]}},"required":["blockType","data"]},{"type":"object","additionalProperties":false,"properties":{"data":{"type":"string"},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["date"]}},"required":["blockType","data"]},{"type":"object","additionalProperties":false,"properties":{"data":{"type":"string"},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["select"]}},"required":["blockType","data"]}]},"nullable":true},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["node-if"]}},"required":["blockType","nodeId"]},{"type":"object","additionalProperties":false,"properties":{"nodeId":{"type":"string"},"systemRole":{"type":"string","enum":["start","root-paths","default-group","flow-out"],"nullable":true},"containerId":{"description":"The containing node id: a Flow Group, or the step this one is a substep of.","type":"string","nullable":true},"isMilestone":{"description":"Marks this node as a key moment for flow summaries and milestone views.","type":"boolean","nullable":true},"label":{"type":"string","nullable":true},"description":{"type":"string","nullable":true},"instructions":{"description":"Agent-facing instructions copied to the live step.","type":"string","nullable":true},"duration":{"type":"number","nullable":true},"joinLink":{"type":"string","nullable":true},"assignedRoles":{"description":"Internal assignees receive Reader access to the live playbook and parent journey.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Role"}]},"nullable":true},"assignedUsers":{"description":"Internal assignees receive Reader access to the live playbook and parent journey.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"nullable":true},"watcherRoles":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Role"}]},"nullable":true},"watchers":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"nullable":true},"participantRoles":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Role"}]},"nullable":true},"participantUsers":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"nullable":true},"priority":{"type":"string","enum":["low","medium","high"],"nullable":true},"documents":{"description":"Drive documents copied to the live step when this node runs.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Asset"}]},"nullable":true},"documentRecipientRoles":{"description":"Client roles that receive the selected documents when this node executes.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Role"}]},"nullable":true},"documentRecipientUsers":{"description":"Specific participants that receive the selected documents when this node executes.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"nullable":true},"eachAssignee":{"type":"boolean","nullable":true},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["node-meeting"]}},"required":["blockType","nodeId"]},{"type":"object","additionalProperties":false,"properties":{"nodeId":{"type":"string"},"systemRole":{"type":"string","enum":["start","root-paths","default-group","flow-out"],"nullable":true},"containerId":{"description":"The containing node id: a Flow Group, or the step this one is a substep of.","type":"string","nullable":true},"page":{"oneOf":[{"type":"string","nullable":true},{"$ref":"#/components/schemas/Page"}]},"pageStates":{"type":"array","items":{"type":"string"},"nullable":true},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["node-on-page-state-change"]}},"required":["blockType","nodeId"]},{"type":"object","additionalProperties":false,"properties":{"nodeId":{"type":"string"},"systemRole":{"type":"string","enum":["start","root-paths","default-group","flow-out"],"nullable":true},"containerId":{"description":"The containing node id: a Flow Group, or the step this one is a substep of.","type":"string","nullable":true},"playbookVersion":{"oneOf":[{"type":"string","nullable":true},{"$ref":"#/components/schemas/PlaybookTemplateVersion"}]},"milestoneNodeId":{"description":"Node id of a milestone node from the selected playbook version.","type":"string","nullable":true},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["node-on-playbook-milestone"]}},"required":["blockType","nodeId"]},{"type":"object","additionalProperties":false,"properties":{"nodeId":{"type":"string"},"systemRole":{"type":"string","enum":["start","root-paths","default-group","flow-out"],"nullable":true},"containerId":{"description":"The containing node id: a Flow Group, or the step this one is a substep of.","type":"string","nullable":true},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["node-on-playbook-start"]}},"required":["blockType","nodeId"]},{"type":"object","additionalProperties":false,"properties":{"nodeId":{"type":"string"},"systemRole":{"type":"string","enum":["start","root-paths","default-group","flow-out"],"nullable":true},"containerId":{"description":"The containing node id: a Flow Group, or the step this one is a substep of.","type":"string","nullable":true},"mode":{"type":"string","enum":["all","any"]},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["node-join"]}},"required":["blockType","nodeId","mode"]},{"type":"object","additionalProperties":false,"properties":{"nodeId":{"type":"string"},"systemRole":{"type":"string","enum":["start","root-paths","default-group","flow-out"],"nullable":true},"containerId":{"description":"The containing node id: a Flow Group, or the step this one is a substep of.","type":"string","nullable":true},"paths":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"handleId":{"type":"string"},"label":{"type":"string"},"id":{"type":"string","nullable":true}},"required":["handleId","label"]},"nullable":true},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["node-paths"]}},"required":["blockType","nodeId"]},{"type":"object","additionalProperties":false,"properties":{"nodeId":{"type":"string"},"systemRole":{"type":"string","enum":["start","root-paths","default-group","flow-out"],"nullable":true},"containerId":{"description":"The containing node id: a Flow Group, or the step this one is a substep of.","type":"string","nullable":true},"label":{"type":"string","nullable":true},"playbook":{"description":"Canonical live Playbook materialized for this Journey flow node.","oneOf":[{"type":"string","nullable":true},{"$ref":"#/components/schemas/Playbook"}]},"playbookTemplate":{"description":"Reusable Playbook selected by a Journey template. Its latest published version is resolved when the live Journey flow is created.","oneOf":[{"type":"string","nullable":true},{"$ref":"#/components/schemas/PlaybookTemplate"}]},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["node-playbook"]}},"required":["blockType","nodeId"]},{"type":"object","additionalProperties":false,"properties":{"nodeId":{"type":"string"},"systemRole":{"type":"string","enum":["start","root-paths","default-group","flow-out"],"nullable":true},"containerId":{"description":"The containing node id: a Flow Group, or the step this one is a substep of.","type":"string","nullable":true},"isMilestone":{"description":"Marks this node as a key moment for flow summaries and milestone views.","type":"boolean","nullable":true},"label":{"type":"string","nullable":true},"description":{"type":"string","nullable":true},"instructions":{"description":"Agent-facing instructions copied to the live step.","type":"string","nullable":true},"assignedRoles":{"description":"Internal assignees receive Reader access to the live playbook and parent journey.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Role"}]},"nullable":true},"assignedUsers":{"description":"Internal assignees receive Reader access to the live playbook and parent journey.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"nullable":true},"watcherRoles":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Role"}]},"nullable":true},"watchers":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"nullable":true},"priority":{"type":"string","enum":["low","medium","high"],"nullable":true},"documents":{"description":"Drive documents copied to the live step when this node runs.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Asset"}]},"nullable":true},"documentRecipientRoles":{"description":"Client roles that receive the selected documents when this node executes.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Role"}]},"nullable":true},"documentRecipientUsers":{"description":"Specific participants that receive the selected documents when this node executes.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"nullable":true},"eachAssignee":{"type":"boolean","nullable":true},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["node-request-file"]}},"required":["blockType","nodeId"]},{"type":"object","additionalProperties":false,"properties":{"nodeId":{"type":"string"},"systemRole":{"type":"string","enum":["start","root-paths","default-group","flow-out"],"nullable":true},"containerId":{"description":"The containing node id: a Flow Group, or the step this one is a substep of.","type":"string","nullable":true},"isMilestone":{"description":"Marks this node as a key moment for flow summaries and milestone views.","type":"boolean","nullable":true},"label":{"type":"string","nullable":true},"description":{"type":"string","nullable":true},"instructions":{"description":"Agent-facing instructions copied to the live step.","type":"string","nullable":true},"email":{"oneOf":[{"type":"string","nullable":true},{"$ref":"#/components/schemas/Email"}]},"autoSend":{"description":"Sent automatically by the flow rather than composed manually.","type":"boolean","nullable":true},"assignedRoles":{"description":"Internal assignees receive Reader access to the live playbook and parent journey.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Role"}]},"nullable":true},"assignedUsers":{"description":"Internal assignees receive Reader access to the live playbook and parent journey.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"nullable":true},"watcherRoles":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Role"}]},"nullable":true},"watchers":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"nullable":true},"recipientRoles":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Role"}]},"nullable":true},"recipientUsers":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"nullable":true},"ccRoles":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Role"}]},"nullable":true},"ccUsers":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"nullable":true},"bccRoles":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Role"}]},"nullable":true},"bccUsers":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"nullable":true},"eachAssignee":{"type":"boolean","nullable":true},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["node-email"]}},"required":["blockType","nodeId"]},{"type":"object","additionalProperties":false,"properties":{"nodeId":{"type":"string"},"systemRole":{"type":"string","enum":["start","root-paths","default-group","flow-out"],"nullable":true},"containerId":{"description":"The containing node id: a Flow Group, or the step this one is a substep of.","type":"string","nullable":true},"targetNodeId":{"description":"Node id of the step whose state should change.","type":"string","nullable":true},"targetState":{"type":"string","enum":["todo","in-progress","done","skipped","cancelled","to-plan","scheduled","requires-attention","finished","pending","requested","uploaded","to-complete","completed","to-send","sent"],"nullable":true},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["node-set-step-state"]}},"required":["blockType","nodeId"]},{"type":"object","additionalProperties":false,"properties":{"nodeId":{"type":"string"},"systemRole":{"type":"string","enum":["start","root-paths","default-group","flow-out"],"nullable":true},"containerId":{"description":"The containing node id: a Flow Group, or the step this one is a substep of.","type":"string","nullable":true},"page":{"oneOf":[{"type":"string","nullable":true},{"$ref":"#/components/schemas/Page"}]},"pageStates":{"type":"array","items":{"type":"string"},"nullable":true},"targetState":{"type":"string","nullable":true},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["node-set-page-state"]}},"required":["blockType","nodeId"]},{"type":"object","additionalProperties":false,"properties":{"nodeId":{"type":"string"},"systemRole":{"type":"string","enum":["start","root-paths","default-group","flow-out"],"nullable":true},"containerId":{"description":"The containing node id: a Flow Group, or the step this one is a substep of.","type":"string","nullable":true},"state":{"type":"string","enum":["draft","started","paused","skipped","cancelled"]},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["node-set-playbook-state"]}},"required":["blockType","nodeId","state"]},{"type":"object","additionalProperties":false,"properties":{"nodeId":{"type":"string"},"systemRole":{"type":"string","enum":["start","root-paths","default-group","flow-out"],"nullable":true},"containerId":{"description":"The containing node id: a Flow Group, or the step this one is a substep of.","type":"string","nullable":true},"variable":{"oneOf":[{"type":"object","additionalProperties":false,"properties":{"relationTo":{"enum":["variables"]},"value":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Variable"}]}},"required":["value","relationTo"],"nullable":true},{"type":"object","additionalProperties":false,"properties":{"relationTo":{"enum":["playbook-template-variables"]},"value":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/PlaybookTemplateVariable"}]}},"required":["value","relationTo"],"nullable":true}]},"value":{"type":"array","items":{"oneOf":[{"type":"object","additionalProperties":false,"properties":{"data":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/ObjectRecord"}]},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["object-reference-value"]}},"required":["blockType","data"]},{"type":"object","additionalProperties":false,"properties":{"data":{"type":"string"},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["text"]}},"required":["blockType","data"]},{"type":"object","additionalProperties":false,"properties":{"data":{"type":"number"},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["number"]}},"required":["blockType","data"]},{"type":"object","additionalProperties":false,"properties":{"data":{"type":"boolean"},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["boolean"]}},"required":["blockType","data"]},{"type":"object","additionalProperties":false,"properties":{"data":{"type":"string"},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["date"]}},"required":["blockType","data"]},{"type":"object","additionalProperties":false,"properties":{"data":{"type":"string"},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["select"]}},"required":["blockType","data"]}]},"nullable":true},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["node-set-variable-value"]}},"required":["blockType","nodeId"]},{"type":"object","additionalProperties":false,"properties":{"nodeId":{"type":"string"},"systemRole":{"type":"string","enum":["start","root-paths","default-group","flow-out"],"nullable":true},"containerId":{"description":"The containing node id: a Flow Group, or the step this one is a substep of.","type":"string","nullable":true},"isMilestone":{"description":"Marks this node as a key moment for flow summaries and milestone views.","type":"boolean","nullable":true},"label":{"type":"string","nullable":true},"description":{"type":"string","nullable":true},"instructions":{"description":"Agent-facing instructions copied to the live step.","type":"string","nullable":true},"duration":{"type":"number","nullable":true},"assignedRoles":{"description":"Internal assignees receive Reader access to the live playbook and parent journey.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Role"}]},"nullable":true},"assignedUsers":{"description":"Internal assignees receive Reader access to the live playbook and parent journey.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"nullable":true},"reviewerRoles":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Role"}]},"nullable":true},"reviewerUsers":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"nullable":true},"watcherRoles":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Role"}]},"nullable":true},"watchers":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"nullable":true},"priority":{"type":"string","enum":["low","medium","high"],"nullable":true},"documents":{"description":"Drive documents copied to the live step when this node runs.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Asset"}]},"nullable":true},"documentRecipientRoles":{"description":"Client roles that receive the selected documents when this node executes.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Role"}]},"nullable":true},"documentRecipientUsers":{"description":"Specific participants that receive the selected documents when this node executes.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"nullable":true},"eachAssignee":{"type":"boolean","nullable":true},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["node-task"]}},"required":["blockType","nodeId"]},{"type":"object","additionalProperties":false,"properties":{"nodeId":{"type":"string"},"systemRole":{"type":"string","enum":["start","root-paths","default-group","flow-out"],"nullable":true},"containerId":{"description":"The containing node id: a Flow Group, or the step this one is a substep of.","type":"string","nullable":true},"duration":{"type":"number","nullable":true},"unit":{"type":"string","enum":["minutes","hours","days","weeks","months","years"],"nullable":true},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["node-wait-for"]}},"required":["blockType","nodeId"]},{"type":"object","additionalProperties":false,"properties":{"nodeId":{"type":"string"},"systemRole":{"type":"string","enum":["start","root-paths","default-group","flow-out"],"nullable":true},"containerId":{"description":"The containing node id: a Flow Group, or the step this one is a substep of.","type":"string","nullable":true},"date":{"type":"string","nullable":true},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["node-wait-until"]}},"required":["blockType","nodeId"]},{"type":"object","additionalProperties":false,"properties":{"nodeId":{"type":"string"},"systemRole":{"type":"string","enum":["start","root-paths","default-group","flow-out"],"nullable":true},"containerId":{"description":"The containing node id: a Flow Group, or the step this one is a substep of.","type":"string","nullable":true},"webhook":{"description":"Version-owned endpoint invoked by this trigger.","oneOf":[{"type":"string","nullable":true},{"$ref":"#/components/schemas/Webhook"}]},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["node-webhook"]}},"required":["blockType","nodeId"]}]},"nullable":true},"edges":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"edgeId":{"type":"string"},"source":{"type":"string"},"target":{"type":"string"},"sourceHandle":{"type":"string","nullable":true},"targetHandle":{"type":"string","nullable":true},"systemRole":{"type":"string","enum":["start-to-root","default-group-entry"],"nullable":true},"id":{"type":"string","nullable":true}},"required":["edgeId","source","target"]},"nullable":true}},"required":["type"]},"archivedAt":{"description":"When this record was archived. Null when active.","type":"string","nullable":true},"internalAssets":{"oneOf":[{"type":"string","nullable":true},{"$ref":"#/components/schemas/Asset"}]},"externalAssets":{"oneOf":[{"type":"string","nullable":true},{"$ref":"#/components/schemas/Asset"}]},"permissions":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"entity":{"oneOf":[{"type":"object","additionalProperties":false,"properties":{"relationTo":{"enum":["users"]},"value":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]}},"required":["value","relationTo"]},{"type":"object","additionalProperties":false,"properties":{"relationTo":{"enum":["groups"]},"value":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Group"}]}},"required":["value","relationTo"]}]},"level":{"type":"number"},"origin":{"description":"Document where this permission was declared and can be edited.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"inheritedFrom":{"description":"Immediate parent that synchronized this read-only entry.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"id":{"type":"string","nullable":true}},"required":["entity","level"]},"nullable":true},"creationProgress":{"nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"versionStatus":{"description":"Pending versions are being copied asynchronously and cannot be edited yet.","type":"string","enum":["pending","ready","corrupted"]},"creationJob":{"description":"Payload job for createStandaloneVersionWorkflow.","oneOf":[{"type":"string","nullable":true},{"type":"object","additionalProperties":true,"description":"Related record; fields depend on access."}]},"creationTotalTasks":{"type":"number","nullable":true},"creationCompletedTasks":{"type":"number","nullable":true},"creationContext":{"nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"versionNumber":{"type":"number","nullable":true},"publishedAt":{"type":"string","nullable":true},"publishedBy":{"oneOf":[{"type":"string","nullable":true},{"$ref":"#/components/schemas/User"}]},"publishedByName":{"description":"Computed from publishedBy: not every viewer can read the users collection, so this reads the name with elevated access instead of relying on a populated relationship.","type":"string","nullable":true},"publishNote":{"type":"string","nullable":true},"updatedAt":{"type":"string"},"createdAt":{"type":"string"}},"required":["id","flow","versionStatus","updatedAt","createdAt"]},"ObjectRecord":{"type":"object","additionalProperties":false,"title":"Object Record","properties":{"id":{"type":"string"},"name":{"type":"string"},"object":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Object"}]},"objectSlug":{"type":"string","nullable":true},"integrationLink":{"oneOf":[{"type":"string","nullable":true},{"type":"object","additionalProperties":true,"description":"Related record; fields depend on access."}]},"integrationAvailable":{"type":"boolean","nullable":true},"integrationIncluded":{"type":"boolean","nullable":true},"archivedAt":{"description":"When this record was archived. Null when active.","type":"string","nullable":true},"permissions":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"entity":{"oneOf":[{"type":"object","additionalProperties":false,"properties":{"relationTo":{"enum":["users"]},"value":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]}},"required":["value","relationTo"]},{"type":"object","additionalProperties":false,"properties":{"relationTo":{"enum":["groups"]},"value":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Group"}]}},"required":["value","relationTo"]}]},"level":{"type":"number"},"origin":{"description":"Document where this permission was declared and can be edited.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"inheritedFrom":{"description":"Immediate parent that synchronized this read-only entry.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"id":{"type":"string","nullable":true}},"required":["entity","level"]},"nullable":true},"updatedAt":{"type":"string"},"createdAt":{"type":"string"}},"required":["id","name","object","updatedAt","createdAt"]},"Object":{"type":"object","additionalProperties":false,"title":"Object","properties":{"id":{"type":"string"},"name":{"type":"string"},"description":{"type":"string","nullable":true},"slug":{"type":"string"},"icon":{"type":"string","enum":["package","box","boxes","tag","layers","database","server","globe","briefcase","building-2","factory","truck","wrench","puzzle","star","zap","shield","cpu","shopping-cart","file-text","handshake","route"]},"integrationKey":{"type":"string","nullable":true},"integrationEnabled":{"type":"boolean","nullable":true},"integrationSyncEnabled":{"type":"boolean","nullable":true},"archivedAt":{"description":"When this record was archived. Null when active.","type":"string","nullable":true},"updatedAt":{"type":"string"},"createdAt":{"type":"string"}},"required":["id","name","slug","icon","updatedAt","createdAt"]},"PlaybookTemplateVariable":{"type":"object","additionalProperties":false,"title":"Playbook Template Variable","properties":{"id":{"type":"string"},"playbookTemplateVersion":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/PlaybookTemplateVersion"}]},"name":{"type":"string"},"slug":{"type":"string"},"required":{"type":"boolean"},"type":{"type":"array","items":{"oneOf":[{"type":"object","additionalProperties":false,"properties":{"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["object-reference"]}},"required":["blockType"]},{"type":"object","additionalProperties":false,"properties":{"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["text"]}},"required":["blockType"]},{"type":"object","additionalProperties":false,"properties":{"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["number"]}},"required":["blockType"]},{"type":"object","additionalProperties":false,"properties":{"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["boolean"]}},"required":["blockType"]},{"type":"object","additionalProperties":false,"properties":{"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["date"]}},"required":["blockType"]},{"type":"object","additionalProperties":false,"properties":{"options":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"label":{"type":"string"},"value":{"type":"string"},"id":{"type":"string","nullable":true}},"required":["label","value"]}},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["select"]}},"required":["blockType","options"]}]}},"value":{"type":"array","items":{"oneOf":[{"type":"object","additionalProperties":false,"properties":{"data":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/ObjectRecord"}]},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["object-reference-value"]}},"required":["blockType","data"]},{"type":"object","additionalProperties":false,"properties":{"data":{"type":"string"},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["text"]}},"required":["blockType","data"]},{"type":"object","additionalProperties":false,"properties":{"data":{"type":"number"},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["number"]}},"required":["blockType","data"]},{"type":"object","additionalProperties":false,"properties":{"data":{"type":"boolean"},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["boolean"]}},"required":["blockType","data"]},{"type":"object","additionalProperties":false,"properties":{"data":{"type":"string"},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["date"]}},"required":["blockType","data"]},{"type":"object","additionalProperties":false,"properties":{"data":{"type":"string"},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["select"]}},"required":["blockType","data"]}]},"nullable":true},"archivedAt":{"description":"When this record was archived. Null when active.","type":"string","nullable":true},"permissions":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"entity":{"oneOf":[{"type":"object","additionalProperties":false,"properties":{"relationTo":{"enum":["users"]},"value":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]}},"required":["value","relationTo"]},{"type":"object","additionalProperties":false,"properties":{"relationTo":{"enum":["groups"]},"value":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Group"}]}},"required":["value","relationTo"]}]},"level":{"type":"number"},"origin":{"description":"Document where this permission was declared and can be edited.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"inheritedFrom":{"description":"Immediate parent that synchronized this read-only entry.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"id":{"type":"string","nullable":true}},"required":["entity","level"]},"nullable":true},"updatedAt":{"type":"string"},"createdAt":{"type":"string"}},"required":["id","playbookTemplateVersion","name","slug","required","type","updatedAt","createdAt"]},"Variable":{"type":"object","additionalProperties":false,"title":"Variable","properties":{"id":{"type":"string"},"name":{"type":"string"},"description":{"type":"string","nullable":true},"required":{"type":"boolean"},"object":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Object"}]},"objectSlug":{"type":"string","nullable":true},"type":{"type":"array","items":{"oneOf":[{"type":"object","additionalProperties":false,"properties":{"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["object-reference"]}},"required":["blockType"]},{"type":"object","additionalProperties":false,"properties":{"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["text"]}},"required":["blockType"]},{"type":"object","additionalProperties":false,"properties":{"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["number"]}},"required":["blockType"]},{"type":"object","additionalProperties":false,"properties":{"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["boolean"]}},"required":["blockType"]},{"type":"object","additionalProperties":false,"properties":{"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["date"]}},"required":["blockType"]},{"type":"object","additionalProperties":false,"properties":{"options":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"label":{"type":"string"},"value":{"type":"string"},"id":{"type":"string","nullable":true}},"required":["label","value"]}},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["select"]}},"required":["blockType","options"]}]}},"defaultValue":{"type":"array","items":{"oneOf":[{"type":"object","additionalProperties":false,"properties":{"data":{"type":"string"},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["text"]}},"required":["blockType","data"]},{"type":"object","additionalProperties":false,"properties":{"data":{"type":"number"},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["number"]}},"required":["blockType","data"]},{"type":"object","additionalProperties":false,"properties":{"data":{"type":"boolean"},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["boolean"]}},"required":["blockType","data"]},{"type":"object","additionalProperties":false,"properties":{"data":{"type":"string"},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["date"]}},"required":["blockType","data"]},{"type":"object","additionalProperties":false,"properties":{"data":{"type":"string"},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["select"]}},"required":["blockType","data"]}]},"nullable":true},"archivedAt":{"description":"When this record was archived. Null when active.","type":"string","nullable":true},"updatedAt":{"type":"string"},"createdAt":{"type":"string"}},"required":["id","name","required","object","type","updatedAt","createdAt"]},"Page":{"type":"object","additionalProperties":false,"title":"Page","properties":{"id":{"type":"string"},"name":{"type":"string"},"slug":{"type":"string","nullable":true},"children":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"page":{"oneOf":[{"type":"string","nullable":true},{"$ref":"#/components/schemas/Page"}]},"order":{"type":"number"},"id":{"type":"string","nullable":true}},"required":["order"]},"nullable":true},"url":{"type":"string","nullable":true},"states":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"stateId":{"type":"string"},"content":{"nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"id":{"type":"string","nullable":true}},"required":["stateId"]}},"activeStateId":{"description":"The state shown to customers when no playbook has overridden it with a Set Page State flow node.","type":"string","nullable":true},"journeyTemplateVersion":{"oneOf":[{"type":"string","nullable":true},{"$ref":"#/components/schemas/JourneyTemplateVersion"}]},"playbookTemplateVersion":{"oneOf":[{"type":"string","nullable":true},{"$ref":"#/components/schemas/PlaybookTemplateVersion"}]},"public":{"type":"boolean","nullable":true},"archivedAt":{"description":"When this record was archived. Null when active.","type":"string","nullable":true},"permissions":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"entity":{"oneOf":[{"type":"object","additionalProperties":false,"properties":{"relationTo":{"enum":["users"]},"value":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]}},"required":["value","relationTo"]},{"type":"object","additionalProperties":false,"properties":{"relationTo":{"enum":["groups"]},"value":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Group"}]}},"required":["value","relationTo"]}]},"level":{"type":"number"},"origin":{"description":"Document where this permission was declared and can be edited.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"inheritedFrom":{"description":"Immediate parent that synchronized this read-only entry.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"id":{"type":"string","nullable":true}},"required":["entity","level"]},"nullable":true},"updatedAt":{"type":"string"},"createdAt":{"type":"string"}},"required":["id","name","states","updatedAt","createdAt"]},"JourneyTemplateVersion":{"type":"object","additionalProperties":false,"title":"Journey Template Version","properties":{"id":{"type":"string"},"journeyTemplate":{"description":"Reusable template identity that owns this version.","oneOf":[{"type":"string","nullable":true},{"$ref":"#/components/schemas/JourneyTemplate"}]},"journey":{"description":"Live record that owns this standalone editable version.","oneOf":[{"type":"string","nullable":true},{"$ref":"#/components/schemas/Journey"}]},"sourceVersion":{"description":"Pinned source version used to create this version asynchronously.","oneOf":[{"type":"string","nullable":true},{"$ref":"#/components/schemas/JourneyTemplateVersion"}]},"portalRootPage":{"oneOf":[{"type":"string","nullable":true},{"$ref":"#/components/schemas/Page"}]},"flow":{"type":"object","additionalProperties":false,"properties":{"type":{"type":"string","enum":["journey","playbook"]},"nodes":{"type":"array","items":{"oneOf":[{"type":"object","additionalProperties":false,"properties":{"nodeId":{"type":"string"},"systemRole":{"type":"string","enum":["start","root-paths","default-group","flow-out"],"nullable":true},"containerId":{"description":"The containing node id: a Flow Group, or the step this one is a substep of.","type":"string","nullable":true},"isMilestone":{"description":"Marks this node as a key moment for flow summaries and milestone views.","type":"boolean","nullable":true},"label":{"type":"string","nullable":true},"description":{"type":"string","nullable":true},"instructions":{"description":"Agent-facing instructions copied to the live step.","type":"string","nullable":true},"duration":{"type":"number","nullable":true},"assignedRoles":{"description":"Internal assignees receive Reader access to the live playbook and parent journey.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Role"}]},"nullable":true},"assignedUsers":{"description":"Internal assignees receive Reader access to the live playbook and parent journey.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"nullable":true},"watcherRoles":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Role"}]},"nullable":true},"watchers":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"nullable":true},"choices":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"handleId":{"type":"string","nullable":true},"label":{"type":"string","nullable":true},"id":{"type":"string","nullable":true}},"required":[]},"nullable":true},"eachAssignee":{"type":"boolean","nullable":true},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["node-decision"]}},"required":["blockType","nodeId"]},{"type":"object","additionalProperties":false,"properties":{"nodeId":{"type":"string"},"systemRole":{"type":"string","enum":["start","root-paths","default-group","flow-out"],"nullable":true},"containerId":{"description":"The containing node id: a Flow Group, or the step this one is a substep of.","type":"string","nullable":true},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["node-flow-out"]}},"required":["blockType","nodeId"]},{"type":"object","additionalProperties":false,"properties":{"nodeId":{"type":"string"},"systemRole":{"type":"string","enum":["start","root-paths","default-group","flow-out"],"nullable":true},"containerId":{"description":"The containing node id: a Flow Group, or the step this one is a substep of.","type":"string","nullable":true},"label":{"type":"string","nullable":true},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["node-flow-group"]}},"required":["blockType","nodeId"]},{"type":"object","additionalProperties":false,"properties":{"nodeId":{"type":"string"},"systemRole":{"type":"string","enum":["start","root-paths","default-group","flow-out"],"nullable":true},"containerId":{"description":"The containing node id: a Flow Group, or the step this one is a substep of.","type":"string","nullable":true},"isMilestone":{"description":"Marks this node as a key moment for flow summaries and milestone views.","type":"boolean","nullable":true},"label":{"type":"string","nullable":true},"description":{"type":"string","nullable":true},"instructions":{"description":"Agent-facing instructions copied to the live step.","type":"string","nullable":true},"form":{"oneOf":[{"type":"string","nullable":true},{"$ref":"#/components/schemas/Form"}]},"assignedRoles":{"description":"Internal assignees receive Reader access to the live playbook and parent journey.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Role"}]},"nullable":true},"assignedUsers":{"description":"Internal assignees receive Reader access to the live playbook and parent journey.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"nullable":true},"watcherRoles":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Role"}]},"nullable":true},"watchers":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"nullable":true},"priority":{"type":"string","enum":["low","medium","high"],"nullable":true},"documents":{"description":"Drive documents copied to the live step when this node runs.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Asset"}]},"nullable":true},"documentRecipientRoles":{"description":"Client roles that receive the selected documents when this node executes.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Role"}]},"nullable":true},"documentRecipientUsers":{"description":"Specific participants that receive the selected documents when this node executes.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"nullable":true},"eachAssignee":{"type":"boolean","nullable":true},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["node-form"]}},"required":["blockType","nodeId"]},{"type":"object","additionalProperties":false,"properties":{"nodeId":{"type":"string"},"systemRole":{"type":"string","enum":["start","root-paths","default-group","flow-out"],"nullable":true},"containerId":{"description":"The containing node id: a Flow Group, or the step this one is a substep of.","type":"string","nullable":true},"method":{"type":"string","enum":["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"],"nullable":true},"url":{"description":"External URL to call. Local and private network targets are blocked.","type":"string","nullable":true},"credential":{"oneOf":[{"type":"string","nullable":true},{"type":"object","additionalProperties":true,"description":"Related record; fields depend on access."}]},"headers":{"description":"Optional JSON object of request headers.","type":"string","nullable":true},"queryParams":{"description":"Optional JSON object of query parameters.","type":"string","nullable":true},"bodyType":{"type":"string","enum":["none","json","text"],"nullable":true},"body":{"type":"string","nullable":true},"timeoutMs":{"type":"number","nullable":true},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["node-http-request"]}},"required":["blockType","nodeId"]},{"type":"object","additionalProperties":false,"properties":{"nodeId":{"type":"string"},"systemRole":{"type":"string","enum":["start","root-paths","default-group","flow-out"],"nullable":true},"containerId":{"description":"The containing node id: a Flow Group, or the step this one is a substep of.","type":"string","nullable":true},"conditionSource":{"type":"string","enum":["variable","decision","agent"],"nullable":true},"variable":{"oneOf":[{"type":"object","additionalProperties":false,"properties":{"relationTo":{"enum":["variables"]},"value":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Variable"}]}},"required":["value","relationTo"],"nullable":true},{"type":"object","additionalProperties":false,"properties":{"relationTo":{"enum":["playbook-template-variables"]},"value":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/PlaybookTemplateVariable"}]}},"required":["value","relationTo"],"nullable":true}]},"decisionNodeId":{"description":"Node id of the decision whose selected choice is used.","type":"string","nullable":true},"decisionChoice":{"description":"Choice handle to compare against.","type":"string","nullable":true},"skill":{"type":"string","nullable":true},"skillOwner":{"oneOf":[{"type":"string","nullable":true},{"$ref":"#/components/schemas/User"}]},"agent":{"oneOf":[{"type":"string","nullable":true},{"$ref":"#/components/schemas/User"}]},"question":{"description":"Asked to the agent with the playbook, its journey and its customer as context; its Yes or No answer picks the output.","type":"string","nullable":true},"operator":{"type":"string","enum":["equals","not_equals","less","less_or_equal","greater","greater_or_equal"],"nullable":true},"compareToNow":{"description":"For date variables, compare against the current date (UTC calendar day) instead of a fixed value.","type":"boolean","nullable":true},"compareTo":{"type":"array","items":{"oneOf":[{"type":"object","additionalProperties":false,"properties":{"data":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/ObjectRecord"}]},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["object-reference-value"]}},"required":["blockType","data"]},{"type":"object","additionalProperties":false,"properties":{"data":{"type":"string"},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["text"]}},"required":["blockType","data"]},{"type":"object","additionalProperties":false,"properties":{"data":{"type":"number"},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["number"]}},"required":["blockType","data"]},{"type":"object","additionalProperties":false,"properties":{"data":{"type":"boolean"},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["boolean"]}},"required":["blockType","data"]},{"type":"object","additionalProperties":false,"properties":{"data":{"type":"string"},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["date"]}},"required":["blockType","data"]},{"type":"object","additionalProperties":false,"properties":{"data":{"type":"string"},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["select"]}},"required":["blockType","data"]}]},"nullable":true},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["node-if"]}},"required":["blockType","nodeId"]},{"type":"object","additionalProperties":false,"properties":{"nodeId":{"type":"string"},"systemRole":{"type":"string","enum":["start","root-paths","default-group","flow-out"],"nullable":true},"containerId":{"description":"The containing node id: a Flow Group, or the step this one is a substep of.","type":"string","nullable":true},"isMilestone":{"description":"Marks this node as a key moment for flow summaries and milestone views.","type":"boolean","nullable":true},"label":{"type":"string","nullable":true},"description":{"type":"string","nullable":true},"instructions":{"description":"Agent-facing instructions copied to the live step.","type":"string","nullable":true},"duration":{"type":"number","nullable":true},"joinLink":{"type":"string","nullable":true},"assignedRoles":{"description":"Internal assignees receive Reader access to the live playbook and parent journey.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Role"}]},"nullable":true},"assignedUsers":{"description":"Internal assignees receive Reader access to the live playbook and parent journey.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"nullable":true},"watcherRoles":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Role"}]},"nullable":true},"watchers":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"nullable":true},"participantRoles":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Role"}]},"nullable":true},"participantUsers":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"nullable":true},"priority":{"type":"string","enum":["low","medium","high"],"nullable":true},"documents":{"description":"Drive documents copied to the live step when this node runs.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Asset"}]},"nullable":true},"documentRecipientRoles":{"description":"Client roles that receive the selected documents when this node executes.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Role"}]},"nullable":true},"documentRecipientUsers":{"description":"Specific participants that receive the selected documents when this node executes.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"nullable":true},"eachAssignee":{"type":"boolean","nullable":true},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["node-meeting"]}},"required":["blockType","nodeId"]},{"type":"object","additionalProperties":false,"properties":{"nodeId":{"type":"string"},"systemRole":{"type":"string","enum":["start","root-paths","default-group","flow-out"],"nullable":true},"containerId":{"description":"The containing node id: a Flow Group, or the step this one is a substep of.","type":"string","nullable":true},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["node-on-journey-start"]}},"required":["blockType","nodeId"]},{"type":"object","additionalProperties":false,"properties":{"nodeId":{"type":"string"},"systemRole":{"type":"string","enum":["start","root-paths","default-group","flow-out"],"nullable":true},"containerId":{"description":"The containing node id: a Flow Group, or the step this one is a substep of.","type":"string","nullable":true},"mode":{"type":"string","enum":["all","any"]},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["node-join"]}},"required":["blockType","nodeId","mode"]},{"type":"object","additionalProperties":false,"properties":{"nodeId":{"type":"string"},"systemRole":{"type":"string","enum":["start","root-paths","default-group","flow-out"],"nullable":true},"containerId":{"description":"The containing node id: a Flow Group, or the step this one is a substep of.","type":"string","nullable":true},"paths":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"handleId":{"type":"string"},"label":{"type":"string"},"id":{"type":"string","nullable":true}},"required":["handleId","label"]},"nullable":true},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["node-paths"]}},"required":["blockType","nodeId"]},{"type":"object","additionalProperties":false,"properties":{"nodeId":{"type":"string"},"systemRole":{"type":"string","enum":["start","root-paths","default-group","flow-out"],"nullable":true},"containerId":{"description":"The containing node id: a Flow Group, or the step this one is a substep of.","type":"string","nullable":true},"label":{"type":"string","nullable":true},"playbook":{"description":"Canonical live Playbook materialized for this Journey flow node.","oneOf":[{"type":"string","nullable":true},{"$ref":"#/components/schemas/Playbook"}]},"playbookTemplate":{"description":"Reusable Playbook selected by a Journey template. Its latest published version is resolved when the live Journey flow is created.","oneOf":[{"type":"string","nullable":true},{"$ref":"#/components/schemas/PlaybookTemplate"}]},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["node-playbook"]}},"required":["blockType","nodeId"]},{"type":"object","additionalProperties":false,"properties":{"nodeId":{"type":"string"},"systemRole":{"type":"string","enum":["start","root-paths","default-group","flow-out"],"nullable":true},"containerId":{"description":"The containing node id: a Flow Group, or the step this one is a substep of.","type":"string","nullable":true},"isMilestone":{"description":"Marks this node as a key moment for flow summaries and milestone views.","type":"boolean","nullable":true},"label":{"type":"string","nullable":true},"description":{"type":"string","nullable":true},"instructions":{"description":"Agent-facing instructions copied to the live step.","type":"string","nullable":true},"assignedRoles":{"description":"Internal assignees receive Reader access to the live playbook and parent journey.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Role"}]},"nullable":true},"assignedUsers":{"description":"Internal assignees receive Reader access to the live playbook and parent journey.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"nullable":true},"watcherRoles":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Role"}]},"nullable":true},"watchers":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"nullable":true},"priority":{"type":"string","enum":["low","medium","high"],"nullable":true},"documents":{"description":"Drive documents copied to the live step when this node runs.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Asset"}]},"nullable":true},"documentRecipientRoles":{"description":"Client roles that receive the selected documents when this node executes.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Role"}]},"nullable":true},"documentRecipientUsers":{"description":"Specific participants that receive the selected documents when this node executes.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"nullable":true},"eachAssignee":{"type":"boolean","nullable":true},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["node-request-file"]}},"required":["blockType","nodeId"]},{"type":"object","additionalProperties":false,"properties":{"nodeId":{"type":"string"},"systemRole":{"type":"string","enum":["start","root-paths","default-group","flow-out"],"nullable":true},"containerId":{"description":"The containing node id: a Flow Group, or the step this one is a substep of.","type":"string","nullable":true},"isMilestone":{"description":"Marks this node as a key moment for flow summaries and milestone views.","type":"boolean","nullable":true},"label":{"type":"string","nullable":true},"description":{"type":"string","nullable":true},"instructions":{"description":"Agent-facing instructions copied to the live step.","type":"string","nullable":true},"email":{"oneOf":[{"type":"string","nullable":true},{"$ref":"#/components/schemas/Email"}]},"autoSend":{"description":"Sent automatically by the flow rather than composed manually.","type":"boolean","nullable":true},"assignedRoles":{"description":"Internal assignees receive Reader access to the live playbook and parent journey.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Role"}]},"nullable":true},"assignedUsers":{"description":"Internal assignees receive Reader access to the live playbook and parent journey.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"nullable":true},"watcherRoles":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Role"}]},"nullable":true},"watchers":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"nullable":true},"recipientRoles":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Role"}]},"nullable":true},"recipientUsers":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"nullable":true},"ccRoles":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Role"}]},"nullable":true},"ccUsers":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"nullable":true},"bccRoles":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Role"}]},"nullable":true},"bccUsers":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"nullable":true},"eachAssignee":{"type":"boolean","nullable":true},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["node-email"]}},"required":["blockType","nodeId"]},{"type":"object","additionalProperties":false,"properties":{"nodeId":{"type":"string"},"systemRole":{"type":"string","enum":["start","root-paths","default-group","flow-out"],"nullable":true},"containerId":{"description":"The containing node id: a Flow Group, or the step this one is a substep of.","type":"string","nullable":true},"state":{"type":"string","enum":["draft","started","paused"],"nullable":true},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["node-set-journey-state"]}},"required":["blockType","nodeId"]},{"type":"object","additionalProperties":false,"properties":{"nodeId":{"type":"string"},"systemRole":{"type":"string","enum":["start","root-paths","default-group","flow-out"],"nullable":true},"containerId":{"description":"The containing node id: a Flow Group, or the step this one is a substep of.","type":"string","nullable":true},"variable":{"oneOf":[{"type":"object","additionalProperties":false,"properties":{"relationTo":{"enum":["variables"]},"value":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Variable"}]}},"required":["value","relationTo"],"nullable":true},{"type":"object","additionalProperties":false,"properties":{"relationTo":{"enum":["playbook-template-variables"]},"value":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/PlaybookTemplateVariable"}]}},"required":["value","relationTo"],"nullable":true}]},"value":{"type":"array","items":{"oneOf":[{"type":"object","additionalProperties":false,"properties":{"data":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/ObjectRecord"}]},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["object-reference-value"]}},"required":["blockType","data"]},{"type":"object","additionalProperties":false,"properties":{"data":{"type":"string"},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["text"]}},"required":["blockType","data"]},{"type":"object","additionalProperties":false,"properties":{"data":{"type":"number"},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["number"]}},"required":["blockType","data"]},{"type":"object","additionalProperties":false,"properties":{"data":{"type":"boolean"},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["boolean"]}},"required":["blockType","data"]},{"type":"object","additionalProperties":false,"properties":{"data":{"type":"string"},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["date"]}},"required":["blockType","data"]},{"type":"object","additionalProperties":false,"properties":{"data":{"type":"string"},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["select"]}},"required":["blockType","data"]}]},"nullable":true},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["node-set-variable-value"]}},"required":["blockType","nodeId"]},{"type":"object","additionalProperties":false,"properties":{"nodeId":{"type":"string"},"systemRole":{"type":"string","enum":["start","root-paths","default-group","flow-out"],"nullable":true},"containerId":{"description":"The containing node id: a Flow Group, or the step this one is a substep of.","type":"string","nullable":true},"isMilestone":{"description":"Marks this node as a key moment for flow summaries and milestone views.","type":"boolean","nullable":true},"label":{"type":"string","nullable":true},"description":{"type":"string","nullable":true},"instructions":{"description":"Agent-facing instructions copied to the live step.","type":"string","nullable":true},"duration":{"type":"number","nullable":true},"assignedRoles":{"description":"Internal assignees receive Reader access to the live playbook and parent journey.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Role"}]},"nullable":true},"assignedUsers":{"description":"Internal assignees receive Reader access to the live playbook and parent journey.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"nullable":true},"reviewerRoles":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Role"}]},"nullable":true},"reviewerUsers":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"nullable":true},"watcherRoles":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Role"}]},"nullable":true},"watchers":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"nullable":true},"priority":{"type":"string","enum":["low","medium","high"],"nullable":true},"documents":{"description":"Drive documents copied to the live step when this node runs.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Asset"}]},"nullable":true},"documentRecipientRoles":{"description":"Client roles that receive the selected documents when this node executes.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Role"}]},"nullable":true},"documentRecipientUsers":{"description":"Specific participants that receive the selected documents when this node executes.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"nullable":true},"eachAssignee":{"type":"boolean","nullable":true},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["node-task"]}},"required":["blockType","nodeId"]},{"type":"object","additionalProperties":false,"properties":{"nodeId":{"type":"string"},"systemRole":{"type":"string","enum":["start","root-paths","default-group","flow-out"],"nullable":true},"containerId":{"description":"The containing node id: a Flow Group, or the step this one is a substep of.","type":"string","nullable":true},"duration":{"type":"number","nullable":true},"unit":{"type":"string","enum":["minutes","hours","days","weeks","months","years"],"nullable":true},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["node-wait-for"]}},"required":["blockType","nodeId"]},{"type":"object","additionalProperties":false,"properties":{"nodeId":{"type":"string"},"systemRole":{"type":"string","enum":["start","root-paths","default-group","flow-out"],"nullable":true},"containerId":{"description":"The containing node id: a Flow Group, or the step this one is a substep of.","type":"string","nullable":true},"date":{"type":"string","nullable":true},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["node-wait-until"]}},"required":["blockType","nodeId"]},{"type":"object","additionalProperties":false,"properties":{"nodeId":{"type":"string"},"systemRole":{"type":"string","enum":["start","root-paths","default-group","flow-out"],"nullable":true},"containerId":{"description":"The containing node id: a Flow Group, or the step this one is a substep of.","type":"string","nullable":true},"webhook":{"description":"Version-owned endpoint invoked by this trigger.","oneOf":[{"type":"string","nullable":true},{"$ref":"#/components/schemas/Webhook"}]},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["node-webhook"]}},"required":["blockType","nodeId"]}]},"nullable":true},"edges":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"edgeId":{"type":"string"},"source":{"type":"string"},"target":{"type":"string"},"sourceHandle":{"type":"string","nullable":true},"targetHandle":{"type":"string","nullable":true},"systemRole":{"type":"string","enum":["start-to-root","default-group-entry"],"nullable":true},"id":{"type":"string","nullable":true}},"required":["edgeId","source","target"]},"nullable":true}},"required":["type"]},"outcomes":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"name":{"type":"string"},"kind":{"type":"string","enum":["customer","internal"]},"description":{"type":"string","nullable":true},"unit":{"type":"string","nullable":true},"targetValue":{"type":"number"},"id":{"type":"string","nullable":true}},"required":["name","kind","targetValue"]},"nullable":true},"archivedAt":{"description":"When this record was archived. Null when active.","type":"string","nullable":true},"internalAssets":{"oneOf":[{"type":"string","nullable":true},{"$ref":"#/components/schemas/Asset"}]},"externalAssets":{"oneOf":[{"type":"string","nullable":true},{"$ref":"#/components/schemas/Asset"}]},"permissions":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"entity":{"oneOf":[{"type":"object","additionalProperties":false,"properties":{"relationTo":{"enum":["users"]},"value":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]}},"required":["value","relationTo"]},{"type":"object","additionalProperties":false,"properties":{"relationTo":{"enum":["groups"]},"value":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Group"}]}},"required":["value","relationTo"]}]},"level":{"type":"number"},"origin":{"description":"Document where this permission was declared and can be edited.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"inheritedFrom":{"description":"Immediate parent that synchronized this read-only entry.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"id":{"type":"string","nullable":true}},"required":["entity","level"]},"nullable":true},"creationProgress":{"nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"versionStatus":{"description":"Pending versions are being copied asynchronously and cannot be edited yet.","type":"string","enum":["pending","ready","corrupted"]},"creationJob":{"description":"Payload job for createStandaloneVersionWorkflow.","oneOf":[{"type":"string","nullable":true},{"type":"object","additionalProperties":true,"description":"Related record; fields depend on access."}]},"creationTotalTasks":{"type":"number","nullable":true},"creationCompletedTasks":{"type":"number","nullable":true},"creationContext":{"nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"versionNumber":{"type":"number","nullable":true},"publishedAt":{"type":"string","nullable":true},"publishedBy":{"oneOf":[{"type":"string","nullable":true},{"$ref":"#/components/schemas/User"}]},"publishedByName":{"description":"Computed from publishedBy: not every viewer can read the users collection, so this reads the name with elevated access instead of relying on a populated relationship.","type":"string","nullable":true},"publishNote":{"type":"string","nullable":true},"updatedAt":{"type":"string"},"createdAt":{"type":"string"}},"required":["id","flow","versionStatus","updatedAt","createdAt"]},"Email":{"type":"object","additionalProperties":false,"title":"Email","properties":{"id":{"type":"string"},"name":{"type":"string"},"subject":{"type":"string"},"content":{"nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"emailTemplateVersion":{"oneOf":[{"type":"string","nullable":true},{"$ref":"#/components/schemas/EmailTemplateVersion"}]},"playbookTemplateVersion":{"oneOf":[{"type":"string","nullable":true},{"$ref":"#/components/schemas/PlaybookTemplateVersion"}]},"archivedAt":{"description":"When this record was archived. Null when active.","type":"string","nullable":true},"permissions":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"entity":{"oneOf":[{"type":"object","additionalProperties":false,"properties":{"relationTo":{"enum":["users"]},"value":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]}},"required":["value","relationTo"]},{"type":"object","additionalProperties":false,"properties":{"relationTo":{"enum":["groups"]},"value":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Group"}]}},"required":["value","relationTo"]}]},"level":{"type":"number"},"origin":{"description":"Document where this permission was declared and can be edited.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"inheritedFrom":{"description":"Immediate parent that synchronized this read-only entry.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"id":{"type":"string","nullable":true}},"required":["entity","level"]},"nullable":true},"updatedAt":{"type":"string"},"createdAt":{"type":"string"}},"required":["id","name","subject","updatedAt","createdAt"]},"EmailTemplateVersion":{"type":"object","additionalProperties":false,"title":"Email Template Version","properties":{"id":{"type":"string"},"emailTemplate":{"description":"Reusable template identity that owns this version.","oneOf":[{"type":"string","nullable":true},{"$ref":"#/components/schemas/EmailTemplate"}]},"sourceVersion":{"description":"Pinned source version used to create this version asynchronously.","oneOf":[{"type":"string","nullable":true},{"$ref":"#/components/schemas/EmailTemplateVersion"}]},"description":{"type":"string","nullable":true},"archivedAt":{"description":"When this record was archived. Null when active.","type":"string","nullable":true},"permissions":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"entity":{"oneOf":[{"type":"object","additionalProperties":false,"properties":{"relationTo":{"enum":["users"]},"value":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]}},"required":["value","relationTo"]},{"type":"object","additionalProperties":false,"properties":{"relationTo":{"enum":["groups"]},"value":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Group"}]}},"required":["value","relationTo"]}]},"level":{"type":"number"},"origin":{"description":"Document where this permission was declared and can be edited.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"inheritedFrom":{"description":"Immediate parent that synchronized this read-only entry.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"id":{"type":"string","nullable":true}},"required":["entity","level"]},"nullable":true},"creationProgress":{"nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"versionStatus":{"description":"Pending versions are being copied asynchronously and cannot be edited yet.","type":"string","enum":["pending","ready","corrupted"]},"creationJob":{"description":"Payload job for template version snapshot.","oneOf":[{"type":"string","nullable":true},{"type":"object","additionalProperties":true,"description":"Related record; fields depend on access."}]},"creationTotalTasks":{"type":"number","nullable":true},"creationCompletedTasks":{"type":"number","nullable":true},"creationContext":{"nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"versionNumber":{"type":"number","nullable":true},"publishedAt":{"type":"string","nullable":true},"publishedBy":{"oneOf":[{"type":"string","nullable":true},{"$ref":"#/components/schemas/User"}]},"publishedByName":{"description":"Computed from publishedBy: not every viewer can read the users collection, so this reads the name with elevated access instead of relying on a populated relationship.","type":"string","nullable":true},"publishNote":{"type":"string","nullable":true},"updatedAt":{"type":"string"},"createdAt":{"type":"string"}},"required":["id","versionStatus","updatedAt","createdAt"]},"EmailTemplate":{"type":"object","additionalProperties":false,"title":"Email Template","properties":{"id":{"type":"string"},"name":{"type":"string"},"draftVersion":{"description":"The single editable draft, managed automatically.","oneOf":[{"type":"string","nullable":true},{"$ref":"#/components/schemas/EmailTemplateVersion"}]},"publishedVersion":{"description":"Latest published version used by runtime consumers.","oneOf":[{"type":"string","nullable":true},{"$ref":"#/components/schemas/EmailTemplateVersion"}]},"archivedAt":{"description":"When this record was archived. Null when active.","type":"string","nullable":true},"hasDraftChanges":{"description":"Whether the draft has changed since the last publish. Managed automatically.","type":"boolean","nullable":true},"permissions":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"entity":{"oneOf":[{"type":"object","additionalProperties":false,"properties":{"relationTo":{"enum":["users"]},"value":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]}},"required":["value","relationTo"]},{"type":"object","additionalProperties":false,"properties":{"relationTo":{"enum":["groups"]},"value":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Group"}]}},"required":["value","relationTo"]}]},"level":{"type":"number"},"origin":{"description":"Document where this permission was declared and can be edited.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"inheritedFrom":{"description":"Immediate parent that synchronized this read-only entry.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"id":{"type":"string","nullable":true}},"required":["entity","level"]},"nullable":true},"updatedAt":{"type":"string"},"createdAt":{"type":"string"}},"required":["id","name","updatedAt","createdAt"]},"PlaybookTemplate":{"type":"object","additionalProperties":false,"title":"Playbook Template","properties":{"id":{"type":"string"},"name":{"type":"string"},"description":{"type":"string","nullable":true},"phase":{"oneOf":[{"type":"string","nullable":true},{"type":"object","additionalProperties":true,"description":"Related record; fields depend on access."}]},"draftVersion":{"description":"The single editable draft, managed automatically.","oneOf":[{"type":"string","nullable":true},{"$ref":"#/components/schemas/PlaybookTemplateVersion"}]},"publishedVersion":{"description":"Latest published version used by runtime consumers.","oneOf":[{"type":"string","nullable":true},{"$ref":"#/components/schemas/PlaybookTemplateVersion"}]},"archivedAt":{"description":"When this record was archived. Null when active.","type":"string","nullable":true},"hasDraftChanges":{"description":"Whether the draft has changed since the last publish. Managed automatically.","type":"boolean","nullable":true},"permissions":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"entity":{"oneOf":[{"type":"object","additionalProperties":false,"properties":{"relationTo":{"enum":["users"]},"value":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]}},"required":["value","relationTo"]},{"type":"object","additionalProperties":false,"properties":{"relationTo":{"enum":["groups"]},"value":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Group"}]}},"required":["value","relationTo"]}]},"level":{"type":"number"},"origin":{"description":"Document where this permission was declared and can be edited.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"inheritedFrom":{"description":"Immediate parent that synchronized this read-only entry.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"id":{"type":"string","nullable":true}},"required":["entity","level"]},"nullable":true},"updatedAt":{"type":"string"},"createdAt":{"type":"string"}},"required":["id","name","updatedAt","createdAt"]},"Playbook":{"type":"object","additionalProperties":false,"title":"Playbook","properties":{"id":{"type":"string"},"name":{"type":"string"},"description":{"type":"string","nullable":true},"state":{"type":"string","enum":["draft","started","paused","completed","skipped","cancelled"]},"startedAt":{"description":"When this record actually started. Auto-set on first start.","type":"string","nullable":true},"deadlineAt":{"description":"Target date and time for completing this work.","type":"string","nullable":true},"archivedAt":{"description":"When this record was archived. Null when active.","type":"string","nullable":true},"journey":{"oneOf":[{"type":"string","nullable":true},{"$ref":"#/components/schemas/Journey"}]},"campaign":{"oneOf":[{"type":"string","nullable":true},{"type":"object","additionalProperties":true,"description":"Related record; fields depend on access."}]},"sourceTemplateVersion":{"oneOf":[{"type":"string","nullable":true},{"$ref":"#/components/schemas/PlaybookTemplateVersion"}]},"phase":{"oneOf":[{"type":"string","nullable":true},{"type":"object","additionalProperties":true,"description":"Related record; fields depend on access."}]},"templateId":{"description":"The reusable template's own id, resolved only when the viewer can read both the source version and its template. Otherwise falls back to the already-exposed source version id.","type":"string","nullable":true},"templateName":{"description":"The readable reusable template's display name. Null when the viewer cannot read the template.","type":"string","nullable":true},"activeVersion":{"description":"Standalone editable version for this playbook. Editors must wait until it is ready.","oneOf":[{"type":"string","nullable":true},{"$ref":"#/components/schemas/PlaybookTemplateVersion"}]},"internalAssets":{"oneOf":[{"type":"string","nullable":true},{"$ref":"#/components/schemas/Asset"}]},"externalAssets":{"oneOf":[{"type":"string","nullable":true},{"$ref":"#/components/schemas/Asset"}]},"comments":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"content":{"type":"string"},"author":{"description":"Deprecated since v0.10.4. This field will become optional: it is empty once the member's account is deleted.","oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}],"deprecated":true,"x-sekential-deprecation":{"since":"v0.10.4"}},"createdAt":{"type":"string"},"visibility":{"type":"string","enum":["internal","external"]},"mentions":{"description":"Users mentioned in this comment's content via @mention; server-validated on write.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"nullable":true},"aiWritten":{"description":"Posted by the AI on the author's behalf.","type":"boolean","nullable":true},"id":{"type":"string","nullable":true}},"required":["content","author","createdAt","visibility"]},"nullable":true},"lastCommentAt":{"type":"string","nullable":true},"permissions":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"entity":{"oneOf":[{"type":"object","additionalProperties":false,"properties":{"relationTo":{"enum":["users"]},"value":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]}},"required":["value","relationTo"]},{"type":"object","additionalProperties":false,"properties":{"relationTo":{"enum":["groups"]},"value":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Group"}]}},"required":["value","relationTo"]}]},"level":{"type":"number"},"origin":{"description":"Document where this permission was declared and can be edited.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"inheritedFrom":{"description":"Immediate parent that synchronized this read-only entry.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"id":{"type":"string","nullable":true}},"required":["entity","level"]},"nullable":true},"updatedAt":{"type":"string"},"createdAt":{"type":"string"}},"required":["id","name","state","updatedAt","createdAt"]},"Form":{"type":"object","additionalProperties":false,"title":"Form","properties":{"id":{"type":"string"},"name":{"type":"string"},"content":{"nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"fields":{"description":"Read-only field-definition projection derived from content, used to validate completions.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"formTemplateVersion":{"oneOf":[{"type":"string","nullable":true},{"$ref":"#/components/schemas/FormTemplateVersion"}]},"playbookTemplateVersion":{"oneOf":[{"type":"string","nullable":true},{"$ref":"#/components/schemas/PlaybookTemplateVersion"}]},"archivedAt":{"description":"When this record was archived. Null when active.","type":"string","nullable":true},"permissions":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"entity":{"oneOf":[{"type":"object","additionalProperties":false,"properties":{"relationTo":{"enum":["users"]},"value":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]}},"required":["value","relationTo"]},{"type":"object","additionalProperties":false,"properties":{"relationTo":{"enum":["groups"]},"value":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Group"}]}},"required":["value","relationTo"]}]},"level":{"type":"number"},"origin":{"description":"Document where this permission was declared and can be edited.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"inheritedFrom":{"description":"Immediate parent that synchronized this read-only entry.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"id":{"type":"string","nullable":true}},"required":["entity","level"]},"nullable":true},"updatedAt":{"type":"string"},"createdAt":{"type":"string"}},"required":["id","name","updatedAt","createdAt"]},"FormTemplateVersion":{"type":"object","additionalProperties":false,"title":"Form Template Version","properties":{"id":{"type":"string"},"formTemplate":{"description":"Reusable template identity that owns this version.","oneOf":[{"type":"string","nullable":true},{"$ref":"#/components/schemas/FormTemplate"}]},"sourceVersion":{"description":"Pinned source version used to create this version asynchronously.","oneOf":[{"type":"string","nullable":true},{"$ref":"#/components/schemas/FormTemplateVersion"}]},"description":{"type":"string","nullable":true},"archivedAt":{"description":"When this record was archived. Null when active.","type":"string","nullable":true},"permissions":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"entity":{"oneOf":[{"type":"object","additionalProperties":false,"properties":{"relationTo":{"enum":["users"]},"value":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]}},"required":["value","relationTo"]},{"type":"object","additionalProperties":false,"properties":{"relationTo":{"enum":["groups"]},"value":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Group"}]}},"required":["value","relationTo"]}]},"level":{"type":"number"},"origin":{"description":"Document where this permission was declared and can be edited.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"inheritedFrom":{"description":"Immediate parent that synchronized this read-only entry.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"id":{"type":"string","nullable":true}},"required":["entity","level"]},"nullable":true},"creationProgress":{"nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"versionStatus":{"description":"Pending versions are being copied asynchronously and cannot be edited yet.","type":"string","enum":["pending","ready","corrupted"]},"creationJob":{"description":"Payload job for template version snapshot.","oneOf":[{"type":"string","nullable":true},{"type":"object","additionalProperties":true,"description":"Related record; fields depend on access."}]},"creationTotalTasks":{"type":"number","nullable":true},"creationCompletedTasks":{"type":"number","nullable":true},"creationContext":{"nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"versionNumber":{"type":"number","nullable":true},"publishedAt":{"type":"string","nullable":true},"publishedBy":{"oneOf":[{"type":"string","nullable":true},{"$ref":"#/components/schemas/User"}]},"publishedByName":{"description":"Computed from publishedBy: not every viewer can read the users collection, so this reads the name with elevated access instead of relying on a populated relationship.","type":"string","nullable":true},"publishNote":{"type":"string","nullable":true},"updatedAt":{"type":"string"},"createdAt":{"type":"string"}},"required":["id","versionStatus","updatedAt","createdAt"]},"FormTemplate":{"type":"object","additionalProperties":false,"title":"Form Template","properties":{"id":{"type":"string"},"name":{"type":"string"},"draftVersion":{"description":"The single editable draft, managed automatically.","oneOf":[{"type":"string","nullable":true},{"$ref":"#/components/schemas/FormTemplateVersion"}]},"publishedVersion":{"description":"Latest published version used by runtime consumers.","oneOf":[{"type":"string","nullable":true},{"$ref":"#/components/schemas/FormTemplateVersion"}]},"archivedAt":{"description":"When this record was archived. Null when active.","type":"string","nullable":true},"hasDraftChanges":{"description":"Whether the draft has changed since the last publish. Managed automatically.","type":"boolean","nullable":true},"permissions":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"entity":{"oneOf":[{"type":"object","additionalProperties":false,"properties":{"relationTo":{"enum":["users"]},"value":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]}},"required":["value","relationTo"]},{"type":"object","additionalProperties":false,"properties":{"relationTo":{"enum":["groups"]},"value":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Group"}]}},"required":["value","relationTo"]}]},"level":{"type":"number"},"origin":{"description":"Document where this permission was declared and can be edited.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"inheritedFrom":{"description":"Immediate parent that synchronized this read-only entry.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"id":{"type":"string","nullable":true}},"required":["entity","level"]},"nullable":true},"updatedAt":{"type":"string"},"createdAt":{"type":"string"}},"required":["id","name","updatedAt","createdAt"]},"JourneyTemplate":{"type":"object","additionalProperties":false,"title":"Journey Template","properties":{"id":{"type":"string"},"name":{"type":"string"},"description":{"type":"string","nullable":true},"draftVersion":{"description":"The single editable draft, managed automatically.","oneOf":[{"type":"string","nullable":true},{"$ref":"#/components/schemas/JourneyTemplateVersion"}]},"publishedVersion":{"description":"Latest published version used by runtime consumers.","oneOf":[{"type":"string","nullable":true},{"$ref":"#/components/schemas/JourneyTemplateVersion"}]},"archivedAt":{"description":"When this record was archived. Null when active.","type":"string","nullable":true},"hasDraftChanges":{"description":"Whether the draft has changed since the last publish. Managed automatically.","type":"boolean","nullable":true},"permissions":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"entity":{"oneOf":[{"type":"object","additionalProperties":false,"properties":{"relationTo":{"enum":["users"]},"value":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]}},"required":["value","relationTo"]},{"type":"object","additionalProperties":false,"properties":{"relationTo":{"enum":["groups"]},"value":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Group"}]}},"required":["value","relationTo"]}]},"level":{"type":"number"},"origin":{"description":"Document where this permission was declared and can be edited.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"inheritedFrom":{"description":"Immediate parent that synchronized this read-only entry.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"id":{"type":"string","nullable":true}},"required":["entity","level"]},"nullable":true},"updatedAt":{"type":"string"},"createdAt":{"type":"string"}},"required":["id","name","updatedAt","createdAt"]},"Outcome":{"type":"object","additionalProperties":false,"title":"Outcome","properties":{"id":{"type":"string"},"name":{"type":"string"},"kind":{"type":"string","enum":["customer","internal"]},"linkedTo":{"description":"Who can see and edit the outcome follows these records. A customer outcome keeps at least one; an internal outcome linked to nothing is the whole workspace's.","type":"array","items":{"oneOf":[{"type":"object","additionalProperties":false,"properties":{"relationTo":{"enum":["customers"]},"value":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Customer"}]}},"required":["value","relationTo"]},{"type":"object","additionalProperties":false,"properties":{"relationTo":{"enum":["journeys"]},"value":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Journey"}]}},"required":["value","relationTo"]},{"type":"object","additionalProperties":false,"properties":{"relationTo":{"enum":["playbooks"]},"value":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Playbook"}]}},"required":["value","relationTo"]},{"type":"object","additionalProperties":false,"properties":{"relationTo":{"enum":["steps"]},"value":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Step"}]}},"required":["value","relationTo"]},{"type":"object","additionalProperties":false,"properties":{"relationTo":{"enum":["object-records"]},"value":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/ObjectRecord"}]}},"required":["value","relationTo"]},{"type":"object","additionalProperties":false,"properties":{"relationTo":{"enum":["journey-templates"]},"value":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/JourneyTemplate"}]}},"required":["value","relationTo"]},{"type":"object","additionalProperties":false,"properties":{"relationTo":{"enum":["playbook-templates"]},"value":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/PlaybookTemplate"}]}},"required":["value","relationTo"]}]},"nullable":true},"customers":{"description":"Derived from the outcome's links.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Customer"}]},"nullable":true},"journeys":{"description":"Derived from the outcome's links.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Journey"}]},"nullable":true},"playbooks":{"description":"Derived from the outcome's links.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Playbook"}]},"nullable":true},"description":{"type":"string","nullable":true},"importance":{"description":"The more important the outcome, the higher the steps linked to it rank on Today.","type":"string","enum":["low","medium","high"],"nullable":true},"stakeholder":{"oneOf":[{"type":"string","nullable":true},{"$ref":"#/components/schemas/Stakeholder"}]},"unit":{"type":"string","nullable":true},"startValue":{"type":"number","nullable":true},"targetValue":{"type":"number"},"achievedValue":{"type":"number","nullable":true},"achievedAt":{"type":"string","nullable":true},"valueHistory":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"value":{"type":"number"},"recordedBy":{"oneOf":[{"type":"string","nullable":true},{"$ref":"#/components/schemas/User"}]},"recordedAt":{"type":"string"},"id":{"type":"string","nullable":true}},"required":["value","recordedAt"]},"nullable":true},"removedValues":{"description":"The value history entries a save deletes, by ID.","type":"array","items":{"type":"string"},"nullable":true},"targetHistory":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"value":{"type":"number"},"recordedBy":{"oneOf":[{"type":"string","nullable":true},{"$ref":"#/components/schemas/User"}]},"recordedAt":{"type":"string"},"id":{"type":"string","nullable":true}},"required":["value","recordedAt"]},"nullable":true},"deadlineAt":{"description":"Target date and time for completing this work.","type":"string","nullable":true},"assignedUsers":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"nullable":true},"visibleToCustomer":{"type":"boolean","nullable":true},"attachedTo":{"description":"Deprecated since v0.10.4. This contract has a replacement. Use outcomes.linkedTo instead.","oneOf":[{"type":"object","additionalProperties":false,"properties":{"relationTo":{"enum":["tenants"]},"value":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Tenant"}]}},"required":["value","relationTo"]},{"type":"object","additionalProperties":false,"properties":{"relationTo":{"enum":["customers"]},"value":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Customer"}]}},"required":["value","relationTo"]},{"type":"object","additionalProperties":false,"properties":{"relationTo":{"enum":["journeys"]},"value":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Journey"}]}},"required":["value","relationTo"]},{"type":"object","additionalProperties":false,"properties":{"relationTo":{"enum":["playbooks"]},"value":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Playbook"}]}},"required":["value","relationTo"]},{"type":"object","additionalProperties":false,"properties":{"relationTo":{"enum":["steps"]},"value":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Step"}]}},"required":["value","relationTo"]},{"type":"object","additionalProperties":false,"properties":{"relationTo":{"enum":["object-records"]},"value":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/ObjectRecord"}]}},"required":["value","relationTo"]},{"type":"object","additionalProperties":false,"properties":{"relationTo":{"enum":["journey-templates"]},"value":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/JourneyTemplate"}]}},"required":["value","relationTo"]},{"type":"object","additionalProperties":false,"properties":{"relationTo":{"enum":["playbook-templates"]},"value":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/PlaybookTemplate"}]}},"required":["value","relationTo"]}],"deprecated":true,"x-sekential-deprecation":{"since":"v0.10.4","replacement":"outcomes.linkedTo"}},"journey":{"description":"Deprecated since v0.10.4. This contract has a replacement. Use outcomes.journeys instead.","oneOf":[{"type":"string","nullable":true},{"$ref":"#/components/schemas/Journey"}],"deprecated":true,"x-sekential-deprecation":{"since":"v0.10.4","replacement":"outcomes.journeys"}},"playbook":{"description":"Deprecated since v0.10.4. This contract has a replacement. Use outcomes.playbooks instead.","oneOf":[{"type":"string","nullable":true},{"$ref":"#/components/schemas/Playbook"}],"deprecated":true,"x-sekential-deprecation":{"since":"v0.10.4","replacement":"outcomes.playbooks"}},"archivedAt":{"description":"When this record was archived. Null when active.","type":"string","nullable":true},"permissions":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"entity":{"oneOf":[{"type":"object","additionalProperties":false,"properties":{"relationTo":{"enum":["users"]},"value":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]}},"required":["value","relationTo"]},{"type":"object","additionalProperties":false,"properties":{"relationTo":{"enum":["groups"]},"value":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Group"}]}},"required":["value","relationTo"]}]},"level":{"type":"number"},"origin":{"description":"Document where this permission was declared and can be edited.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"inheritedFrom":{"description":"Immediate parent that synchronized this read-only entry.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"id":{"type":"string","nullable":true}},"required":["entity","level"]},"nullable":true},"updatedAt":{"type":"string"},"createdAt":{"type":"string"}},"required":["id","name","kind","targetValue","attachedTo","updatedAt","createdAt"]},"Tenant":{"type":"object","additionalProperties":false,"title":"Tenant","properties":{"id":{"type":"string"},"createdAt":{"type":"string"},"name":{"type":"string"},"slug":{"type":"string"},"language":{"description":"Language of the emails the tenant sends: invitations, system email templates and email footers. Set at creation from the creator's language.","type":"string","enum":["en","fr"]},"tenantUrl":{"type":"string","nullable":true},"emailSettings":{"description":"Tenant identity used for automated playbook emails. Custom From addresses require a verified tenant domain.","type":"object","additionalProperties":false,"properties":{"senderName":{"description":"Display name shown to recipients. Defaults to the tenant name.","type":"string","nullable":true},"fromAddress":{"description":"Optional From address on a verified tenant email domain. Falls back to the platform sender.","type":"string","nullable":true},"replyToAddress":{"description":"Mailbox that receives replies. It does not need to match the From address.","type":"string","nullable":true}},"required":[]},"customerExperience":{"description":"Customer portal, forms and emails to contacts. Off: contacts stay in journeys and steps, only receive email steps and cannot sign in. Nothing is deleted.","type":"boolean","nullable":true},"contactEmails":{"description":"Emails sent to external contacts, besides password resets and sign-in codes. While customer experience is off, contacts only receive email steps.","type":"object","additionalProperties":false,"properties":{"invitation":{"type":"boolean","nullable":true},"stepAssigned":{"type":"boolean","nullable":true},"stepMention":{"type":"boolean","nullable":true},"emailSteps":{"type":"boolean","nullable":true},"meetingInvites":{"type":"boolean","nullable":true}},"required":[]},"updatedAt":{"type":"string"}},"required":["id","createdAt","name","slug","language","updatedAt"]},"WebhookQueryOperationsOr":{"title":"Webhook query disjunction","type":"object","properties":{"or":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/WebhookQueryOperations"},{"$ref":"#/components/schemas/WebhookQueryOperationsAnd"},{"$ref":"#/components/schemas/WebhookQueryOperationsOr"}]}}},"required":["or"]},"WebhookQueryOperationsAnd":{"title":"Webhook query conjunction","type":"object","properties":{"and":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/WebhookQueryOperations"},{"$ref":"#/components/schemas/WebhookQueryOperationsAnd"},{"$ref":"#/components/schemas/WebhookQueryOperationsOr"}]}}},"required":["and"]},"WebhookQueryOperations":{"title":"Webhook query operations","type":"object","properties":{"label":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"secretPreview":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"status":{"type":"object","properties":{"equals":{"type":"string","enum":["unconfigured","active","revoked"]},"not_equals":{"type":"string","enum":["unconfigured","active","revoked"]},"in":{"type":"string"},"not_in":{"type":"string"}}},"lastInvokedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}},"deprecated":true,"description":"Deprecated since v0.10.4. This field is never filled in.","x-sekential-deprecation":{"since":"v0.10.4"}},"archivedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"updatedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"createdAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}}}},"VariableQueryOperationsOr":{"title":"Variable query disjunction","type":"object","properties":{"or":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/VariableQueryOperations"},{"$ref":"#/components/schemas/VariableQueryOperationsAnd"},{"$ref":"#/components/schemas/VariableQueryOperationsOr"}]}}},"required":["or"]},"VariableQueryOperationsAnd":{"title":"Variable query conjunction","type":"object","properties":{"and":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/VariableQueryOperations"},{"$ref":"#/components/schemas/VariableQueryOperationsAnd"},{"$ref":"#/components/schemas/VariableQueryOperationsOr"}]}}},"required":["and"]},"VariableQueryOperations":{"title":"Variable query operations","type":"object","properties":{"name":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"required":{"type":"object","properties":{"equals":{"type":"boolean"},"not_equals":{"type":"boolean"},"in":{"type":"string"},"not_in":{"type":"string"}}},"objectSlug":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"archivedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"updatedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"createdAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}}}},"UserQueryOperationsOr":{"title":"User query disjunction","type":"object","properties":{"or":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/UserQueryOperations"},{"$ref":"#/components/schemas/UserQueryOperationsAnd"},{"$ref":"#/components/schemas/UserQueryOperationsOr"}]}}},"required":["or"]},"UserQueryOperationsAnd":{"title":"User query conjunction","type":"object","properties":{"and":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/UserQueryOperations"},{"$ref":"#/components/schemas/UserQueryOperationsAnd"},{"$ref":"#/components/schemas/UserQueryOperationsOr"}]}}},"required":["and"]},"UserQueryOperations":{"title":"User query operations","type":"object","properties":{"firstName":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"lastName":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"jobTitle":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"updatedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"createdAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}}}},"TenantQueryOperationsOr":{"title":"Tenant query disjunction","type":"object","properties":{"or":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/TenantQueryOperations"},{"$ref":"#/components/schemas/TenantQueryOperationsAnd"},{"$ref":"#/components/schemas/TenantQueryOperationsOr"}]}}},"required":["or"]},"TenantQueryOperationsAnd":{"title":"Tenant query conjunction","type":"object","properties":{"and":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/TenantQueryOperations"},{"$ref":"#/components/schemas/TenantQueryOperationsAnd"},{"$ref":"#/components/schemas/TenantQueryOperationsOr"}]}}},"required":["and"]},"TenantQueryOperations":{"title":"Tenant query operations","type":"object","properties":{"createdAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"name":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"slug":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"language":{"type":"object","properties":{"equals":{"type":"string","enum":["en","fr"]},"not_equals":{"type":"string","enum":["en","fr"]},"in":{"type":"string"},"not_in":{"type":"string"}}},"tenantUrl":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"customerExperience":{"type":"object","properties":{"equals":{"type":"boolean"},"not_equals":{"type":"boolean"},"in":{"type":"string"},"not_in":{"type":"string"}}},"updatedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}}}},"StepQueryOperationsOr":{"title":"Step query disjunction","type":"object","properties":{"or":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/StepQueryOperations"},{"$ref":"#/components/schemas/StepQueryOperationsAnd"},{"$ref":"#/components/schemas/StepQueryOperationsOr"}]}}},"required":["or"]},"StepQueryOperationsAnd":{"title":"Step query conjunction","type":"object","properties":{"and":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/StepQueryOperations"},{"$ref":"#/components/schemas/StepQueryOperationsAnd"},{"$ref":"#/components/schemas/StepQueryOperationsOr"}]}}},"required":["and"]},"StepQueryOperations":{"title":"Step query operations","type":"object","properties":{"number":{"type":"object","properties":{"equals":{"type":"number"},"not_equals":{"type":"number"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"number"},"greater_than_equal":{"type":"number"},"less_than":{"type":"number"},"less_than_equal":{"type":"number"}}},"type":{"type":"object","properties":{"equals":{"type":"string","enum":["task","meeting","decision","request-file","form","email"]},"not_equals":{"type":"string","enum":["task","meeting","decision","request-file","form","email"]},"in":{"type":"string"},"not_in":{"type":"string"}}},"eachAssignee":{"type":"object","properties":{"equals":{"type":"boolean"},"not_equals":{"type":"boolean"},"in":{"type":"string"},"not_in":{"type":"string"}}},"assigneeRemoved":{"type":"object","properties":{"equals":{"type":"boolean"},"not_equals":{"type":"boolean"},"in":{"type":"string"},"not_in":{"type":"string"}}},"substepCount":{"type":"object","properties":{"equals":{"type":"number"},"not_equals":{"type":"number"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"number"},"greater_than_equal":{"type":"number"},"less_than":{"type":"number"},"less_than_equal":{"type":"number"}}},"completedSubstepCount":{"type":"object","properties":{"equals":{"type":"number"},"not_equals":{"type":"number"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"number"},"greater_than_equal":{"type":"number"},"less_than":{"type":"number"},"less_than_equal":{"type":"number"}}},"title":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"nodeId":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"parentNodeId":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"state":{"type":"object","properties":{"equals":{"type":"string","enum":["blocked","todo","in-progress","done","skipped","cancelled","to-plan","scheduled","requires-attention","finished","pending","decided","requested","uploaded","to-complete","completed","to-send","sent"]},"not_equals":{"type":"string","enum":["blocked","todo","in-progress","done","skipped","cancelled","to-plan","scheduled","requires-attention","finished","pending","decided","requested","uploaded","to-complete","completed","to-send","sent"]},"in":{"type":"string"},"not_in":{"type":"string"}}},"status":{"type":"object","properties":{"equals":{"type":"string","enum":["idle","todo","progress","attention","done","cancelled"]},"not_equals":{"type":"string","enum":["idle","todo","progress","attention","done","cancelled"]},"in":{"type":"string"},"not_in":{"type":"string"}}},"priority":{"type":"object","properties":{"equals":{"type":"string","enum":["low","medium","high"]},"not_equals":{"type":"string","enum":["low","medium","high"]},"in":{"type":"string"},"not_in":{"type":"string"}}},"scheduledUntil":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"deadlineAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"duration":{"type":"object","properties":{"equals":{"type":"number"},"not_equals":{"type":"number"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"number"},"greater_than_equal":{"type":"number"},"less_than":{"type":"number"},"less_than_equal":{"type":"number"}}},"lastCommentAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"startedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"completedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"endedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"archivedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"updatedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"createdAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}}}},"StakeholderQueryOperationsOr":{"title":"Stakeholder query disjunction","type":"object","properties":{"or":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/StakeholderQueryOperations"},{"$ref":"#/components/schemas/StakeholderQueryOperationsAnd"},{"$ref":"#/components/schemas/StakeholderQueryOperationsOr"}]}}},"required":["or"]},"StakeholderQueryOperationsAnd":{"title":"Stakeholder query conjunction","type":"object","properties":{"and":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/StakeholderQueryOperations"},{"$ref":"#/components/schemas/StakeholderQueryOperationsAnd"},{"$ref":"#/components/schemas/StakeholderQueryOperationsOr"}]}}},"required":["and"]},"StakeholderQueryOperations":{"title":"Stakeholder query operations","type":"object","properties":{"customerName":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"name":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"title":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"email":{"type":"object","properties":{"equals":{"type":"string","format":"email"},"not_equals":{"type":"string","format":"email"},"in":{"type":"string"},"not_in":{"type":"string"},"contains":{"type":"string","format":"email"}}},"disposition":{"type":"object","properties":{"equals":{"type":"string","enum":["decision-maker","economic-buyer","champion","supporter","neutral","skeptic","blocker","end-user"]},"not_equals":{"type":"string","enum":["decision-maker","economic-buyer","champion","supporter","neutral","skeptic","blocker","end-user"]},"in":{"type":"string"},"not_in":{"type":"string"}}},"influence":{"type":"object","properties":{"equals":{"type":"string","enum":["low","medium","high"]},"not_equals":{"type":"string","enum":["low","medium","high"]},"in":{"type":"string"},"not_in":{"type":"string"}}},"archivedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"updatedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"createdAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}}}},"RoleQueryOperationsOr":{"title":"Role query disjunction","type":"object","properties":{"or":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/RoleQueryOperations"},{"$ref":"#/components/schemas/RoleQueryOperationsAnd"},{"$ref":"#/components/schemas/RoleQueryOperationsOr"}]}}},"required":["or"]},"RoleQueryOperationsAnd":{"title":"Role query conjunction","type":"object","properties":{"and":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/RoleQueryOperations"},{"$ref":"#/components/schemas/RoleQueryOperationsAnd"},{"$ref":"#/components/schemas/RoleQueryOperationsOr"}]}}},"required":["and"]},"RoleQueryOperations":{"title":"Role query operations","type":"object","properties":{"name":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"internal":{"type":"object","properties":{"equals":{"type":"boolean"},"not_equals":{"type":"boolean"},"in":{"type":"string"},"not_in":{"type":"string"}}},"origin":{"type":"object","properties":{"equals":{"type":"string","enum":["template","playbook-ad-hoc"]},"not_equals":{"type":"string","enum":["template","playbook-ad-hoc"]},"in":{"type":"string"},"not_in":{"type":"string"}}},"archivedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"updatedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"createdAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}}}},"RoleAssignment":{"type":"object","additionalProperties":false,"title":"Role Assignment","properties":{"id":{"type":"string"},"playbook":{"description":"Playbook owner for new backend assignments.","oneOf":[{"type":"string","nullable":true},{"$ref":"#/components/schemas/Playbook"}]},"role":{"description":"Assigning an internal role grants the participant Reader access to this playbook and its parent journey.","oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Role"}]},"user":{"description":"Internal participants automatically receive the access required to open their assigned work.","oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"customer":{"oneOf":[{"type":"string","nullable":true},{"$ref":"#/components/schemas/Customer"}]},"customerName":{"type":"string","nullable":true},"archivedAt":{"description":"When this record was archived. Null when active.","type":"string","nullable":true},"permissions":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"entity":{"oneOf":[{"type":"object","additionalProperties":false,"properties":{"relationTo":{"enum":["users"]},"value":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]}},"required":["value","relationTo"]},{"type":"object","additionalProperties":false,"properties":{"relationTo":{"enum":["groups"]},"value":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Group"}]}},"required":["value","relationTo"]}]},"level":{"type":"number"},"origin":{"description":"Document where this permission was declared and can be edited.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"inheritedFrom":{"description":"Immediate parent that synchronized this read-only entry.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"id":{"type":"string","nullable":true}},"required":["entity","level"]},"nullable":true},"updatedAt":{"type":"string"},"createdAt":{"type":"string"}},"required":["id","role","user","updatedAt","createdAt"]},"RoleAssignmentQueryOperationsOr":{"title":"Role Assignment query disjunction","type":"object","properties":{"or":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/RoleAssignmentQueryOperations"},{"$ref":"#/components/schemas/RoleAssignmentQueryOperationsAnd"},{"$ref":"#/components/schemas/RoleAssignmentQueryOperationsOr"}]}}},"required":["or"]},"RoleAssignmentQueryOperationsAnd":{"title":"Role Assignment query conjunction","type":"object","properties":{"and":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/RoleAssignmentQueryOperations"},{"$ref":"#/components/schemas/RoleAssignmentQueryOperationsAnd"},{"$ref":"#/components/schemas/RoleAssignmentQueryOperationsOr"}]}}},"required":["and"]},"RoleAssignmentQueryOperations":{"title":"Role Assignment query operations","type":"object","properties":{"customerName":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"archivedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"updatedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"createdAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}}}},"Portal":{"type":"object","additionalProperties":false,"title":"Portal","properties":{"id":{"type":"string"},"viewUrl":{"type":"string","nullable":true},"branding":{"type":"object","additionalProperties":false,"properties":{"colors":{"type":"object","additionalProperties":false,"properties":{"primary":{"type":"string"},"secondary":{"type":"string","nullable":true},"accent":{"type":"string","nullable":true}},"required":["primary"]},"fonts":{"type":"object","additionalProperties":false,"properties":{"heading":{"type":"string","enum":["system","inter","dm-sans","manrope","plus-jakarta-sans","outfit","ibm-plex-sans","source-sans-3","lora","fraunces","playfair-display"]},"body":{"type":"string","enum":["system","inter","dm-sans","manrope","plus-jakarta-sans","outfit","ibm-plex-sans","source-sans-3","lora","fraunces","playfair-display"]}},"required":["heading","body"]},"style":{"type":"object","additionalProperties":false,"properties":{"background":{"type":"string","enum":["neutral","tinted"]},"corners":{"type":"string","enum":["sharp","soft","round"]},"depth":{"type":"string","enum":["flat","subtle","raised"]}},"required":["background","corners","depth"]},"layout":{"type":"object","additionalProperties":false,"properties":{"width":{"type":"string","enum":["narrow","standard","wide"]},"showHeaderBreadcrumb":{"type":"boolean"}},"required":["width","showHeaderBreadcrumb"]},"identity":{"type":"object","additionalProperties":false,"properties":{"logo":{"type":"string","nullable":true},"logoUrl":{"type":"string","nullable":true},"display":{"type":"string","enum":["logo","name","both"]},"logoSize":{"type":"string","enum":["small","medium","large"]}},"required":["display","logoSize"]}},"required":["colors","fonts","style","layout","identity"]},"metadata":{"type":"object","additionalProperties":false,"properties":{"title":{"type":"string","nullable":true}},"required":[]},"legal":{"type":"object","additionalProperties":false,"properties":{"contactEmail":{"type":"string","nullable":true},"termsContent":{"type":"string","nullable":true},"privacyContent":{"type":"string","nullable":true}},"required":[]},"updatedAt":{"type":"string"},"createdAt":{"type":"string"}},"required":["id","branding","updatedAt","createdAt"]},"PortalQueryOperationsOr":{"title":"Portal query disjunction","type":"object","properties":{"or":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/PortalQueryOperations"},{"$ref":"#/components/schemas/PortalQueryOperationsAnd"},{"$ref":"#/components/schemas/PortalQueryOperationsOr"}]}}},"required":["or"]},"PortalQueryOperationsAnd":{"title":"Portal query conjunction","type":"object","properties":{"and":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/PortalQueryOperations"},{"$ref":"#/components/schemas/PortalQueryOperationsAnd"},{"$ref":"#/components/schemas/PortalQueryOperationsOr"}]}}},"required":["and"]},"PortalQueryOperations":{"title":"Portal query operations","type":"object","properties":{"viewUrl":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"updatedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"createdAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}}}},"PlaybookQueryOperationsOr":{"title":"Playbook query disjunction","type":"object","properties":{"or":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/PlaybookQueryOperations"},{"$ref":"#/components/schemas/PlaybookQueryOperationsAnd"},{"$ref":"#/components/schemas/PlaybookQueryOperationsOr"}]}}},"required":["or"]},"PlaybookQueryOperationsAnd":{"title":"Playbook query conjunction","type":"object","properties":{"and":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/PlaybookQueryOperations"},{"$ref":"#/components/schemas/PlaybookQueryOperationsAnd"},{"$ref":"#/components/schemas/PlaybookQueryOperationsOr"}]}}},"required":["and"]},"PlaybookQueryOperations":{"title":"Playbook query operations","type":"object","properties":{"name":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"state":{"type":"object","properties":{"equals":{"type":"string","enum":["draft","started","paused","completed","skipped","cancelled"]},"not_equals":{"type":"string","enum":["draft","started","paused","completed","skipped","cancelled"]},"in":{"type":"string"},"not_in":{"type":"string"}}},"startedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"deadlineAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"archivedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"templateId":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"templateName":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"lastCommentAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"updatedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"createdAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}}}},"PlaybookTemplateQueryOperationsOr":{"title":"Playbook Template query disjunction","type":"object","properties":{"or":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/PlaybookTemplateQueryOperations"},{"$ref":"#/components/schemas/PlaybookTemplateQueryOperationsAnd"},{"$ref":"#/components/schemas/PlaybookTemplateQueryOperationsOr"}]}}},"required":["or"]},"PlaybookTemplateQueryOperationsAnd":{"title":"Playbook Template query conjunction","type":"object","properties":{"and":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/PlaybookTemplateQueryOperations"},{"$ref":"#/components/schemas/PlaybookTemplateQueryOperationsAnd"},{"$ref":"#/components/schemas/PlaybookTemplateQueryOperationsOr"}]}}},"required":["and"]},"PlaybookTemplateQueryOperations":{"title":"Playbook Template query operations","type":"object","properties":{"name":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"archivedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"hasDraftChanges":{"type":"object","properties":{"equals":{"type":"boolean"},"not_equals":{"type":"boolean"},"in":{"type":"string"},"not_in":{"type":"string"}}},"updatedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"createdAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}}}},"PlaybookTemplateVersionQueryOperationsOr":{"title":"Playbook Template Version query disjunction","type":"object","properties":{"or":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/PlaybookTemplateVersionQueryOperations"},{"$ref":"#/components/schemas/PlaybookTemplateVersionQueryOperationsAnd"},{"$ref":"#/components/schemas/PlaybookTemplateVersionQueryOperationsOr"}]}}},"required":["or"]},"PlaybookTemplateVersionQueryOperationsAnd":{"title":"Playbook Template Version query conjunction","type":"object","properties":{"and":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/PlaybookTemplateVersionQueryOperations"},{"$ref":"#/components/schemas/PlaybookTemplateVersionQueryOperationsAnd"},{"$ref":"#/components/schemas/PlaybookTemplateVersionQueryOperationsOr"}]}}},"required":["and"]},"PlaybookTemplateVersionQueryOperations":{"title":"Playbook Template Version query operations","type":"object","properties":{"archivedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"versionStatus":{"type":"object","properties":{"equals":{"type":"string","enum":["pending","ready","corrupted"]},"not_equals":{"type":"string","enum":["pending","ready","corrupted"]},"in":{"type":"string"},"not_in":{"type":"string"}}},"creationTotalTasks":{"type":"object","properties":{"equals":{"type":"number"},"not_equals":{"type":"number"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"number"},"greater_than_equal":{"type":"number"},"less_than":{"type":"number"},"less_than_equal":{"type":"number"}}},"creationCompletedTasks":{"type":"object","properties":{"equals":{"type":"number"},"not_equals":{"type":"number"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"number"},"greater_than_equal":{"type":"number"},"less_than":{"type":"number"},"less_than_equal":{"type":"number"}}},"versionNumber":{"type":"object","properties":{"equals":{"type":"number"},"not_equals":{"type":"number"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"number"},"greater_than_equal":{"type":"number"},"less_than":{"type":"number"},"less_than_equal":{"type":"number"}}},"publishedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"publishedByName":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"publishNote":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"updatedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"createdAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}}}},"PlaybookTemplateVariableQueryOperationsOr":{"title":"Playbook Template Variable query disjunction","type":"object","properties":{"or":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/PlaybookTemplateVariableQueryOperations"},{"$ref":"#/components/schemas/PlaybookTemplateVariableQueryOperationsAnd"},{"$ref":"#/components/schemas/PlaybookTemplateVariableQueryOperationsOr"}]}}},"required":["or"]},"PlaybookTemplateVariableQueryOperationsAnd":{"title":"Playbook Template Variable query conjunction","type":"object","properties":{"and":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/PlaybookTemplateVariableQueryOperations"},{"$ref":"#/components/schemas/PlaybookTemplateVariableQueryOperationsAnd"},{"$ref":"#/components/schemas/PlaybookTemplateVariableQueryOperationsOr"}]}}},"required":["and"]},"PlaybookTemplateVariableQueryOperations":{"title":"Playbook Template Variable query operations","type":"object","properties":{"name":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"slug":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"required":{"type":"object","properties":{"equals":{"type":"boolean"},"not_equals":{"type":"boolean"},"in":{"type":"string"},"not_in":{"type":"string"}}},"archivedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"updatedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"createdAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}}}},"PageQueryOperationsOr":{"title":"Page query disjunction","type":"object","properties":{"or":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/PageQueryOperations"},{"$ref":"#/components/schemas/PageQueryOperationsAnd"},{"$ref":"#/components/schemas/PageQueryOperationsOr"}]}}},"required":["or"]},"PageQueryOperationsAnd":{"title":"Page query conjunction","type":"object","properties":{"and":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/PageQueryOperations"},{"$ref":"#/components/schemas/PageQueryOperationsAnd"},{"$ref":"#/components/schemas/PageQueryOperationsOr"}]}}},"required":["and"]},"PageQueryOperations":{"title":"Page query operations","type":"object","properties":{"name":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"slug":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"url":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"activeStateId":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"public":{"type":"object","properties":{"equals":{"type":"boolean"},"not_equals":{"type":"boolean"},"in":{"type":"string"},"not_in":{"type":"string"}}},"archivedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"updatedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"createdAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}}}},"OutcomeQueryOperationsOr":{"title":"Outcome query disjunction","type":"object","properties":{"or":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/OutcomeQueryOperations"},{"$ref":"#/components/schemas/OutcomeQueryOperationsAnd"},{"$ref":"#/components/schemas/OutcomeQueryOperationsOr"}]}}},"required":["or"]},"OutcomeQueryOperationsAnd":{"title":"Outcome query conjunction","type":"object","properties":{"and":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/OutcomeQueryOperations"},{"$ref":"#/components/schemas/OutcomeQueryOperationsAnd"},{"$ref":"#/components/schemas/OutcomeQueryOperationsOr"}]}}},"required":["and"]},"OutcomeQueryOperations":{"title":"Outcome query operations","type":"object","properties":{"name":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"kind":{"type":"object","properties":{"equals":{"type":"string","enum":["customer","internal"]},"not_equals":{"type":"string","enum":["customer","internal"]},"in":{"type":"string"},"not_in":{"type":"string"}}},"importance":{"type":"object","properties":{"equals":{"type":"string","enum":["low","medium","high"]},"not_equals":{"type":"string","enum":["low","medium","high"]},"in":{"type":"string"},"not_in":{"type":"string"}}},"unit":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"startValue":{"type":"object","properties":{"equals":{"type":"number"},"not_equals":{"type":"number"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"number"},"greater_than_equal":{"type":"number"},"less_than":{"type":"number"},"less_than_equal":{"type":"number"}}},"targetValue":{"type":"object","properties":{"equals":{"type":"number"},"not_equals":{"type":"number"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"number"},"greater_than_equal":{"type":"number"},"less_than":{"type":"number"},"less_than_equal":{"type":"number"}}},"achievedValue":{"type":"object","properties":{"equals":{"type":"number"},"not_equals":{"type":"number"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"number"},"greater_than_equal":{"type":"number"},"less_than":{"type":"number"},"less_than_equal":{"type":"number"}}},"achievedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"removedValues":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"deadlineAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"visibleToCustomer":{"type":"object","properties":{"equals":{"type":"boolean"},"not_equals":{"type":"boolean"},"in":{"type":"string"},"not_in":{"type":"string"}}},"archivedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"updatedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"createdAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}}}},"ObjectQueryOperationsOr":{"title":"Object query disjunction","type":"object","properties":{"or":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/ObjectQueryOperations"},{"$ref":"#/components/schemas/ObjectQueryOperationsAnd"},{"$ref":"#/components/schemas/ObjectQueryOperationsOr"}]}}},"required":["or"]},"ObjectQueryOperationsAnd":{"title":"Object query conjunction","type":"object","properties":{"and":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/ObjectQueryOperations"},{"$ref":"#/components/schemas/ObjectQueryOperationsAnd"},{"$ref":"#/components/schemas/ObjectQueryOperationsOr"}]}}},"required":["and"]},"ObjectQueryOperations":{"title":"Object query operations","type":"object","properties":{"name":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"slug":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"icon":{"type":"object","properties":{"equals":{"type":"string","enum":["package","box","boxes","tag","layers","database","server","globe","briefcase","building-2","factory","truck","wrench","puzzle","star","zap","shield","cpu","shopping-cart","file-text","handshake","route"]},"not_equals":{"type":"string","enum":["package","box","boxes","tag","layers","database","server","globe","briefcase","building-2","factory","truck","wrench","puzzle","star","zap","shield","cpu","shopping-cart","file-text","handshake","route"]},"in":{"type":"string"},"not_in":{"type":"string"}}},"integrationKey":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"integrationEnabled":{"type":"object","properties":{"equals":{"type":"boolean"},"not_equals":{"type":"boolean"},"in":{"type":"string"},"not_in":{"type":"string"}}},"integrationSyncEnabled":{"type":"object","properties":{"equals":{"type":"boolean"},"not_equals":{"type":"boolean"},"in":{"type":"string"},"not_in":{"type":"string"}}},"archivedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"updatedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"createdAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}}}},"ObjectRecordQueryOperationsOr":{"title":"Object Record query disjunction","type":"object","properties":{"or":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/ObjectRecordQueryOperations"},{"$ref":"#/components/schemas/ObjectRecordQueryOperationsAnd"},{"$ref":"#/components/schemas/ObjectRecordQueryOperationsOr"}]}}},"required":["or"]},"ObjectRecordQueryOperationsAnd":{"title":"Object Record query conjunction","type":"object","properties":{"and":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/ObjectRecordQueryOperations"},{"$ref":"#/components/schemas/ObjectRecordQueryOperationsAnd"},{"$ref":"#/components/schemas/ObjectRecordQueryOperationsOr"}]}}},"required":["and"]},"ObjectRecordQueryOperations":{"title":"Object Record query operations","type":"object","properties":{"name":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"objectSlug":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"integrationAvailable":{"type":"object","properties":{"equals":{"type":"boolean"},"not_equals":{"type":"boolean"},"in":{"type":"string"},"not_in":{"type":"string"}}},"integrationIncluded":{"type":"object","properties":{"equals":{"type":"boolean"},"not_equals":{"type":"boolean"},"in":{"type":"string"},"not_in":{"type":"string"}}},"archivedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"updatedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"createdAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}}}},"ObjectRecordVariableValue":{"type":"object","additionalProperties":false,"title":"Object Record Variable Value","properties":{"id":{"type":"string"},"variable":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Variable"}]},"record":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/ObjectRecord"}]},"value":{"type":"array","items":{"oneOf":[{"type":"object","additionalProperties":false,"properties":{"data":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/ObjectRecord"}]},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["object-reference-value"]}},"required":["blockType","data"]},{"type":"object","additionalProperties":false,"properties":{"data":{"type":"string"},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["text"]}},"required":["blockType","data"]},{"type":"object","additionalProperties":false,"properties":{"data":{"type":"number"},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["number"]}},"required":["blockType","data"]},{"type":"object","additionalProperties":false,"properties":{"data":{"type":"boolean"},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["boolean"]}},"required":["blockType","data"]},{"type":"object","additionalProperties":false,"properties":{"data":{"type":"string"},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["date"]}},"required":["blockType","data"]},{"type":"object","additionalProperties":false,"properties":{"data":{"type":"string"},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["select"]}},"required":["blockType","data"]}]}},"archivedAt":{"description":"When this record was archived. Null when active.","type":"string","nullable":true},"permissions":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"entity":{"oneOf":[{"type":"object","additionalProperties":false,"properties":{"relationTo":{"enum":["users"]},"value":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]}},"required":["value","relationTo"]},{"type":"object","additionalProperties":false,"properties":{"relationTo":{"enum":["groups"]},"value":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Group"}]}},"required":["value","relationTo"]}]},"level":{"type":"number"},"origin":{"description":"Document where this permission was declared and can be edited.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"inheritedFrom":{"description":"Immediate parent that synchronized this read-only entry.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"id":{"type":"string","nullable":true}},"required":["entity","level"]},"nullable":true},"updatedAt":{"type":"string"},"createdAt":{"type":"string"}},"required":["id","variable","record","value","updatedAt","createdAt"]},"ObjectRecordVariableValueQueryOperationsOr":{"title":"Object Record Variable Value query disjunction","type":"object","properties":{"or":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/ObjectRecordVariableValueQueryOperations"},{"$ref":"#/components/schemas/ObjectRecordVariableValueQueryOperationsAnd"},{"$ref":"#/components/schemas/ObjectRecordVariableValueQueryOperationsOr"}]}}},"required":["or"]},"ObjectRecordVariableValueQueryOperationsAnd":{"title":"Object Record Variable Value query conjunction","type":"object","properties":{"and":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/ObjectRecordVariableValueQueryOperations"},{"$ref":"#/components/schemas/ObjectRecordVariableValueQueryOperationsAnd"},{"$ref":"#/components/schemas/ObjectRecordVariableValueQueryOperationsOr"}]}}},"required":["and"]},"ObjectRecordVariableValueQueryOperations":{"title":"Object Record Variable Value query operations","type":"object","properties":{"archivedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"updatedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"createdAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}}}},"Notification":{"type":"object","additionalProperties":false,"title":"Notification","properties":{"id":{"type":"string"},"surface":{"type":"string","enum":["app","portal"]},"title":{"type":"string"},"body":{"type":"string","nullable":true},"href":{"type":"string","nullable":true},"reason":{"type":"string","enum":["assigned","mentioned","commented","approval-requested","changes-requested","step-completed","playbook-started","playbook-completed","access-requested","import-read"]},"recipient":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"actor":{"oneOf":[{"type":"string","nullable":true},{"$ref":"#/components/schemas/User"}]},"customer":{"oneOf":[{"type":"string","nullable":true},{"$ref":"#/components/schemas/Customer"}]},"journey":{"oneOf":[{"type":"string","nullable":true},{"$ref":"#/components/schemas/Journey"}]},"playbook":{"oneOf":[{"type":"string","nullable":true},{"$ref":"#/components/schemas/Playbook"}]},"step":{"oneOf":[{"type":"string","nullable":true},{"$ref":"#/components/schemas/Step"}]},"readAt":{"type":"string","nullable":true},"updatedAt":{"type":"string"},"createdAt":{"type":"string"}},"required":["id","surface","title","reason","recipient","updatedAt","createdAt"]},"NotificationQueryOperationsOr":{"title":"Notification query disjunction","type":"object","properties":{"or":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/NotificationQueryOperations"},{"$ref":"#/components/schemas/NotificationQueryOperationsAnd"},{"$ref":"#/components/schemas/NotificationQueryOperationsOr"}]}}},"required":["or"]},"NotificationQueryOperationsAnd":{"title":"Notification query conjunction","type":"object","properties":{"and":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/NotificationQueryOperations"},{"$ref":"#/components/schemas/NotificationQueryOperationsAnd"},{"$ref":"#/components/schemas/NotificationQueryOperationsOr"}]}}},"required":["and"]},"NotificationQueryOperations":{"title":"Notification query operations","type":"object","properties":{"surface":{"type":"object","properties":{"equals":{"type":"string","enum":["app","portal"]},"not_equals":{"type":"string","enum":["app","portal"]},"in":{"type":"string"},"not_in":{"type":"string"}}},"title":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"href":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"reason":{"type":"object","properties":{"equals":{"type":"string","enum":["assigned","mentioned","commented","approval-requested","changes-requested","step-completed","playbook-started","playbook-completed","access-requested","import-read"]},"not_equals":{"type":"string","enum":["assigned","mentioned","commented","approval-requested","changes-requested","step-completed","playbook-started","playbook-completed","access-requested","import-read"]},"in":{"type":"string"},"not_in":{"type":"string"}}},"readAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"updatedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"createdAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}}}},"JourneyQueryOperationsOr":{"title":"Journey query disjunction","type":"object","properties":{"or":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/JourneyQueryOperations"},{"$ref":"#/components/schemas/JourneyQueryOperationsAnd"},{"$ref":"#/components/schemas/JourneyQueryOperationsOr"}]}}},"required":["or"]},"JourneyQueryOperationsAnd":{"title":"Journey query conjunction","type":"object","properties":{"and":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/JourneyQueryOperations"},{"$ref":"#/components/schemas/JourneyQueryOperationsAnd"},{"$ref":"#/components/schemas/JourneyQueryOperationsOr"}]}}},"required":["and"]},"JourneyQueryOperations":{"title":"Journey query operations","type":"object","properties":{"name":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"slug":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"lastStepNumber":{"type":"object","properties":{"equals":{"type":"number"},"not_equals":{"type":"number"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"number"},"greater_than_equal":{"type":"number"},"less_than":{"type":"number"},"less_than_equal":{"type":"number"}}},"state":{"type":"object","properties":{"equals":{"type":"string","enum":["draft","started","paused","completed","cancelled"]},"not_equals":{"type":"string","enum":["draft","started","paused","completed","cancelled"]},"in":{"type":"string"},"not_in":{"type":"string"}}},"startedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"deadlineAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"archivedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"customerName":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"lastCommentAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"updatedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"createdAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}}}},"JourneyVariableValue":{"type":"object","additionalProperties":false,"title":"Journey Variable Value","properties":{"id":{"type":"string"},"variable":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Variable"}]},"journey":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Journey"}]},"value":{"type":"array","items":{"oneOf":[{"type":"object","additionalProperties":false,"properties":{"data":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/ObjectRecord"}]},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["object-reference-value"]}},"required":["blockType","data"]},{"type":"object","additionalProperties":false,"properties":{"data":{"type":"string"},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["text"]}},"required":["blockType","data"]},{"type":"object","additionalProperties":false,"properties":{"data":{"type":"number"},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["number"]}},"required":["blockType","data"]},{"type":"object","additionalProperties":false,"properties":{"data":{"type":"boolean"},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["boolean"]}},"required":["blockType","data"]},{"type":"object","additionalProperties":false,"properties":{"data":{"type":"string"},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["date"]}},"required":["blockType","data"]},{"type":"object","additionalProperties":false,"properties":{"data":{"type":"string"},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["select"]}},"required":["blockType","data"]}]}},"archivedAt":{"description":"When this record was archived. Null when active.","type":"string","nullable":true},"permissions":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"entity":{"oneOf":[{"type":"object","additionalProperties":false,"properties":{"relationTo":{"enum":["users"]},"value":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]}},"required":["value","relationTo"]},{"type":"object","additionalProperties":false,"properties":{"relationTo":{"enum":["groups"]},"value":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Group"}]}},"required":["value","relationTo"]}]},"level":{"type":"number"},"origin":{"description":"Document where this permission was declared and can be edited.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"inheritedFrom":{"description":"Immediate parent that synchronized this read-only entry.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"id":{"type":"string","nullable":true}},"required":["entity","level"]},"nullable":true},"updatedAt":{"type":"string"},"createdAt":{"type":"string"}},"required":["id","variable","journey","value","updatedAt","createdAt"]},"JourneyVariableValueQueryOperationsOr":{"title":"Journey Variable Value query disjunction","type":"object","properties":{"or":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/JourneyVariableValueQueryOperations"},{"$ref":"#/components/schemas/JourneyVariableValueQueryOperationsAnd"},{"$ref":"#/components/schemas/JourneyVariableValueQueryOperationsOr"}]}}},"required":["or"]},"JourneyVariableValueQueryOperationsAnd":{"title":"Journey Variable Value query conjunction","type":"object","properties":{"and":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/JourneyVariableValueQueryOperations"},{"$ref":"#/components/schemas/JourneyVariableValueQueryOperationsAnd"},{"$ref":"#/components/schemas/JourneyVariableValueQueryOperationsOr"}]}}},"required":["and"]},"JourneyVariableValueQueryOperations":{"title":"Journey Variable Value query operations","type":"object","properties":{"archivedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"updatedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"createdAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}}}},"JourneyTemplateQueryOperationsOr":{"title":"Journey Template query disjunction","type":"object","properties":{"or":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/JourneyTemplateQueryOperations"},{"$ref":"#/components/schemas/JourneyTemplateQueryOperationsAnd"},{"$ref":"#/components/schemas/JourneyTemplateQueryOperationsOr"}]}}},"required":["or"]},"JourneyTemplateQueryOperationsAnd":{"title":"Journey Template query conjunction","type":"object","properties":{"and":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/JourneyTemplateQueryOperations"},{"$ref":"#/components/schemas/JourneyTemplateQueryOperationsAnd"},{"$ref":"#/components/schemas/JourneyTemplateQueryOperationsOr"}]}}},"required":["and"]},"JourneyTemplateQueryOperations":{"title":"Journey Template query operations","type":"object","properties":{"name":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"archivedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"hasDraftChanges":{"type":"object","properties":{"equals":{"type":"boolean"},"not_equals":{"type":"boolean"},"in":{"type":"string"},"not_in":{"type":"string"}}},"updatedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"createdAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}}}},"JourneyTemplateVersionQueryOperationsOr":{"title":"Journey Template Version query disjunction","type":"object","properties":{"or":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/JourneyTemplateVersionQueryOperations"},{"$ref":"#/components/schemas/JourneyTemplateVersionQueryOperationsAnd"},{"$ref":"#/components/schemas/JourneyTemplateVersionQueryOperationsOr"}]}}},"required":["or"]},"JourneyTemplateVersionQueryOperationsAnd":{"title":"Journey Template Version query conjunction","type":"object","properties":{"and":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/JourneyTemplateVersionQueryOperations"},{"$ref":"#/components/schemas/JourneyTemplateVersionQueryOperationsAnd"},{"$ref":"#/components/schemas/JourneyTemplateVersionQueryOperationsOr"}]}}},"required":["and"]},"JourneyTemplateVersionQueryOperations":{"title":"Journey Template Version query operations","type":"object","properties":{"archivedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"versionStatus":{"type":"object","properties":{"equals":{"type":"string","enum":["pending","ready","corrupted"]},"not_equals":{"type":"string","enum":["pending","ready","corrupted"]},"in":{"type":"string"},"not_in":{"type":"string"}}},"creationTotalTasks":{"type":"object","properties":{"equals":{"type":"number"},"not_equals":{"type":"number"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"number"},"greater_than_equal":{"type":"number"},"less_than":{"type":"number"},"less_than_equal":{"type":"number"}}},"creationCompletedTasks":{"type":"object","properties":{"equals":{"type":"number"},"not_equals":{"type":"number"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"number"},"greater_than_equal":{"type":"number"},"less_than":{"type":"number"},"less_than_equal":{"type":"number"}}},"versionNumber":{"type":"object","properties":{"equals":{"type":"number"},"not_equals":{"type":"number"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"number"},"greater_than_equal":{"type":"number"},"less_than":{"type":"number"},"less_than_equal":{"type":"number"}}},"publishedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"publishedByName":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"publishNote":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"updatedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"createdAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}}}},"Insight":{"type":"object","additionalProperties":false,"title":"Insight","properties":{"id":{"type":"string"},"name":{"type":"string"},"user":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"shared":{"type":"boolean","nullable":true},"widgets":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"type":{"type":"string","enum":["steps-completed","on-time-rate","overdue-now","median-cycle-time","open-decisions","time-spent","steps-completed-per-week","throughput-by-owner","on-time-completion-rate","cycle-time","open-steps-by-owner","time-spent-by-person","journeys-by-status","accounts-by-champion-count","adoption-by-template","outcome-completion","needs-attention","decisions-waiting"]},"size":{"type":"string","enum":["small","medium","large"]},"id":{"type":"string","nullable":true}},"required":["type","size"]},"nullable":true},"period":{"type":"string","enum":["30d","90d","180d","365d","all"]},"compare":{"type":"string","enum":["none","previous","lastYear"]},"updatedAt":{"type":"string"},"createdAt":{"type":"string"}},"required":["id","name","user","period","compare","updatedAt","createdAt"]},"InsightQueryOperationsOr":{"title":"Insight query disjunction","type":"object","properties":{"or":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/InsightQueryOperations"},{"$ref":"#/components/schemas/InsightQueryOperationsAnd"},{"$ref":"#/components/schemas/InsightQueryOperationsOr"}]}}},"required":["or"]},"InsightQueryOperationsAnd":{"title":"Insight query conjunction","type":"object","properties":{"and":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/InsightQueryOperations"},{"$ref":"#/components/schemas/InsightQueryOperationsAnd"},{"$ref":"#/components/schemas/InsightQueryOperationsOr"}]}}},"required":["and"]},"InsightQueryOperations":{"title":"Insight query operations","type":"object","properties":{"name":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"shared":{"type":"object","properties":{"equals":{"type":"boolean"},"not_equals":{"type":"boolean"},"in":{"type":"string"},"not_in":{"type":"string"}}},"period":{"type":"object","properties":{"equals":{"type":"string","enum":["30d","90d","180d","365d","all"]},"not_equals":{"type":"string","enum":["30d","90d","180d","365d","all"]},"in":{"type":"string"},"not_in":{"type":"string"}}},"compare":{"type":"object","properties":{"equals":{"type":"string","enum":["none","previous","lastYear"]},"not_equals":{"type":"string","enum":["none","previous","lastYear"]},"in":{"type":"string"},"not_in":{"type":"string"}}},"updatedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"createdAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}}}},"GroupQueryOperationsOr":{"title":"Group query disjunction","type":"object","properties":{"or":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/GroupQueryOperations"},{"$ref":"#/components/schemas/GroupQueryOperationsAnd"},{"$ref":"#/components/schemas/GroupQueryOperationsOr"}]}}},"required":["or"]},"GroupQueryOperationsAnd":{"title":"Group query conjunction","type":"object","properties":{"and":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/GroupQueryOperations"},{"$ref":"#/components/schemas/GroupQueryOperationsAnd"},{"$ref":"#/components/schemas/GroupQueryOperationsOr"}]}}},"required":["and"]},"GroupQueryOperations":{"title":"Group query operations","type":"object","properties":{"name":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"color":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"updatedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"createdAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}}}},"FormQueryOperationsOr":{"title":"Form query disjunction","type":"object","properties":{"or":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/FormQueryOperations"},{"$ref":"#/components/schemas/FormQueryOperationsAnd"},{"$ref":"#/components/schemas/FormQueryOperationsOr"}]}}},"required":["or"]},"FormQueryOperationsAnd":{"title":"Form query conjunction","type":"object","properties":{"and":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/FormQueryOperations"},{"$ref":"#/components/schemas/FormQueryOperationsAnd"},{"$ref":"#/components/schemas/FormQueryOperationsOr"}]}}},"required":["and"]},"FormQueryOperations":{"title":"Form query operations","type":"object","properties":{"name":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"archivedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"updatedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"createdAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}}}},"FormTemplateQueryOperationsOr":{"title":"Form Template query disjunction","type":"object","properties":{"or":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/FormTemplateQueryOperations"},{"$ref":"#/components/schemas/FormTemplateQueryOperationsAnd"},{"$ref":"#/components/schemas/FormTemplateQueryOperationsOr"}]}}},"required":["or"]},"FormTemplateQueryOperationsAnd":{"title":"Form Template query conjunction","type":"object","properties":{"and":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/FormTemplateQueryOperations"},{"$ref":"#/components/schemas/FormTemplateQueryOperationsAnd"},{"$ref":"#/components/schemas/FormTemplateQueryOperationsOr"}]}}},"required":["and"]},"FormTemplateQueryOperations":{"title":"Form Template query operations","type":"object","properties":{"name":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"archivedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"hasDraftChanges":{"type":"object","properties":{"equals":{"type":"boolean"},"not_equals":{"type":"boolean"},"in":{"type":"string"},"not_in":{"type":"string"}}},"updatedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"createdAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}}}},"FormTemplateVersionQueryOperationsOr":{"title":"Form Template Version query disjunction","type":"object","properties":{"or":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/FormTemplateVersionQueryOperations"},{"$ref":"#/components/schemas/FormTemplateVersionQueryOperationsAnd"},{"$ref":"#/components/schemas/FormTemplateVersionQueryOperationsOr"}]}}},"required":["or"]},"FormTemplateVersionQueryOperationsAnd":{"title":"Form Template Version query conjunction","type":"object","properties":{"and":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/FormTemplateVersionQueryOperations"},{"$ref":"#/components/schemas/FormTemplateVersionQueryOperationsAnd"},{"$ref":"#/components/schemas/FormTemplateVersionQueryOperationsOr"}]}}},"required":["and"]},"FormTemplateVersionQueryOperations":{"title":"Form Template Version query operations","type":"object","properties":{"archivedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"versionStatus":{"type":"object","properties":{"equals":{"type":"string","enum":["pending","ready","corrupted"]},"not_equals":{"type":"string","enum":["pending","ready","corrupted"]},"in":{"type":"string"},"not_in":{"type":"string"}}},"creationTotalTasks":{"type":"object","properties":{"equals":{"type":"number"},"not_equals":{"type":"number"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"number"},"greater_than_equal":{"type":"number"},"less_than":{"type":"number"},"less_than_equal":{"type":"number"}}},"creationCompletedTasks":{"type":"object","properties":{"equals":{"type":"number"},"not_equals":{"type":"number"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"number"},"greater_than_equal":{"type":"number"},"less_than":{"type":"number"},"less_than_equal":{"type":"number"}}},"versionNumber":{"type":"object","properties":{"equals":{"type":"number"},"not_equals":{"type":"number"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"number"},"greater_than_equal":{"type":"number"},"less_than":{"type":"number"},"less_than_equal":{"type":"number"}}},"publishedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"publishedByName":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"publishNote":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"updatedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"createdAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}}}},"FormCompletion":{"type":"object","additionalProperties":false,"title":"Form Completion","properties":{"id":{"type":"string"},"playbook":{"description":"Playbook owner for step form completions.","oneOf":[{"type":"string","nullable":true},{"$ref":"#/components/schemas/Playbook"}]},"journey":{"oneOf":[{"type":"string","nullable":true},{"$ref":"#/components/schemas/Journey"}]},"step":{"oneOf":[{"type":"string","nullable":true},{"$ref":"#/components/schemas/Step"}]},"form":{"oneOf":[{"type":"string","nullable":true},{"$ref":"#/components/schemas/Form"}]},"filledBy":{"description":"Deprecated since v0.10.4. This field will become optional: it is empty once the member's account is deleted.","oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}],"deprecated":true,"x-sekential-deprecation":{"since":"v0.10.4"}},"state":{"type":"string","enum":["draft","completed"]},"startedAt":{"type":"string","nullable":true},"completedAt":{"description":"When the answers were submitted.","type":"string","nullable":true},"answers":{"nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"archivedAt":{"description":"When this record was archived. Null when active.","type":"string","nullable":true},"permissions":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"entity":{"oneOf":[{"type":"object","additionalProperties":false,"properties":{"relationTo":{"enum":["users"]},"value":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]}},"required":["value","relationTo"]},{"type":"object","additionalProperties":false,"properties":{"relationTo":{"enum":["groups"]},"value":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Group"}]}},"required":["value","relationTo"]}]},"level":{"type":"number"},"origin":{"description":"Document where this permission was declared and can be edited.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"inheritedFrom":{"description":"Immediate parent that synchronized this read-only entry.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"id":{"type":"string","nullable":true}},"required":["entity","level"]},"nullable":true},"updatedAt":{"type":"string"},"createdAt":{"type":"string"}},"required":["id","filledBy","state","updatedAt","createdAt"]},"FormCompletionQueryOperationsOr":{"title":"Form Completion query disjunction","type":"object","properties":{"or":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/FormCompletionQueryOperations"},{"$ref":"#/components/schemas/FormCompletionQueryOperationsAnd"},{"$ref":"#/components/schemas/FormCompletionQueryOperationsOr"}]}}},"required":["or"]},"FormCompletionQueryOperationsAnd":{"title":"Form Completion query conjunction","type":"object","properties":{"and":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/FormCompletionQueryOperations"},{"$ref":"#/components/schemas/FormCompletionQueryOperationsAnd"},{"$ref":"#/components/schemas/FormCompletionQueryOperationsOr"}]}}},"required":["and"]},"FormCompletionQueryOperations":{"title":"Form Completion query operations","type":"object","properties":{"state":{"type":"object","properties":{"equals":{"type":"string","enum":["draft","completed"]},"not_equals":{"type":"string","enum":["draft","completed"]},"in":{"type":"string"},"not_in":{"type":"string"}}},"startedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"completedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"archivedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"updatedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"createdAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}}}},"EmailQueryOperationsOr":{"title":"Email query disjunction","type":"object","properties":{"or":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/EmailQueryOperations"},{"$ref":"#/components/schemas/EmailQueryOperationsAnd"},{"$ref":"#/components/schemas/EmailQueryOperationsOr"}]}}},"required":["or"]},"EmailQueryOperationsAnd":{"title":"Email query conjunction","type":"object","properties":{"and":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/EmailQueryOperations"},{"$ref":"#/components/schemas/EmailQueryOperationsAnd"},{"$ref":"#/components/schemas/EmailQueryOperationsOr"}]}}},"required":["and"]},"EmailQueryOperations":{"title":"Email query operations","type":"object","properties":{"name":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"subject":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"archivedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"updatedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"createdAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}}}},"EmailTemplateQueryOperationsOr":{"title":"Email Template query disjunction","type":"object","properties":{"or":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/EmailTemplateQueryOperations"},{"$ref":"#/components/schemas/EmailTemplateQueryOperationsAnd"},{"$ref":"#/components/schemas/EmailTemplateQueryOperationsOr"}]}}},"required":["or"]},"EmailTemplateQueryOperationsAnd":{"title":"Email Template query conjunction","type":"object","properties":{"and":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/EmailTemplateQueryOperations"},{"$ref":"#/components/schemas/EmailTemplateQueryOperationsAnd"},{"$ref":"#/components/schemas/EmailTemplateQueryOperationsOr"}]}}},"required":["and"]},"EmailTemplateQueryOperations":{"title":"Email Template query operations","type":"object","properties":{"name":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"archivedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"hasDraftChanges":{"type":"object","properties":{"equals":{"type":"boolean"},"not_equals":{"type":"boolean"},"in":{"type":"string"},"not_in":{"type":"string"}}},"updatedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"createdAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}}}},"EmailTemplateVersionQueryOperationsOr":{"title":"Email Template Version query disjunction","type":"object","properties":{"or":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/EmailTemplateVersionQueryOperations"},{"$ref":"#/components/schemas/EmailTemplateVersionQueryOperationsAnd"},{"$ref":"#/components/schemas/EmailTemplateVersionQueryOperationsOr"}]}}},"required":["or"]},"EmailTemplateVersionQueryOperationsAnd":{"title":"Email Template Version query conjunction","type":"object","properties":{"and":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/EmailTemplateVersionQueryOperations"},{"$ref":"#/components/schemas/EmailTemplateVersionQueryOperationsAnd"},{"$ref":"#/components/schemas/EmailTemplateVersionQueryOperationsOr"}]}}},"required":["and"]},"EmailTemplateVersionQueryOperations":{"title":"Email Template Version query operations","type":"object","properties":{"archivedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"versionStatus":{"type":"object","properties":{"equals":{"type":"string","enum":["pending","ready","corrupted"]},"not_equals":{"type":"string","enum":["pending","ready","corrupted"]},"in":{"type":"string"},"not_in":{"type":"string"}}},"creationTotalTasks":{"type":"object","properties":{"equals":{"type":"number"},"not_equals":{"type":"number"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"number"},"greater_than_equal":{"type":"number"},"less_than":{"type":"number"},"less_than_equal":{"type":"number"}}},"creationCompletedTasks":{"type":"object","properties":{"equals":{"type":"number"},"not_equals":{"type":"number"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"number"},"greater_than_equal":{"type":"number"},"less_than":{"type":"number"},"less_than_equal":{"type":"number"}}},"versionNumber":{"type":"object","properties":{"equals":{"type":"number"},"not_equals":{"type":"number"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"number"},"greater_than_equal":{"type":"number"},"less_than":{"type":"number"},"less_than_equal":{"type":"number"}}},"publishedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"publishedByName":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"publishNote":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"updatedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"createdAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}}}},"TenantDomain":{"type":"object","additionalProperties":false,"title":"Tenant domain","properties":{"id":{"type":"string"},"name":{"type":"string"},"purposes":{"type":"array","items":{"type":"string","enum":["portal","email"]}},"portal":{"oneOf":[{"type":"string","nullable":true},{"$ref":"#/components/schemas/Portal"}]},"dnsRecords":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"service":{"type":"string","enum":["portal","email"]},"type":{"type":"string","enum":["CNAME","MX","TXT"]},"name":{"type":"string"},"value":{"type":"string"},"priority":{"type":"number","nullable":true},"description":{"type":"string","nullable":true},"id":{"type":"string","nullable":true}},"required":["service","type","name","value"]},"nullable":true},"email":{"type":"object","additionalProperties":false,"properties":{"status":{"type":"string","enum":["not-requested","pending","verified","active","failed"]},"verificationStatus":{"type":"string","nullable":true},"dkimStatus":{"type":"string","nullable":true},"mailFromDomain":{"type":"string","nullable":true},"mailFromStatus":{"type":"string","nullable":true},"sesTenantName":{"type":"string","nullable":true},"configurationSetName":{"type":"string","nullable":true}},"required":["status"]},"portalDelivery":{"type":"object","additionalProperties":false,"properties":{"provider":{"type":"string","enum":["aws","ovh"],"nullable":true},"status":{"type":"string","enum":["not-requested","pending","verified","active","failed"]},"certificateArn":{"type":"string","nullable":true},"certificateStatus":{"type":"string","nullable":true},"listenerRuleArn":{"type":"string","nullable":true},"certificateRef":{"type":"string","nullable":true},"routeRef":{"type":"string","nullable":true}},"required":["status"]},"lastCheckedAt":{"type":"string","nullable":true},"provisioningError":{"type":"string","nullable":true},"updatedAt":{"type":"string"},"createdAt":{"type":"string"}},"required":["id","name","purposes","email","portalDelivery","updatedAt","createdAt"],"description":"App-managed customer domains for email identity and portal delivery."},"TenantDomainQueryOperationsOr":{"title":"Tenant domain query disjunction","type":"object","properties":{"or":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/TenantDomainQueryOperations"},{"$ref":"#/components/schemas/TenantDomainQueryOperationsAnd"},{"$ref":"#/components/schemas/TenantDomainQueryOperationsOr"}]}}},"required":["or"]},"TenantDomainQueryOperationsAnd":{"title":"Tenant domain query conjunction","type":"object","properties":{"and":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/TenantDomainQueryOperations"},{"$ref":"#/components/schemas/TenantDomainQueryOperationsAnd"},{"$ref":"#/components/schemas/TenantDomainQueryOperationsOr"}]}}},"required":["and"]},"TenantDomainQueryOperations":{"title":"Tenant domain query operations","type":"object","properties":{"name":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"purposes":{"type":"object","properties":{"equals":{"type":"string","enum":["portal","email"]},"not_equals":{"type":"string","enum":["portal","email"]},"in":{"type":"string"},"not_in":{"type":"string"}}},"lastCheckedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"updatedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"createdAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}}}},"CustomerQueryOperationsOr":{"title":"Customer query disjunction","type":"object","properties":{"or":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/CustomerQueryOperations"},{"$ref":"#/components/schemas/CustomerQueryOperationsAnd"},{"$ref":"#/components/schemas/CustomerQueryOperationsOr"}]}}},"required":["or"]},"CustomerQueryOperationsAnd":{"title":"Customer query conjunction","type":"object","properties":{"and":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/CustomerQueryOperations"},{"$ref":"#/components/schemas/CustomerQueryOperationsAnd"},{"$ref":"#/components/schemas/CustomerQueryOperationsOr"}]}}},"required":["and"]},"CustomerQueryOperations":{"title":"Customer query operations","type":"object","properties":{"name":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"logoUrl":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"state":{"type":"object","properties":{"equals":{"type":"string","enum":["draft","active","break","churned"]},"not_equals":{"type":"string","enum":["draft","active","break","churned"]},"in":{"type":"string"},"not_in":{"type":"string"}}},"archivedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"status":{"type":"object","properties":{"equals":{"type":"string","enum":["draft","active","break","churned","archived"]},"not_equals":{"type":"string","enum":["draft","active","break","churned","archived"]},"in":{"type":"string"},"not_in":{"type":"string"}}},"emailDomains":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"lastCommentAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"updatedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"createdAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}}}},"CustomerVariableValue":{"type":"object","additionalProperties":false,"title":"Customer Variable Value","properties":{"id":{"type":"string"},"variable":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Variable"}]},"customer":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Customer"}]},"value":{"type":"array","items":{"oneOf":[{"type":"object","additionalProperties":false,"properties":{"data":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/ObjectRecord"}]},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["object-reference-value"]}},"required":["blockType","data"]},{"type":"object","additionalProperties":false,"properties":{"data":{"type":"string"},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["text"]}},"required":["blockType","data"]},{"type":"object","additionalProperties":false,"properties":{"data":{"type":"number"},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["number"]}},"required":["blockType","data"]},{"type":"object","additionalProperties":false,"properties":{"data":{"type":"boolean"},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["boolean"]}},"required":["blockType","data"]},{"type":"object","additionalProperties":false,"properties":{"data":{"type":"string"},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["date"]}},"required":["blockType","data"]},{"type":"object","additionalProperties":false,"properties":{"data":{"type":"string"},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["select"]}},"required":["blockType","data"]}]}},"archivedAt":{"description":"When this record was archived. Null when active.","type":"string","nullable":true},"permissions":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"entity":{"oneOf":[{"type":"object","additionalProperties":false,"properties":{"relationTo":{"enum":["users"]},"value":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]}},"required":["value","relationTo"]},{"type":"object","additionalProperties":false,"properties":{"relationTo":{"enum":["groups"]},"value":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Group"}]}},"required":["value","relationTo"]}]},"level":{"type":"number"},"origin":{"description":"Document where this permission was declared and can be edited.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"inheritedFrom":{"description":"Immediate parent that synchronized this read-only entry.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"id":{"type":"string","nullable":true}},"required":["entity","level"]},"nullable":true},"updatedAt":{"type":"string"},"createdAt":{"type":"string"}},"required":["id","variable","customer","value","updatedAt","createdAt"]},"CustomerVariableValueQueryOperationsOr":{"title":"Customer Variable Value query disjunction","type":"object","properties":{"or":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/CustomerVariableValueQueryOperations"},{"$ref":"#/components/schemas/CustomerVariableValueQueryOperationsAnd"},{"$ref":"#/components/schemas/CustomerVariableValueQueryOperationsOr"}]}}},"required":["or"]},"CustomerVariableValueQueryOperationsAnd":{"title":"Customer Variable Value query conjunction","type":"object","properties":{"and":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/CustomerVariableValueQueryOperations"},{"$ref":"#/components/schemas/CustomerVariableValueQueryOperationsAnd"},{"$ref":"#/components/schemas/CustomerVariableValueQueryOperationsOr"}]}}},"required":["and"]},"CustomerVariableValueQueryOperations":{"title":"Customer Variable Value query operations","type":"object","properties":{"archivedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"updatedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"createdAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}}}},"AssetQueryOperationsOr":{"title":"Asset query disjunction","type":"object","properties":{"or":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/AssetQueryOperations"},{"$ref":"#/components/schemas/AssetQueryOperationsAnd"},{"$ref":"#/components/schemas/AssetQueryOperationsOr"}]}}},"required":["or"]},"AssetQueryOperationsAnd":{"title":"Asset query conjunction","type":"object","properties":{"and":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/AssetQueryOperations"},{"$ref":"#/components/schemas/AssetQueryOperationsAnd"},{"$ref":"#/components/schemas/AssetQueryOperationsOr"}]}}},"required":["and"]},"AssetQueryOperations":{"title":"Asset query operations","type":"object","properties":{"name":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"assetType":{"type":"object","properties":{"equals":{"type":"string","enum":["file","note","folder","link"]},"not_equals":{"type":"string","enum":["file","note","folder","link"]},"in":{"type":"string"},"not_in":{"type":"string"}}},"externalUrl":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"stepKey":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"storageAlias":{"type":"object","properties":{"equals":{"type":"boolean"},"not_equals":{"type":"boolean"},"in":{"type":"string"},"not_in":{"type":"string"}}},"contentAccess":{"type":"object","properties":{"equals":{"type":"string","enum":["owned","reference"]},"not_equals":{"type":"string","enum":["owned","reference"]},"in":{"type":"string"},"not_in":{"type":"string"}}},"public":{"type":"object","properties":{"equals":{"type":"boolean"},"not_equals":{"type":"boolean"},"in":{"type":"string"},"not_in":{"type":"string"}}},"prefix":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"updatedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"createdAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"url":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"thumbnailURL":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"filename":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"mimeType":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"filesize":{"type":"object","properties":{"equals":{"type":"number"},"not_equals":{"type":"number"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"number"},"greater_than_equal":{"type":"number"},"less_than":{"type":"number"},"less_than_equal":{"type":"number"}}},"width":{"type":"object","properties":{"equals":{"type":"number"},"not_equals":{"type":"number"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"number"},"greater_than_equal":{"type":"number"},"less_than":{"type":"number"},"less_than_equal":{"type":"number"}}},"height":{"type":"object","properties":{"equals":{"type":"number"},"not_equals":{"type":"number"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"number"},"greater_than_equal":{"type":"number"},"less_than":{"type":"number"},"less_than_equal":{"type":"number"}}},"focalX":{"type":"object","properties":{"equals":{"type":"number"},"not_equals":{"type":"number"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"number"},"greater_than_equal":{"type":"number"},"less_than":{"type":"number"},"less_than_equal":{"type":"number"}}},"focalY":{"type":"object","properties":{"equals":{"type":"number"},"not_equals":{"type":"number"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"number"},"greater_than_equal":{"type":"number"},"less_than":{"type":"number"},"less_than_equal":{"type":"number"}}}}},"AgentGoal":{"type":"object","additionalProperties":false,"title":"Agent Goal","properties":{"id":{"type":"string"},"skill":{"type":"string","nullable":true},"kind":{"type":"string","enum":["journey","outcome","automation"]},"target":{"oneOf":[{"type":"object","additionalProperties":false,"properties":{"relationTo":{"enum":["customers"]},"value":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Customer"}]}},"required":["value","relationTo"],"nullable":true},{"type":"object","additionalProperties":false,"properties":{"relationTo":{"enum":["journeys"]},"value":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Journey"}]}},"required":["value","relationTo"],"nullable":true},{"type":"object","additionalProperties":false,"properties":{"relationTo":{"enum":["playbooks"]},"value":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Playbook"}]}},"required":["value","relationTo"],"nullable":true},{"type":"object","additionalProperties":false,"properties":{"relationTo":{"enum":["steps"]},"value":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Step"}]}},"required":["value","relationTo"],"nullable":true},{"type":"object","additionalProperties":false,"properties":{"relationTo":{"enum":["outcomes"]},"value":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Outcome"}]}},"required":["value","relationTo"],"nullable":true}]},"filter":{"nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"scheduleTime":{"type":"string","nullable":true},"scheduleWeekday":{"type":"number","nullable":true},"outcome":{"oneOf":[{"type":"string","nullable":true},{"$ref":"#/components/schemas/Outcome"}]},"assignmentKey":{"type":"string","nullable":true},"timeZone":{"type":"string","nullable":true},"title":{"type":"string"},"successCriteria":{"type":"string","nullable":true},"instructions":{"type":"string","nullable":true},"journey":{"oneOf":[{"type":"string","nullable":true},{"$ref":"#/components/schemas/Journey"}]},"agent":{"oneOf":[{"type":"string","nullable":true},{"$ref":"#/components/schemas/User"}]},"owner":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"cadence":{"type":"string","enum":["daily","weekly","hourBefore","dayBefore","hourAfter","manual"]},"meetingOffset":{"description":"Minutes from each meeting: negative before its start, positive after its end.","type":"number","nullable":true},"status":{"type":"string","enum":["active","paused","completed","blocked"]},"nextCheckAt":{"type":"string","nullable":true},"latestRun":{"oneOf":[{"type":"string","nullable":true},{"type":"object","additionalProperties":true,"description":"Related record; fields depend on access."}]},"awaitingReview":{"type":"boolean","nullable":true},"blockReason":{"type":"string","nullable":true},"archivedAt":{"description":"When this record was archived. Null when active.","type":"string","nullable":true},"updatedAt":{"type":"string"},"createdAt":{"type":"string"}},"required":["id","kind","title","owner","cadence","status","updatedAt","createdAt"]},"AgentGoalQueryOperationsOr":{"title":"Agent Goal query disjunction","type":"object","properties":{"or":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/AgentGoalQueryOperations"},{"$ref":"#/components/schemas/AgentGoalQueryOperationsAnd"},{"$ref":"#/components/schemas/AgentGoalQueryOperationsOr"}]}}},"required":["or"]},"AgentGoalQueryOperationsAnd":{"title":"Agent Goal query conjunction","type":"object","properties":{"and":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/AgentGoalQueryOperations"},{"$ref":"#/components/schemas/AgentGoalQueryOperationsAnd"},{"$ref":"#/components/schemas/AgentGoalQueryOperationsOr"}]}}},"required":["and"]},"AgentGoalQueryOperations":{"title":"Agent Goal query operations","type":"object","properties":{"skill":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"kind":{"type":"object","properties":{"equals":{"type":"string","enum":["journey","outcome","automation"]},"not_equals":{"type":"string","enum":["journey","outcome","automation"]},"in":{"type":"string"},"not_in":{"type":"string"}}},"scheduleTime":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"scheduleWeekday":{"type":"object","properties":{"equals":{"type":"number"},"not_equals":{"type":"number"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"number"},"greater_than_equal":{"type":"number"},"less_than":{"type":"number"},"less_than_equal":{"type":"number"}}},"assignmentKey":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"timeZone":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"title":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"cadence":{"type":"object","properties":{"equals":{"type":"string","enum":["daily","weekly","hourBefore","dayBefore","hourAfter","manual"]},"not_equals":{"type":"string","enum":["daily","weekly","hourBefore","dayBefore","hourAfter","manual"]},"in":{"type":"string"},"not_in":{"type":"string"}}},"meetingOffset":{"type":"object","properties":{"equals":{"type":"number"},"not_equals":{"type":"number"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"number"},"greater_than_equal":{"type":"number"},"less_than":{"type":"number"},"less_than_equal":{"type":"number"}}},"status":{"type":"object","properties":{"equals":{"type":"string","enum":["active","paused","completed","blocked"]},"not_equals":{"type":"string","enum":["active","paused","completed","blocked"]},"in":{"type":"string"},"not_in":{"type":"string"}}},"nextCheckAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"awaitingReview":{"type":"object","properties":{"equals":{"type":"boolean"},"not_equals":{"type":"boolean"},"in":{"type":"string"},"not_in":{"type":"string"}}},"blockReason":{"type":"object","properties":{"equals":{"type":"string"},"not_equals":{"type":"string"},"in":{"type":"string"},"not_in":{"type":"string"},"like":{"type":"string"},"contains":{"type":"string"}}},"archivedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"updatedAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}},"createdAt":{"type":"object","properties":{"equals":{"type":"string","format":"date-time"},"not_equals":{"type":"string","format":"date-time"},"in":{"type":"string"},"not_in":{"type":"string"},"greater_than":{"type":"string","format":"date-time"},"greater_than_equal":{"type":"string","format":"date-time"},"less_than":{"type":"string","format":"date-time"},"less_than_equal":{"type":"string","format":"date-time"}}}}}},"requestBodies":{"WebhookPatchRequestBody":{"description":"Webhook","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"title":"Webhook","properties":{"label":{"type":"string"},"templateVersion":{"type":"object","properties":{"relationTo":{"type":"string","enum":["journey-template-versions","playbook-template-versions"]},"value":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array."}},"required":["relationTo","value"],"additionalProperties":false,"nullable":false},"status":{"type":"string","enum":["unconfigured","active","revoked"]},"lastInvokedAt":{"description":"Deprecated since v0.10.4. This field is never filled in.","type":"string","deprecated":true,"x-sekential-deprecation":{"since":"v0.10.4"},"nullable":true},"createdBy":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":true},"archivedAt":{"description":"When this record was archived. Null when active.","type":"string","nullable":true}},"required":[]}}}},"WebhookRequestBody":{"description":"Webhook","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"title":"Webhook","properties":{"label":{"type":"string"},"templateVersion":{"type":"object","properties":{"relationTo":{"type":"string","enum":["journey-template-versions","playbook-template-versions"]},"value":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array."}},"required":["relationTo","value"],"additionalProperties":false,"nullable":false},"status":{"type":"string","enum":["unconfigured","active","revoked"]},"lastInvokedAt":{"description":"Deprecated since v0.10.4. This field is never filled in.","type":"string","deprecated":true,"x-sekential-deprecation":{"since":"v0.10.4"},"nullable":true},"createdBy":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":true},"archivedAt":{"description":"When this record was archived. Null when active.","type":"string","nullable":true}},"required":["label","templateVersion","status"]}}}},"VariablePatchRequestBody":{"description":"Variable","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"title":"Variable","properties":{"name":{"type":"string"},"description":{"type":"string","nullable":true},"required":{"type":"boolean"},"object":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":false},"objectSlug":{"type":"string","nullable":true},"type":{"type":"array","items":{"oneOf":[{"type":"object","additionalProperties":false,"properties":{"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["object-reference"]}},"required":["blockType"]},{"type":"object","additionalProperties":false,"properties":{"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["text"]}},"required":["blockType"]},{"type":"object","additionalProperties":false,"properties":{"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["number"]}},"required":["blockType"]},{"type":"object","additionalProperties":false,"properties":{"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["boolean"]}},"required":["blockType"]},{"type":"object","additionalProperties":false,"properties":{"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["date"]}},"required":["blockType"]},{"type":"object","additionalProperties":false,"properties":{"options":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"label":{"type":"string"},"value":{"type":"string"},"id":{"type":"string","nullable":true}},"required":["label","value"]}},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["select"]}},"required":["blockType","options"]}]}},"defaultValue":{"type":"array","items":{"oneOf":[{"type":"object","additionalProperties":false,"properties":{"data":{"type":"string"},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["text"]}},"required":["blockType","data"]},{"type":"object","additionalProperties":false,"properties":{"data":{"type":"number"},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["number"]}},"required":["blockType","data"]},{"type":"object","additionalProperties":false,"properties":{"data":{"type":"boolean"},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["boolean"]}},"required":["blockType","data"]},{"type":"object","additionalProperties":false,"properties":{"data":{"type":"string"},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["date"]}},"required":["blockType","data"]},{"type":"object","additionalProperties":false,"properties":{"data":{"type":"string"},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["select"]}},"required":["blockType","data"]}]},"nullable":true},"archivedAt":{"description":"When this record was archived. Null when active.","type":"string","nullable":true}},"required":[]}}}},"VariableRequestBody":{"description":"Variable","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"title":"Variable","properties":{"name":{"type":"string"},"description":{"type":"string","nullable":true},"required":{"type":"boolean"},"object":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":false},"objectSlug":{"type":"string","nullable":true},"type":{"type":"array","items":{"oneOf":[{"type":"object","additionalProperties":false,"properties":{"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["object-reference"]}},"required":["blockType"]},{"type":"object","additionalProperties":false,"properties":{"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["text"]}},"required":["blockType"]},{"type":"object","additionalProperties":false,"properties":{"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["number"]}},"required":["blockType"]},{"type":"object","additionalProperties":false,"properties":{"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["boolean"]}},"required":["blockType"]},{"type":"object","additionalProperties":false,"properties":{"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["date"]}},"required":["blockType"]},{"type":"object","additionalProperties":false,"properties":{"options":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"label":{"type":"string"},"value":{"type":"string"},"id":{"type":"string","nullable":true}},"required":["label","value"]}},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["select"]}},"required":["blockType","options"]}]}},"defaultValue":{"type":"array","items":{"oneOf":[{"type":"object","additionalProperties":false,"properties":{"data":{"type":"string"},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["text"]}},"required":["blockType","data"]},{"type":"object","additionalProperties":false,"properties":{"data":{"type":"number"},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["number"]}},"required":["blockType","data"]},{"type":"object","additionalProperties":false,"properties":{"data":{"type":"boolean"},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["boolean"]}},"required":["blockType","data"]},{"type":"object","additionalProperties":false,"properties":{"data":{"type":"string"},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["date"]}},"required":["blockType","data"]},{"type":"object","additionalProperties":false,"properties":{"data":{"type":"string"},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["select"]}},"required":["blockType","data"]}]},"nullable":true},"archivedAt":{"description":"When this record was archived. Null when active.","type":"string","nullable":true}},"required":["name","required","object","type"]}}}},"UserPatchRequestBody":{"description":"User","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"title":"User","properties":{"firstName":{"type":"string","nullable":true},"lastName":{"type":"string","nullable":true},"jobTitle":{"type":"string","nullable":true},"avatar":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":true}},"required":[]}}}},"TenantPatchRequestBody":{"description":"Tenant","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"title":"Tenant","properties":{"name":{"type":"string"},"slug":{"type":"string"},"language":{"description":"Language of the emails the tenant sends: invitations, system email templates and email footers. Set at creation from the creator's language.","type":"string","enum":["en","fr"]},"emailSettings":{"description":"Tenant identity used for automated playbook emails. Custom From addresses require a verified tenant domain.","type":"object","additionalProperties":false,"properties":{"senderName":{"description":"Display name shown to recipients. Defaults to the tenant name.","type":"string","nullable":true},"fromAddress":{"description":"Optional From address on a verified tenant email domain. Falls back to the platform sender.","type":"string","nullable":true},"replyToAddress":{"description":"Mailbox that receives replies. It does not need to match the From address.","type":"string","nullable":true}},"required":[]},"customerExperience":{"description":"Customer portal, forms and emails to contacts. Off: contacts stay in journeys and steps, only receive email steps and cannot sign in. Nothing is deleted.","type":"boolean","nullable":true},"contactEmails":{"description":"Emails sent to external contacts, besides password resets and sign-in codes. While customer experience is off, contacts only receive email steps.","type":"object","additionalProperties":false,"properties":{"invitation":{"type":"boolean","nullable":true},"stepAssigned":{"type":"boolean","nullable":true},"stepMention":{"type":"boolean","nullable":true},"emailSteps":{"type":"boolean","nullable":true},"meetingInvites":{"type":"boolean","nullable":true}},"required":[]}},"required":[]}}}},"StepPatchRequestBody":{"description":"Step","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"title":"Step","properties":{"number":{"description":"Journey-scoped human identifier.","type":"number"},"type":{"description":"What kind of step this is; fixed once created.","type":"string","enum":["task","meeting","decision","request-file","form","email"]},"parentStep":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":true},"eachAssignee":{"type":"boolean","nullable":true},"assigneeSubstepFor":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":true},"assigneeRemoved":{"type":"boolean","nullable":true},"substepCount":{"type":"number","nullable":true},"completedSubstepCount":{"type":"number","nullable":true},"title":{"type":"string"},"description":{"type":"string","nullable":true},"instructions":{"description":"Agent-facing instructions for this step.","type":"string","nullable":true},"playbook":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":false},"journey":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":true},"sourceVersion":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":true},"nodeId":{"type":"string","nullable":true},"parentNodeId":{"description":"nodeId of the containing node: a flow group, or the parent step of a substep.","type":"string","nullable":true},"state":{"type":"string","enum":["blocked","todo","in-progress","done","skipped","cancelled","to-plan","scheduled","requires-attention","finished","pending","decided","requested","uploaded","to-complete","completed","to-send","sent"]},"emailDelivery":{"type":"object","additionalProperties":false,"properties":{"deliveryId":{"type":"string","nullable":true},"status":{"type":"string","enum":["pending","dispatching","accepted","accepted-with-uncertainty","failed","uncertain","sent","sent-with-uncertainty"],"nullable":true},"failureKey":{"type":"string","nullable":true}},"required":[]},"status":{"description":"The status of the state. The Steps list sorts and groups by it.","type":"string","enum":["idle","todo","progress","attention","done","cancelled"],"nullable":true},"priority":{"type":"string","enum":["low","medium","high"]},"contributingOutcomes":{"type":"array","items":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array."},"uniqueItems":true,"nullable":true,"deprecated":true,"description":"Deprecated since v0.10.4. This contract has a replacement. Use outcomes.linkedTo instead.","x-sekential-deprecation":{"since":"v0.10.4","replacement":"outcomes.linkedTo"}},"assignedRoles":{"type":"array","items":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array."},"uniqueItems":true,"nullable":true},"assignedUsers":{"type":"array","items":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array."},"uniqueItems":true,"nullable":true},"reviewerRoles":{"type":"array","items":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array."},"uniqueItems":true,"nullable":true},"reviewerUsers":{"type":"array","items":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array."},"uniqueItems":true,"nullable":true},"reviews":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"reviewer":{"type":"object","properties":{"relationTo":{"type":"string","enum":["users","roles"]},"value":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array."}},"required":["relationTo","value"],"additionalProperties":false,"nullable":false},"state":{"type":"string","enum":["approved","changes-requested"]},"decidedBy":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.\n\nDeprecated since v0.10.4. This field will become optional: it is empty once the member's account is deleted.","nullable":false,"deprecated":true,"x-sekential-deprecation":{"since":"v0.10.4"}},"decidedAt":{"type":"string"},"comment":{"type":"string","nullable":true},"id":{"type":"string","nullable":true}},"required":["reviewer","state","decidedBy","decidedAt"]},"nullable":true},"pendingReviewerRoles":{"type":"array","items":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array."},"uniqueItems":true,"nullable":true},"pendingReviewerUsers":{"type":"array","items":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array."},"uniqueItems":true,"nullable":true},"documents":{"type":"array","items":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array."},"uniqueItems":true,"nullable":true},"documentRecipientRoles":{"type":"array","items":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array."},"uniqueItems":true,"nullable":true},"documentRecipientUsers":{"type":"array","items":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array."},"uniqueItems":true,"nullable":true},"createdBy":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":true},"watcherRoles":{"type":"array","items":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array."},"uniqueItems":true,"nullable":true},"watchers":{"type":"array","items":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array."},"uniqueItems":true,"nullable":true},"participantRoles":{"type":"array","items":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array."},"uniqueItems":true,"nullable":true},"participantUsers":{"type":"array","items":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array."},"uniqueItems":true,"nullable":true},"timeBlocks":{"description":"Planned and worked intervals of the step, one person each. A meeting has at most one: its time, for all its people.","type":"array","items":{"type":"object","additionalProperties":false,"properties":{"calendarEventId":{"type":"string","nullable":true},"confirmedAt":{"type":"string","nullable":true},"user":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":true},"startsAt":{"type":"string"},"endsAt":{"type":"string"},"anyTime":{"description":"Planned for its day without a time. It ends with that day, and starts its length earlier.","type":"boolean","nullable":true},"id":{"type":"string","nullable":true}},"required":["startsAt","endsAt"]},"nullable":true},"scheduledUntil":{"description":"When the step's last time block ends.","type":"string","nullable":true},"deadlineAt":{"description":"Target date and time for completing this work.","type":"string","nullable":true},"duration":{"description":"Estimate, in minutes. Tasks and meetings always have one.","type":"number","nullable":true},"transcriptAsset":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":true},"details":{"type":"array","items":{"oneOf":[{"type":"object","additionalProperties":false,"properties":{"googleCalendar":{"description":"Durable Google Calendar projection or explicitly linked event.","type":"object","additionalProperties":false,"properties":{"accountSubject":{"type":"string","nullable":true},"ownerUserId":{"type":"string","nullable":true},"calendarId":{"type":"string","nullable":true},"eventId":{"type":"string","nullable":true},"timeBlockId":{"type":"string","nullable":true},"projectionGeneration":{"type":"string","nullable":true},"sessionEvents":{"description":"Google events projected from this step's sessions in the linked account and calendar.","type":"array","items":{"type":"object","additionalProperties":false,"properties":{"timeBlockId":{"type":"string"},"eventId":{"type":"string"},"pending":{"type":"boolean","nullable":true},"id":{"type":"string","nullable":true}},"required":["timeBlockId","eventId"]},"nullable":true},"recurringEventId":{"type":"string","nullable":true},"originalStartTime":{"type":"string","nullable":true},"source":{"type":"string","enum":["sekential","google"],"nullable":true},"syncStatus":{"type":"string","enum":["linked","syncing","requires-attention","error"],"nullable":true},"etag":{"type":"string","nullable":true},"eventUpdatedAt":{"type":"string","nullable":true},"lastSyncedAt":{"type":"string","nullable":true},"lastError":{"type":"string","nullable":true},"participants":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"email":{"type":"string"},"name":{"type":"string","nullable":true},"id":{"type":"string","nullable":true}},"required":["email"]},"nullable":true},"history":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"at":{"type":"string"},"status":{"type":"string"},"message":{"type":"string","nullable":true},"id":{"type":"string","nullable":true}},"required":["at","status"]},"nullable":true}},"required":[]},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["task"]}},"required":["blockType"]},{"type":"object","additionalProperties":false,"properties":{"joinLink":{"description":"URL for joining the meeting.","type":"string","nullable":true},"location":{"type":"string","nullable":true},"googleCalendar":{"description":"Durable Google Calendar projection or explicitly linked event.","type":"object","additionalProperties":false,"properties":{"accountSubject":{"type":"string","nullable":true},"ownerUserId":{"type":"string","nullable":true},"calendarId":{"type":"string","nullable":true},"eventId":{"type":"string","nullable":true},"timeBlockId":{"type":"string","nullable":true},"projectionGeneration":{"type":"string","nullable":true},"sessionEvents":{"description":"Google events projected from this step's sessions in the linked account and calendar.","type":"array","items":{"type":"object","additionalProperties":false,"properties":{"timeBlockId":{"type":"string"},"eventId":{"type":"string"},"pending":{"type":"boolean","nullable":true},"id":{"type":"string","nullable":true}},"required":["timeBlockId","eventId"]},"nullable":true},"recurringEventId":{"type":"string","nullable":true},"originalStartTime":{"type":"string","nullable":true},"source":{"type":"string","enum":["sekential","google"],"nullable":true},"syncStatus":{"type":"string","enum":["linked","syncing","requires-attention","error"],"nullable":true},"etag":{"type":"string","nullable":true},"eventUpdatedAt":{"type":"string","nullable":true},"lastSyncedAt":{"type":"string","nullable":true},"lastError":{"type":"string","nullable":true},"participants":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"email":{"type":"string"},"name":{"type":"string","nullable":true},"id":{"type":"string","nullable":true}},"required":["email"]},"nullable":true},"history":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"at":{"type":"string"},"status":{"type":"string"},"message":{"type":"string","nullable":true},"id":{"type":"string","nullable":true}},"required":["at","status"]},"nullable":true}},"required":[]},"calendarImport":{"description":"Read-only calendar source and invited people; these addresses never grant access.","type":"object","additionalProperties":false,"properties":{"sourceEventId":{"type":"string","nullable":true},"sourceTitle":{"type":"string","nullable":true},"controlsTitle":{"type":"boolean","nullable":true},"sourceUrl":{"type":"string","nullable":true},"participants":{"nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"cancelled":{"type":"boolean","nullable":true}},"required":[]},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["meeting"]}},"required":["blockType"]},{"type":"object","additionalProperties":false,"properties":{"uploadedAssets":{"description":"Assets uploaded to fulfill this file request.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Asset"}]},"nullable":true},"googleCalendar":{"description":"Durable Google Calendar projection or explicitly linked event.","type":"object","additionalProperties":false,"properties":{"accountSubject":{"type":"string","nullable":true},"ownerUserId":{"type":"string","nullable":true},"calendarId":{"type":"string","nullable":true},"eventId":{"type":"string","nullable":true},"timeBlockId":{"type":"string","nullable":true},"projectionGeneration":{"type":"string","nullable":true},"sessionEvents":{"description":"Google events projected from this step's sessions in the linked account and calendar.","type":"array","items":{"type":"object","additionalProperties":false,"properties":{"timeBlockId":{"type":"string"},"eventId":{"type":"string"},"pending":{"type":"boolean","nullable":true},"id":{"type":"string","nullable":true}},"required":["timeBlockId","eventId"]},"nullable":true},"recurringEventId":{"type":"string","nullable":true},"originalStartTime":{"type":"string","nullable":true},"source":{"type":"string","enum":["sekential","google"],"nullable":true},"syncStatus":{"type":"string","enum":["linked","syncing","requires-attention","error"],"nullable":true},"etag":{"type":"string","nullable":true},"eventUpdatedAt":{"type":"string","nullable":true},"lastSyncedAt":{"type":"string","nullable":true},"lastError":{"type":"string","nullable":true},"participants":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"email":{"type":"string"},"name":{"type":"string","nullable":true},"id":{"type":"string","nullable":true}},"required":["email"]},"nullable":true},"history":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"at":{"type":"string"},"status":{"type":"string"},"message":{"type":"string","nullable":true},"id":{"type":"string","nullable":true}},"required":["at","status"]},"nullable":true}},"required":[]},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["request-file"]}},"required":["blockType"]},{"type":"object","additionalProperties":false,"properties":{"form":{"description":"Form that should be completed for this step.","oneOf":[{"type":"string","nullable":true},{"$ref":"#/components/schemas/Form"}]},"googleCalendar":{"description":"Durable Google Calendar projection or explicitly linked event.","type":"object","additionalProperties":false,"properties":{"accountSubject":{"type":"string","nullable":true},"ownerUserId":{"type":"string","nullable":true},"calendarId":{"type":"string","nullable":true},"eventId":{"type":"string","nullable":true},"timeBlockId":{"type":"string","nullable":true},"projectionGeneration":{"type":"string","nullable":true},"sessionEvents":{"description":"Google events projected from this step's sessions in the linked account and calendar.","type":"array","items":{"type":"object","additionalProperties":false,"properties":{"timeBlockId":{"type":"string"},"eventId":{"type":"string"},"pending":{"type":"boolean","nullable":true},"id":{"type":"string","nullable":true}},"required":["timeBlockId","eventId"]},"nullable":true},"recurringEventId":{"type":"string","nullable":true},"originalStartTime":{"type":"string","nullable":true},"source":{"type":"string","enum":["sekential","google"],"nullable":true},"syncStatus":{"type":"string","enum":["linked","syncing","requires-attention","error"],"nullable":true},"etag":{"type":"string","nullable":true},"eventUpdatedAt":{"type":"string","nullable":true},"lastSyncedAt":{"type":"string","nullable":true},"lastError":{"type":"string","nullable":true},"participants":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"email":{"type":"string"},"name":{"type":"string","nullable":true},"id":{"type":"string","nullable":true}},"required":["email"]},"nullable":true},"history":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"at":{"type":"string"},"status":{"type":"string"},"message":{"type":"string","nullable":true},"id":{"type":"string","nullable":true}},"required":["at","status"]},"nullable":true}},"required":[]},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["form"]}},"required":["blockType"]},{"type":"object","additionalProperties":false,"properties":{"choices":{"description":"Options this decision can resolve to.","type":"array","items":{"type":"object","additionalProperties":false,"properties":{"handleId":{"description":"Stable identifier for this choice.","type":"string"},"label":{"type":"string"},"id":{"type":"string","nullable":true}},"required":["handleId","label"]},"nullable":true},"selectedChoice":{"description":"Selected choice handle. Immutable once set.","type":"string","nullable":true},"decidedAt":{"type":"string","nullable":true},"googleCalendar":{"description":"Durable Google Calendar projection or explicitly linked event.","type":"object","additionalProperties":false,"properties":{"accountSubject":{"type":"string","nullable":true},"ownerUserId":{"type":"string","nullable":true},"calendarId":{"type":"string","nullable":true},"eventId":{"type":"string","nullable":true},"timeBlockId":{"type":"string","nullable":true},"projectionGeneration":{"type":"string","nullable":true},"sessionEvents":{"description":"Google events projected from this step's sessions in the linked account and calendar.","type":"array","items":{"type":"object","additionalProperties":false,"properties":{"timeBlockId":{"type":"string"},"eventId":{"type":"string"},"pending":{"type":"boolean","nullable":true},"id":{"type":"string","nullable":true}},"required":["timeBlockId","eventId"]},"nullable":true},"recurringEventId":{"type":"string","nullable":true},"originalStartTime":{"type":"string","nullable":true},"source":{"type":"string","enum":["sekential","google"],"nullable":true},"syncStatus":{"type":"string","enum":["linked","syncing","requires-attention","error"],"nullable":true},"etag":{"type":"string","nullable":true},"eventUpdatedAt":{"type":"string","nullable":true},"lastSyncedAt":{"type":"string","nullable":true},"lastError":{"type":"string","nullable":true},"participants":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"email":{"type":"string"},"name":{"type":"string","nullable":true},"id":{"type":"string","nullable":true}},"required":["email"]},"nullable":true},"history":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"at":{"type":"string"},"status":{"type":"string"},"message":{"type":"string","nullable":true},"id":{"type":"string","nullable":true}},"required":["at","status"]},"nullable":true}},"required":[]},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["decision"]}},"required":["blockType"]},{"type":"object","additionalProperties":false,"properties":{"email":{"description":"The email owned by this step.","oneOf":[{"type":"string","nullable":true},{"$ref":"#/components/schemas/Email"}]},"autoSend":{"description":"Sent automatically by the flow rather than composed manually.","type":"boolean","nullable":true},"recipientRoles":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Role"}]},"nullable":true},"recipientUsers":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"nullable":true},"ccRoles":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Role"}]},"nullable":true},"ccUsers":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"nullable":true},"bccRoles":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Role"}]},"nullable":true},"bccUsers":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"nullable":true},"googleCalendar":{"description":"Durable Google Calendar projection or explicitly linked event.","type":"object","additionalProperties":false,"properties":{"accountSubject":{"type":"string","nullable":true},"ownerUserId":{"type":"string","nullable":true},"calendarId":{"type":"string","nullable":true},"eventId":{"type":"string","nullable":true},"timeBlockId":{"type":"string","nullable":true},"projectionGeneration":{"type":"string","nullable":true},"sessionEvents":{"description":"Google events projected from this step's sessions in the linked account and calendar.","type":"array","items":{"type":"object","additionalProperties":false,"properties":{"timeBlockId":{"type":"string"},"eventId":{"type":"string"},"pending":{"type":"boolean","nullable":true},"id":{"type":"string","nullable":true}},"required":["timeBlockId","eventId"]},"nullable":true},"recurringEventId":{"type":"string","nullable":true},"originalStartTime":{"type":"string","nullable":true},"source":{"type":"string","enum":["sekential","google"],"nullable":true},"syncStatus":{"type":"string","enum":["linked","syncing","requires-attention","error"],"nullable":true},"etag":{"type":"string","nullable":true},"eventUpdatedAt":{"type":"string","nullable":true},"lastSyncedAt":{"type":"string","nullable":true},"lastError":{"type":"string","nullable":true},"participants":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"email":{"type":"string"},"name":{"type":"string","nullable":true},"id":{"type":"string","nullable":true}},"required":["email"]},"nullable":true},"history":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"at":{"type":"string"},"status":{"type":"string"},"message":{"type":"string","nullable":true},"id":{"type":"string","nullable":true}},"required":["at","status"]},"nullable":true}},"required":[]},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["email"]}},"required":["blockType"]}]}},"comments":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"content":{"type":"string"},"author":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.\n\nDeprecated since v0.10.4. This field will become optional: it is empty once the member's account is deleted.","nullable":false,"deprecated":true,"x-sekential-deprecation":{"since":"v0.10.4"}},"createdAt":{"type":"string"},"visibility":{"type":"string","enum":["internal","external"]},"mentions":{"type":"array","items":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array."},"uniqueItems":true,"nullable":true},"aiWritten":{"description":"Posted by the AI on the author's behalf.","type":"boolean","nullable":true},"id":{"type":"string","nullable":true}},"required":["content","author","createdAt","visibility"]},"nullable":true},"lastCommentAt":{"type":"string","nullable":true},"startedAt":{"description":"When this record actually started. Auto-set on first start.","type":"string","nullable":true},"completedAt":{"description":"When this work was completed. Auto-set when marked done.","type":"string","nullable":true},"endedAt":{"description":"When this record reached a terminal state (completed or cancelled). Auto-set on first terminal state.","type":"string","nullable":true},"archivedAt":{"description":"When this record was archived. Null when active.","type":"string","nullable":true},"permissions":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"entity":{"type":"object","properties":{"relationTo":{"type":"string","enum":["users","groups"]},"value":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array."}},"required":["relationTo","value"],"additionalProperties":false,"nullable":false},"level":{"type":"number"},"origin":{"description":"Document where this permission was declared and can be edited.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"inheritedFrom":{"description":"Immediate parent that synchronized this read-only entry.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"id":{"type":"string","nullable":true}},"required":["entity","level"]},"nullable":true}},"required":[]}}}},"StepRequestBody":{"description":"Step","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"title":"Step","properties":{"number":{"description":"Journey-scoped human identifier.","type":"number"},"type":{"description":"What kind of step this is; fixed once created.","type":"string","enum":["task","meeting","decision","request-file","form","email"]},"parentStep":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":true},"eachAssignee":{"type":"boolean","nullable":true},"assigneeSubstepFor":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":true},"assigneeRemoved":{"type":"boolean","nullable":true},"substepCount":{"type":"number","nullable":true},"completedSubstepCount":{"type":"number","nullable":true},"title":{"type":"string"},"description":{"type":"string","nullable":true},"instructions":{"description":"Agent-facing instructions for this step.","type":"string","nullable":true},"playbook":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":false},"journey":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":true},"sourceVersion":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":true},"nodeId":{"type":"string","nullable":true},"parentNodeId":{"description":"nodeId of the containing node: a flow group, or the parent step of a substep.","type":"string","nullable":true},"state":{"type":"string","enum":["blocked","todo","in-progress","done","skipped","cancelled","to-plan","scheduled","requires-attention","finished","pending","decided","requested","uploaded","to-complete","completed","to-send","sent"]},"emailDelivery":{"type":"object","additionalProperties":false,"properties":{"deliveryId":{"type":"string","nullable":true},"status":{"type":"string","enum":["pending","dispatching","accepted","accepted-with-uncertainty","failed","uncertain","sent","sent-with-uncertainty"],"nullable":true},"failureKey":{"type":"string","nullable":true}},"required":[]},"status":{"description":"The status of the state. The Steps list sorts and groups by it.","type":"string","enum":["idle","todo","progress","attention","done","cancelled"],"nullable":true},"priority":{"type":"string","enum":["low","medium","high"]},"contributingOutcomes":{"type":"array","items":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array."},"uniqueItems":true,"nullable":true,"deprecated":true,"description":"Deprecated since v0.10.4. This contract has a replacement. Use outcomes.linkedTo instead.","x-sekential-deprecation":{"since":"v0.10.4","replacement":"outcomes.linkedTo"}},"assignedRoles":{"type":"array","items":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array."},"uniqueItems":true,"nullable":true},"assignedUsers":{"type":"array","items":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array."},"uniqueItems":true,"nullable":true},"reviewerRoles":{"type":"array","items":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array."},"uniqueItems":true,"nullable":true},"reviewerUsers":{"type":"array","items":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array."},"uniqueItems":true,"nullable":true},"reviews":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"reviewer":{"type":"object","properties":{"relationTo":{"type":"string","enum":["users","roles"]},"value":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array."}},"required":["relationTo","value"],"additionalProperties":false,"nullable":false},"state":{"type":"string","enum":["approved","changes-requested"]},"decidedBy":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.\n\nDeprecated since v0.10.4. This field will become optional: it is empty once the member's account is deleted.","nullable":false,"deprecated":true,"x-sekential-deprecation":{"since":"v0.10.4"}},"decidedAt":{"type":"string"},"comment":{"type":"string","nullable":true},"id":{"type":"string","nullable":true}},"required":["reviewer","state","decidedBy","decidedAt"]},"nullable":true},"pendingReviewerRoles":{"type":"array","items":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array."},"uniqueItems":true,"nullable":true},"pendingReviewerUsers":{"type":"array","items":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array."},"uniqueItems":true,"nullable":true},"documents":{"type":"array","items":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array."},"uniqueItems":true,"nullable":true},"documentRecipientRoles":{"type":"array","items":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array."},"uniqueItems":true,"nullable":true},"documentRecipientUsers":{"type":"array","items":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array."},"uniqueItems":true,"nullable":true},"createdBy":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":true},"watcherRoles":{"type":"array","items":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array."},"uniqueItems":true,"nullable":true},"watchers":{"type":"array","items":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array."},"uniqueItems":true,"nullable":true},"participantRoles":{"type":"array","items":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array."},"uniqueItems":true,"nullable":true},"participantUsers":{"type":"array","items":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array."},"uniqueItems":true,"nullable":true},"timeBlocks":{"description":"Planned and worked intervals of the step, one person each. A meeting has at most one: its time, for all its people.","type":"array","items":{"type":"object","additionalProperties":false,"properties":{"calendarEventId":{"type":"string","nullable":true},"confirmedAt":{"type":"string","nullable":true},"user":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":true},"startsAt":{"type":"string"},"endsAt":{"type":"string"},"anyTime":{"description":"Planned for its day without a time. It ends with that day, and starts its length earlier.","type":"boolean","nullable":true},"id":{"type":"string","nullable":true}},"required":["startsAt","endsAt"]},"nullable":true},"scheduledUntil":{"description":"When the step's last time block ends.","type":"string","nullable":true},"deadlineAt":{"description":"Target date and time for completing this work.","type":"string","nullable":true},"duration":{"description":"Estimate, in minutes. Tasks and meetings always have one.","type":"number","nullable":true},"transcriptAsset":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":true},"details":{"type":"array","items":{"oneOf":[{"type":"object","additionalProperties":false,"properties":{"googleCalendar":{"description":"Durable Google Calendar projection or explicitly linked event.","type":"object","additionalProperties":false,"properties":{"accountSubject":{"type":"string","nullable":true},"ownerUserId":{"type":"string","nullable":true},"calendarId":{"type":"string","nullable":true},"eventId":{"type":"string","nullable":true},"timeBlockId":{"type":"string","nullable":true},"projectionGeneration":{"type":"string","nullable":true},"sessionEvents":{"description":"Google events projected from this step's sessions in the linked account and calendar.","type":"array","items":{"type":"object","additionalProperties":false,"properties":{"timeBlockId":{"type":"string"},"eventId":{"type":"string"},"pending":{"type":"boolean","nullable":true},"id":{"type":"string","nullable":true}},"required":["timeBlockId","eventId"]},"nullable":true},"recurringEventId":{"type":"string","nullable":true},"originalStartTime":{"type":"string","nullable":true},"source":{"type":"string","enum":["sekential","google"],"nullable":true},"syncStatus":{"type":"string","enum":["linked","syncing","requires-attention","error"],"nullable":true},"etag":{"type":"string","nullable":true},"eventUpdatedAt":{"type":"string","nullable":true},"lastSyncedAt":{"type":"string","nullable":true},"lastError":{"type":"string","nullable":true},"participants":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"email":{"type":"string"},"name":{"type":"string","nullable":true},"id":{"type":"string","nullable":true}},"required":["email"]},"nullable":true},"history":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"at":{"type":"string"},"status":{"type":"string"},"message":{"type":"string","nullable":true},"id":{"type":"string","nullable":true}},"required":["at","status"]},"nullable":true}},"required":[]},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["task"]}},"required":["blockType"]},{"type":"object","additionalProperties":false,"properties":{"joinLink":{"description":"URL for joining the meeting.","type":"string","nullable":true},"location":{"type":"string","nullable":true},"googleCalendar":{"description":"Durable Google Calendar projection or explicitly linked event.","type":"object","additionalProperties":false,"properties":{"accountSubject":{"type":"string","nullable":true},"ownerUserId":{"type":"string","nullable":true},"calendarId":{"type":"string","nullable":true},"eventId":{"type":"string","nullable":true},"timeBlockId":{"type":"string","nullable":true},"projectionGeneration":{"type":"string","nullable":true},"sessionEvents":{"description":"Google events projected from this step's sessions in the linked account and calendar.","type":"array","items":{"type":"object","additionalProperties":false,"properties":{"timeBlockId":{"type":"string"},"eventId":{"type":"string"},"pending":{"type":"boolean","nullable":true},"id":{"type":"string","nullable":true}},"required":["timeBlockId","eventId"]},"nullable":true},"recurringEventId":{"type":"string","nullable":true},"originalStartTime":{"type":"string","nullable":true},"source":{"type":"string","enum":["sekential","google"],"nullable":true},"syncStatus":{"type":"string","enum":["linked","syncing","requires-attention","error"],"nullable":true},"etag":{"type":"string","nullable":true},"eventUpdatedAt":{"type":"string","nullable":true},"lastSyncedAt":{"type":"string","nullable":true},"lastError":{"type":"string","nullable":true},"participants":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"email":{"type":"string"},"name":{"type":"string","nullable":true},"id":{"type":"string","nullable":true}},"required":["email"]},"nullable":true},"history":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"at":{"type":"string"},"status":{"type":"string"},"message":{"type":"string","nullable":true},"id":{"type":"string","nullable":true}},"required":["at","status"]},"nullable":true}},"required":[]},"calendarImport":{"description":"Read-only calendar source and invited people; these addresses never grant access.","type":"object","additionalProperties":false,"properties":{"sourceEventId":{"type":"string","nullable":true},"sourceTitle":{"type":"string","nullable":true},"controlsTitle":{"type":"boolean","nullable":true},"sourceUrl":{"type":"string","nullable":true},"participants":{"nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"cancelled":{"type":"boolean","nullable":true}},"required":[]},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["meeting"]}},"required":["blockType"]},{"type":"object","additionalProperties":false,"properties":{"uploadedAssets":{"description":"Assets uploaded to fulfill this file request.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Asset"}]},"nullable":true},"googleCalendar":{"description":"Durable Google Calendar projection or explicitly linked event.","type":"object","additionalProperties":false,"properties":{"accountSubject":{"type":"string","nullable":true},"ownerUserId":{"type":"string","nullable":true},"calendarId":{"type":"string","nullable":true},"eventId":{"type":"string","nullable":true},"timeBlockId":{"type":"string","nullable":true},"projectionGeneration":{"type":"string","nullable":true},"sessionEvents":{"description":"Google events projected from this step's sessions in the linked account and calendar.","type":"array","items":{"type":"object","additionalProperties":false,"properties":{"timeBlockId":{"type":"string"},"eventId":{"type":"string"},"pending":{"type":"boolean","nullable":true},"id":{"type":"string","nullable":true}},"required":["timeBlockId","eventId"]},"nullable":true},"recurringEventId":{"type":"string","nullable":true},"originalStartTime":{"type":"string","nullable":true},"source":{"type":"string","enum":["sekential","google"],"nullable":true},"syncStatus":{"type":"string","enum":["linked","syncing","requires-attention","error"],"nullable":true},"etag":{"type":"string","nullable":true},"eventUpdatedAt":{"type":"string","nullable":true},"lastSyncedAt":{"type":"string","nullable":true},"lastError":{"type":"string","nullable":true},"participants":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"email":{"type":"string"},"name":{"type":"string","nullable":true},"id":{"type":"string","nullable":true}},"required":["email"]},"nullable":true},"history":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"at":{"type":"string"},"status":{"type":"string"},"message":{"type":"string","nullable":true},"id":{"type":"string","nullable":true}},"required":["at","status"]},"nullable":true}},"required":[]},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["request-file"]}},"required":["blockType"]},{"type":"object","additionalProperties":false,"properties":{"form":{"description":"Form that should be completed for this step.","oneOf":[{"type":"string","nullable":true},{"$ref":"#/components/schemas/Form"}]},"googleCalendar":{"description":"Durable Google Calendar projection or explicitly linked event.","type":"object","additionalProperties":false,"properties":{"accountSubject":{"type":"string","nullable":true},"ownerUserId":{"type":"string","nullable":true},"calendarId":{"type":"string","nullable":true},"eventId":{"type":"string","nullable":true},"timeBlockId":{"type":"string","nullable":true},"projectionGeneration":{"type":"string","nullable":true},"sessionEvents":{"description":"Google events projected from this step's sessions in the linked account and calendar.","type":"array","items":{"type":"object","additionalProperties":false,"properties":{"timeBlockId":{"type":"string"},"eventId":{"type":"string"},"pending":{"type":"boolean","nullable":true},"id":{"type":"string","nullable":true}},"required":["timeBlockId","eventId"]},"nullable":true},"recurringEventId":{"type":"string","nullable":true},"originalStartTime":{"type":"string","nullable":true},"source":{"type":"string","enum":["sekential","google"],"nullable":true},"syncStatus":{"type":"string","enum":["linked","syncing","requires-attention","error"],"nullable":true},"etag":{"type":"string","nullable":true},"eventUpdatedAt":{"type":"string","nullable":true},"lastSyncedAt":{"type":"string","nullable":true},"lastError":{"type":"string","nullable":true},"participants":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"email":{"type":"string"},"name":{"type":"string","nullable":true},"id":{"type":"string","nullable":true}},"required":["email"]},"nullable":true},"history":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"at":{"type":"string"},"status":{"type":"string"},"message":{"type":"string","nullable":true},"id":{"type":"string","nullable":true}},"required":["at","status"]},"nullable":true}},"required":[]},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["form"]}},"required":["blockType"]},{"type":"object","additionalProperties":false,"properties":{"choices":{"description":"Options this decision can resolve to.","type":"array","items":{"type":"object","additionalProperties":false,"properties":{"handleId":{"description":"Stable identifier for this choice.","type":"string"},"label":{"type":"string"},"id":{"type":"string","nullable":true}},"required":["handleId","label"]},"nullable":true},"selectedChoice":{"description":"Selected choice handle. Immutable once set.","type":"string","nullable":true},"decidedAt":{"type":"string","nullable":true},"googleCalendar":{"description":"Durable Google Calendar projection or explicitly linked event.","type":"object","additionalProperties":false,"properties":{"accountSubject":{"type":"string","nullable":true},"ownerUserId":{"type":"string","nullable":true},"calendarId":{"type":"string","nullable":true},"eventId":{"type":"string","nullable":true},"timeBlockId":{"type":"string","nullable":true},"projectionGeneration":{"type":"string","nullable":true},"sessionEvents":{"description":"Google events projected from this step's sessions in the linked account and calendar.","type":"array","items":{"type":"object","additionalProperties":false,"properties":{"timeBlockId":{"type":"string"},"eventId":{"type":"string"},"pending":{"type":"boolean","nullable":true},"id":{"type":"string","nullable":true}},"required":["timeBlockId","eventId"]},"nullable":true},"recurringEventId":{"type":"string","nullable":true},"originalStartTime":{"type":"string","nullable":true},"source":{"type":"string","enum":["sekential","google"],"nullable":true},"syncStatus":{"type":"string","enum":["linked","syncing","requires-attention","error"],"nullable":true},"etag":{"type":"string","nullable":true},"eventUpdatedAt":{"type":"string","nullable":true},"lastSyncedAt":{"type":"string","nullable":true},"lastError":{"type":"string","nullable":true},"participants":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"email":{"type":"string"},"name":{"type":"string","nullable":true},"id":{"type":"string","nullable":true}},"required":["email"]},"nullable":true},"history":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"at":{"type":"string"},"status":{"type":"string"},"message":{"type":"string","nullable":true},"id":{"type":"string","nullable":true}},"required":["at","status"]},"nullable":true}},"required":[]},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["decision"]}},"required":["blockType"]},{"type":"object","additionalProperties":false,"properties":{"email":{"description":"The email owned by this step.","oneOf":[{"type":"string","nullable":true},{"$ref":"#/components/schemas/Email"}]},"autoSend":{"description":"Sent automatically by the flow rather than composed manually.","type":"boolean","nullable":true},"recipientRoles":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Role"}]},"nullable":true},"recipientUsers":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"nullable":true},"ccRoles":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Role"}]},"nullable":true},"ccUsers":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"nullable":true},"bccRoles":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Role"}]},"nullable":true},"bccUsers":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"nullable":true},"googleCalendar":{"description":"Durable Google Calendar projection or explicitly linked event.","type":"object","additionalProperties":false,"properties":{"accountSubject":{"type":"string","nullable":true},"ownerUserId":{"type":"string","nullable":true},"calendarId":{"type":"string","nullable":true},"eventId":{"type":"string","nullable":true},"timeBlockId":{"type":"string","nullable":true},"projectionGeneration":{"type":"string","nullable":true},"sessionEvents":{"description":"Google events projected from this step's sessions in the linked account and calendar.","type":"array","items":{"type":"object","additionalProperties":false,"properties":{"timeBlockId":{"type":"string"},"eventId":{"type":"string"},"pending":{"type":"boolean","nullable":true},"id":{"type":"string","nullable":true}},"required":["timeBlockId","eventId"]},"nullable":true},"recurringEventId":{"type":"string","nullable":true},"originalStartTime":{"type":"string","nullable":true},"source":{"type":"string","enum":["sekential","google"],"nullable":true},"syncStatus":{"type":"string","enum":["linked","syncing","requires-attention","error"],"nullable":true},"etag":{"type":"string","nullable":true},"eventUpdatedAt":{"type":"string","nullable":true},"lastSyncedAt":{"type":"string","nullable":true},"lastError":{"type":"string","nullable":true},"participants":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"email":{"type":"string"},"name":{"type":"string","nullable":true},"id":{"type":"string","nullable":true}},"required":["email"]},"nullable":true},"history":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"at":{"type":"string"},"status":{"type":"string"},"message":{"type":"string","nullable":true},"id":{"type":"string","nullable":true}},"required":["at","status"]},"nullable":true}},"required":[]},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["email"]}},"required":["blockType"]}]}},"comments":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"content":{"type":"string"},"author":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.\n\nDeprecated since v0.10.4. This field will become optional: it is empty once the member's account is deleted.","nullable":false,"deprecated":true,"x-sekential-deprecation":{"since":"v0.10.4"}},"createdAt":{"type":"string"},"visibility":{"type":"string","enum":["internal","external"]},"mentions":{"type":"array","items":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array."},"uniqueItems":true,"nullable":true},"aiWritten":{"description":"Posted by the AI on the author's behalf.","type":"boolean","nullable":true},"id":{"type":"string","nullable":true}},"required":["content","author","createdAt","visibility"]},"nullable":true},"lastCommentAt":{"type":"string","nullable":true},"startedAt":{"description":"When this record actually started. Auto-set on first start.","type":"string","nullable":true},"completedAt":{"description":"When this work was completed. Auto-set when marked done.","type":"string","nullable":true},"endedAt":{"description":"When this record reached a terminal state (completed or cancelled). Auto-set on first terminal state.","type":"string","nullable":true},"archivedAt":{"description":"When this record was archived. Null when active.","type":"string","nullable":true},"permissions":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"entity":{"type":"object","properties":{"relationTo":{"type":"string","enum":["users","groups"]},"value":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array."}},"required":["relationTo","value"],"additionalProperties":false,"nullable":false},"level":{"type":"number"},"origin":{"description":"Document where this permission was declared and can be edited.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"inheritedFrom":{"description":"Immediate parent that synchronized this read-only entry.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"id":{"type":"string","nullable":true}},"required":["entity","level"]},"nullable":true}},"required":["number","type","title","playbook","state","priority","details"]}}}},"StakeholderPatchRequestBody":{"description":"Stakeholder","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"title":"Stakeholder","properties":{"customer":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":false},"customerName":{"type":"string","nullable":true},"contactUser":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":true},"name":{"type":"string"},"title":{"type":"string","nullable":true},"email":{"type":"string","nullable":true},"reportsTo":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":true},"disposition":{"type":"string","enum":["decision-maker","economic-buyer","champion","supporter","neutral","skeptic","blocker","end-user"]},"influence":{"type":"string","enum":["low","medium","high"]},"archivedAt":{"description":"When this record was archived. Null when active.","type":"string","nullable":true},"permissions":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"entity":{"type":"object","properties":{"relationTo":{"type":"string","enum":["users","groups"]},"value":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array."}},"required":["relationTo","value"],"additionalProperties":false,"nullable":false},"level":{"type":"number"},"origin":{"description":"Document where this permission was declared and can be edited.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"inheritedFrom":{"description":"Immediate parent that synchronized this read-only entry.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"id":{"type":"string","nullable":true}},"required":["entity","level"]},"nullable":true}},"required":[]}}}},"StakeholderRequestBody":{"description":"Stakeholder","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"title":"Stakeholder","properties":{"customer":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":false},"customerName":{"type":"string","nullable":true},"contactUser":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":true},"name":{"type":"string"},"title":{"type":"string","nullable":true},"email":{"type":"string","nullable":true},"reportsTo":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":true},"disposition":{"type":"string","enum":["decision-maker","economic-buyer","champion","supporter","neutral","skeptic","blocker","end-user"]},"influence":{"type":"string","enum":["low","medium","high"]},"archivedAt":{"description":"When this record was archived. Null when active.","type":"string","nullable":true},"permissions":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"entity":{"type":"object","properties":{"relationTo":{"type":"string","enum":["users","groups"]},"value":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array."}},"required":["relationTo","value"],"additionalProperties":false,"nullable":false},"level":{"type":"number"},"origin":{"description":"Document where this permission was declared and can be edited.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"inheritedFrom":{"description":"Immediate parent that synchronized this read-only entry.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"id":{"type":"string","nullable":true}},"required":["entity","level"]},"nullable":true}},"required":["customer","name","disposition","influence"]}}}},"RolePatchRequestBody":{"description":"Role","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"title":"Role","properties":{"name":{"type":"string"},"description":{"type":"string","nullable":true},"internal":{"type":"boolean"},"origin":{"description":"Playbook ad-hoc roles are hidden roles used for one-off step participants.","type":"string","enum":["template","playbook-ad-hoc"]},"playbook":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":true},"templateVersion":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":true},"user":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":true},"archivedAt":{"description":"When this record was archived. Null when active.","type":"string","nullable":true},"permissions":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"entity":{"type":"object","properties":{"relationTo":{"type":"string","enum":["users","groups"]},"value":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array."}},"required":["relationTo","value"],"additionalProperties":false,"nullable":false},"level":{"type":"number"},"origin":{"description":"Document where this permission was declared and can be edited.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"inheritedFrom":{"description":"Immediate parent that synchronized this read-only entry.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"id":{"type":"string","nullable":true}},"required":["entity","level"]},"nullable":true}},"required":[]}}}},"RoleRequestBody":{"description":"Role","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"title":"Role","properties":{"name":{"type":"string"},"description":{"type":"string","nullable":true},"internal":{"type":"boolean"},"origin":{"description":"Playbook ad-hoc roles are hidden roles used for one-off step participants.","type":"string","enum":["template","playbook-ad-hoc"]},"playbook":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":true},"templateVersion":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":true},"user":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":true},"archivedAt":{"description":"When this record was archived. Null when active.","type":"string","nullable":true},"permissions":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"entity":{"type":"object","properties":{"relationTo":{"type":"string","enum":["users","groups"]},"value":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array."}},"required":["relationTo","value"],"additionalProperties":false,"nullable":false},"level":{"type":"number"},"origin":{"description":"Document where this permission was declared and can be edited.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"inheritedFrom":{"description":"Immediate parent that synchronized this read-only entry.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"id":{"type":"string","nullable":true}},"required":["entity","level"]},"nullable":true}},"required":["name","internal","origin"]}}}},"RoleAssignmentPatchRequestBody":{"description":"Role Assignment","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"title":"RoleAssignment","properties":{"playbook":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":true},"role":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":false},"user":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":false},"customer":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":true},"customerName":{"type":"string","nullable":true},"archivedAt":{"description":"When this record was archived. Null when active.","type":"string","nullable":true},"permissions":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"entity":{"type":"object","properties":{"relationTo":{"type":"string","enum":["users","groups"]},"value":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array."}},"required":["relationTo","value"],"additionalProperties":false,"nullable":false},"level":{"type":"number"},"origin":{"description":"Document where this permission was declared and can be edited.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"inheritedFrom":{"description":"Immediate parent that synchronized this read-only entry.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"id":{"type":"string","nullable":true}},"required":["entity","level"]},"nullable":true}},"required":[]}}}},"RoleAssignmentRequestBody":{"description":"Role Assignment","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"title":"RoleAssignment","properties":{"playbook":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":true},"role":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":false},"user":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":false},"customer":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":true},"customerName":{"type":"string","nullable":true},"archivedAt":{"description":"When this record was archived. Null when active.","type":"string","nullable":true},"permissions":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"entity":{"type":"object","properties":{"relationTo":{"type":"string","enum":["users","groups"]},"value":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array."}},"required":["relationTo","value"],"additionalProperties":false,"nullable":false},"level":{"type":"number"},"origin":{"description":"Document where this permission was declared and can be edited.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"inheritedFrom":{"description":"Immediate parent that synchronized this read-only entry.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"id":{"type":"string","nullable":true}},"required":["entity","level"]},"nullable":true}},"required":["role","user"]}}}},"PortalPatchRequestBody":{"description":"Portal","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"title":"Portal","properties":{"viewUrl":{"type":"string","nullable":true},"branding":{"type":"object","additionalProperties":false,"properties":{"colors":{"type":"object","additionalProperties":false,"properties":{"primary":{"type":"string"},"secondary":{"type":"string","nullable":true},"accent":{"type":"string","nullable":true}},"required":["primary"]},"fonts":{"type":"object","additionalProperties":false,"properties":{"heading":{"type":"string","enum":["system","inter","dm-sans","manrope","plus-jakarta-sans","outfit","ibm-plex-sans","source-sans-3","lora","fraunces","playfair-display"]},"body":{"type":"string","enum":["system","inter","dm-sans","manrope","plus-jakarta-sans","outfit","ibm-plex-sans","source-sans-3","lora","fraunces","playfair-display"]}},"required":["heading","body"]},"style":{"type":"object","additionalProperties":false,"properties":{"background":{"type":"string","enum":["neutral","tinted"]},"corners":{"type":"string","enum":["sharp","soft","round"]},"depth":{"type":"string","enum":["flat","subtle","raised"]}},"required":["background","corners","depth"]},"layout":{"type":"object","additionalProperties":false,"properties":{"width":{"type":"string","enum":["narrow","standard","wide"]},"showHeaderBreadcrumb":{"type":"boolean"}},"required":["width","showHeaderBreadcrumb"]},"identity":{"type":"object","additionalProperties":false,"properties":{"logo":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":true},"logoUrl":{"type":"string","nullable":true},"display":{"type":"string","enum":["logo","name","both"]},"logoSize":{"type":"string","enum":["small","medium","large"]}},"required":["display","logoSize"]}},"required":["colors","fonts","style","layout","identity"]},"metadata":{"type":"object","additionalProperties":false,"properties":{"title":{"type":"string","nullable":true}},"required":[]},"legal":{"type":"object","additionalProperties":false,"properties":{"contactEmail":{"type":"string","nullable":true},"termsContent":{"type":"string","nullable":true},"privacyContent":{"type":"string","nullable":true}},"required":[]}},"required":[]}}}},"PortalRequestBody":{"description":"Portal","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"title":"Portal","properties":{"viewUrl":{"type":"string","nullable":true},"branding":{"type":"object","additionalProperties":false,"properties":{"colors":{"type":"object","additionalProperties":false,"properties":{"primary":{"type":"string"},"secondary":{"type":"string","nullable":true},"accent":{"type":"string","nullable":true}},"required":["primary"]},"fonts":{"type":"object","additionalProperties":false,"properties":{"heading":{"type":"string","enum":["system","inter","dm-sans","manrope","plus-jakarta-sans","outfit","ibm-plex-sans","source-sans-3","lora","fraunces","playfair-display"]},"body":{"type":"string","enum":["system","inter","dm-sans","manrope","plus-jakarta-sans","outfit","ibm-plex-sans","source-sans-3","lora","fraunces","playfair-display"]}},"required":["heading","body"]},"style":{"type":"object","additionalProperties":false,"properties":{"background":{"type":"string","enum":["neutral","tinted"]},"corners":{"type":"string","enum":["sharp","soft","round"]},"depth":{"type":"string","enum":["flat","subtle","raised"]}},"required":["background","corners","depth"]},"layout":{"type":"object","additionalProperties":false,"properties":{"width":{"type":"string","enum":["narrow","standard","wide"]},"showHeaderBreadcrumb":{"type":"boolean"}},"required":["width","showHeaderBreadcrumb"]},"identity":{"type":"object","additionalProperties":false,"properties":{"logo":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":true},"logoUrl":{"type":"string","nullable":true},"display":{"type":"string","enum":["logo","name","both"]},"logoSize":{"type":"string","enum":["small","medium","large"]}},"required":["display","logoSize"]}},"required":["colors","fonts","style","layout","identity"]},"metadata":{"type":"object","additionalProperties":false,"properties":{"title":{"type":"string","nullable":true}},"required":[]},"legal":{"type":"object","additionalProperties":false,"properties":{"contactEmail":{"type":"string","nullable":true},"termsContent":{"type":"string","nullable":true},"privacyContent":{"type":"string","nullable":true}},"required":[]}},"required":["branding"]}}}},"PlaybookPatchRequestBody":{"description":"Playbook","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"title":"Playbook","properties":{"name":{"type":"string"},"description":{"type":"string","nullable":true},"state":{"type":"string","enum":["draft","started","paused","completed","skipped","cancelled"]},"startedAt":{"description":"When this record actually started. Auto-set on first start.","type":"string","nullable":true},"deadlineAt":{"description":"Target date and time for completing this work.","type":"string","nullable":true},"archivedAt":{"description":"When this record was archived. Null when active.","type":"string","nullable":true},"journey":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":true},"campaign":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":true},"sourceTemplateVersion":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":true},"phase":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":true},"templateId":{"description":"The reusable template's own id, resolved only when the viewer can read both the source version and its template. Otherwise falls back to the already-exposed source version id.","type":"string","nullable":true},"templateName":{"description":"The readable reusable template's display name. Null when the viewer cannot read the template.","type":"string","nullable":true},"activeVersion":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":true},"comments":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"content":{"type":"string"},"author":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.\n\nDeprecated since v0.10.4. This field will become optional: it is empty once the member's account is deleted.","nullable":false,"deprecated":true,"x-sekential-deprecation":{"since":"v0.10.4"}},"createdAt":{"type":"string"},"visibility":{"type":"string","enum":["internal","external"]},"mentions":{"type":"array","items":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array."},"uniqueItems":true,"nullable":true},"aiWritten":{"description":"Posted by the AI on the author's behalf.","type":"boolean","nullable":true},"id":{"type":"string","nullable":true}},"required":["content","author","createdAt","visibility"]},"nullable":true},"lastCommentAt":{"type":"string","nullable":true},"permissions":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"entity":{"type":"object","properties":{"relationTo":{"type":"string","enum":["users","groups"]},"value":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array."}},"required":["relationTo","value"],"additionalProperties":false,"nullable":false},"level":{"type":"number"},"origin":{"description":"Document where this permission was declared and can be edited.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"inheritedFrom":{"description":"Immediate parent that synchronized this read-only entry.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"id":{"type":"string","nullable":true}},"required":["entity","level"]},"nullable":true}},"required":[]}}}},"PlaybookRequestBody":{"description":"Playbook","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"title":"Playbook","properties":{"name":{"type":"string"},"description":{"type":"string","nullable":true},"state":{"type":"string","enum":["draft","started","paused","completed","skipped","cancelled"]},"startedAt":{"description":"When this record actually started. Auto-set on first start.","type":"string","nullable":true},"deadlineAt":{"description":"Target date and time for completing this work.","type":"string","nullable":true},"archivedAt":{"description":"When this record was archived. Null when active.","type":"string","nullable":true},"journey":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":true},"campaign":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":true},"sourceTemplateVersion":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":true},"phase":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":true},"templateId":{"description":"The reusable template's own id, resolved only when the viewer can read both the source version and its template. Otherwise falls back to the already-exposed source version id.","type":"string","nullable":true},"templateName":{"description":"The readable reusable template's display name. Null when the viewer cannot read the template.","type":"string","nullable":true},"activeVersion":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":true},"comments":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"content":{"type":"string"},"author":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.\n\nDeprecated since v0.10.4. This field will become optional: it is empty once the member's account is deleted.","nullable":false,"deprecated":true,"x-sekential-deprecation":{"since":"v0.10.4"}},"createdAt":{"type":"string"},"visibility":{"type":"string","enum":["internal","external"]},"mentions":{"type":"array","items":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array."},"uniqueItems":true,"nullable":true},"aiWritten":{"description":"Posted by the AI on the author's behalf.","type":"boolean","nullable":true},"id":{"type":"string","nullable":true}},"required":["content","author","createdAt","visibility"]},"nullable":true},"lastCommentAt":{"type":"string","nullable":true},"permissions":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"entity":{"type":"object","properties":{"relationTo":{"type":"string","enum":["users","groups"]},"value":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array."}},"required":["relationTo","value"],"additionalProperties":false,"nullable":false},"level":{"type":"number"},"origin":{"description":"Document where this permission was declared and can be edited.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"inheritedFrom":{"description":"Immediate parent that synchronized this read-only entry.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"id":{"type":"string","nullable":true}},"required":["entity","level"]},"nullable":true}},"required":["name","state"]}}}},"PlaybookTemplatePatchRequestBody":{"description":"Playbook Template","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"title":"PlaybookTemplate","properties":{"name":{"type":"string"},"description":{"type":"string","nullable":true},"phase":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":true},"draftVersion":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":true},"publishedVersion":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":true},"archivedAt":{"description":"When this record was archived. Null when active.","type":"string","nullable":true},"hasDraftChanges":{"description":"Whether the draft has changed since the last publish. Managed automatically.","type":"boolean","nullable":true},"permissions":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"entity":{"type":"object","properties":{"relationTo":{"type":"string","enum":["users","groups"]},"value":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array."}},"required":["relationTo","value"],"additionalProperties":false,"nullable":false},"level":{"type":"number"},"origin":{"description":"Document where this permission was declared and can be edited.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"inheritedFrom":{"description":"Immediate parent that synchronized this read-only entry.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"id":{"type":"string","nullable":true}},"required":["entity","level"]},"nullable":true}},"required":[]}}}},"PlaybookTemplateRequestBody":{"description":"Playbook Template","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"title":"PlaybookTemplate","properties":{"name":{"type":"string"},"description":{"type":"string","nullable":true},"phase":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":true},"draftVersion":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":true},"publishedVersion":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":true},"archivedAt":{"description":"When this record was archived. Null when active.","type":"string","nullable":true},"hasDraftChanges":{"description":"Whether the draft has changed since the last publish. Managed automatically.","type":"boolean","nullable":true},"permissions":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"entity":{"type":"object","properties":{"relationTo":{"type":"string","enum":["users","groups"]},"value":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array."}},"required":["relationTo","value"],"additionalProperties":false,"nullable":false},"level":{"type":"number"},"origin":{"description":"Document where this permission was declared and can be edited.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"inheritedFrom":{"description":"Immediate parent that synchronized this read-only entry.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"id":{"type":"string","nullable":true}},"required":["entity","level"]},"nullable":true}},"required":["name"]}}}},"PlaybookTemplateVersionPatchRequestBody":{"description":"Playbook Template Version","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"title":"PlaybookTemplateVersion","properties":{"playbookTemplate":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":true},"playbook":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":true},"sourceVersion":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":true},"portalPages":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"page":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":true},"order":{"type":"number"},"id":{"type":"string","nullable":true}},"required":["order"]},"nullable":true},"flow":{"type":"object","additionalProperties":false,"properties":{"type":{"type":"string","enum":["journey","playbook"]},"nodes":{"type":"array","items":{"oneOf":[{"type":"object","additionalProperties":false,"properties":{"nodeId":{"type":"string"},"systemRole":{"type":"string","enum":["start","root-paths","default-group","flow-out"],"nullable":true},"containerId":{"description":"The containing node id: a Flow Group, or the step this one is a substep of.","type":"string","nullable":true},"isMilestone":{"description":"Marks this node as a key moment for flow summaries and milestone views.","type":"boolean","nullable":true},"label":{"type":"string","nullable":true},"skill":{"type":"string","nullable":true},"skillOwner":{"oneOf":[{"type":"string","nullable":true},{"$ref":"#/components/schemas/User"}]},"agent":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"instruction":{"description":"The bounded instruction the AI should execute in the current flow context.","type":"string"},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["node-agent"]}},"required":["blockType","nodeId","agent","instruction"]},{"type":"object","additionalProperties":false,"properties":{"nodeId":{"type":"string"},"systemRole":{"type":"string","enum":["start","root-paths","default-group","flow-out"],"nullable":true},"containerId":{"description":"The containing node id: a Flow Group, or the step this one is a substep of.","type":"string","nullable":true},"isMilestone":{"description":"Marks this node as a key moment for flow summaries and milestone views.","type":"boolean","nullable":true},"label":{"type":"string","nullable":true},"description":{"type":"string","nullable":true},"instructions":{"description":"Agent-facing instructions copied to the live step.","type":"string","nullable":true},"duration":{"type":"number","nullable":true},"assignedRoles":{"description":"Internal assignees receive Reader access to the live playbook and parent journey.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Role"}]},"nullable":true},"assignedUsers":{"description":"Internal assignees receive Reader access to the live playbook and parent journey.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"nullable":true},"watcherRoles":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Role"}]},"nullable":true},"watchers":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"nullable":true},"choices":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"handleId":{"type":"string","nullable":true},"label":{"type":"string","nullable":true},"id":{"type":"string","nullable":true}},"required":[]},"nullable":true},"eachAssignee":{"type":"boolean","nullable":true},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["node-decision"]}},"required":["blockType","nodeId"]},{"type":"object","additionalProperties":false,"properties":{"nodeId":{"type":"string"},"systemRole":{"type":"string","enum":["start","root-paths","default-group","flow-out"],"nullable":true},"containerId":{"description":"The containing node id: a Flow Group, or the step this one is a substep of.","type":"string","nullable":true},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["node-flow-out"]}},"required":["blockType","nodeId"]},{"type":"object","additionalProperties":false,"properties":{"nodeId":{"type":"string"},"systemRole":{"type":"string","enum":["start","root-paths","default-group","flow-out"],"nullable":true},"containerId":{"description":"The containing node id: a Flow Group, or the step this one is a substep of.","type":"string","nullable":true},"label":{"type":"string","nullable":true},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["node-flow-group"]}},"required":["blockType","nodeId"]},{"type":"object","additionalProperties":false,"properties":{"nodeId":{"type":"string"},"systemRole":{"type":"string","enum":["start","root-paths","default-group","flow-out"],"nullable":true},"containerId":{"description":"The containing node id: a Flow Group, or the step this one is a substep of.","type":"string","nullable":true},"isMilestone":{"description":"Marks this node as a key moment for flow summaries and milestone views.","type":"boolean","nullable":true},"label":{"type":"string","nullable":true},"description":{"type":"string","nullable":true},"instructions":{"description":"Agent-facing instructions copied to the live step.","type":"string","nullable":true},"form":{"oneOf":[{"type":"string","nullable":true},{"$ref":"#/components/schemas/Form"}]},"assignedRoles":{"description":"Internal assignees receive Reader access to the live playbook and parent journey.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Role"}]},"nullable":true},"assignedUsers":{"description":"Internal assignees receive Reader access to the live playbook and parent journey.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"nullable":true},"watcherRoles":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Role"}]},"nullable":true},"watchers":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"nullable":true},"priority":{"type":"string","enum":["low","medium","high"],"nullable":true},"documents":{"description":"Drive documents copied to the live step when this node runs.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Asset"}]},"nullable":true},"documentRecipientRoles":{"description":"Client roles that receive the selected documents when this node executes.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Role"}]},"nullable":true},"documentRecipientUsers":{"description":"Specific participants that receive the selected documents when this node executes.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"nullable":true},"eachAssignee":{"type":"boolean","nullable":true},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["node-form"]}},"required":["blockType","nodeId"]},{"type":"object","additionalProperties":false,"properties":{"nodeId":{"type":"string"},"systemRole":{"type":"string","enum":["start","root-paths","default-group","flow-out"],"nullable":true},"containerId":{"description":"The containing node id: a Flow Group, or the step this one is a substep of.","type":"string","nullable":true},"method":{"type":"string","enum":["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"],"nullable":true},"url":{"description":"External URL to call. Local and private network targets are blocked.","type":"string","nullable":true},"credential":{"oneOf":[{"type":"string","nullable":true}]},"headers":{"description":"Optional JSON object of request headers.","type":"string","nullable":true},"queryParams":{"description":"Optional JSON object of query parameters.","type":"string","nullable":true},"bodyType":{"type":"string","enum":["none","json","text"],"nullable":true},"body":{"type":"string","nullable":true},"timeoutMs":{"type":"number","nullable":true},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["node-http-request"]}},"required":["blockType","nodeId"]},{"type":"object","additionalProperties":false,"properties":{"nodeId":{"type":"string"},"systemRole":{"type":"string","enum":["start","root-paths","default-group","flow-out"],"nullable":true},"containerId":{"description":"The containing node id: a Flow Group, or the step this one is a substep of.","type":"string","nullable":true},"conditionSource":{"type":"string","enum":["variable","decision","agent"],"nullable":true},"variable":{"oneOf":[{"type":"object","additionalProperties":false,"properties":{"relationTo":{"enum":["variables"]},"value":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Variable"}]}},"required":["value","relationTo"],"nullable":true},{"type":"object","additionalProperties":false,"properties":{"relationTo":{"enum":["playbook-template-variables"]},"value":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/PlaybookTemplateVariable"}]}},"required":["value","relationTo"],"nullable":true}]},"decisionNodeId":{"description":"Node id of the decision whose selected choice is used.","type":"string","nullable":true},"decisionChoice":{"description":"Choice handle to compare against.","type":"string","nullable":true},"skill":{"type":"string","nullable":true},"skillOwner":{"oneOf":[{"type":"string","nullable":true},{"$ref":"#/components/schemas/User"}]},"agent":{"oneOf":[{"type":"string","nullable":true},{"$ref":"#/components/schemas/User"}]},"question":{"description":"Asked to the agent with the playbook, its journey and its customer as context; its Yes or No answer picks the output.","type":"string","nullable":true},"operator":{"type":"string","enum":["equals","not_equals","less","less_or_equal","greater","greater_or_equal"],"nullable":true},"compareToNow":{"description":"For date variables, compare against the current date (UTC calendar day) instead of a fixed value.","type":"boolean","nullable":true},"compareTo":{"type":"array","items":{"oneOf":[{"type":"object","additionalProperties":false,"properties":{"data":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/ObjectRecord"}]},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["object-reference-value"]}},"required":["blockType","data"]},{"type":"object","additionalProperties":false,"properties":{"data":{"type":"string"},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["text"]}},"required":["blockType","data"]},{"type":"object","additionalProperties":false,"properties":{"data":{"type":"number"},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["number"]}},"required":["blockType","data"]},{"type":"object","additionalProperties":false,"properties":{"data":{"type":"boolean"},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["boolean"]}},"required":["blockType","data"]},{"type":"object","additionalProperties":false,"properties":{"data":{"type":"string"},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["date"]}},"required":["blockType","data"]},{"type":"object","additionalProperties":false,"properties":{"data":{"type":"string"},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["select"]}},"required":["blockType","data"]}]},"nullable":true},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["node-if"]}},"required":["blockType","nodeId"]},{"type":"object","additionalProperties":false,"properties":{"nodeId":{"type":"string"},"systemRole":{"type":"string","enum":["start","root-paths","default-group","flow-out"],"nullable":true},"containerId":{"description":"The containing node id: a Flow Group, or the step this one is a substep of.","type":"string","nullable":true},"isMilestone":{"description":"Marks this node as a key moment for flow summaries and milestone views.","type":"boolean","nullable":true},"label":{"type":"string","nullable":true},"description":{"type":"string","nullable":true},"instructions":{"description":"Agent-facing instructions copied to the live step.","type":"string","nullable":true},"duration":{"type":"number","nullable":true},"joinLink":{"type":"string","nullable":true},"assignedRoles":{"description":"Internal assignees receive Reader access to the live playbook and parent journey.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Role"}]},"nullable":true},"assignedUsers":{"description":"Internal assignees receive Reader access to the live playbook and parent journey.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"nullable":true},"watcherRoles":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Role"}]},"nullable":true},"watchers":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"nullable":true},"participantRoles":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Role"}]},"nullable":true},"participantUsers":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"nullable":true},"priority":{"type":"string","enum":["low","medium","high"],"nullable":true},"documents":{"description":"Drive documents copied to the live step when this node runs.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Asset"}]},"nullable":true},"documentRecipientRoles":{"description":"Client roles that receive the selected documents when this node executes.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Role"}]},"nullable":true},"documentRecipientUsers":{"description":"Specific participants that receive the selected documents when this node executes.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"nullable":true},"eachAssignee":{"type":"boolean","nullable":true},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["node-meeting"]}},"required":["blockType","nodeId"]},{"type":"object","additionalProperties":false,"properties":{"nodeId":{"type":"string"},"systemRole":{"type":"string","enum":["start","root-paths","default-group","flow-out"],"nullable":true},"containerId":{"description":"The containing node id: a Flow Group, or the step this one is a substep of.","type":"string","nullable":true},"page":{"oneOf":[{"type":"string","nullable":true},{"$ref":"#/components/schemas/Page"}]},"pageStates":{"type":"array","items":{"type":"string"},"nullable":true},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["node-on-page-state-change"]}},"required":["blockType","nodeId"]},{"type":"object","additionalProperties":false,"properties":{"nodeId":{"type":"string"},"systemRole":{"type":"string","enum":["start","root-paths","default-group","flow-out"],"nullable":true},"containerId":{"description":"The containing node id: a Flow Group, or the step this one is a substep of.","type":"string","nullable":true},"playbookVersion":{"oneOf":[{"type":"string","nullable":true},{"$ref":"#/components/schemas/PlaybookTemplateVersion"}]},"milestoneNodeId":{"description":"Node id of a milestone node from the selected playbook version.","type":"string","nullable":true},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["node-on-playbook-milestone"]}},"required":["blockType","nodeId"]},{"type":"object","additionalProperties":false,"properties":{"nodeId":{"type":"string"},"systemRole":{"type":"string","enum":["start","root-paths","default-group","flow-out"],"nullable":true},"containerId":{"description":"The containing node id: a Flow Group, or the step this one is a substep of.","type":"string","nullable":true},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["node-on-playbook-start"]}},"required":["blockType","nodeId"]},{"type":"object","additionalProperties":false,"properties":{"nodeId":{"type":"string"},"systemRole":{"type":"string","enum":["start","root-paths","default-group","flow-out"],"nullable":true},"containerId":{"description":"The containing node id: a Flow Group, or the step this one is a substep of.","type":"string","nullable":true},"mode":{"type":"string","enum":["all","any"]},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["node-join"]}},"required":["blockType","nodeId","mode"]},{"type":"object","additionalProperties":false,"properties":{"nodeId":{"type":"string"},"systemRole":{"type":"string","enum":["start","root-paths","default-group","flow-out"],"nullable":true},"containerId":{"description":"The containing node id: a Flow Group, or the step this one is a substep of.","type":"string","nullable":true},"paths":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"handleId":{"type":"string"},"label":{"type":"string"},"id":{"type":"string","nullable":true}},"required":["handleId","label"]},"nullable":true},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["node-paths"]}},"required":["blockType","nodeId"]},{"type":"object","additionalProperties":false,"properties":{"nodeId":{"type":"string"},"systemRole":{"type":"string","enum":["start","root-paths","default-group","flow-out"],"nullable":true},"containerId":{"description":"The containing node id: a Flow Group, or the step this one is a substep of.","type":"string","nullable":true},"label":{"type":"string","nullable":true},"playbook":{"description":"Canonical live Playbook materialized for this Journey flow node.","oneOf":[{"type":"string","nullable":true},{"$ref":"#/components/schemas/Playbook"}]},"playbookTemplate":{"description":"Reusable Playbook selected by a Journey template. Its latest published version is resolved when the live Journey flow is created.","oneOf":[{"type":"string","nullable":true},{"$ref":"#/components/schemas/PlaybookTemplate"}]},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["node-playbook"]}},"required":["blockType","nodeId"]},{"type":"object","additionalProperties":false,"properties":{"nodeId":{"type":"string"},"systemRole":{"type":"string","enum":["start","root-paths","default-group","flow-out"],"nullable":true},"containerId":{"description":"The containing node id: a Flow Group, or the step this one is a substep of.","type":"string","nullable":true},"isMilestone":{"description":"Marks this node as a key moment for flow summaries and milestone views.","type":"boolean","nullable":true},"label":{"type":"string","nullable":true},"description":{"type":"string","nullable":true},"instructions":{"description":"Agent-facing instructions copied to the live step.","type":"string","nullable":true},"assignedRoles":{"description":"Internal assignees receive Reader access to the live playbook and parent journey.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Role"}]},"nullable":true},"assignedUsers":{"description":"Internal assignees receive Reader access to the live playbook and parent journey.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"nullable":true},"watcherRoles":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Role"}]},"nullable":true},"watchers":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"nullable":true},"priority":{"type":"string","enum":["low","medium","high"],"nullable":true},"documents":{"description":"Drive documents copied to the live step when this node runs.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Asset"}]},"nullable":true},"documentRecipientRoles":{"description":"Client roles that receive the selected documents when this node executes.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Role"}]},"nullable":true},"documentRecipientUsers":{"description":"Specific participants that receive the selected documents when this node executes.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"nullable":true},"eachAssignee":{"type":"boolean","nullable":true},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["node-request-file"]}},"required":["blockType","nodeId"]},{"type":"object","additionalProperties":false,"properties":{"nodeId":{"type":"string"},"systemRole":{"type":"string","enum":["start","root-paths","default-group","flow-out"],"nullable":true},"containerId":{"description":"The containing node id: a Flow Group, or the step this one is a substep of.","type":"string","nullable":true},"isMilestone":{"description":"Marks this node as a key moment for flow summaries and milestone views.","type":"boolean","nullable":true},"label":{"type":"string","nullable":true},"description":{"type":"string","nullable":true},"instructions":{"description":"Agent-facing instructions copied to the live step.","type":"string","nullable":true},"email":{"oneOf":[{"type":"string","nullable":true},{"$ref":"#/components/schemas/Email"}]},"autoSend":{"description":"Sent automatically by the flow rather than composed manually.","type":"boolean","nullable":true},"assignedRoles":{"description":"Internal assignees receive Reader access to the live playbook and parent journey.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Role"}]},"nullable":true},"assignedUsers":{"description":"Internal assignees receive Reader access to the live playbook and parent journey.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"nullable":true},"watcherRoles":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Role"}]},"nullable":true},"watchers":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"nullable":true},"recipientRoles":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Role"}]},"nullable":true},"recipientUsers":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"nullable":true},"ccRoles":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Role"}]},"nullable":true},"ccUsers":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"nullable":true},"bccRoles":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Role"}]},"nullable":true},"bccUsers":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"nullable":true},"eachAssignee":{"type":"boolean","nullable":true},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["node-email"]}},"required":["blockType","nodeId"]},{"type":"object","additionalProperties":false,"properties":{"nodeId":{"type":"string"},"systemRole":{"type":"string","enum":["start","root-paths","default-group","flow-out"],"nullable":true},"containerId":{"description":"The containing node id: a Flow Group, or the step this one is a substep of.","type":"string","nullable":true},"targetNodeId":{"description":"Node id of the step whose state should change.","type":"string","nullable":true},"targetState":{"type":"string","enum":["todo","in-progress","done","skipped","cancelled","to-plan","scheduled","requires-attention","finished","pending","requested","uploaded","to-complete","completed","to-send","sent"],"nullable":true},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["node-set-step-state"]}},"required":["blockType","nodeId"]},{"type":"object","additionalProperties":false,"properties":{"nodeId":{"type":"string"},"systemRole":{"type":"string","enum":["start","root-paths","default-group","flow-out"],"nullable":true},"containerId":{"description":"The containing node id: a Flow Group, or the step this one is a substep of.","type":"string","nullable":true},"page":{"oneOf":[{"type":"string","nullable":true},{"$ref":"#/components/schemas/Page"}]},"pageStates":{"type":"array","items":{"type":"string"},"nullable":true},"targetState":{"type":"string","nullable":true},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["node-set-page-state"]}},"required":["blockType","nodeId"]},{"type":"object","additionalProperties":false,"properties":{"nodeId":{"type":"string"},"systemRole":{"type":"string","enum":["start","root-paths","default-group","flow-out"],"nullable":true},"containerId":{"description":"The containing node id: a Flow Group, or the step this one is a substep of.","type":"string","nullable":true},"state":{"type":"string","enum":["draft","started","paused","skipped","cancelled"]},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["node-set-playbook-state"]}},"required":["blockType","nodeId","state"]},{"type":"object","additionalProperties":false,"properties":{"nodeId":{"type":"string"},"systemRole":{"type":"string","enum":["start","root-paths","default-group","flow-out"],"nullable":true},"containerId":{"description":"The containing node id: a Flow Group, or the step this one is a substep of.","type":"string","nullable":true},"variable":{"oneOf":[{"type":"object","additionalProperties":false,"properties":{"relationTo":{"enum":["variables"]},"value":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Variable"}]}},"required":["value","relationTo"],"nullable":true},{"type":"object","additionalProperties":false,"properties":{"relationTo":{"enum":["playbook-template-variables"]},"value":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/PlaybookTemplateVariable"}]}},"required":["value","relationTo"],"nullable":true}]},"value":{"type":"array","items":{"oneOf":[{"type":"object","additionalProperties":false,"properties":{"data":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/ObjectRecord"}]},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["object-reference-value"]}},"required":["blockType","data"]},{"type":"object","additionalProperties":false,"properties":{"data":{"type":"string"},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["text"]}},"required":["blockType","data"]},{"type":"object","additionalProperties":false,"properties":{"data":{"type":"number"},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["number"]}},"required":["blockType","data"]},{"type":"object","additionalProperties":false,"properties":{"data":{"type":"boolean"},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["boolean"]}},"required":["blockType","data"]},{"type":"object","additionalProperties":false,"properties":{"data":{"type":"string"},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["date"]}},"required":["blockType","data"]},{"type":"object","additionalProperties":false,"properties":{"data":{"type":"string"},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["select"]}},"required":["blockType","data"]}]},"nullable":true},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["node-set-variable-value"]}},"required":["blockType","nodeId"]},{"type":"object","additionalProperties":false,"properties":{"nodeId":{"type":"string"},"systemRole":{"type":"string","enum":["start","root-paths","default-group","flow-out"],"nullable":true},"containerId":{"description":"The containing node id: a Flow Group, or the step this one is a substep of.","type":"string","nullable":true},"isMilestone":{"description":"Marks this node as a key moment for flow summaries and milestone views.","type":"boolean","nullable":true},"label":{"type":"string","nullable":true},"description":{"type":"string","nullable":true},"instructions":{"description":"Agent-facing instructions copied to the live step.","type":"string","nullable":true},"duration":{"type":"number","nullable":true},"assignedRoles":{"description":"Internal assignees receive Reader access to the live playbook and parent journey.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Role"}]},"nullable":true},"assignedUsers":{"description":"Internal assignees receive Reader access to the live playbook and parent journey.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"nullable":true},"reviewerRoles":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Role"}]},"nullable":true},"reviewerUsers":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"nullable":true},"watcherRoles":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Role"}]},"nullable":true},"watchers":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"nullable":true},"priority":{"type":"string","enum":["low","medium","high"],"nullable":true},"documents":{"description":"Drive documents copied to the live step when this node runs.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Asset"}]},"nullable":true},"documentRecipientRoles":{"description":"Client roles that receive the selected documents when this node executes.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Role"}]},"nullable":true},"documentRecipientUsers":{"description":"Specific participants that receive the selected documents when this node executes.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"nullable":true},"eachAssignee":{"type":"boolean","nullable":true},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["node-task"]}},"required":["blockType","nodeId"]},{"type":"object","additionalProperties":false,"properties":{"nodeId":{"type":"string"},"systemRole":{"type":"string","enum":["start","root-paths","default-group","flow-out"],"nullable":true},"containerId":{"description":"The containing node id: a Flow Group, or the step this one is a substep of.","type":"string","nullable":true},"duration":{"type":"number","nullable":true},"unit":{"type":"string","enum":["minutes","hours","days","weeks","months","years"],"nullable":true},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["node-wait-for"]}},"required":["blockType","nodeId"]},{"type":"object","additionalProperties":false,"properties":{"nodeId":{"type":"string"},"systemRole":{"type":"string","enum":["start","root-paths","default-group","flow-out"],"nullable":true},"containerId":{"description":"The containing node id: a Flow Group, or the step this one is a substep of.","type":"string","nullable":true},"date":{"type":"string","nullable":true},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["node-wait-until"]}},"required":["blockType","nodeId"]},{"type":"object","additionalProperties":false,"properties":{"nodeId":{"type":"string"},"systemRole":{"type":"string","enum":["start","root-paths","default-group","flow-out"],"nullable":true},"containerId":{"description":"The containing node id: a Flow Group, or the step this one is a substep of.","type":"string","nullable":true},"webhook":{"description":"Version-owned endpoint invoked by this trigger.","oneOf":[{"type":"string","nullable":true},{"$ref":"#/components/schemas/Webhook"}]},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["node-webhook"]}},"required":["blockType","nodeId"]}]},"nullable":true},"edges":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"edgeId":{"type":"string"},"source":{"type":"string"},"target":{"type":"string"},"sourceHandle":{"type":"string","nullable":true},"targetHandle":{"type":"string","nullable":true},"systemRole":{"type":"string","enum":["start-to-root","default-group-entry"],"nullable":true},"id":{"type":"string","nullable":true}},"required":["edgeId","source","target"]},"nullable":true}},"required":["type"]},"archivedAt":{"description":"When this record was archived. Null when active.","type":"string","nullable":true},"permissions":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"entity":{"type":"object","properties":{"relationTo":{"type":"string","enum":["users","groups"]},"value":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array."}},"required":["relationTo","value"],"additionalProperties":false,"nullable":false},"level":{"type":"number"},"origin":{"description":"Document where this permission was declared and can be edited.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"inheritedFrom":{"description":"Immediate parent that synchronized this read-only entry.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"id":{"type":"string","nullable":true}},"required":["entity","level"]},"nullable":true},"creationProgress":{"nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"versionStatus":{"description":"Pending versions are being copied asynchronously and cannot be edited yet.","type":"string","enum":["pending","ready","corrupted"]},"creationJob":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":true},"creationTotalTasks":{"type":"number","nullable":true},"creationCompletedTasks":{"type":"number","nullable":true},"creationContext":{"nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"versionNumber":{"type":"number","nullable":true},"publishedAt":{"type":"string","nullable":true},"publishedBy":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":true},"publishedByName":{"description":"Computed from publishedBy: not every viewer can read the users collection, so this reads the name with elevated access instead of relying on a populated relationship.","type":"string","nullable":true},"publishNote":{"type":"string","nullable":true}},"required":[]}}}},"PlaybookTemplateVersionRequestBody":{"description":"Playbook Template Version","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"title":"PlaybookTemplateVersion","properties":{"playbookTemplate":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":true},"playbook":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":true},"sourceVersion":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":true},"portalPages":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"page":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":true},"order":{"type":"number"},"id":{"type":"string","nullable":true}},"required":["order"]},"nullable":true},"flow":{"type":"object","additionalProperties":false,"properties":{"type":{"type":"string","enum":["journey","playbook"]},"nodes":{"type":"array","items":{"oneOf":[{"type":"object","additionalProperties":false,"properties":{"nodeId":{"type":"string"},"systemRole":{"type":"string","enum":["start","root-paths","default-group","flow-out"],"nullable":true},"containerId":{"description":"The containing node id: a Flow Group, or the step this one is a substep of.","type":"string","nullable":true},"isMilestone":{"description":"Marks this node as a key moment for flow summaries and milestone views.","type":"boolean","nullable":true},"label":{"type":"string","nullable":true},"skill":{"type":"string","nullable":true},"skillOwner":{"oneOf":[{"type":"string","nullable":true},{"$ref":"#/components/schemas/User"}]},"agent":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"instruction":{"description":"The bounded instruction the AI should execute in the current flow context.","type":"string"},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["node-agent"]}},"required":["blockType","nodeId","agent","instruction"]},{"type":"object","additionalProperties":false,"properties":{"nodeId":{"type":"string"},"systemRole":{"type":"string","enum":["start","root-paths","default-group","flow-out"],"nullable":true},"containerId":{"description":"The containing node id: a Flow Group, or the step this one is a substep of.","type":"string","nullable":true},"isMilestone":{"description":"Marks this node as a key moment for flow summaries and milestone views.","type":"boolean","nullable":true},"label":{"type":"string","nullable":true},"description":{"type":"string","nullable":true},"instructions":{"description":"Agent-facing instructions copied to the live step.","type":"string","nullable":true},"duration":{"type":"number","nullable":true},"assignedRoles":{"description":"Internal assignees receive Reader access to the live playbook and parent journey.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Role"}]},"nullable":true},"assignedUsers":{"description":"Internal assignees receive Reader access to the live playbook and parent journey.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"nullable":true},"watcherRoles":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Role"}]},"nullable":true},"watchers":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"nullable":true},"choices":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"handleId":{"type":"string","nullable":true},"label":{"type":"string","nullable":true},"id":{"type":"string","nullable":true}},"required":[]},"nullable":true},"eachAssignee":{"type":"boolean","nullable":true},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["node-decision"]}},"required":["blockType","nodeId"]},{"type":"object","additionalProperties":false,"properties":{"nodeId":{"type":"string"},"systemRole":{"type":"string","enum":["start","root-paths","default-group","flow-out"],"nullable":true},"containerId":{"description":"The containing node id: a Flow Group, or the step this one is a substep of.","type":"string","nullable":true},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["node-flow-out"]}},"required":["blockType","nodeId"]},{"type":"object","additionalProperties":false,"properties":{"nodeId":{"type":"string"},"systemRole":{"type":"string","enum":["start","root-paths","default-group","flow-out"],"nullable":true},"containerId":{"description":"The containing node id: a Flow Group, or the step this one is a substep of.","type":"string","nullable":true},"label":{"type":"string","nullable":true},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["node-flow-group"]}},"required":["blockType","nodeId"]},{"type":"object","additionalProperties":false,"properties":{"nodeId":{"type":"string"},"systemRole":{"type":"string","enum":["start","root-paths","default-group","flow-out"],"nullable":true},"containerId":{"description":"The containing node id: a Flow Group, or the step this one is a substep of.","type":"string","nullable":true},"isMilestone":{"description":"Marks this node as a key moment for flow summaries and milestone views.","type":"boolean","nullable":true},"label":{"type":"string","nullable":true},"description":{"type":"string","nullable":true},"instructions":{"description":"Agent-facing instructions copied to the live step.","type":"string","nullable":true},"form":{"oneOf":[{"type":"string","nullable":true},{"$ref":"#/components/schemas/Form"}]},"assignedRoles":{"description":"Internal assignees receive Reader access to the live playbook and parent journey.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Role"}]},"nullable":true},"assignedUsers":{"description":"Internal assignees receive Reader access to the live playbook and parent journey.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"nullable":true},"watcherRoles":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Role"}]},"nullable":true},"watchers":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"nullable":true},"priority":{"type":"string","enum":["low","medium","high"],"nullable":true},"documents":{"description":"Drive documents copied to the live step when this node runs.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Asset"}]},"nullable":true},"documentRecipientRoles":{"description":"Client roles that receive the selected documents when this node executes.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Role"}]},"nullable":true},"documentRecipientUsers":{"description":"Specific participants that receive the selected documents when this node executes.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"nullable":true},"eachAssignee":{"type":"boolean","nullable":true},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["node-form"]}},"required":["blockType","nodeId"]},{"type":"object","additionalProperties":false,"properties":{"nodeId":{"type":"string"},"systemRole":{"type":"string","enum":["start","root-paths","default-group","flow-out"],"nullable":true},"containerId":{"description":"The containing node id: a Flow Group, or the step this one is a substep of.","type":"string","nullable":true},"method":{"type":"string","enum":["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"],"nullable":true},"url":{"description":"External URL to call. Local and private network targets are blocked.","type":"string","nullable":true},"credential":{"oneOf":[{"type":"string","nullable":true}]},"headers":{"description":"Optional JSON object of request headers.","type":"string","nullable":true},"queryParams":{"description":"Optional JSON object of query parameters.","type":"string","nullable":true},"bodyType":{"type":"string","enum":["none","json","text"],"nullable":true},"body":{"type":"string","nullable":true},"timeoutMs":{"type":"number","nullable":true},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["node-http-request"]}},"required":["blockType","nodeId"]},{"type":"object","additionalProperties":false,"properties":{"nodeId":{"type":"string"},"systemRole":{"type":"string","enum":["start","root-paths","default-group","flow-out"],"nullable":true},"containerId":{"description":"The containing node id: a Flow Group, or the step this one is a substep of.","type":"string","nullable":true},"conditionSource":{"type":"string","enum":["variable","decision","agent"],"nullable":true},"variable":{"oneOf":[{"type":"object","additionalProperties":false,"properties":{"relationTo":{"enum":["variables"]},"value":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Variable"}]}},"required":["value","relationTo"],"nullable":true},{"type":"object","additionalProperties":false,"properties":{"relationTo":{"enum":["playbook-template-variables"]},"value":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/PlaybookTemplateVariable"}]}},"required":["value","relationTo"],"nullable":true}]},"decisionNodeId":{"description":"Node id of the decision whose selected choice is used.","type":"string","nullable":true},"decisionChoice":{"description":"Choice handle to compare against.","type":"string","nullable":true},"skill":{"type":"string","nullable":true},"skillOwner":{"oneOf":[{"type":"string","nullable":true},{"$ref":"#/components/schemas/User"}]},"agent":{"oneOf":[{"type":"string","nullable":true},{"$ref":"#/components/schemas/User"}]},"question":{"description":"Asked to the agent with the playbook, its journey and its customer as context; its Yes or No answer picks the output.","type":"string","nullable":true},"operator":{"type":"string","enum":["equals","not_equals","less","less_or_equal","greater","greater_or_equal"],"nullable":true},"compareToNow":{"description":"For date variables, compare against the current date (UTC calendar day) instead of a fixed value.","type":"boolean","nullable":true},"compareTo":{"type":"array","items":{"oneOf":[{"type":"object","additionalProperties":false,"properties":{"data":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/ObjectRecord"}]},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["object-reference-value"]}},"required":["blockType","data"]},{"type":"object","additionalProperties":false,"properties":{"data":{"type":"string"},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["text"]}},"required":["blockType","data"]},{"type":"object","additionalProperties":false,"properties":{"data":{"type":"number"},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["number"]}},"required":["blockType","data"]},{"type":"object","additionalProperties":false,"properties":{"data":{"type":"boolean"},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["boolean"]}},"required":["blockType","data"]},{"type":"object","additionalProperties":false,"properties":{"data":{"type":"string"},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["date"]}},"required":["blockType","data"]},{"type":"object","additionalProperties":false,"properties":{"data":{"type":"string"},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["select"]}},"required":["blockType","data"]}]},"nullable":true},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["node-if"]}},"required":["blockType","nodeId"]},{"type":"object","additionalProperties":false,"properties":{"nodeId":{"type":"string"},"systemRole":{"type":"string","enum":["start","root-paths","default-group","flow-out"],"nullable":true},"containerId":{"description":"The containing node id: a Flow Group, or the step this one is a substep of.","type":"string","nullable":true},"isMilestone":{"description":"Marks this node as a key moment for flow summaries and milestone views.","type":"boolean","nullable":true},"label":{"type":"string","nullable":true},"description":{"type":"string","nullable":true},"instructions":{"description":"Agent-facing instructions copied to the live step.","type":"string","nullable":true},"duration":{"type":"number","nullable":true},"joinLink":{"type":"string","nullable":true},"assignedRoles":{"description":"Internal assignees receive Reader access to the live playbook and parent journey.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Role"}]},"nullable":true},"assignedUsers":{"description":"Internal assignees receive Reader access to the live playbook and parent journey.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"nullable":true},"watcherRoles":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Role"}]},"nullable":true},"watchers":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"nullable":true},"participantRoles":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Role"}]},"nullable":true},"participantUsers":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"nullable":true},"priority":{"type":"string","enum":["low","medium","high"],"nullable":true},"documents":{"description":"Drive documents copied to the live step when this node runs.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Asset"}]},"nullable":true},"documentRecipientRoles":{"description":"Client roles that receive the selected documents when this node executes.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Role"}]},"nullable":true},"documentRecipientUsers":{"description":"Specific participants that receive the selected documents when this node executes.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"nullable":true},"eachAssignee":{"type":"boolean","nullable":true},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["node-meeting"]}},"required":["blockType","nodeId"]},{"type":"object","additionalProperties":false,"properties":{"nodeId":{"type":"string"},"systemRole":{"type":"string","enum":["start","root-paths","default-group","flow-out"],"nullable":true},"containerId":{"description":"The containing node id: a Flow Group, or the step this one is a substep of.","type":"string","nullable":true},"page":{"oneOf":[{"type":"string","nullable":true},{"$ref":"#/components/schemas/Page"}]},"pageStates":{"type":"array","items":{"type":"string"},"nullable":true},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["node-on-page-state-change"]}},"required":["blockType","nodeId"]},{"type":"object","additionalProperties":false,"properties":{"nodeId":{"type":"string"},"systemRole":{"type":"string","enum":["start","root-paths","default-group","flow-out"],"nullable":true},"containerId":{"description":"The containing node id: a Flow Group, or the step this one is a substep of.","type":"string","nullable":true},"playbookVersion":{"oneOf":[{"type":"string","nullable":true},{"$ref":"#/components/schemas/PlaybookTemplateVersion"}]},"milestoneNodeId":{"description":"Node id of a milestone node from the selected playbook version.","type":"string","nullable":true},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["node-on-playbook-milestone"]}},"required":["blockType","nodeId"]},{"type":"object","additionalProperties":false,"properties":{"nodeId":{"type":"string"},"systemRole":{"type":"string","enum":["start","root-paths","default-group","flow-out"],"nullable":true},"containerId":{"description":"The containing node id: a Flow Group, or the step this one is a substep of.","type":"string","nullable":true},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["node-on-playbook-start"]}},"required":["blockType","nodeId"]},{"type":"object","additionalProperties":false,"properties":{"nodeId":{"type":"string"},"systemRole":{"type":"string","enum":["start","root-paths","default-group","flow-out"],"nullable":true},"containerId":{"description":"The containing node id: a Flow Group, or the step this one is a substep of.","type":"string","nullable":true},"mode":{"type":"string","enum":["all","any"]},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["node-join"]}},"required":["blockType","nodeId","mode"]},{"type":"object","additionalProperties":false,"properties":{"nodeId":{"type":"string"},"systemRole":{"type":"string","enum":["start","root-paths","default-group","flow-out"],"nullable":true},"containerId":{"description":"The containing node id: a Flow Group, or the step this one is a substep of.","type":"string","nullable":true},"paths":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"handleId":{"type":"string"},"label":{"type":"string"},"id":{"type":"string","nullable":true}},"required":["handleId","label"]},"nullable":true},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["node-paths"]}},"required":["blockType","nodeId"]},{"type":"object","additionalProperties":false,"properties":{"nodeId":{"type":"string"},"systemRole":{"type":"string","enum":["start","root-paths","default-group","flow-out"],"nullable":true},"containerId":{"description":"The containing node id: a Flow Group, or the step this one is a substep of.","type":"string","nullable":true},"label":{"type":"string","nullable":true},"playbook":{"description":"Canonical live Playbook materialized for this Journey flow node.","oneOf":[{"type":"string","nullable":true},{"$ref":"#/components/schemas/Playbook"}]},"playbookTemplate":{"description":"Reusable Playbook selected by a Journey template. Its latest published version is resolved when the live Journey flow is created.","oneOf":[{"type":"string","nullable":true},{"$ref":"#/components/schemas/PlaybookTemplate"}]},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["node-playbook"]}},"required":["blockType","nodeId"]},{"type":"object","additionalProperties":false,"properties":{"nodeId":{"type":"string"},"systemRole":{"type":"string","enum":["start","root-paths","default-group","flow-out"],"nullable":true},"containerId":{"description":"The containing node id: a Flow Group, or the step this one is a substep of.","type":"string","nullable":true},"isMilestone":{"description":"Marks this node as a key moment for flow summaries and milestone views.","type":"boolean","nullable":true},"label":{"type":"string","nullable":true},"description":{"type":"string","nullable":true},"instructions":{"description":"Agent-facing instructions copied to the live step.","type":"string","nullable":true},"assignedRoles":{"description":"Internal assignees receive Reader access to the live playbook and parent journey.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Role"}]},"nullable":true},"assignedUsers":{"description":"Internal assignees receive Reader access to the live playbook and parent journey.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"nullable":true},"watcherRoles":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Role"}]},"nullable":true},"watchers":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"nullable":true},"priority":{"type":"string","enum":["low","medium","high"],"nullable":true},"documents":{"description":"Drive documents copied to the live step when this node runs.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Asset"}]},"nullable":true},"documentRecipientRoles":{"description":"Client roles that receive the selected documents when this node executes.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Role"}]},"nullable":true},"documentRecipientUsers":{"description":"Specific participants that receive the selected documents when this node executes.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"nullable":true},"eachAssignee":{"type":"boolean","nullable":true},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["node-request-file"]}},"required":["blockType","nodeId"]},{"type":"object","additionalProperties":false,"properties":{"nodeId":{"type":"string"},"systemRole":{"type":"string","enum":["start","root-paths","default-group","flow-out"],"nullable":true},"containerId":{"description":"The containing node id: a Flow Group, or the step this one is a substep of.","type":"string","nullable":true},"isMilestone":{"description":"Marks this node as a key moment for flow summaries and milestone views.","type":"boolean","nullable":true},"label":{"type":"string","nullable":true},"description":{"type":"string","nullable":true},"instructions":{"description":"Agent-facing instructions copied to the live step.","type":"string","nullable":true},"email":{"oneOf":[{"type":"string","nullable":true},{"$ref":"#/components/schemas/Email"}]},"autoSend":{"description":"Sent automatically by the flow rather than composed manually.","type":"boolean","nullable":true},"assignedRoles":{"description":"Internal assignees receive Reader access to the live playbook and parent journey.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Role"}]},"nullable":true},"assignedUsers":{"description":"Internal assignees receive Reader access to the live playbook and parent journey.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"nullable":true},"watcherRoles":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Role"}]},"nullable":true},"watchers":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"nullable":true},"recipientRoles":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Role"}]},"nullable":true},"recipientUsers":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"nullable":true},"ccRoles":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Role"}]},"nullable":true},"ccUsers":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"nullable":true},"bccRoles":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Role"}]},"nullable":true},"bccUsers":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"nullable":true},"eachAssignee":{"type":"boolean","nullable":true},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["node-email"]}},"required":["blockType","nodeId"]},{"type":"object","additionalProperties":false,"properties":{"nodeId":{"type":"string"},"systemRole":{"type":"string","enum":["start","root-paths","default-group","flow-out"],"nullable":true},"containerId":{"description":"The containing node id: a Flow Group, or the step this one is a substep of.","type":"string","nullable":true},"targetNodeId":{"description":"Node id of the step whose state should change.","type":"string","nullable":true},"targetState":{"type":"string","enum":["todo","in-progress","done","skipped","cancelled","to-plan","scheduled","requires-attention","finished","pending","requested","uploaded","to-complete","completed","to-send","sent"],"nullable":true},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["node-set-step-state"]}},"required":["blockType","nodeId"]},{"type":"object","additionalProperties":false,"properties":{"nodeId":{"type":"string"},"systemRole":{"type":"string","enum":["start","root-paths","default-group","flow-out"],"nullable":true},"containerId":{"description":"The containing node id: a Flow Group, or the step this one is a substep of.","type":"string","nullable":true},"page":{"oneOf":[{"type":"string","nullable":true},{"$ref":"#/components/schemas/Page"}]},"pageStates":{"type":"array","items":{"type":"string"},"nullable":true},"targetState":{"type":"string","nullable":true},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["node-set-page-state"]}},"required":["blockType","nodeId"]},{"type":"object","additionalProperties":false,"properties":{"nodeId":{"type":"string"},"systemRole":{"type":"string","enum":["start","root-paths","default-group","flow-out"],"nullable":true},"containerId":{"description":"The containing node id: a Flow Group, or the step this one is a substep of.","type":"string","nullable":true},"state":{"type":"string","enum":["draft","started","paused","skipped","cancelled"]},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["node-set-playbook-state"]}},"required":["blockType","nodeId","state"]},{"type":"object","additionalProperties":false,"properties":{"nodeId":{"type":"string"},"systemRole":{"type":"string","enum":["start","root-paths","default-group","flow-out"],"nullable":true},"containerId":{"description":"The containing node id: a Flow Group, or the step this one is a substep of.","type":"string","nullable":true},"variable":{"oneOf":[{"type":"object","additionalProperties":false,"properties":{"relationTo":{"enum":["variables"]},"value":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Variable"}]}},"required":["value","relationTo"],"nullable":true},{"type":"object","additionalProperties":false,"properties":{"relationTo":{"enum":["playbook-template-variables"]},"value":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/PlaybookTemplateVariable"}]}},"required":["value","relationTo"],"nullable":true}]},"value":{"type":"array","items":{"oneOf":[{"type":"object","additionalProperties":false,"properties":{"data":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/ObjectRecord"}]},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["object-reference-value"]}},"required":["blockType","data"]},{"type":"object","additionalProperties":false,"properties":{"data":{"type":"string"},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["text"]}},"required":["blockType","data"]},{"type":"object","additionalProperties":false,"properties":{"data":{"type":"number"},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["number"]}},"required":["blockType","data"]},{"type":"object","additionalProperties":false,"properties":{"data":{"type":"boolean"},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["boolean"]}},"required":["blockType","data"]},{"type":"object","additionalProperties":false,"properties":{"data":{"type":"string"},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["date"]}},"required":["blockType","data"]},{"type":"object","additionalProperties":false,"properties":{"data":{"type":"string"},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["select"]}},"required":["blockType","data"]}]},"nullable":true},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["node-set-variable-value"]}},"required":["blockType","nodeId"]},{"type":"object","additionalProperties":false,"properties":{"nodeId":{"type":"string"},"systemRole":{"type":"string","enum":["start","root-paths","default-group","flow-out"],"nullable":true},"containerId":{"description":"The containing node id: a Flow Group, or the step this one is a substep of.","type":"string","nullable":true},"isMilestone":{"description":"Marks this node as a key moment for flow summaries and milestone views.","type":"boolean","nullable":true},"label":{"type":"string","nullable":true},"description":{"type":"string","nullable":true},"instructions":{"description":"Agent-facing instructions copied to the live step.","type":"string","nullable":true},"duration":{"type":"number","nullable":true},"assignedRoles":{"description":"Internal assignees receive Reader access to the live playbook and parent journey.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Role"}]},"nullable":true},"assignedUsers":{"description":"Internal assignees receive Reader access to the live playbook and parent journey.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"nullable":true},"reviewerRoles":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Role"}]},"nullable":true},"reviewerUsers":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"nullable":true},"watcherRoles":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Role"}]},"nullable":true},"watchers":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"nullable":true},"priority":{"type":"string","enum":["low","medium","high"],"nullable":true},"documents":{"description":"Drive documents copied to the live step when this node runs.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Asset"}]},"nullable":true},"documentRecipientRoles":{"description":"Client roles that receive the selected documents when this node executes.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Role"}]},"nullable":true},"documentRecipientUsers":{"description":"Specific participants that receive the selected documents when this node executes.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"nullable":true},"eachAssignee":{"type":"boolean","nullable":true},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["node-task"]}},"required":["blockType","nodeId"]},{"type":"object","additionalProperties":false,"properties":{"nodeId":{"type":"string"},"systemRole":{"type":"string","enum":["start","root-paths","default-group","flow-out"],"nullable":true},"containerId":{"description":"The containing node id: a Flow Group, or the step this one is a substep of.","type":"string","nullable":true},"duration":{"type":"number","nullable":true},"unit":{"type":"string","enum":["minutes","hours","days","weeks","months","years"],"nullable":true},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["node-wait-for"]}},"required":["blockType","nodeId"]},{"type":"object","additionalProperties":false,"properties":{"nodeId":{"type":"string"},"systemRole":{"type":"string","enum":["start","root-paths","default-group","flow-out"],"nullable":true},"containerId":{"description":"The containing node id: a Flow Group, or the step this one is a substep of.","type":"string","nullable":true},"date":{"type":"string","nullable":true},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["node-wait-until"]}},"required":["blockType","nodeId"]},{"type":"object","additionalProperties":false,"properties":{"nodeId":{"type":"string"},"systemRole":{"type":"string","enum":["start","root-paths","default-group","flow-out"],"nullable":true},"containerId":{"description":"The containing node id: a Flow Group, or the step this one is a substep of.","type":"string","nullable":true},"webhook":{"description":"Version-owned endpoint invoked by this trigger.","oneOf":[{"type":"string","nullable":true},{"$ref":"#/components/schemas/Webhook"}]},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["node-webhook"]}},"required":["blockType","nodeId"]}]},"nullable":true},"edges":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"edgeId":{"type":"string"},"source":{"type":"string"},"target":{"type":"string"},"sourceHandle":{"type":"string","nullable":true},"targetHandle":{"type":"string","nullable":true},"systemRole":{"type":"string","enum":["start-to-root","default-group-entry"],"nullable":true},"id":{"type":"string","nullable":true}},"required":["edgeId","source","target"]},"nullable":true}},"required":["type"]},"archivedAt":{"description":"When this record was archived. Null when active.","type":"string","nullable":true},"permissions":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"entity":{"type":"object","properties":{"relationTo":{"type":"string","enum":["users","groups"]},"value":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array."}},"required":["relationTo","value"],"additionalProperties":false,"nullable":false},"level":{"type":"number"},"origin":{"description":"Document where this permission was declared and can be edited.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"inheritedFrom":{"description":"Immediate parent that synchronized this read-only entry.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"id":{"type":"string","nullable":true}},"required":["entity","level"]},"nullable":true},"creationProgress":{"nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"versionStatus":{"description":"Pending versions are being copied asynchronously and cannot be edited yet.","type":"string","enum":["pending","ready","corrupted"]},"creationJob":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":true},"creationTotalTasks":{"type":"number","nullable":true},"creationCompletedTasks":{"type":"number","nullable":true},"creationContext":{"nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"versionNumber":{"type":"number","nullable":true},"publishedAt":{"type":"string","nullable":true},"publishedBy":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":true},"publishedByName":{"description":"Computed from publishedBy: not every viewer can read the users collection, so this reads the name with elevated access instead of relying on a populated relationship.","type":"string","nullable":true},"publishNote":{"type":"string","nullable":true}},"required":["flow","versionStatus"]}}}},"PlaybookTemplateVariablePatchRequestBody":{"description":"Playbook Template Variable","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"title":"PlaybookTemplateVariable","properties":{"playbookTemplateVersion":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":false},"name":{"type":"string"},"slug":{"type":"string"},"required":{"type":"boolean"},"type":{"type":"array","items":{"oneOf":[{"type":"object","additionalProperties":false,"properties":{"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["object-reference"]}},"required":["blockType"]},{"type":"object","additionalProperties":false,"properties":{"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["text"]}},"required":["blockType"]},{"type":"object","additionalProperties":false,"properties":{"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["number"]}},"required":["blockType"]},{"type":"object","additionalProperties":false,"properties":{"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["boolean"]}},"required":["blockType"]},{"type":"object","additionalProperties":false,"properties":{"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["date"]}},"required":["blockType"]},{"type":"object","additionalProperties":false,"properties":{"options":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"label":{"type":"string"},"value":{"type":"string"},"id":{"type":"string","nullable":true}},"required":["label","value"]}},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["select"]}},"required":["blockType","options"]}]}},"value":{"type":"array","items":{"oneOf":[{"type":"object","additionalProperties":false,"properties":{"data":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/ObjectRecord"}]},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["object-reference-value"]}},"required":["blockType","data"]},{"type":"object","additionalProperties":false,"properties":{"data":{"type":"string"},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["text"]}},"required":["blockType","data"]},{"type":"object","additionalProperties":false,"properties":{"data":{"type":"number"},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["number"]}},"required":["blockType","data"]},{"type":"object","additionalProperties":false,"properties":{"data":{"type":"boolean"},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["boolean"]}},"required":["blockType","data"]},{"type":"object","additionalProperties":false,"properties":{"data":{"type":"string"},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["date"]}},"required":["blockType","data"]},{"type":"object","additionalProperties":false,"properties":{"data":{"type":"string"},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["select"]}},"required":["blockType","data"]}]},"nullable":true},"archivedAt":{"description":"When this record was archived. Null when active.","type":"string","nullable":true},"permissions":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"entity":{"type":"object","properties":{"relationTo":{"type":"string","enum":["users","groups"]},"value":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array."}},"required":["relationTo","value"],"additionalProperties":false,"nullable":false},"level":{"type":"number"},"origin":{"description":"Document where this permission was declared and can be edited.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"inheritedFrom":{"description":"Immediate parent that synchronized this read-only entry.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"id":{"type":"string","nullable":true}},"required":["entity","level"]},"nullable":true}},"required":[]}}}},"PlaybookTemplateVariableRequestBody":{"description":"Playbook Template Variable","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"title":"PlaybookTemplateVariable","properties":{"playbookTemplateVersion":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":false},"name":{"type":"string"},"slug":{"type":"string"},"required":{"type":"boolean"},"type":{"type":"array","items":{"oneOf":[{"type":"object","additionalProperties":false,"properties":{"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["object-reference"]}},"required":["blockType"]},{"type":"object","additionalProperties":false,"properties":{"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["text"]}},"required":["blockType"]},{"type":"object","additionalProperties":false,"properties":{"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["number"]}},"required":["blockType"]},{"type":"object","additionalProperties":false,"properties":{"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["boolean"]}},"required":["blockType"]},{"type":"object","additionalProperties":false,"properties":{"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["date"]}},"required":["blockType"]},{"type":"object","additionalProperties":false,"properties":{"options":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"label":{"type":"string"},"value":{"type":"string"},"id":{"type":"string","nullable":true}},"required":["label","value"]}},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["select"]}},"required":["blockType","options"]}]}},"value":{"type":"array","items":{"oneOf":[{"type":"object","additionalProperties":false,"properties":{"data":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/ObjectRecord"}]},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["object-reference-value"]}},"required":["blockType","data"]},{"type":"object","additionalProperties":false,"properties":{"data":{"type":"string"},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["text"]}},"required":["blockType","data"]},{"type":"object","additionalProperties":false,"properties":{"data":{"type":"number"},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["number"]}},"required":["blockType","data"]},{"type":"object","additionalProperties":false,"properties":{"data":{"type":"boolean"},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["boolean"]}},"required":["blockType","data"]},{"type":"object","additionalProperties":false,"properties":{"data":{"type":"string"},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["date"]}},"required":["blockType","data"]},{"type":"object","additionalProperties":false,"properties":{"data":{"type":"string"},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["select"]}},"required":["blockType","data"]}]},"nullable":true},"archivedAt":{"description":"When this record was archived. Null when active.","type":"string","nullable":true},"permissions":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"entity":{"type":"object","properties":{"relationTo":{"type":"string","enum":["users","groups"]},"value":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array."}},"required":["relationTo","value"],"additionalProperties":false,"nullable":false},"level":{"type":"number"},"origin":{"description":"Document where this permission was declared and can be edited.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"inheritedFrom":{"description":"Immediate parent that synchronized this read-only entry.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"id":{"type":"string","nullable":true}},"required":["entity","level"]},"nullable":true}},"required":["playbookTemplateVersion","name","slug","required","type"]}}}},"PagePatchRequestBody":{"description":"Page","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"title":"Page","properties":{"name":{"type":"string"},"slug":{"type":"string","nullable":true},"children":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"page":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":true},"order":{"type":"number"},"id":{"type":"string","nullable":true}},"required":["order"]},"nullable":true},"url":{"type":"string","nullable":true},"states":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"stateId":{"type":"string"},"content":{"nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"id":{"type":"string","nullable":true}},"required":["stateId"]}},"activeStateId":{"description":"The state shown to customers when no playbook has overridden it with a Set Page State flow node.","type":"string","nullable":true},"journeyTemplateVersion":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":true},"playbookTemplateVersion":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":true},"public":{"type":"boolean","nullable":true},"archivedAt":{"description":"When this record was archived. Null when active.","type":"string","nullable":true},"permissions":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"entity":{"type":"object","properties":{"relationTo":{"type":"string","enum":["users","groups"]},"value":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array."}},"required":["relationTo","value"],"additionalProperties":false,"nullable":false},"level":{"type":"number"},"origin":{"description":"Document where this permission was declared and can be edited.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"inheritedFrom":{"description":"Immediate parent that synchronized this read-only entry.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"id":{"type":"string","nullable":true}},"required":["entity","level"]},"nullable":true}},"required":[]}}}},"PageRequestBody":{"description":"Page","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"title":"Page","properties":{"name":{"type":"string"},"slug":{"type":"string","nullable":true},"children":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"page":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":true},"order":{"type":"number"},"id":{"type":"string","nullable":true}},"required":["order"]},"nullable":true},"url":{"type":"string","nullable":true},"states":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"stateId":{"type":"string"},"content":{"nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"id":{"type":"string","nullable":true}},"required":["stateId"]}},"activeStateId":{"description":"The state shown to customers when no playbook has overridden it with a Set Page State flow node.","type":"string","nullable":true},"journeyTemplateVersion":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":true},"playbookTemplateVersion":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":true},"public":{"type":"boolean","nullable":true},"archivedAt":{"description":"When this record was archived. Null when active.","type":"string","nullable":true},"permissions":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"entity":{"type":"object","properties":{"relationTo":{"type":"string","enum":["users","groups"]},"value":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array."}},"required":["relationTo","value"],"additionalProperties":false,"nullable":false},"level":{"type":"number"},"origin":{"description":"Document where this permission was declared and can be edited.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"inheritedFrom":{"description":"Immediate parent that synchronized this read-only entry.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"id":{"type":"string","nullable":true}},"required":["entity","level"]},"nullable":true}},"required":["name","states"]}}}},"OutcomePatchRequestBody":{"description":"Outcome","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"title":"Outcome","properties":{"name":{"type":"string"},"kind":{"type":"string","enum":["customer","internal"]},"linkedTo":{"type":"array","items":{"type":"object","properties":{"relationTo":{"type":"string","enum":["customers","journeys","playbooks","steps","object-records","journey-templates","playbook-templates"]},"value":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array."}},"required":["relationTo","value"],"additionalProperties":false},"uniqueItems":true,"nullable":true},"customers":{"type":"array","items":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array."},"uniqueItems":true,"nullable":true},"journeys":{"type":"array","items":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array."},"uniqueItems":true,"nullable":true},"playbooks":{"type":"array","items":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array."},"uniqueItems":true,"nullable":true},"description":{"type":"string","nullable":true},"importance":{"description":"The more important the outcome, the higher the steps linked to it rank on Today.","type":"string","enum":["low","medium","high"],"nullable":true},"stakeholder":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":true},"unit":{"type":"string","nullable":true},"startValue":{"type":"number","nullable":true},"targetValue":{"type":"number"},"achievedValue":{"type":"number","nullable":true},"achievedAt":{"type":"string","nullable":true},"valueHistory":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"value":{"type":"number"},"recordedBy":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":true},"recordedAt":{"type":"string"},"id":{"type":"string","nullable":true}},"required":["value","recordedAt"]},"nullable":true},"removedValues":{"description":"The value history entries a save deletes, by ID.","type":"array","items":{"type":"string"},"nullable":true},"targetHistory":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"value":{"type":"number"},"recordedBy":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":true},"recordedAt":{"type":"string"},"id":{"type":"string","nullable":true}},"required":["value","recordedAt"]},"nullable":true},"deadlineAt":{"description":"Target date and time for completing this work.","type":"string","nullable":true},"assignedUsers":{"type":"array","items":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array."},"uniqueItems":true,"nullable":true},"visibleToCustomer":{"type":"boolean","nullable":true},"attachedTo":{"type":"object","properties":{"relationTo":{"type":"string","enum":["tenants","customers","journeys","playbooks","steps","object-records","journey-templates","playbook-templates"]},"value":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array."}},"required":["relationTo","value"],"additionalProperties":false,"nullable":false,"deprecated":true,"description":"Deprecated since v0.10.4. This contract has a replacement. Use outcomes.linkedTo instead.","x-sekential-deprecation":{"since":"v0.10.4","replacement":"outcomes.linkedTo"}},"journey":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.\n\nDeprecated since v0.10.4. This contract has a replacement. Use outcomes.journeys instead.","nullable":true,"deprecated":true,"x-sekential-deprecation":{"since":"v0.10.4","replacement":"outcomes.journeys"}},"playbook":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.\n\nDeprecated since v0.10.4. This contract has a replacement. Use outcomes.playbooks instead.","nullable":true,"deprecated":true,"x-sekential-deprecation":{"since":"v0.10.4","replacement":"outcomes.playbooks"}},"archivedAt":{"description":"When this record was archived. Null when active.","type":"string","nullable":true},"permissions":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"entity":{"type":"object","properties":{"relationTo":{"type":"string","enum":["users","groups"]},"value":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array."}},"required":["relationTo","value"],"additionalProperties":false,"nullable":false},"level":{"type":"number"},"origin":{"description":"Document where this permission was declared and can be edited.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"inheritedFrom":{"description":"Immediate parent that synchronized this read-only entry.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"id":{"type":"string","nullable":true}},"required":["entity","level"]},"nullable":true}},"required":[]}}}},"OutcomeRequestBody":{"description":"Outcome","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"title":"Outcome","properties":{"name":{"type":"string"},"kind":{"type":"string","enum":["customer","internal"]},"linkedTo":{"type":"array","items":{"type":"object","properties":{"relationTo":{"type":"string","enum":["customers","journeys","playbooks","steps","object-records","journey-templates","playbook-templates"]},"value":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array."}},"required":["relationTo","value"],"additionalProperties":false},"uniqueItems":true,"nullable":true},"customers":{"type":"array","items":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array."},"uniqueItems":true,"nullable":true},"journeys":{"type":"array","items":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array."},"uniqueItems":true,"nullable":true},"playbooks":{"type":"array","items":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array."},"uniqueItems":true,"nullable":true},"description":{"type":"string","nullable":true},"importance":{"description":"The more important the outcome, the higher the steps linked to it rank on Today.","type":"string","enum":["low","medium","high"],"nullable":true},"stakeholder":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":true},"unit":{"type":"string","nullable":true},"startValue":{"type":"number","nullable":true},"targetValue":{"type":"number"},"achievedValue":{"type":"number","nullable":true},"achievedAt":{"type":"string","nullable":true},"valueHistory":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"value":{"type":"number"},"recordedBy":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":true},"recordedAt":{"type":"string"},"id":{"type":"string","nullable":true}},"required":["value","recordedAt"]},"nullable":true},"removedValues":{"description":"The value history entries a save deletes, by ID.","type":"array","items":{"type":"string"},"nullable":true},"targetHistory":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"value":{"type":"number"},"recordedBy":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":true},"recordedAt":{"type":"string"},"id":{"type":"string","nullable":true}},"required":["value","recordedAt"]},"nullable":true},"deadlineAt":{"description":"Target date and time for completing this work.","type":"string","nullable":true},"assignedUsers":{"type":"array","items":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array."},"uniqueItems":true,"nullable":true},"visibleToCustomer":{"type":"boolean","nullable":true},"attachedTo":{"type":"object","properties":{"relationTo":{"type":"string","enum":["tenants","customers","journeys","playbooks","steps","object-records","journey-templates","playbook-templates"]},"value":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array."}},"required":["relationTo","value"],"additionalProperties":false,"nullable":false,"deprecated":true,"description":"Deprecated since v0.10.4. This contract has a replacement. Use outcomes.linkedTo instead.","x-sekential-deprecation":{"since":"v0.10.4","replacement":"outcomes.linkedTo"}},"journey":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.\n\nDeprecated since v0.10.4. This contract has a replacement. Use outcomes.journeys instead.","nullable":true,"deprecated":true,"x-sekential-deprecation":{"since":"v0.10.4","replacement":"outcomes.journeys"}},"playbook":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.\n\nDeprecated since v0.10.4. This contract has a replacement. Use outcomes.playbooks instead.","nullable":true,"deprecated":true,"x-sekential-deprecation":{"since":"v0.10.4","replacement":"outcomes.playbooks"}},"archivedAt":{"description":"When this record was archived. Null when active.","type":"string","nullable":true},"permissions":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"entity":{"type":"object","properties":{"relationTo":{"type":"string","enum":["users","groups"]},"value":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array."}},"required":["relationTo","value"],"additionalProperties":false,"nullable":false},"level":{"type":"number"},"origin":{"description":"Document where this permission was declared and can be edited.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"inheritedFrom":{"description":"Immediate parent that synchronized this read-only entry.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"id":{"type":"string","nullable":true}},"required":["entity","level"]},"nullable":true}},"required":["name","kind","targetValue","attachedTo"]}}}},"ObjectPatchRequestBody":{"description":"Object","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"title":"ObjectType","properties":{"name":{"type":"string"},"description":{"type":"string","nullable":true},"slug":{"type":"string"},"icon":{"type":"string","enum":["package","box","boxes","tag","layers","database","server","globe","briefcase","building-2","factory","truck","wrench","puzzle","star","zap","shield","cpu","shopping-cart","file-text","handshake","route"]},"integrationKey":{"type":"string","nullable":true},"integrationEnabled":{"type":"boolean","nullable":true},"integrationSyncEnabled":{"type":"boolean","nullable":true},"archivedAt":{"description":"When this record was archived. Null when active.","type":"string","nullable":true}},"required":[]}}}},"ObjectRequestBody":{"description":"Object","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"title":"ObjectType","properties":{"name":{"type":"string"},"description":{"type":"string","nullable":true},"slug":{"type":"string"},"icon":{"type":"string","enum":["package","box","boxes","tag","layers","database","server","globe","briefcase","building-2","factory","truck","wrench","puzzle","star","zap","shield","cpu","shopping-cart","file-text","handshake","route"]},"integrationKey":{"type":"string","nullable":true},"integrationEnabled":{"type":"boolean","nullable":true},"integrationSyncEnabled":{"type":"boolean","nullable":true},"archivedAt":{"description":"When this record was archived. Null when active.","type":"string","nullable":true}},"required":["name","slug","icon"]}}}},"ObjectRecordPatchRequestBody":{"description":"Object Record","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"title":"ObjectRecord","properties":{"name":{"type":"string"},"object":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":false},"objectSlug":{"type":"string","nullable":true},"integrationLink":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":true},"integrationAvailable":{"type":"boolean","nullable":true},"integrationIncluded":{"type":"boolean","nullable":true},"archivedAt":{"description":"When this record was archived. Null when active.","type":"string","nullable":true},"permissions":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"entity":{"type":"object","properties":{"relationTo":{"type":"string","enum":["users","groups"]},"value":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array."}},"required":["relationTo","value"],"additionalProperties":false,"nullable":false},"level":{"type":"number"},"origin":{"description":"Document where this permission was declared and can be edited.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"inheritedFrom":{"description":"Immediate parent that synchronized this read-only entry.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"id":{"type":"string","nullable":true}},"required":["entity","level"]},"nullable":true}},"required":[]}}}},"ObjectRecordRequestBody":{"description":"Object Record","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"title":"ObjectRecord","properties":{"name":{"type":"string"},"object":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":false},"objectSlug":{"type":"string","nullable":true},"integrationLink":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":true},"integrationAvailable":{"type":"boolean","nullable":true},"integrationIncluded":{"type":"boolean","nullable":true},"archivedAt":{"description":"When this record was archived. Null when active.","type":"string","nullable":true},"permissions":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"entity":{"type":"object","properties":{"relationTo":{"type":"string","enum":["users","groups"]},"value":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array."}},"required":["relationTo","value"],"additionalProperties":false,"nullable":false},"level":{"type":"number"},"origin":{"description":"Document where this permission was declared and can be edited.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"inheritedFrom":{"description":"Immediate parent that synchronized this read-only entry.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"id":{"type":"string","nullable":true}},"required":["entity","level"]},"nullable":true}},"required":["name","object"]}}}},"ObjectRecordVariableValuePatchRequestBody":{"description":"Object Record Variable Value","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"title":"ObjectRecordVariableValue","properties":{"variable":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":false},"record":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":false},"value":{"type":"array","items":{"oneOf":[{"type":"object","additionalProperties":false,"properties":{"data":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/ObjectRecord"}]},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["object-reference-value"]}},"required":["blockType","data"]},{"type":"object","additionalProperties":false,"properties":{"data":{"type":"string"},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["text"]}},"required":["blockType","data"]},{"type":"object","additionalProperties":false,"properties":{"data":{"type":"number"},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["number"]}},"required":["blockType","data"]},{"type":"object","additionalProperties":false,"properties":{"data":{"type":"boolean"},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["boolean"]}},"required":["blockType","data"]},{"type":"object","additionalProperties":false,"properties":{"data":{"type":"string"},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["date"]}},"required":["blockType","data"]},{"type":"object","additionalProperties":false,"properties":{"data":{"type":"string"},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["select"]}},"required":["blockType","data"]}]}},"archivedAt":{"description":"When this record was archived. Null when active.","type":"string","nullable":true},"permissions":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"entity":{"type":"object","properties":{"relationTo":{"type":"string","enum":["users","groups"]},"value":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array."}},"required":["relationTo","value"],"additionalProperties":false,"nullable":false},"level":{"type":"number"},"origin":{"description":"Document where this permission was declared and can be edited.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"inheritedFrom":{"description":"Immediate parent that synchronized this read-only entry.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"id":{"type":"string","nullable":true}},"required":["entity","level"]},"nullable":true}},"required":[]}}}},"ObjectRecordVariableValueRequestBody":{"description":"Object Record Variable Value","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"title":"ObjectRecordVariableValue","properties":{"variable":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":false},"record":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":false},"value":{"type":"array","items":{"oneOf":[{"type":"object","additionalProperties":false,"properties":{"data":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/ObjectRecord"}]},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["object-reference-value"]}},"required":["blockType","data"]},{"type":"object","additionalProperties":false,"properties":{"data":{"type":"string"},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["text"]}},"required":["blockType","data"]},{"type":"object","additionalProperties":false,"properties":{"data":{"type":"number"},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["number"]}},"required":["blockType","data"]},{"type":"object","additionalProperties":false,"properties":{"data":{"type":"boolean"},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["boolean"]}},"required":["blockType","data"]},{"type":"object","additionalProperties":false,"properties":{"data":{"type":"string"},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["date"]}},"required":["blockType","data"]},{"type":"object","additionalProperties":false,"properties":{"data":{"type":"string"},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["select"]}},"required":["blockType","data"]}]}},"archivedAt":{"description":"When this record was archived. Null when active.","type":"string","nullable":true},"permissions":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"entity":{"type":"object","properties":{"relationTo":{"type":"string","enum":["users","groups"]},"value":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array."}},"required":["relationTo","value"],"additionalProperties":false,"nullable":false},"level":{"type":"number"},"origin":{"description":"Document where this permission was declared and can be edited.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"inheritedFrom":{"description":"Immediate parent that synchronized this read-only entry.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"id":{"type":"string","nullable":true}},"required":["entity","level"]},"nullable":true}},"required":["variable","record","value"]}}}},"NotificationPatchRequestBody":{"description":"Notification","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"title":"Notification","properties":{"readAt":{"type":"string","nullable":true}},"required":[]}}}},"JourneyPatchRequestBody":{"description":"Journey","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"title":"Journey","properties":{"name":{"type":"string"},"description":{"type":"string","nullable":true},"slug":{"description":"Short journey identifier, unique within the tenant. Auto-generated on creation and editable afterwards.","type":"string"},"lastStepNumber":{"description":"Last step number assigned in this journey. Used to build aliases like <journeySlug>-<stepNumber>.","type":"number"},"state":{"type":"string","enum":["draft","started","paused","completed","cancelled"]},"startedAt":{"description":"When this record actually started. Auto-set on first start.","type":"string","nullable":true},"deadlineAt":{"description":"Target date and time for completing this work.","type":"string","nullable":true},"archivedAt":{"description":"When this record was archived. Null when active.","type":"string","nullable":true},"customer":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":false},"customerName":{"type":"string","nullable":true},"relatedRecords":{"type":"array","items":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array."},"uniqueItems":true,"nullable":true},"playbooks":{"type":"object","additionalProperties":false,"properties":{"docs":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Playbook"}]}},"hasNextPage":{"type":"boolean"},"totalDocs":{"type":"number"}}},"sourceTemplateVersion":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":true},"activeVersion":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":true},"comments":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"content":{"type":"string"},"author":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.\n\nDeprecated since v0.10.4. This field will become optional: it is empty once the member's account is deleted.","nullable":false,"deprecated":true,"x-sekential-deprecation":{"since":"v0.10.4"}},"createdAt":{"type":"string"},"visibility":{"type":"string","enum":["internal","external"]},"mentions":{"type":"array","items":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array."},"uniqueItems":true,"nullable":true},"aiWritten":{"description":"Posted by the AI on the author's behalf.","type":"boolean","nullable":true},"id":{"type":"string","nullable":true}},"required":["content","author","createdAt","visibility"]},"nullable":true},"lastCommentAt":{"type":"string","nullable":true},"permissions":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"entity":{"type":"object","properties":{"relationTo":{"type":"string","enum":["users","groups"]},"value":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array."}},"required":["relationTo","value"],"additionalProperties":false,"nullable":false},"level":{"type":"number"},"origin":{"description":"Document where this permission was declared and can be edited.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"inheritedFrom":{"description":"Immediate parent that synchronized this read-only entry.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"id":{"type":"string","nullable":true}},"required":["entity","level"]},"nullable":true}},"required":[]}}}},"JourneyRequestBody":{"description":"Journey","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"title":"Journey","properties":{"name":{"type":"string"},"description":{"type":"string","nullable":true},"slug":{"description":"Short journey identifier, unique within the tenant. Auto-generated on creation and editable afterwards.","type":"string"},"lastStepNumber":{"description":"Last step number assigned in this journey. Used to build aliases like <journeySlug>-<stepNumber>.","type":"number"},"state":{"type":"string","enum":["draft","started","paused","completed","cancelled"]},"startedAt":{"description":"When this record actually started. Auto-set on first start.","type":"string","nullable":true},"deadlineAt":{"description":"Target date and time for completing this work.","type":"string","nullable":true},"archivedAt":{"description":"When this record was archived. Null when active.","type":"string","nullable":true},"customer":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":false},"customerName":{"type":"string","nullable":true},"relatedRecords":{"type":"array","items":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array."},"uniqueItems":true,"nullable":true},"playbooks":{"type":"object","additionalProperties":false,"properties":{"docs":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Playbook"}]}},"hasNextPage":{"type":"boolean"},"totalDocs":{"type":"number"}}},"sourceTemplateVersion":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":true},"activeVersion":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":true},"comments":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"content":{"type":"string"},"author":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.\n\nDeprecated since v0.10.4. This field will become optional: it is empty once the member's account is deleted.","nullable":false,"deprecated":true,"x-sekential-deprecation":{"since":"v0.10.4"}},"createdAt":{"type":"string"},"visibility":{"type":"string","enum":["internal","external"]},"mentions":{"type":"array","items":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array."},"uniqueItems":true,"nullable":true},"aiWritten":{"description":"Posted by the AI on the author's behalf.","type":"boolean","nullable":true},"id":{"type":"string","nullable":true}},"required":["content","author","createdAt","visibility"]},"nullable":true},"lastCommentAt":{"type":"string","nullable":true},"permissions":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"entity":{"type":"object","properties":{"relationTo":{"type":"string","enum":["users","groups"]},"value":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array."}},"required":["relationTo","value"],"additionalProperties":false,"nullable":false},"level":{"type":"number"},"origin":{"description":"Document where this permission was declared and can be edited.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"inheritedFrom":{"description":"Immediate parent that synchronized this read-only entry.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"id":{"type":"string","nullable":true}},"required":["entity","level"]},"nullable":true}},"required":["name","slug","lastStepNumber","state","customer"]}}}},"JourneyVariableValuePatchRequestBody":{"description":"Journey Variable Value","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"title":"JourneyVariableValue","properties":{"variable":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":false},"journey":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":false},"value":{"type":"array","items":{"oneOf":[{"type":"object","additionalProperties":false,"properties":{"data":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/ObjectRecord"}]},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["object-reference-value"]}},"required":["blockType","data"]},{"type":"object","additionalProperties":false,"properties":{"data":{"type":"string"},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["text"]}},"required":["blockType","data"]},{"type":"object","additionalProperties":false,"properties":{"data":{"type":"number"},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["number"]}},"required":["blockType","data"]},{"type":"object","additionalProperties":false,"properties":{"data":{"type":"boolean"},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["boolean"]}},"required":["blockType","data"]},{"type":"object","additionalProperties":false,"properties":{"data":{"type":"string"},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["date"]}},"required":["blockType","data"]},{"type":"object","additionalProperties":false,"properties":{"data":{"type":"string"},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["select"]}},"required":["blockType","data"]}]}},"archivedAt":{"description":"When this record was archived. Null when active.","type":"string","nullable":true},"permissions":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"entity":{"type":"object","properties":{"relationTo":{"type":"string","enum":["users","groups"]},"value":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array."}},"required":["relationTo","value"],"additionalProperties":false,"nullable":false},"level":{"type":"number"},"origin":{"description":"Document where this permission was declared and can be edited.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"inheritedFrom":{"description":"Immediate parent that synchronized this read-only entry.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"id":{"type":"string","nullable":true}},"required":["entity","level"]},"nullable":true}},"required":[]}}}},"JourneyVariableValueRequestBody":{"description":"Journey Variable Value","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"title":"JourneyVariableValue","properties":{"variable":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":false},"journey":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":false},"value":{"type":"array","items":{"oneOf":[{"type":"object","additionalProperties":false,"properties":{"data":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/ObjectRecord"}]},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["object-reference-value"]}},"required":["blockType","data"]},{"type":"object","additionalProperties":false,"properties":{"data":{"type":"string"},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["text"]}},"required":["blockType","data"]},{"type":"object","additionalProperties":false,"properties":{"data":{"type":"number"},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["number"]}},"required":["blockType","data"]},{"type":"object","additionalProperties":false,"properties":{"data":{"type":"boolean"},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["boolean"]}},"required":["blockType","data"]},{"type":"object","additionalProperties":false,"properties":{"data":{"type":"string"},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["date"]}},"required":["blockType","data"]},{"type":"object","additionalProperties":false,"properties":{"data":{"type":"string"},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["select"]}},"required":["blockType","data"]}]}},"archivedAt":{"description":"When this record was archived. Null when active.","type":"string","nullable":true},"permissions":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"entity":{"type":"object","properties":{"relationTo":{"type":"string","enum":["users","groups"]},"value":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array."}},"required":["relationTo","value"],"additionalProperties":false,"nullable":false},"level":{"type":"number"},"origin":{"description":"Document where this permission was declared and can be edited.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"inheritedFrom":{"description":"Immediate parent that synchronized this read-only entry.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"id":{"type":"string","nullable":true}},"required":["entity","level"]},"nullable":true}},"required":["variable","journey","value"]}}}},"JourneyTemplatePatchRequestBody":{"description":"Journey Template","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"title":"JourneyTemplate","properties":{"name":{"type":"string"},"description":{"type":"string","nullable":true},"draftVersion":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":true},"publishedVersion":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":true},"archivedAt":{"description":"When this record was archived. Null when active.","type":"string","nullable":true},"hasDraftChanges":{"description":"Whether the draft has changed since the last publish. Managed automatically.","type":"boolean","nullable":true},"permissions":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"entity":{"type":"object","properties":{"relationTo":{"type":"string","enum":["users","groups"]},"value":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array."}},"required":["relationTo","value"],"additionalProperties":false,"nullable":false},"level":{"type":"number"},"origin":{"description":"Document where this permission was declared and can be edited.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"inheritedFrom":{"description":"Immediate parent that synchronized this read-only entry.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"id":{"type":"string","nullable":true}},"required":["entity","level"]},"nullable":true}},"required":[]}}}},"JourneyTemplateRequestBody":{"description":"Journey Template","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"title":"JourneyTemplate","properties":{"name":{"type":"string"},"description":{"type":"string","nullable":true},"draftVersion":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":true},"publishedVersion":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":true},"archivedAt":{"description":"When this record was archived. Null when active.","type":"string","nullable":true},"hasDraftChanges":{"description":"Whether the draft has changed since the last publish. Managed automatically.","type":"boolean","nullable":true},"permissions":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"entity":{"type":"object","properties":{"relationTo":{"type":"string","enum":["users","groups"]},"value":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array."}},"required":["relationTo","value"],"additionalProperties":false,"nullable":false},"level":{"type":"number"},"origin":{"description":"Document where this permission was declared and can be edited.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"inheritedFrom":{"description":"Immediate parent that synchronized this read-only entry.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"id":{"type":"string","nullable":true}},"required":["entity","level"]},"nullable":true}},"required":["name"]}}}},"JourneyTemplateVersionPatchRequestBody":{"description":"Journey Template Version","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"title":"JourneyTemplateVersion","properties":{"journeyTemplate":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":true},"journey":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":true},"sourceVersion":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":true},"portalRootPage":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":true},"flow":{"type":"object","additionalProperties":false,"properties":{"type":{"type":"string","enum":["journey","playbook"]},"nodes":{"type":"array","items":{"oneOf":[{"type":"object","additionalProperties":false,"properties":{"nodeId":{"type":"string"},"systemRole":{"type":"string","enum":["start","root-paths","default-group","flow-out"],"nullable":true},"containerId":{"description":"The containing node id: a Flow Group, or the step this one is a substep of.","type":"string","nullable":true},"isMilestone":{"description":"Marks this node as a key moment for flow summaries and milestone views.","type":"boolean","nullable":true},"label":{"type":"string","nullable":true},"description":{"type":"string","nullable":true},"instructions":{"description":"Agent-facing instructions copied to the live step.","type":"string","nullable":true},"duration":{"type":"number","nullable":true},"assignedRoles":{"description":"Internal assignees receive Reader access to the live playbook and parent journey.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Role"}]},"nullable":true},"assignedUsers":{"description":"Internal assignees receive Reader access to the live playbook and parent journey.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"nullable":true},"watcherRoles":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Role"}]},"nullable":true},"watchers":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"nullable":true},"choices":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"handleId":{"type":"string","nullable":true},"label":{"type":"string","nullable":true},"id":{"type":"string","nullable":true}},"required":[]},"nullable":true},"eachAssignee":{"type":"boolean","nullable":true},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["node-decision"]}},"required":["blockType","nodeId"]},{"type":"object","additionalProperties":false,"properties":{"nodeId":{"type":"string"},"systemRole":{"type":"string","enum":["start","root-paths","default-group","flow-out"],"nullable":true},"containerId":{"description":"The containing node id: a Flow Group, or the step this one is a substep of.","type":"string","nullable":true},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["node-flow-out"]}},"required":["blockType","nodeId"]},{"type":"object","additionalProperties":false,"properties":{"nodeId":{"type":"string"},"systemRole":{"type":"string","enum":["start","root-paths","default-group","flow-out"],"nullable":true},"containerId":{"description":"The containing node id: a Flow Group, or the step this one is a substep of.","type":"string","nullable":true},"label":{"type":"string","nullable":true},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["node-flow-group"]}},"required":["blockType","nodeId"]},{"type":"object","additionalProperties":false,"properties":{"nodeId":{"type":"string"},"systemRole":{"type":"string","enum":["start","root-paths","default-group","flow-out"],"nullable":true},"containerId":{"description":"The containing node id: a Flow Group, or the step this one is a substep of.","type":"string","nullable":true},"isMilestone":{"description":"Marks this node as a key moment for flow summaries and milestone views.","type":"boolean","nullable":true},"label":{"type":"string","nullable":true},"description":{"type":"string","nullable":true},"instructions":{"description":"Agent-facing instructions copied to the live step.","type":"string","nullable":true},"form":{"oneOf":[{"type":"string","nullable":true},{"$ref":"#/components/schemas/Form"}]},"assignedRoles":{"description":"Internal assignees receive Reader access to the live playbook and parent journey.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Role"}]},"nullable":true},"assignedUsers":{"description":"Internal assignees receive Reader access to the live playbook and parent journey.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"nullable":true},"watcherRoles":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Role"}]},"nullable":true},"watchers":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"nullable":true},"priority":{"type":"string","enum":["low","medium","high"],"nullable":true},"documents":{"description":"Drive documents copied to the live step when this node runs.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Asset"}]},"nullable":true},"documentRecipientRoles":{"description":"Client roles that receive the selected documents when this node executes.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Role"}]},"nullable":true},"documentRecipientUsers":{"description":"Specific participants that receive the selected documents when this node executes.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"nullable":true},"eachAssignee":{"type":"boolean","nullable":true},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["node-form"]}},"required":["blockType","nodeId"]},{"type":"object","additionalProperties":false,"properties":{"nodeId":{"type":"string"},"systemRole":{"type":"string","enum":["start","root-paths","default-group","flow-out"],"nullable":true},"containerId":{"description":"The containing node id: a Flow Group, or the step this one is a substep of.","type":"string","nullable":true},"method":{"type":"string","enum":["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"],"nullable":true},"url":{"description":"External URL to call. Local and private network targets are blocked.","type":"string","nullable":true},"credential":{"oneOf":[{"type":"string","nullable":true}]},"headers":{"description":"Optional JSON object of request headers.","type":"string","nullable":true},"queryParams":{"description":"Optional JSON object of query parameters.","type":"string","nullable":true},"bodyType":{"type":"string","enum":["none","json","text"],"nullable":true},"body":{"type":"string","nullable":true},"timeoutMs":{"type":"number","nullable":true},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["node-http-request"]}},"required":["blockType","nodeId"]},{"type":"object","additionalProperties":false,"properties":{"nodeId":{"type":"string"},"systemRole":{"type":"string","enum":["start","root-paths","default-group","flow-out"],"nullable":true},"containerId":{"description":"The containing node id: a Flow Group, or the step this one is a substep of.","type":"string","nullable":true},"conditionSource":{"type":"string","enum":["variable","decision","agent"],"nullable":true},"variable":{"oneOf":[{"type":"object","additionalProperties":false,"properties":{"relationTo":{"enum":["variables"]},"value":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Variable"}]}},"required":["value","relationTo"],"nullable":true},{"type":"object","additionalProperties":false,"properties":{"relationTo":{"enum":["playbook-template-variables"]},"value":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/PlaybookTemplateVariable"}]}},"required":["value","relationTo"],"nullable":true}]},"decisionNodeId":{"description":"Node id of the decision whose selected choice is used.","type":"string","nullable":true},"decisionChoice":{"description":"Choice handle to compare against.","type":"string","nullable":true},"skill":{"type":"string","nullable":true},"skillOwner":{"oneOf":[{"type":"string","nullable":true},{"$ref":"#/components/schemas/User"}]},"agent":{"oneOf":[{"type":"string","nullable":true},{"$ref":"#/components/schemas/User"}]},"question":{"description":"Asked to the agent with the playbook, its journey and its customer as context; its Yes or No answer picks the output.","type":"string","nullable":true},"operator":{"type":"string","enum":["equals","not_equals","less","less_or_equal","greater","greater_or_equal"],"nullable":true},"compareToNow":{"description":"For date variables, compare against the current date (UTC calendar day) instead of a fixed value.","type":"boolean","nullable":true},"compareTo":{"type":"array","items":{"oneOf":[{"type":"object","additionalProperties":false,"properties":{"data":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/ObjectRecord"}]},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["object-reference-value"]}},"required":["blockType","data"]},{"type":"object","additionalProperties":false,"properties":{"data":{"type":"string"},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["text"]}},"required":["blockType","data"]},{"type":"object","additionalProperties":false,"properties":{"data":{"type":"number"},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["number"]}},"required":["blockType","data"]},{"type":"object","additionalProperties":false,"properties":{"data":{"type":"boolean"},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["boolean"]}},"required":["blockType","data"]},{"type":"object","additionalProperties":false,"properties":{"data":{"type":"string"},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["date"]}},"required":["blockType","data"]},{"type":"object","additionalProperties":false,"properties":{"data":{"type":"string"},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["select"]}},"required":["blockType","data"]}]},"nullable":true},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["node-if"]}},"required":["blockType","nodeId"]},{"type":"object","additionalProperties":false,"properties":{"nodeId":{"type":"string"},"systemRole":{"type":"string","enum":["start","root-paths","default-group","flow-out"],"nullable":true},"containerId":{"description":"The containing node id: a Flow Group, or the step this one is a substep of.","type":"string","nullable":true},"isMilestone":{"description":"Marks this node as a key moment for flow summaries and milestone views.","type":"boolean","nullable":true},"label":{"type":"string","nullable":true},"description":{"type":"string","nullable":true},"instructions":{"description":"Agent-facing instructions copied to the live step.","type":"string","nullable":true},"duration":{"type":"number","nullable":true},"joinLink":{"type":"string","nullable":true},"assignedRoles":{"description":"Internal assignees receive Reader access to the live playbook and parent journey.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Role"}]},"nullable":true},"assignedUsers":{"description":"Internal assignees receive Reader access to the live playbook and parent journey.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"nullable":true},"watcherRoles":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Role"}]},"nullable":true},"watchers":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"nullable":true},"participantRoles":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Role"}]},"nullable":true},"participantUsers":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"nullable":true},"priority":{"type":"string","enum":["low","medium","high"],"nullable":true},"documents":{"description":"Drive documents copied to the live step when this node runs.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Asset"}]},"nullable":true},"documentRecipientRoles":{"description":"Client roles that receive the selected documents when this node executes.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Role"}]},"nullable":true},"documentRecipientUsers":{"description":"Specific participants that receive the selected documents when this node executes.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"nullable":true},"eachAssignee":{"type":"boolean","nullable":true},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["node-meeting"]}},"required":["blockType","nodeId"]},{"type":"object","additionalProperties":false,"properties":{"nodeId":{"type":"string"},"systemRole":{"type":"string","enum":["start","root-paths","default-group","flow-out"],"nullable":true},"containerId":{"description":"The containing node id: a Flow Group, or the step this one is a substep of.","type":"string","nullable":true},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["node-on-journey-start"]}},"required":["blockType","nodeId"]},{"type":"object","additionalProperties":false,"properties":{"nodeId":{"type":"string"},"systemRole":{"type":"string","enum":["start","root-paths","default-group","flow-out"],"nullable":true},"containerId":{"description":"The containing node id: a Flow Group, or the step this one is a substep of.","type":"string","nullable":true},"mode":{"type":"string","enum":["all","any"]},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["node-join"]}},"required":["blockType","nodeId","mode"]},{"type":"object","additionalProperties":false,"properties":{"nodeId":{"type":"string"},"systemRole":{"type":"string","enum":["start","root-paths","default-group","flow-out"],"nullable":true},"containerId":{"description":"The containing node id: a Flow Group, or the step this one is a substep of.","type":"string","nullable":true},"paths":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"handleId":{"type":"string"},"label":{"type":"string"},"id":{"type":"string","nullable":true}},"required":["handleId","label"]},"nullable":true},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["node-paths"]}},"required":["blockType","nodeId"]},{"type":"object","additionalProperties":false,"properties":{"nodeId":{"type":"string"},"systemRole":{"type":"string","enum":["start","root-paths","default-group","flow-out"],"nullable":true},"containerId":{"description":"The containing node id: a Flow Group, or the step this one is a substep of.","type":"string","nullable":true},"label":{"type":"string","nullable":true},"playbook":{"description":"Canonical live Playbook materialized for this Journey flow node.","oneOf":[{"type":"string","nullable":true},{"$ref":"#/components/schemas/Playbook"}]},"playbookTemplate":{"description":"Reusable Playbook selected by a Journey template. Its latest published version is resolved when the live Journey flow is created.","oneOf":[{"type":"string","nullable":true},{"$ref":"#/components/schemas/PlaybookTemplate"}]},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["node-playbook"]}},"required":["blockType","nodeId"]},{"type":"object","additionalProperties":false,"properties":{"nodeId":{"type":"string"},"systemRole":{"type":"string","enum":["start","root-paths","default-group","flow-out"],"nullable":true},"containerId":{"description":"The containing node id: a Flow Group, or the step this one is a substep of.","type":"string","nullable":true},"isMilestone":{"description":"Marks this node as a key moment for flow summaries and milestone views.","type":"boolean","nullable":true},"label":{"type":"string","nullable":true},"description":{"type":"string","nullable":true},"instructions":{"description":"Agent-facing instructions copied to the live step.","type":"string","nullable":true},"assignedRoles":{"description":"Internal assignees receive Reader access to the live playbook and parent journey.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Role"}]},"nullable":true},"assignedUsers":{"description":"Internal assignees receive Reader access to the live playbook and parent journey.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"nullable":true},"watcherRoles":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Role"}]},"nullable":true},"watchers":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"nullable":true},"priority":{"type":"string","enum":["low","medium","high"],"nullable":true},"documents":{"description":"Drive documents copied to the live step when this node runs.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Asset"}]},"nullable":true},"documentRecipientRoles":{"description":"Client roles that receive the selected documents when this node executes.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Role"}]},"nullable":true},"documentRecipientUsers":{"description":"Specific participants that receive the selected documents when this node executes.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"nullable":true},"eachAssignee":{"type":"boolean","nullable":true},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["node-request-file"]}},"required":["blockType","nodeId"]},{"type":"object","additionalProperties":false,"properties":{"nodeId":{"type":"string"},"systemRole":{"type":"string","enum":["start","root-paths","default-group","flow-out"],"nullable":true},"containerId":{"description":"The containing node id: a Flow Group, or the step this one is a substep of.","type":"string","nullable":true},"isMilestone":{"description":"Marks this node as a key moment for flow summaries and milestone views.","type":"boolean","nullable":true},"label":{"type":"string","nullable":true},"description":{"type":"string","nullable":true},"instructions":{"description":"Agent-facing instructions copied to the live step.","type":"string","nullable":true},"email":{"oneOf":[{"type":"string","nullable":true},{"$ref":"#/components/schemas/Email"}]},"autoSend":{"description":"Sent automatically by the flow rather than composed manually.","type":"boolean","nullable":true},"assignedRoles":{"description":"Internal assignees receive Reader access to the live playbook and parent journey.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Role"}]},"nullable":true},"assignedUsers":{"description":"Internal assignees receive Reader access to the live playbook and parent journey.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"nullable":true},"watcherRoles":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Role"}]},"nullable":true},"watchers":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"nullable":true},"recipientRoles":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Role"}]},"nullable":true},"recipientUsers":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"nullable":true},"ccRoles":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Role"}]},"nullable":true},"ccUsers":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"nullable":true},"bccRoles":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Role"}]},"nullable":true},"bccUsers":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"nullable":true},"eachAssignee":{"type":"boolean","nullable":true},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["node-email"]}},"required":["blockType","nodeId"]},{"type":"object","additionalProperties":false,"properties":{"nodeId":{"type":"string"},"systemRole":{"type":"string","enum":["start","root-paths","default-group","flow-out"],"nullable":true},"containerId":{"description":"The containing node id: a Flow Group, or the step this one is a substep of.","type":"string","nullable":true},"state":{"type":"string","enum":["draft","started","paused"],"nullable":true},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["node-set-journey-state"]}},"required":["blockType","nodeId"]},{"type":"object","additionalProperties":false,"properties":{"nodeId":{"type":"string"},"systemRole":{"type":"string","enum":["start","root-paths","default-group","flow-out"],"nullable":true},"containerId":{"description":"The containing node id: a Flow Group, or the step this one is a substep of.","type":"string","nullable":true},"variable":{"oneOf":[{"type":"object","additionalProperties":false,"properties":{"relationTo":{"enum":["variables"]},"value":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Variable"}]}},"required":["value","relationTo"],"nullable":true},{"type":"object","additionalProperties":false,"properties":{"relationTo":{"enum":["playbook-template-variables"]},"value":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/PlaybookTemplateVariable"}]}},"required":["value","relationTo"],"nullable":true}]},"value":{"type":"array","items":{"oneOf":[{"type":"object","additionalProperties":false,"properties":{"data":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/ObjectRecord"}]},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["object-reference-value"]}},"required":["blockType","data"]},{"type":"object","additionalProperties":false,"properties":{"data":{"type":"string"},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["text"]}},"required":["blockType","data"]},{"type":"object","additionalProperties":false,"properties":{"data":{"type":"number"},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["number"]}},"required":["blockType","data"]},{"type":"object","additionalProperties":false,"properties":{"data":{"type":"boolean"},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["boolean"]}},"required":["blockType","data"]},{"type":"object","additionalProperties":false,"properties":{"data":{"type":"string"},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["date"]}},"required":["blockType","data"]},{"type":"object","additionalProperties":false,"properties":{"data":{"type":"string"},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["select"]}},"required":["blockType","data"]}]},"nullable":true},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["node-set-variable-value"]}},"required":["blockType","nodeId"]},{"type":"object","additionalProperties":false,"properties":{"nodeId":{"type":"string"},"systemRole":{"type":"string","enum":["start","root-paths","default-group","flow-out"],"nullable":true},"containerId":{"description":"The containing node id: a Flow Group, or the step this one is a substep of.","type":"string","nullable":true},"isMilestone":{"description":"Marks this node as a key moment for flow summaries and milestone views.","type":"boolean","nullable":true},"label":{"type":"string","nullable":true},"description":{"type":"string","nullable":true},"instructions":{"description":"Agent-facing instructions copied to the live step.","type":"string","nullable":true},"duration":{"type":"number","nullable":true},"assignedRoles":{"description":"Internal assignees receive Reader access to the live playbook and parent journey.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Role"}]},"nullable":true},"assignedUsers":{"description":"Internal assignees receive Reader access to the live playbook and parent journey.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"nullable":true},"reviewerRoles":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Role"}]},"nullable":true},"reviewerUsers":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"nullable":true},"watcherRoles":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Role"}]},"nullable":true},"watchers":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"nullable":true},"priority":{"type":"string","enum":["low","medium","high"],"nullable":true},"documents":{"description":"Drive documents copied to the live step when this node runs.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Asset"}]},"nullable":true},"documentRecipientRoles":{"description":"Client roles that receive the selected documents when this node executes.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Role"}]},"nullable":true},"documentRecipientUsers":{"description":"Specific participants that receive the selected documents when this node executes.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"nullable":true},"eachAssignee":{"type":"boolean","nullable":true},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["node-task"]}},"required":["blockType","nodeId"]},{"type":"object","additionalProperties":false,"properties":{"nodeId":{"type":"string"},"systemRole":{"type":"string","enum":["start","root-paths","default-group","flow-out"],"nullable":true},"containerId":{"description":"The containing node id: a Flow Group, or the step this one is a substep of.","type":"string","nullable":true},"duration":{"type":"number","nullable":true},"unit":{"type":"string","enum":["minutes","hours","days","weeks","months","years"],"nullable":true},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["node-wait-for"]}},"required":["blockType","nodeId"]},{"type":"object","additionalProperties":false,"properties":{"nodeId":{"type":"string"},"systemRole":{"type":"string","enum":["start","root-paths","default-group","flow-out"],"nullable":true},"containerId":{"description":"The containing node id: a Flow Group, or the step this one is a substep of.","type":"string","nullable":true},"date":{"type":"string","nullable":true},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["node-wait-until"]}},"required":["blockType","nodeId"]},{"type":"object","additionalProperties":false,"properties":{"nodeId":{"type":"string"},"systemRole":{"type":"string","enum":["start","root-paths","default-group","flow-out"],"nullable":true},"containerId":{"description":"The containing node id: a Flow Group, or the step this one is a substep of.","type":"string","nullable":true},"webhook":{"description":"Version-owned endpoint invoked by this trigger.","oneOf":[{"type":"string","nullable":true},{"$ref":"#/components/schemas/Webhook"}]},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["node-webhook"]}},"required":["blockType","nodeId"]}]},"nullable":true},"edges":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"edgeId":{"type":"string"},"source":{"type":"string"},"target":{"type":"string"},"sourceHandle":{"type":"string","nullable":true},"targetHandle":{"type":"string","nullable":true},"systemRole":{"type":"string","enum":["start-to-root","default-group-entry"],"nullable":true},"id":{"type":"string","nullable":true}},"required":["edgeId","source","target"]},"nullable":true}},"required":["type"]},"outcomes":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"name":{"type":"string"},"kind":{"type":"string","enum":["customer","internal"]},"description":{"type":"string","nullable":true},"unit":{"type":"string","nullable":true},"targetValue":{"type":"number"},"id":{"type":"string","nullable":true}},"required":["name","kind","targetValue"]},"nullable":true},"archivedAt":{"description":"When this record was archived. Null when active.","type":"string","nullable":true},"permissions":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"entity":{"type":"object","properties":{"relationTo":{"type":"string","enum":["users","groups"]},"value":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array."}},"required":["relationTo","value"],"additionalProperties":false,"nullable":false},"level":{"type":"number"},"origin":{"description":"Document where this permission was declared and can be edited.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"inheritedFrom":{"description":"Immediate parent that synchronized this read-only entry.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"id":{"type":"string","nullable":true}},"required":["entity","level"]},"nullable":true},"creationProgress":{"nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"versionStatus":{"description":"Pending versions are being copied asynchronously and cannot be edited yet.","type":"string","enum":["pending","ready","corrupted"]},"creationJob":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":true},"creationTotalTasks":{"type":"number","nullable":true},"creationCompletedTasks":{"type":"number","nullable":true},"creationContext":{"nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"versionNumber":{"type":"number","nullable":true},"publishedAt":{"type":"string","nullable":true},"publishedBy":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":true},"publishedByName":{"description":"Computed from publishedBy: not every viewer can read the users collection, so this reads the name with elevated access instead of relying on a populated relationship.","type":"string","nullable":true},"publishNote":{"type":"string","nullable":true}},"required":[]}}}},"JourneyTemplateVersionRequestBody":{"description":"Journey Template Version","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"title":"JourneyTemplateVersion","properties":{"journeyTemplate":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":true},"journey":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":true},"sourceVersion":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":true},"portalRootPage":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":true},"flow":{"type":"object","additionalProperties":false,"properties":{"type":{"type":"string","enum":["journey","playbook"]},"nodes":{"type":"array","items":{"oneOf":[{"type":"object","additionalProperties":false,"properties":{"nodeId":{"type":"string"},"systemRole":{"type":"string","enum":["start","root-paths","default-group","flow-out"],"nullable":true},"containerId":{"description":"The containing node id: a Flow Group, or the step this one is a substep of.","type":"string","nullable":true},"isMilestone":{"description":"Marks this node as a key moment for flow summaries and milestone views.","type":"boolean","nullable":true},"label":{"type":"string","nullable":true},"description":{"type":"string","nullable":true},"instructions":{"description":"Agent-facing instructions copied to the live step.","type":"string","nullable":true},"duration":{"type":"number","nullable":true},"assignedRoles":{"description":"Internal assignees receive Reader access to the live playbook and parent journey.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Role"}]},"nullable":true},"assignedUsers":{"description":"Internal assignees receive Reader access to the live playbook and parent journey.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"nullable":true},"watcherRoles":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Role"}]},"nullable":true},"watchers":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"nullable":true},"choices":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"handleId":{"type":"string","nullable":true},"label":{"type":"string","nullable":true},"id":{"type":"string","nullable":true}},"required":[]},"nullable":true},"eachAssignee":{"type":"boolean","nullable":true},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["node-decision"]}},"required":["blockType","nodeId"]},{"type":"object","additionalProperties":false,"properties":{"nodeId":{"type":"string"},"systemRole":{"type":"string","enum":["start","root-paths","default-group","flow-out"],"nullable":true},"containerId":{"description":"The containing node id: a Flow Group, or the step this one is a substep of.","type":"string","nullable":true},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["node-flow-out"]}},"required":["blockType","nodeId"]},{"type":"object","additionalProperties":false,"properties":{"nodeId":{"type":"string"},"systemRole":{"type":"string","enum":["start","root-paths","default-group","flow-out"],"nullable":true},"containerId":{"description":"The containing node id: a Flow Group, or the step this one is a substep of.","type":"string","nullable":true},"label":{"type":"string","nullable":true},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["node-flow-group"]}},"required":["blockType","nodeId"]},{"type":"object","additionalProperties":false,"properties":{"nodeId":{"type":"string"},"systemRole":{"type":"string","enum":["start","root-paths","default-group","flow-out"],"nullable":true},"containerId":{"description":"The containing node id: a Flow Group, or the step this one is a substep of.","type":"string","nullable":true},"isMilestone":{"description":"Marks this node as a key moment for flow summaries and milestone views.","type":"boolean","nullable":true},"label":{"type":"string","nullable":true},"description":{"type":"string","nullable":true},"instructions":{"description":"Agent-facing instructions copied to the live step.","type":"string","nullable":true},"form":{"oneOf":[{"type":"string","nullable":true},{"$ref":"#/components/schemas/Form"}]},"assignedRoles":{"description":"Internal assignees receive Reader access to the live playbook and parent journey.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Role"}]},"nullable":true},"assignedUsers":{"description":"Internal assignees receive Reader access to the live playbook and parent journey.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"nullable":true},"watcherRoles":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Role"}]},"nullable":true},"watchers":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"nullable":true},"priority":{"type":"string","enum":["low","medium","high"],"nullable":true},"documents":{"description":"Drive documents copied to the live step when this node runs.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Asset"}]},"nullable":true},"documentRecipientRoles":{"description":"Client roles that receive the selected documents when this node executes.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Role"}]},"nullable":true},"documentRecipientUsers":{"description":"Specific participants that receive the selected documents when this node executes.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"nullable":true},"eachAssignee":{"type":"boolean","nullable":true},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["node-form"]}},"required":["blockType","nodeId"]},{"type":"object","additionalProperties":false,"properties":{"nodeId":{"type":"string"},"systemRole":{"type":"string","enum":["start","root-paths","default-group","flow-out"],"nullable":true},"containerId":{"description":"The containing node id: a Flow Group, or the step this one is a substep of.","type":"string","nullable":true},"method":{"type":"string","enum":["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"],"nullable":true},"url":{"description":"External URL to call. Local and private network targets are blocked.","type":"string","nullable":true},"credential":{"oneOf":[{"type":"string","nullable":true}]},"headers":{"description":"Optional JSON object of request headers.","type":"string","nullable":true},"queryParams":{"description":"Optional JSON object of query parameters.","type":"string","nullable":true},"bodyType":{"type":"string","enum":["none","json","text"],"nullable":true},"body":{"type":"string","nullable":true},"timeoutMs":{"type":"number","nullable":true},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["node-http-request"]}},"required":["blockType","nodeId"]},{"type":"object","additionalProperties":false,"properties":{"nodeId":{"type":"string"},"systemRole":{"type":"string","enum":["start","root-paths","default-group","flow-out"],"nullable":true},"containerId":{"description":"The containing node id: a Flow Group, or the step this one is a substep of.","type":"string","nullable":true},"conditionSource":{"type":"string","enum":["variable","decision","agent"],"nullable":true},"variable":{"oneOf":[{"type":"object","additionalProperties":false,"properties":{"relationTo":{"enum":["variables"]},"value":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Variable"}]}},"required":["value","relationTo"],"nullable":true},{"type":"object","additionalProperties":false,"properties":{"relationTo":{"enum":["playbook-template-variables"]},"value":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/PlaybookTemplateVariable"}]}},"required":["value","relationTo"],"nullable":true}]},"decisionNodeId":{"description":"Node id of the decision whose selected choice is used.","type":"string","nullable":true},"decisionChoice":{"description":"Choice handle to compare against.","type":"string","nullable":true},"skill":{"type":"string","nullable":true},"skillOwner":{"oneOf":[{"type":"string","nullable":true},{"$ref":"#/components/schemas/User"}]},"agent":{"oneOf":[{"type":"string","nullable":true},{"$ref":"#/components/schemas/User"}]},"question":{"description":"Asked to the agent with the playbook, its journey and its customer as context; its Yes or No answer picks the output.","type":"string","nullable":true},"operator":{"type":"string","enum":["equals","not_equals","less","less_or_equal","greater","greater_or_equal"],"nullable":true},"compareToNow":{"description":"For date variables, compare against the current date (UTC calendar day) instead of a fixed value.","type":"boolean","nullable":true},"compareTo":{"type":"array","items":{"oneOf":[{"type":"object","additionalProperties":false,"properties":{"data":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/ObjectRecord"}]},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["object-reference-value"]}},"required":["blockType","data"]},{"type":"object","additionalProperties":false,"properties":{"data":{"type":"string"},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["text"]}},"required":["blockType","data"]},{"type":"object","additionalProperties":false,"properties":{"data":{"type":"number"},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["number"]}},"required":["blockType","data"]},{"type":"object","additionalProperties":false,"properties":{"data":{"type":"boolean"},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["boolean"]}},"required":["blockType","data"]},{"type":"object","additionalProperties":false,"properties":{"data":{"type":"string"},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["date"]}},"required":["blockType","data"]},{"type":"object","additionalProperties":false,"properties":{"data":{"type":"string"},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["select"]}},"required":["blockType","data"]}]},"nullable":true},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["node-if"]}},"required":["blockType","nodeId"]},{"type":"object","additionalProperties":false,"properties":{"nodeId":{"type":"string"},"systemRole":{"type":"string","enum":["start","root-paths","default-group","flow-out"],"nullable":true},"containerId":{"description":"The containing node id: a Flow Group, or the step this one is a substep of.","type":"string","nullable":true},"isMilestone":{"description":"Marks this node as a key moment for flow summaries and milestone views.","type":"boolean","nullable":true},"label":{"type":"string","nullable":true},"description":{"type":"string","nullable":true},"instructions":{"description":"Agent-facing instructions copied to the live step.","type":"string","nullable":true},"duration":{"type":"number","nullable":true},"joinLink":{"type":"string","nullable":true},"assignedRoles":{"description":"Internal assignees receive Reader access to the live playbook and parent journey.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Role"}]},"nullable":true},"assignedUsers":{"description":"Internal assignees receive Reader access to the live playbook and parent journey.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"nullable":true},"watcherRoles":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Role"}]},"nullable":true},"watchers":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"nullable":true},"participantRoles":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Role"}]},"nullable":true},"participantUsers":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"nullable":true},"priority":{"type":"string","enum":["low","medium","high"],"nullable":true},"documents":{"description":"Drive documents copied to the live step when this node runs.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Asset"}]},"nullable":true},"documentRecipientRoles":{"description":"Client roles that receive the selected documents when this node executes.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Role"}]},"nullable":true},"documentRecipientUsers":{"description":"Specific participants that receive the selected documents when this node executes.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"nullable":true},"eachAssignee":{"type":"boolean","nullable":true},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["node-meeting"]}},"required":["blockType","nodeId"]},{"type":"object","additionalProperties":false,"properties":{"nodeId":{"type":"string"},"systemRole":{"type":"string","enum":["start","root-paths","default-group","flow-out"],"nullable":true},"containerId":{"description":"The containing node id: a Flow Group, or the step this one is a substep of.","type":"string","nullable":true},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["node-on-journey-start"]}},"required":["blockType","nodeId"]},{"type":"object","additionalProperties":false,"properties":{"nodeId":{"type":"string"},"systemRole":{"type":"string","enum":["start","root-paths","default-group","flow-out"],"nullable":true},"containerId":{"description":"The containing node id: a Flow Group, or the step this one is a substep of.","type":"string","nullable":true},"mode":{"type":"string","enum":["all","any"]},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["node-join"]}},"required":["blockType","nodeId","mode"]},{"type":"object","additionalProperties":false,"properties":{"nodeId":{"type":"string"},"systemRole":{"type":"string","enum":["start","root-paths","default-group","flow-out"],"nullable":true},"containerId":{"description":"The containing node id: a Flow Group, or the step this one is a substep of.","type":"string","nullable":true},"paths":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"handleId":{"type":"string"},"label":{"type":"string"},"id":{"type":"string","nullable":true}},"required":["handleId","label"]},"nullable":true},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["node-paths"]}},"required":["blockType","nodeId"]},{"type":"object","additionalProperties":false,"properties":{"nodeId":{"type":"string"},"systemRole":{"type":"string","enum":["start","root-paths","default-group","flow-out"],"nullable":true},"containerId":{"description":"The containing node id: a Flow Group, or the step this one is a substep of.","type":"string","nullable":true},"label":{"type":"string","nullable":true},"playbook":{"description":"Canonical live Playbook materialized for this Journey flow node.","oneOf":[{"type":"string","nullable":true},{"$ref":"#/components/schemas/Playbook"}]},"playbookTemplate":{"description":"Reusable Playbook selected by a Journey template. Its latest published version is resolved when the live Journey flow is created.","oneOf":[{"type":"string","nullable":true},{"$ref":"#/components/schemas/PlaybookTemplate"}]},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["node-playbook"]}},"required":["blockType","nodeId"]},{"type":"object","additionalProperties":false,"properties":{"nodeId":{"type":"string"},"systemRole":{"type":"string","enum":["start","root-paths","default-group","flow-out"],"nullable":true},"containerId":{"description":"The containing node id: a Flow Group, or the step this one is a substep of.","type":"string","nullable":true},"isMilestone":{"description":"Marks this node as a key moment for flow summaries and milestone views.","type":"boolean","nullable":true},"label":{"type":"string","nullable":true},"description":{"type":"string","nullable":true},"instructions":{"description":"Agent-facing instructions copied to the live step.","type":"string","nullable":true},"assignedRoles":{"description":"Internal assignees receive Reader access to the live playbook and parent journey.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Role"}]},"nullable":true},"assignedUsers":{"description":"Internal assignees receive Reader access to the live playbook and parent journey.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"nullable":true},"watcherRoles":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Role"}]},"nullable":true},"watchers":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"nullable":true},"priority":{"type":"string","enum":["low","medium","high"],"nullable":true},"documents":{"description":"Drive documents copied to the live step when this node runs.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Asset"}]},"nullable":true},"documentRecipientRoles":{"description":"Client roles that receive the selected documents when this node executes.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Role"}]},"nullable":true},"documentRecipientUsers":{"description":"Specific participants that receive the selected documents when this node executes.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"nullable":true},"eachAssignee":{"type":"boolean","nullable":true},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["node-request-file"]}},"required":["blockType","nodeId"]},{"type":"object","additionalProperties":false,"properties":{"nodeId":{"type":"string"},"systemRole":{"type":"string","enum":["start","root-paths","default-group","flow-out"],"nullable":true},"containerId":{"description":"The containing node id: a Flow Group, or the step this one is a substep of.","type":"string","nullable":true},"isMilestone":{"description":"Marks this node as a key moment for flow summaries and milestone views.","type":"boolean","nullable":true},"label":{"type":"string","nullable":true},"description":{"type":"string","nullable":true},"instructions":{"description":"Agent-facing instructions copied to the live step.","type":"string","nullable":true},"email":{"oneOf":[{"type":"string","nullable":true},{"$ref":"#/components/schemas/Email"}]},"autoSend":{"description":"Sent automatically by the flow rather than composed manually.","type":"boolean","nullable":true},"assignedRoles":{"description":"Internal assignees receive Reader access to the live playbook and parent journey.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Role"}]},"nullable":true},"assignedUsers":{"description":"Internal assignees receive Reader access to the live playbook and parent journey.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"nullable":true},"watcherRoles":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Role"}]},"nullable":true},"watchers":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"nullable":true},"recipientRoles":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Role"}]},"nullable":true},"recipientUsers":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"nullable":true},"ccRoles":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Role"}]},"nullable":true},"ccUsers":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"nullable":true},"bccRoles":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Role"}]},"nullable":true},"bccUsers":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"nullable":true},"eachAssignee":{"type":"boolean","nullable":true},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["node-email"]}},"required":["blockType","nodeId"]},{"type":"object","additionalProperties":false,"properties":{"nodeId":{"type":"string"},"systemRole":{"type":"string","enum":["start","root-paths","default-group","flow-out"],"nullable":true},"containerId":{"description":"The containing node id: a Flow Group, or the step this one is a substep of.","type":"string","nullable":true},"state":{"type":"string","enum":["draft","started","paused"],"nullable":true},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["node-set-journey-state"]}},"required":["blockType","nodeId"]},{"type":"object","additionalProperties":false,"properties":{"nodeId":{"type":"string"},"systemRole":{"type":"string","enum":["start","root-paths","default-group","flow-out"],"nullable":true},"containerId":{"description":"The containing node id: a Flow Group, or the step this one is a substep of.","type":"string","nullable":true},"variable":{"oneOf":[{"type":"object","additionalProperties":false,"properties":{"relationTo":{"enum":["variables"]},"value":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Variable"}]}},"required":["value","relationTo"],"nullable":true},{"type":"object","additionalProperties":false,"properties":{"relationTo":{"enum":["playbook-template-variables"]},"value":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/PlaybookTemplateVariable"}]}},"required":["value","relationTo"],"nullable":true}]},"value":{"type":"array","items":{"oneOf":[{"type":"object","additionalProperties":false,"properties":{"data":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/ObjectRecord"}]},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["object-reference-value"]}},"required":["blockType","data"]},{"type":"object","additionalProperties":false,"properties":{"data":{"type":"string"},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["text"]}},"required":["blockType","data"]},{"type":"object","additionalProperties":false,"properties":{"data":{"type":"number"},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["number"]}},"required":["blockType","data"]},{"type":"object","additionalProperties":false,"properties":{"data":{"type":"boolean"},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["boolean"]}},"required":["blockType","data"]},{"type":"object","additionalProperties":false,"properties":{"data":{"type":"string"},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["date"]}},"required":["blockType","data"]},{"type":"object","additionalProperties":false,"properties":{"data":{"type":"string"},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["select"]}},"required":["blockType","data"]}]},"nullable":true},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["node-set-variable-value"]}},"required":["blockType","nodeId"]},{"type":"object","additionalProperties":false,"properties":{"nodeId":{"type":"string"},"systemRole":{"type":"string","enum":["start","root-paths","default-group","flow-out"],"nullable":true},"containerId":{"description":"The containing node id: a Flow Group, or the step this one is a substep of.","type":"string","nullable":true},"isMilestone":{"description":"Marks this node as a key moment for flow summaries and milestone views.","type":"boolean","nullable":true},"label":{"type":"string","nullable":true},"description":{"type":"string","nullable":true},"instructions":{"description":"Agent-facing instructions copied to the live step.","type":"string","nullable":true},"duration":{"type":"number","nullable":true},"assignedRoles":{"description":"Internal assignees receive Reader access to the live playbook and parent journey.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Role"}]},"nullable":true},"assignedUsers":{"description":"Internal assignees receive Reader access to the live playbook and parent journey.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"nullable":true},"reviewerRoles":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Role"}]},"nullable":true},"reviewerUsers":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"nullable":true},"watcherRoles":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Role"}]},"nullable":true},"watchers":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"nullable":true},"priority":{"type":"string","enum":["low","medium","high"],"nullable":true},"documents":{"description":"Drive documents copied to the live step when this node runs.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Asset"}]},"nullable":true},"documentRecipientRoles":{"description":"Client roles that receive the selected documents when this node executes.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Role"}]},"nullable":true},"documentRecipientUsers":{"description":"Specific participants that receive the selected documents when this node executes.","type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/User"}]},"nullable":true},"eachAssignee":{"type":"boolean","nullable":true},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["node-task"]}},"required":["blockType","nodeId"]},{"type":"object","additionalProperties":false,"properties":{"nodeId":{"type":"string"},"systemRole":{"type":"string","enum":["start","root-paths","default-group","flow-out"],"nullable":true},"containerId":{"description":"The containing node id: a Flow Group, or the step this one is a substep of.","type":"string","nullable":true},"duration":{"type":"number","nullable":true},"unit":{"type":"string","enum":["minutes","hours","days","weeks","months","years"],"nullable":true},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["node-wait-for"]}},"required":["blockType","nodeId"]},{"type":"object","additionalProperties":false,"properties":{"nodeId":{"type":"string"},"systemRole":{"type":"string","enum":["start","root-paths","default-group","flow-out"],"nullable":true},"containerId":{"description":"The containing node id: a Flow Group, or the step this one is a substep of.","type":"string","nullable":true},"date":{"type":"string","nullable":true},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["node-wait-until"]}},"required":["blockType","nodeId"]},{"type":"object","additionalProperties":false,"properties":{"nodeId":{"type":"string"},"systemRole":{"type":"string","enum":["start","root-paths","default-group","flow-out"],"nullable":true},"containerId":{"description":"The containing node id: a Flow Group, or the step this one is a substep of.","type":"string","nullable":true},"webhook":{"description":"Version-owned endpoint invoked by this trigger.","oneOf":[{"type":"string","nullable":true},{"$ref":"#/components/schemas/Webhook"}]},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["node-webhook"]}},"required":["blockType","nodeId"]}]},"nullable":true},"edges":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"edgeId":{"type":"string"},"source":{"type":"string"},"target":{"type":"string"},"sourceHandle":{"type":"string","nullable":true},"targetHandle":{"type":"string","nullable":true},"systemRole":{"type":"string","enum":["start-to-root","default-group-entry"],"nullable":true},"id":{"type":"string","nullable":true}},"required":["edgeId","source","target"]},"nullable":true}},"required":["type"]},"outcomes":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"name":{"type":"string"},"kind":{"type":"string","enum":["customer","internal"]},"description":{"type":"string","nullable":true},"unit":{"type":"string","nullable":true},"targetValue":{"type":"number"},"id":{"type":"string","nullable":true}},"required":["name","kind","targetValue"]},"nullable":true},"archivedAt":{"description":"When this record was archived. Null when active.","type":"string","nullable":true},"permissions":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"entity":{"type":"object","properties":{"relationTo":{"type":"string","enum":["users","groups"]},"value":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array."}},"required":["relationTo","value"],"additionalProperties":false,"nullable":false},"level":{"type":"number"},"origin":{"description":"Document where this permission was declared and can be edited.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"inheritedFrom":{"description":"Immediate parent that synchronized this read-only entry.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"id":{"type":"string","nullable":true}},"required":["entity","level"]},"nullable":true},"creationProgress":{"nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"versionStatus":{"description":"Pending versions are being copied asynchronously and cannot be edited yet.","type":"string","enum":["pending","ready","corrupted"]},"creationJob":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":true},"creationTotalTasks":{"type":"number","nullable":true},"creationCompletedTasks":{"type":"number","nullable":true},"creationContext":{"nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"versionNumber":{"type":"number","nullable":true},"publishedAt":{"type":"string","nullable":true},"publishedBy":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":true},"publishedByName":{"description":"Computed from publishedBy: not every viewer can read the users collection, so this reads the name with elevated access instead of relying on a populated relationship.","type":"string","nullable":true},"publishNote":{"type":"string","nullable":true}},"required":["flow","versionStatus"]}}}},"InsightPatchRequestBody":{"description":"Insight","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"title":"InsightsView","properties":{"name":{"type":"string"},"user":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":false},"shared":{"type":"boolean","nullable":true},"widgets":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"type":{"type":"string","enum":["steps-completed","on-time-rate","overdue-now","median-cycle-time","open-decisions","time-spent","steps-completed-per-week","throughput-by-owner","on-time-completion-rate","cycle-time","open-steps-by-owner","time-spent-by-person","journeys-by-status","accounts-by-champion-count","adoption-by-template","outcome-completion","needs-attention","decisions-waiting"]},"size":{"type":"string","enum":["small","medium","large"]},"id":{"type":"string","nullable":true}},"required":["type","size"]},"nullable":true},"period":{"type":"string","enum":["30d","90d","180d","365d","all"]},"compare":{"type":"string","enum":["none","previous","lastYear"]}},"required":[]}}}},"InsightRequestBody":{"description":"Insight","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"title":"InsightsView","properties":{"name":{"type":"string"},"user":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":false},"shared":{"type":"boolean","nullable":true},"widgets":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"type":{"type":"string","enum":["steps-completed","on-time-rate","overdue-now","median-cycle-time","open-decisions","time-spent","steps-completed-per-week","throughput-by-owner","on-time-completion-rate","cycle-time","open-steps-by-owner","time-spent-by-person","journeys-by-status","accounts-by-champion-count","adoption-by-template","outcome-completion","needs-attention","decisions-waiting"]},"size":{"type":"string","enum":["small","medium","large"]},"id":{"type":"string","nullable":true}},"required":["type","size"]},"nullable":true},"period":{"type":"string","enum":["30d","90d","180d","365d","all"]},"compare":{"type":"string","enum":["none","previous","lastYear"]}},"required":["name","user","period","compare"]}}}},"GroupPatchRequestBody":{"description":"Group","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"title":"Group","properties":{"name":{"type":"string"},"description":{"type":"string","nullable":true},"color":{"type":"string","nullable":true}},"required":[]}}}},"GroupRequestBody":{"description":"Group","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"title":"Group","properties":{"name":{"type":"string"},"description":{"type":"string","nullable":true},"color":{"type":"string","nullable":true}},"required":["name"]}}}},"FormPatchRequestBody":{"description":"Form","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"title":"Form","properties":{"name":{"type":"string"},"content":{"nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"fields":{"description":"Read-only field-definition projection derived from content, used to validate completions.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"formTemplateVersion":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":true},"playbookTemplateVersion":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":true},"archivedAt":{"description":"When this record was archived. Null when active.","type":"string","nullable":true},"permissions":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"entity":{"type":"object","properties":{"relationTo":{"type":"string","enum":["users","groups"]},"value":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array."}},"required":["relationTo","value"],"additionalProperties":false,"nullable":false},"level":{"type":"number"},"origin":{"description":"Document where this permission was declared and can be edited.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"inheritedFrom":{"description":"Immediate parent that synchronized this read-only entry.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"id":{"type":"string","nullable":true}},"required":["entity","level"]},"nullable":true}},"required":[]}}}},"FormRequestBody":{"description":"Form","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"title":"Form","properties":{"name":{"type":"string"},"content":{"nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"fields":{"description":"Read-only field-definition projection derived from content, used to validate completions.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"formTemplateVersion":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":true},"playbookTemplateVersion":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":true},"archivedAt":{"description":"When this record was archived. Null when active.","type":"string","nullable":true},"permissions":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"entity":{"type":"object","properties":{"relationTo":{"type":"string","enum":["users","groups"]},"value":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array."}},"required":["relationTo","value"],"additionalProperties":false,"nullable":false},"level":{"type":"number"},"origin":{"description":"Document where this permission was declared and can be edited.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"inheritedFrom":{"description":"Immediate parent that synchronized this read-only entry.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"id":{"type":"string","nullable":true}},"required":["entity","level"]},"nullable":true}},"required":["name"]}}}},"FormTemplatePatchRequestBody":{"description":"Form Template","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"title":"FormTemplate","properties":{"name":{"type":"string"},"draftVersion":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":true},"publishedVersion":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":true},"archivedAt":{"description":"When this record was archived. Null when active.","type":"string","nullable":true},"hasDraftChanges":{"description":"Whether the draft has changed since the last publish. Managed automatically.","type":"boolean","nullable":true},"permissions":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"entity":{"type":"object","properties":{"relationTo":{"type":"string","enum":["users","groups"]},"value":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array."}},"required":["relationTo","value"],"additionalProperties":false,"nullable":false},"level":{"type":"number"},"origin":{"description":"Document where this permission was declared and can be edited.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"inheritedFrom":{"description":"Immediate parent that synchronized this read-only entry.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"id":{"type":"string","nullable":true}},"required":["entity","level"]},"nullable":true}},"required":[]}}}},"FormTemplateRequestBody":{"description":"Form Template","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"title":"FormTemplate","properties":{"name":{"type":"string"},"draftVersion":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":true},"publishedVersion":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":true},"archivedAt":{"description":"When this record was archived. Null when active.","type":"string","nullable":true},"hasDraftChanges":{"description":"Whether the draft has changed since the last publish. Managed automatically.","type":"boolean","nullable":true},"permissions":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"entity":{"type":"object","properties":{"relationTo":{"type":"string","enum":["users","groups"]},"value":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array."}},"required":["relationTo","value"],"additionalProperties":false,"nullable":false},"level":{"type":"number"},"origin":{"description":"Document where this permission was declared and can be edited.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"inheritedFrom":{"description":"Immediate parent that synchronized this read-only entry.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"id":{"type":"string","nullable":true}},"required":["entity","level"]},"nullable":true}},"required":["name"]}}}},"FormTemplateVersionPatchRequestBody":{"description":"Form Template Version","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"title":"FormTemplateVersion","properties":{"formTemplate":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":true},"sourceVersion":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":true},"description":{"type":"string","nullable":true},"archivedAt":{"description":"When this record was archived. Null when active.","type":"string","nullable":true},"permissions":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"entity":{"type":"object","properties":{"relationTo":{"type":"string","enum":["users","groups"]},"value":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array."}},"required":["relationTo","value"],"additionalProperties":false,"nullable":false},"level":{"type":"number"},"origin":{"description":"Document where this permission was declared and can be edited.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"inheritedFrom":{"description":"Immediate parent that synchronized this read-only entry.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"id":{"type":"string","nullable":true}},"required":["entity","level"]},"nullable":true},"creationProgress":{"nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"versionStatus":{"description":"Pending versions are being copied asynchronously and cannot be edited yet.","type":"string","enum":["pending","ready","corrupted"]},"creationJob":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":true},"creationTotalTasks":{"type":"number","nullable":true},"creationCompletedTasks":{"type":"number","nullable":true},"creationContext":{"nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"versionNumber":{"type":"number","nullable":true},"publishedAt":{"type":"string","nullable":true},"publishedBy":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":true},"publishedByName":{"description":"Computed from publishedBy: not every viewer can read the users collection, so this reads the name with elevated access instead of relying on a populated relationship.","type":"string","nullable":true},"publishNote":{"type":"string","nullable":true}},"required":[]}}}},"FormTemplateVersionRequestBody":{"description":"Form Template Version","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"title":"FormTemplateVersion","properties":{"formTemplate":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":true},"sourceVersion":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":true},"description":{"type":"string","nullable":true},"archivedAt":{"description":"When this record was archived. Null when active.","type":"string","nullable":true},"permissions":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"entity":{"type":"object","properties":{"relationTo":{"type":"string","enum":["users","groups"]},"value":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array."}},"required":["relationTo","value"],"additionalProperties":false,"nullable":false},"level":{"type":"number"},"origin":{"description":"Document where this permission was declared and can be edited.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"inheritedFrom":{"description":"Immediate parent that synchronized this read-only entry.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"id":{"type":"string","nullable":true}},"required":["entity","level"]},"nullable":true},"creationProgress":{"nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"versionStatus":{"description":"Pending versions are being copied asynchronously and cannot be edited yet.","type":"string","enum":["pending","ready","corrupted"]},"creationJob":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":true},"creationTotalTasks":{"type":"number","nullable":true},"creationCompletedTasks":{"type":"number","nullable":true},"creationContext":{"nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"versionNumber":{"type":"number","nullable":true},"publishedAt":{"type":"string","nullable":true},"publishedBy":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":true},"publishedByName":{"description":"Computed from publishedBy: not every viewer can read the users collection, so this reads the name with elevated access instead of relying on a populated relationship.","type":"string","nullable":true},"publishNote":{"type":"string","nullable":true}},"required":["versionStatus"]}}}},"FormCompletionPatchRequestBody":{"description":"Form Completion","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"title":"FormCompletion","properties":{"playbook":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":true},"journey":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":true},"step":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":true},"form":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":true},"filledBy":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.\n\nDeprecated since v0.10.4. This field will become optional: it is empty once the member's account is deleted.","nullable":false,"deprecated":true,"x-sekential-deprecation":{"since":"v0.10.4"}},"state":{"type":"string","enum":["draft","completed"]},"startedAt":{"type":"string","nullable":true},"completedAt":{"description":"When the answers were submitted.","type":"string","nullable":true},"answers":{"nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"archivedAt":{"description":"When this record was archived. Null when active.","type":"string","nullable":true},"permissions":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"entity":{"type":"object","properties":{"relationTo":{"type":"string","enum":["users","groups"]},"value":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array."}},"required":["relationTo","value"],"additionalProperties":false,"nullable":false},"level":{"type":"number"},"origin":{"description":"Document where this permission was declared and can be edited.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"inheritedFrom":{"description":"Immediate parent that synchronized this read-only entry.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"id":{"type":"string","nullable":true}},"required":["entity","level"]},"nullable":true}},"required":[]}}}},"FormCompletionRequestBody":{"description":"Form Completion","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"title":"FormCompletion","properties":{"playbook":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":true},"journey":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":true},"step":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":true},"form":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":true},"filledBy":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.\n\nDeprecated since v0.10.4. This field will become optional: it is empty once the member's account is deleted.","nullable":false,"deprecated":true,"x-sekential-deprecation":{"since":"v0.10.4"}},"state":{"type":"string","enum":["draft","completed"]},"startedAt":{"type":"string","nullable":true},"completedAt":{"description":"When the answers were submitted.","type":"string","nullable":true},"answers":{"nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"archivedAt":{"description":"When this record was archived. Null when active.","type":"string","nullable":true},"permissions":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"entity":{"type":"object","properties":{"relationTo":{"type":"string","enum":["users","groups"]},"value":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array."}},"required":["relationTo","value"],"additionalProperties":false,"nullable":false},"level":{"type":"number"},"origin":{"description":"Document where this permission was declared and can be edited.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"inheritedFrom":{"description":"Immediate parent that synchronized this read-only entry.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"id":{"type":"string","nullable":true}},"required":["entity","level"]},"nullable":true}},"required":["filledBy","state"]}}}},"EmailPatchRequestBody":{"description":"Email","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"title":"Email","properties":{"name":{"type":"string"},"subject":{"type":"string"},"content":{"nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"emailTemplateVersion":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":true},"playbookTemplateVersion":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":true},"archivedAt":{"description":"When this record was archived. Null when active.","type":"string","nullable":true},"permissions":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"entity":{"type":"object","properties":{"relationTo":{"type":"string","enum":["users","groups"]},"value":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array."}},"required":["relationTo","value"],"additionalProperties":false,"nullable":false},"level":{"type":"number"},"origin":{"description":"Document where this permission was declared and can be edited.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"inheritedFrom":{"description":"Immediate parent that synchronized this read-only entry.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"id":{"type":"string","nullable":true}},"required":["entity","level"]},"nullable":true}},"required":[]}}}},"EmailRequestBody":{"description":"Email","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"title":"Email","properties":{"name":{"type":"string"},"subject":{"type":"string"},"content":{"nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"emailTemplateVersion":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":true},"playbookTemplateVersion":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":true},"archivedAt":{"description":"When this record was archived. Null when active.","type":"string","nullable":true},"permissions":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"entity":{"type":"object","properties":{"relationTo":{"type":"string","enum":["users","groups"]},"value":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array."}},"required":["relationTo","value"],"additionalProperties":false,"nullable":false},"level":{"type":"number"},"origin":{"description":"Document where this permission was declared and can be edited.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"inheritedFrom":{"description":"Immediate parent that synchronized this read-only entry.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"id":{"type":"string","nullable":true}},"required":["entity","level"]},"nullable":true}},"required":["name","subject"]}}}},"EmailTemplatePatchRequestBody":{"description":"Email Template","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"title":"EmailTemplate","properties":{"name":{"type":"string"},"draftVersion":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":true},"publishedVersion":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":true},"archivedAt":{"description":"When this record was archived. Null when active.","type":"string","nullable":true},"hasDraftChanges":{"description":"Whether the draft has changed since the last publish. Managed automatically.","type":"boolean","nullable":true},"permissions":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"entity":{"type":"object","properties":{"relationTo":{"type":"string","enum":["users","groups"]},"value":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array."}},"required":["relationTo","value"],"additionalProperties":false,"nullable":false},"level":{"type":"number"},"origin":{"description":"Document where this permission was declared and can be edited.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"inheritedFrom":{"description":"Immediate parent that synchronized this read-only entry.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"id":{"type":"string","nullable":true}},"required":["entity","level"]},"nullable":true}},"required":[]}}}},"EmailTemplateRequestBody":{"description":"Email Template","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"title":"EmailTemplate","properties":{"name":{"type":"string"},"draftVersion":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":true},"publishedVersion":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":true},"archivedAt":{"description":"When this record was archived. Null when active.","type":"string","nullable":true},"hasDraftChanges":{"description":"Whether the draft has changed since the last publish. Managed automatically.","type":"boolean","nullable":true},"permissions":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"entity":{"type":"object","properties":{"relationTo":{"type":"string","enum":["users","groups"]},"value":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array."}},"required":["relationTo","value"],"additionalProperties":false,"nullable":false},"level":{"type":"number"},"origin":{"description":"Document where this permission was declared and can be edited.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"inheritedFrom":{"description":"Immediate parent that synchronized this read-only entry.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"id":{"type":"string","nullable":true}},"required":["entity","level"]},"nullable":true}},"required":["name"]}}}},"EmailTemplateVersionPatchRequestBody":{"description":"Email Template Version","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"title":"EmailTemplateVersion","properties":{"emailTemplate":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":true},"sourceVersion":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":true},"description":{"type":"string","nullable":true},"archivedAt":{"description":"When this record was archived. Null when active.","type":"string","nullable":true},"permissions":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"entity":{"type":"object","properties":{"relationTo":{"type":"string","enum":["users","groups"]},"value":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array."}},"required":["relationTo","value"],"additionalProperties":false,"nullable":false},"level":{"type":"number"},"origin":{"description":"Document where this permission was declared and can be edited.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"inheritedFrom":{"description":"Immediate parent that synchronized this read-only entry.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"id":{"type":"string","nullable":true}},"required":["entity","level"]},"nullable":true},"creationProgress":{"nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"versionStatus":{"description":"Pending versions are being copied asynchronously and cannot be edited yet.","type":"string","enum":["pending","ready","corrupted"]},"creationJob":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":true},"creationTotalTasks":{"type":"number","nullable":true},"creationCompletedTasks":{"type":"number","nullable":true},"creationContext":{"nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"versionNumber":{"type":"number","nullable":true},"publishedAt":{"type":"string","nullable":true},"publishedBy":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":true},"publishedByName":{"description":"Computed from publishedBy: not every viewer can read the users collection, so this reads the name with elevated access instead of relying on a populated relationship.","type":"string","nullable":true},"publishNote":{"type":"string","nullable":true}},"required":[]}}}},"EmailTemplateVersionRequestBody":{"description":"Email Template Version","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"title":"EmailTemplateVersion","properties":{"emailTemplate":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":true},"sourceVersion":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":true},"description":{"type":"string","nullable":true},"archivedAt":{"description":"When this record was archived. Null when active.","type":"string","nullable":true},"permissions":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"entity":{"type":"object","properties":{"relationTo":{"type":"string","enum":["users","groups"]},"value":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array."}},"required":["relationTo","value"],"additionalProperties":false,"nullable":false},"level":{"type":"number"},"origin":{"description":"Document where this permission was declared and can be edited.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"inheritedFrom":{"description":"Immediate parent that synchronized this read-only entry.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"id":{"type":"string","nullable":true}},"required":["entity","level"]},"nullable":true},"creationProgress":{"nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"versionStatus":{"description":"Pending versions are being copied asynchronously and cannot be edited yet.","type":"string","enum":["pending","ready","corrupted"]},"creationJob":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":true},"creationTotalTasks":{"type":"number","nullable":true},"creationCompletedTasks":{"type":"number","nullable":true},"creationContext":{"nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"versionNumber":{"type":"number","nullable":true},"publishedAt":{"type":"string","nullable":true},"publishedBy":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":true},"publishedByName":{"description":"Computed from publishedBy: not every viewer can read the users collection, so this reads the name with elevated access instead of relying on a populated relationship.","type":"string","nullable":true},"publishNote":{"type":"string","nullable":true}},"required":["versionStatus"]}}}},"TenantDomainPatchRequestBody":{"description":"Tenant domain","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"title":"Domain","properties":{"name":{"type":"string"},"purposes":{"type":"array","items":{"type":"string","enum":["portal","email"]}},"portal":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":true},"dnsRecords":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"service":{"type":"string","enum":["portal","email"]},"type":{"type":"string","enum":["CNAME","MX","TXT"]},"name":{"type":"string"},"value":{"type":"string"},"priority":{"type":"number","nullable":true},"description":{"type":"string","nullable":true},"id":{"type":"string","nullable":true}},"required":["service","type","name","value"]},"nullable":true},"email":{"type":"object","additionalProperties":false,"properties":{"status":{"type":"string","enum":["not-requested","pending","verified","active","failed"]},"verificationStatus":{"type":"string","nullable":true},"dkimStatus":{"type":"string","nullable":true},"mailFromDomain":{"type":"string","nullable":true},"mailFromStatus":{"type":"string","nullable":true},"sesTenantName":{"type":"string","nullable":true},"configurationSetName":{"type":"string","nullable":true}},"required":["status"]},"portalDelivery":{"type":"object","additionalProperties":false,"properties":{"provider":{"type":"string","enum":["aws","ovh"],"nullable":true},"status":{"type":"string","enum":["not-requested","pending","verified","active","failed"]},"certificateArn":{"type":"string","nullable":true},"certificateStatus":{"type":"string","nullable":true},"listenerRuleArn":{"type":"string","nullable":true},"certificateRef":{"type":"string","nullable":true},"routeRef":{"type":"string","nullable":true}},"required":["status"]},"lastCheckedAt":{"type":"string","nullable":true},"provisioningError":{"type":"string","nullable":true}},"required":[],"description":"App-managed customer domains for email identity and portal delivery."}}}},"TenantDomainRequestBody":{"description":"Tenant domain","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"title":"Domain","properties":{"name":{"type":"string"},"purposes":{"type":"array","items":{"type":"string","enum":["portal","email"]}},"portal":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":true},"dnsRecords":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"service":{"type":"string","enum":["portal","email"]},"type":{"type":"string","enum":["CNAME","MX","TXT"]},"name":{"type":"string"},"value":{"type":"string"},"priority":{"type":"number","nullable":true},"description":{"type":"string","nullable":true},"id":{"type":"string","nullable":true}},"required":["service","type","name","value"]},"nullable":true},"email":{"type":"object","additionalProperties":false,"properties":{"status":{"type":"string","enum":["not-requested","pending","verified","active","failed"]},"verificationStatus":{"type":"string","nullable":true},"dkimStatus":{"type":"string","nullable":true},"mailFromDomain":{"type":"string","nullable":true},"mailFromStatus":{"type":"string","nullable":true},"sesTenantName":{"type":"string","nullable":true},"configurationSetName":{"type":"string","nullable":true}},"required":["status"]},"portalDelivery":{"type":"object","additionalProperties":false,"properties":{"provider":{"type":"string","enum":["aws","ovh"],"nullable":true},"status":{"type":"string","enum":["not-requested","pending","verified","active","failed"]},"certificateArn":{"type":"string","nullable":true},"certificateStatus":{"type":"string","nullable":true},"listenerRuleArn":{"type":"string","nullable":true},"certificateRef":{"type":"string","nullable":true},"routeRef":{"type":"string","nullable":true}},"required":["status"]},"lastCheckedAt":{"type":"string","nullable":true},"provisioningError":{"type":"string","nullable":true}},"required":["name","purposes","email","portalDelivery"],"description":"App-managed customer domains for email identity and portal delivery."}}}},"CustomerPatchRequestBody":{"description":"Customer","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"title":"Customer","properties":{"name":{"type":"string"},"logo":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":true},"logoUrl":{"type":"string","nullable":true},"orgChart":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"manager":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":false},"managee":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":false},"id":{"type":"string","nullable":true}},"required":["manager","managee"]},"nullable":true},"state":{"type":"string","enum":["draft","active","break","churned"]},"archivedAt":{"description":"When this record was archived. Null when active.","type":"string","nullable":true},"status":{"description":"The state, or Archived once archived. The Customers list sorts and groups by it.","type":"string","enum":["draft","active","break","churned","archived"],"nullable":true},"emailDomains":{"description":"Exact domains whose emails reach this customer's Activity. A contact's company domain is added with the contact.","type":"array","items":{"type":"string"},"nullable":true},"slackChannels":{"description":"Slack channels whose messages reach this customer's Activity.","type":"array","items":{"type":"object","additionalProperties":false,"properties":{"teamId":{"type":"string"},"teamName":{"type":"string","nullable":true},"channelId":{"type":"string"},"channelName":{"type":"string"},"id":{"type":"string","nullable":true}},"required":["teamId","channelId","channelName"]},"nullable":true},"hubspotCompany":{"description":"Deprecated since v0.10.4. Link the HubSpot company record to the customer in Relations.","type":"object","additionalProperties":false,"properties":{"connectionId":{"type":"string","nullable":true},"companyId":{"type":"string","nullable":true},"name":{"type":"string","nullable":true},"domain":{"type":"string","nullable":true}},"required":[],"deprecated":true,"x-sekential-deprecation":{"since":"v0.10.4"}},"slackChannel":{"description":"Deprecated since v0.10.4. This contract has a replacement. Use customers.slackChannels instead.","type":"object","additionalProperties":false,"properties":{"teamId":{"type":"string","nullable":true},"teamName":{"type":"string","nullable":true},"channelId":{"type":"string","nullable":true},"channelName":{"type":"string","nullable":true}},"required":[],"deprecated":true,"x-sekential-deprecation":{"since":"v0.10.4","replacement":"customers.slackChannels"}},"journeys":{"type":"object","additionalProperties":false,"properties":{"docs":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Journey"}]}},"hasNextPage":{"type":"boolean"},"totalDocs":{"type":"number"}}},"stakeholders":{"type":"object","additionalProperties":false,"properties":{"docs":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Stakeholder"}]}},"hasNextPage":{"type":"boolean"},"totalDocs":{"type":"number"}}},"comments":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"content":{"type":"string"},"author":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.\n\nDeprecated since v0.10.4. This field will become optional: it is empty once the member's account is deleted.","nullable":false,"deprecated":true,"x-sekential-deprecation":{"since":"v0.10.4"}},"createdAt":{"type":"string"},"visibility":{"type":"string","enum":["internal","external"]},"mentions":{"type":"array","items":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array."},"uniqueItems":true,"nullable":true},"aiWritten":{"description":"Posted by the AI on the author's behalf.","type":"boolean","nullable":true},"id":{"type":"string","nullable":true}},"required":["content","author","createdAt","visibility"]},"nullable":true},"lastCommentAt":{"type":"string","nullable":true},"permissions":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"entity":{"type":"object","properties":{"relationTo":{"type":"string","enum":["users","groups"]},"value":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array."}},"required":["relationTo","value"],"additionalProperties":false,"nullable":false},"level":{"type":"number"},"origin":{"description":"Document where this permission was declared and can be edited.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"inheritedFrom":{"description":"Immediate parent that synchronized this read-only entry.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"id":{"type":"string","nullable":true}},"required":["entity","level"]},"nullable":true}},"required":[]}}}},"CustomerRequestBody":{"description":"Customer","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"title":"Customer","properties":{"name":{"type":"string"},"logo":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":true},"logoUrl":{"type":"string","nullable":true},"orgChart":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"manager":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":false},"managee":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":false},"id":{"type":"string","nullable":true}},"required":["manager","managee"]},"nullable":true},"state":{"type":"string","enum":["draft","active","break","churned"]},"archivedAt":{"description":"When this record was archived. Null when active.","type":"string","nullable":true},"status":{"description":"The state, or Archived once archived. The Customers list sorts and groups by it.","type":"string","enum":["draft","active","break","churned","archived"],"nullable":true},"emailDomains":{"description":"Exact domains whose emails reach this customer's Activity. A contact's company domain is added with the contact.","type":"array","items":{"type":"string"},"nullable":true},"slackChannels":{"description":"Slack channels whose messages reach this customer's Activity.","type":"array","items":{"type":"object","additionalProperties":false,"properties":{"teamId":{"type":"string"},"teamName":{"type":"string","nullable":true},"channelId":{"type":"string"},"channelName":{"type":"string"},"id":{"type":"string","nullable":true}},"required":["teamId","channelId","channelName"]},"nullable":true},"hubspotCompany":{"description":"Deprecated since v0.10.4. Link the HubSpot company record to the customer in Relations.","type":"object","additionalProperties":false,"properties":{"connectionId":{"type":"string","nullable":true},"companyId":{"type":"string","nullable":true},"name":{"type":"string","nullable":true},"domain":{"type":"string","nullable":true}},"required":[],"deprecated":true,"x-sekential-deprecation":{"since":"v0.10.4"}},"slackChannel":{"description":"Deprecated since v0.10.4. This contract has a replacement. Use customers.slackChannels instead.","type":"object","additionalProperties":false,"properties":{"teamId":{"type":"string","nullable":true},"teamName":{"type":"string","nullable":true},"channelId":{"type":"string","nullable":true},"channelName":{"type":"string","nullable":true}},"required":[],"deprecated":true,"x-sekential-deprecation":{"since":"v0.10.4","replacement":"customers.slackChannels"}},"journeys":{"type":"object","additionalProperties":false,"properties":{"docs":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Journey"}]}},"hasNextPage":{"type":"boolean"},"totalDocs":{"type":"number"}}},"stakeholders":{"type":"object","additionalProperties":false,"properties":{"docs":{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/Stakeholder"}]}},"hasNextPage":{"type":"boolean"},"totalDocs":{"type":"number"}}},"comments":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"content":{"type":"string"},"author":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.\n\nDeprecated since v0.10.4. This field will become optional: it is empty once the member's account is deleted.","nullable":false,"deprecated":true,"x-sekential-deprecation":{"since":"v0.10.4"}},"createdAt":{"type":"string"},"visibility":{"type":"string","enum":["internal","external"]},"mentions":{"type":"array","items":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array."},"uniqueItems":true,"nullable":true},"aiWritten":{"description":"Posted by the AI on the author's behalf.","type":"boolean","nullable":true},"id":{"type":"string","nullable":true}},"required":["content","author","createdAt","visibility"]},"nullable":true},"lastCommentAt":{"type":"string","nullable":true},"permissions":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"entity":{"type":"object","properties":{"relationTo":{"type":"string","enum":["users","groups"]},"value":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array."}},"required":["relationTo","value"],"additionalProperties":false,"nullable":false},"level":{"type":"number"},"origin":{"description":"Document where this permission was declared and can be edited.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"inheritedFrom":{"description":"Immediate parent that synchronized this read-only entry.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"id":{"type":"string","nullable":true}},"required":["entity","level"]},"nullable":true}},"required":["name","state"]}}}},"CustomerVariableValuePatchRequestBody":{"description":"Customer Variable Value","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"title":"CustomerVariableValue","properties":{"variable":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":false},"customer":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":false},"value":{"type":"array","items":{"oneOf":[{"type":"object","additionalProperties":false,"properties":{"data":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/ObjectRecord"}]},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["object-reference-value"]}},"required":["blockType","data"]},{"type":"object","additionalProperties":false,"properties":{"data":{"type":"string"},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["text"]}},"required":["blockType","data"]},{"type":"object","additionalProperties":false,"properties":{"data":{"type":"number"},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["number"]}},"required":["blockType","data"]},{"type":"object","additionalProperties":false,"properties":{"data":{"type":"boolean"},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["boolean"]}},"required":["blockType","data"]},{"type":"object","additionalProperties":false,"properties":{"data":{"type":"string"},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["date"]}},"required":["blockType","data"]},{"type":"object","additionalProperties":false,"properties":{"data":{"type":"string"},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["select"]}},"required":["blockType","data"]}]}},"archivedAt":{"description":"When this record was archived. Null when active.","type":"string","nullable":true},"permissions":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"entity":{"type":"object","properties":{"relationTo":{"type":"string","enum":["users","groups"]},"value":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array."}},"required":["relationTo","value"],"additionalProperties":false,"nullable":false},"level":{"type":"number"},"origin":{"description":"Document where this permission was declared and can be edited.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"inheritedFrom":{"description":"Immediate parent that synchronized this read-only entry.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"id":{"type":"string","nullable":true}},"required":["entity","level"]},"nullable":true}},"required":[]}}}},"CustomerVariableValueRequestBody":{"description":"Customer Variable Value","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"title":"CustomerVariableValue","properties":{"variable":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":false},"customer":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":false},"value":{"type":"array","items":{"oneOf":[{"type":"object","additionalProperties":false,"properties":{"data":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/ObjectRecord"}]},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["object-reference-value"]}},"required":["blockType","data"]},{"type":"object","additionalProperties":false,"properties":{"data":{"type":"string"},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["text"]}},"required":["blockType","data"]},{"type":"object","additionalProperties":false,"properties":{"data":{"type":"number"},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["number"]}},"required":["blockType","data"]},{"type":"object","additionalProperties":false,"properties":{"data":{"type":"boolean"},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["boolean"]}},"required":["blockType","data"]},{"type":"object","additionalProperties":false,"properties":{"data":{"type":"string"},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["date"]}},"required":["blockType","data"]},{"type":"object","additionalProperties":false,"properties":{"data":{"type":"string"},"id":{"type":"string","nullable":true},"blockName":{"type":"string","nullable":true},"blockType":{"enum":["select"]}},"required":["blockType","data"]}]}},"archivedAt":{"description":"When this record was archived. Null when active.","type":"string","nullable":true},"permissions":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"entity":{"type":"object","properties":{"relationTo":{"type":"string","enum":["users","groups"]},"value":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array."}},"required":["relationTo","value"],"additionalProperties":false,"nullable":false},"level":{"type":"number"},"origin":{"description":"Document where this permission was declared and can be edited.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"inheritedFrom":{"description":"Immediate parent that synchronized this read-only entry.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"id":{"type":"string","nullable":true}},"required":["entity","level"]},"nullable":true}},"required":["variable","customer","value"]}}}},"AssetPatchRequestBody":{"description":"Asset","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"title":"Asset","properties":{"name":{"type":"string"},"assetType":{"description":"Classifies the asset for Drive behavior and rendering.","type":"string","enum":["file","note","folder","link"]},"externalUrl":{"description":"Destination of a link asset, such as a Google Drive document. The file stays in the external repository.","type":"string","nullable":true},"driveScope":{"type":"object","properties":{"relationTo":{"type":"string","enum":["tenants","customers","journeys","object-records","journey-templates","journey-template-versions","playbook-templates","playbook-template-versions","email-templates","email-template-versions","form-templates","form-template-versions","playbooks","steps","skills"]},"value":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array."}},"required":["relationTo","value"],"additionalProperties":false,"nullable":false},"parent":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":true},"stepKey":{"type":"string","nullable":true},"permissions":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"entity":{"type":"object","properties":{"relationTo":{"type":"string","enum":["users","groups"]},"value":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array."}},"required":["relationTo","value"],"additionalProperties":false,"nullable":false},"level":{"type":"number"},"origin":{"description":"Document where this permission was declared and can be edited.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"inheritedFrom":{"description":"Immediate parent that synchronized this read-only entry.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"id":{"type":"string","nullable":true}},"required":["entity","level"]},"nullable":true},"contentResource":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":true},"contentRevision":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":true},"contentSource":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":true},"storageAlias":{"type":"boolean","nullable":true},"contentAccess":{"type":"string","enum":["owned","reference"],"nullable":true},"public":{"description":"Anyone with the file's link can view it, signed in or not.","type":"boolean","nullable":true},"prefix":{"type":"string","nullable":true},"url":{"type":"string","nullable":true},"thumbnailURL":{"type":"string","nullable":true},"filename":{"type":"string","nullable":true},"mimeType":{"type":"string","nullable":true},"filesize":{"type":"number","nullable":true},"width":{"type":"number","nullable":true},"height":{"type":"number","nullable":true},"focalX":{"type":"number","nullable":true},"focalY":{"type":"number","nullable":true}},"required":[],"description":"assets upload media"}}}},"AssetRequestBody":{"description":"Asset","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"title":"Asset","properties":{"name":{"type":"string"},"assetType":{"description":"Classifies the asset for Drive behavior and rendering.","type":"string","enum":["file","note","folder","link"]},"externalUrl":{"description":"Destination of a link asset, such as a Google Drive document. The file stays in the external repository.","type":"string","nullable":true},"driveScope":{"type":"object","properties":{"relationTo":{"type":"string","enum":["tenants","customers","journeys","object-records","journey-templates","journey-template-versions","playbook-templates","playbook-template-versions","email-templates","email-template-versions","form-templates","form-template-versions","playbooks","steps","skills"]},"value":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array."}},"required":["relationTo","value"],"additionalProperties":false,"nullable":false},"parent":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":true},"stepKey":{"type":"string","nullable":true},"permissions":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"entity":{"type":"object","properties":{"relationTo":{"type":"string","enum":["users","groups"]},"value":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array."}},"required":["relationTo","value"],"additionalProperties":false,"nullable":false},"level":{"type":"number"},"origin":{"description":"Document where this permission was declared and can be edited.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"inheritedFrom":{"description":"Immediate parent that synchronized this read-only entry.","nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"id":{"type":"string","nullable":true}},"required":["entity","level"]},"nullable":true},"contentResource":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":true},"contentRevision":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":true},"contentSource":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":true},"storageAlias":{"type":"boolean","nullable":true},"contentAccess":{"type":"string","enum":["owned","reference"],"nullable":true},"public":{"description":"Anyone with the file's link can view it, signed in or not.","type":"boolean","nullable":true},"prefix":{"type":"string","nullable":true},"url":{"type":"string","nullable":true},"thumbnailURL":{"type":"string","nullable":true},"filename":{"type":"string","nullable":true},"mimeType":{"type":"string","nullable":true},"filesize":{"type":"number","nullable":true},"width":{"type":"number","nullable":true},"height":{"type":"number","nullable":true},"focalX":{"type":"number","nullable":true},"focalY":{"type":"number","nullable":true}},"required":["name","assetType","driveScope"],"description":"assets upload media"}}}},"AgentGoalPatchRequestBody":{"description":"Agent Goal","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"title":"AgentGoal","properties":{"skill":{"type":"string","nullable":true},"kind":{"type":"string","enum":["journey","outcome","automation"]},"target":{"type":"object","properties":{"relationTo":{"type":"string","enum":["customers","journeys","playbooks","steps","outcomes"]},"value":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array."}},"required":["relationTo","value"],"additionalProperties":false,"nullable":true},"filter":{"nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"scheduleTime":{"type":"string","nullable":true},"scheduleWeekday":{"type":"number","nullable":true},"outcome":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":true},"assignmentKey":{"type":"string","nullable":true},"timeZone":{"type":"string","nullable":true},"title":{"type":"string"},"successCriteria":{"type":"string","nullable":true},"instructions":{"type":"string","nullable":true},"journey":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":true},"agent":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":true},"owner":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":false},"cadence":{"type":"string","enum":["daily","weekly","hourBefore","dayBefore","hourAfter","manual"]},"meetingOffset":{"description":"Minutes from each meeting: negative before its start, positive after its end.","type":"number","nullable":true},"status":{"type":"string","enum":["active","paused","completed","blocked"]},"nextCheckAt":{"type":"string","nullable":true},"latestRun":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":true},"awaitingReview":{"type":"boolean","nullable":true},"blockReason":{"type":"string","nullable":true},"archivedAt":{"description":"When this record was archived. Null when active.","type":"string","nullable":true}},"required":[]}}}},"AgentGoalRequestBody":{"description":"Agent Goal","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"title":"AgentGoal","properties":{"skill":{"type":"string","nullable":true},"kind":{"type":"string","enum":["journey","outcome","automation"]},"target":{"type":"object","properties":{"relationTo":{"type":"string","enum":["customers","journeys","playbooks","steps","outcomes"]},"value":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array."}},"required":["relationTo","value"],"additionalProperties":false,"nullable":true},"filter":{"nullable":true,"anyOf":[{"type":"object"},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"}]},"scheduleTime":{"type":"string","nullable":true},"scheduleWeekday":{"type":"number","nullable":true},"outcome":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":true},"assignmentKey":{"type":"string","nullable":true},"timeZone":{"type":"string","nullable":true},"title":{"type":"string"},"successCriteria":{"type":"string","nullable":true},"instructions":{"type":"string","nullable":true},"journey":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":true},"agent":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":true},"owner":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":false},"cadence":{"type":"string","enum":["daily","weekly","hourBefore","dayBefore","hourAfter","manual"]},"meetingOffset":{"description":"Minutes from each meeting: negative before its start, positive after its end.","type":"number","nullable":true},"status":{"type":"string","enum":["active","paused","completed","blocked"]},"nextCheckAt":{"type":"string","nullable":true},"latestRun":{"type":"string","minLength":1,"description":"Canonical record ID; never a name, CSV or JSON-encoded array.","nullable":true},"awaitingReview":{"type":"boolean","nullable":true},"blockReason":{"type":"string","nullable":true},"archivedAt":{"description":"When this record was archived. Null when active.","type":"string","nullable":true}},"required":["kind","title","owner","cadence","status"]}}}}}}}