{"openapi":"3.0.3","info":{"title":"routine.co","contact":{"name":"The routine team","url":"https://routine.co","email":"contact@routine.co"},"version":"0.1"},"paths":{"/":{"get":{"parameters":[{"name":"Host","in":"header","required":true},{"name":"x-forwarded-proto","in":"header"}],"responses":{"200":{"description":"API metadata","content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"environment":{"title":"Environment","type":"string"},"front_uri":{"$anchor":"uri","title":"Front_uri","type":"string"},"public_uri":{"$ref":"#uri","title":"Public_uri"},"uptime":{"$anchor":"span","title":"Uptime","type":"integer"},"version":{"title":"Version","type":"string"}},"$schema":"https://json-schema.org/draft/2020-12/schema","$anchor":"meta","type":"object"}}}}}}},"/account":{"get":{"parameters":[{"name":"Authorization","in":"header"},{"name":"x-routine-token","in":"header"}],"responses":{"200":{"description":"The currently logged-in user","content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"id":{"$anchor":"account-id","title":"Id","type":"string"},"email":{"$ref":"#account-id","title":"Email"}},"$schema":"https://json-schema.org/draft/2020-12/schema","$anchor":"account","type":"object"}}}},"404":{"description":"User doesn't exist"}}}},"/account/default_workspace":{"get":{"parameters":[{"name":"Authorization","in":"header"},{"name":"x-routine-token","in":"header"}],"responses":{"200":{"description":"The default workspace for the currently logged-in user","content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"created":{"$anchor":"time","title":"Created","type":"string"},"id":{"$anchor":"workspace-id","title":"Id","type":"string"},"owner":{"$anchor":"org-id","title":"Owner","type":"string"},"name":{"title":"Name","type":"string"},"cookie":{"title":"Cookie","type":"string"},"default":{"title":"Default","type":"boolean"}},"$schema":"https://json-schema.org/draft/2020-12/schema","$anchor":"workspace","type":"object"}}}},"404":{"description":"User doesn't exist"}}}},"/account/default_organization":{"get":{"parameters":[{"name":"Authorization","in":"header"},{"name":"x-routine-token","in":"header"}],"responses":{"200":{"description":"The default organization for the currently logged-in user","content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"created":{"$anchor":"time","title":"Created","type":"string"},"id":{"$anchor":"org-id","title":"Id","type":"string"},"subscription":{"title":"Subscription","type":"string"},"owner":{"$anchor":"account-id","title":"Owner","description":"An organization has one owner, who has all permissions on the\n            organization.","type":"string"},"name":{"title":"Name","description":"The user-facing name for the organization.","type":"string"},"personal":{"title":"Personal","type":"boolean"}},"$schema":"https://json-schema.org/draft/2020-12/schema","$anchor":"string-org-poly","description":"An organization","type":"object"}}}},"404":{"description":"User doesn't exist"}}}},"/accounts":{"get":{"parameters":[{"name":"Authorization","in":"header"},{"name":"x-routine-token","in":"header"},{"name":"email","in":"query","description":"A fragment of email to search for","required":true,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}}],"responses":{"200":{"description":"The found accounts","content":{"application/json":{"schema":{"items":{"additionalProperties":false,"properties":{"id":{"$anchor":"account-id","title":"Id","type":"string"},"email":{"$ref":"#account-id","title":"Email"}},"$anchor":"account","type":"object"},"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array"}}}}}}},"/accounts/:id":{"get":{"parameters":[{"name":"Authorization","in":"header"},{"name":"x-routine-token","in":"header"}],"responses":{"200":{"description":"The account","content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"id":{"$anchor":"account-id","title":"Id","type":"string"},"email":{"$ref":"#account-id","title":"Email"}},"$schema":"https://json-schema.org/draft/2020-12/schema","$anchor":"account","type":"object"}}}},"404":{"description":"The account does not exist"}}},"parameters":[{"name":"id","in":"path","description":"Id of the account","required":true}]},"/deepgram":{"post":{"parameters":[{"name":"Authorization","in":"header"},{"name":"x-routine-token","in":"header"}],"responses":{"200":{"description":"Deepgram temporary token","content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"access_token":{"title":"Access_token","type":"string"},"expires_in":{"title":"Expires_in","type":"integer"}},"$schema":"https://json-schema.org/draft/2020-12/schema","$anchor":"grant_response","type":"object"}}}}}}},"/devices":{"get":{"parameters":[{"name":"Authorization","in":"header"},{"name":"x-routine-token","in":"header"}],"responses":{"200":{"description":"The devices","content":{"application/json":{"schema":{"items":{"additionalProperties":false,"properties":{"distribution":{"anyOf":[{"const":"android","type":"string"},{"prefixItems":[{"anyOf":[{"const":"macos","type":"string"},{"const":"gnu_linux","type":"string"},{"const":"win","type":"string"}],"$anchor":"null-os","type":"string"},{"anyOf":[{"const":"arm64","type":"string"},{"const":"x64","type":"string"}],"$anchor":"null-architecture","type":"string"}],"type":"array"},{"const":"ios","type":"string"},{"const":"web","type":"string"},{"const":"routine.co","type":"string"},{"const":"api_server","type":"string"}],"$anchor":"dist","title":"Distribution","type":["array","string"]},"id":{"$anchor":"device-id","title":"Id","type":"string"},"name":{"title":"Name","default":null,"type":["null","string"]},"push_token":{"title":"Push_token","default":null,"type":["null","string"]}},"$anchor":"device","type":"object"},"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array"}}}}}}},"/devices/:id":{"get":{"parameters":[{"name":"Authorization","in":"header"},{"name":"x-routine-token","in":"header"}],"responses":{"200":{"description":"The device","content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"distribution":{"anyOf":[{"const":"android","type":"string"},{"prefixItems":[{"anyOf":[{"const":"macos","type":"string"},{"const":"gnu_linux","type":"string"},{"const":"win","type":"string"}],"$anchor":"null-os","type":"string"},{"anyOf":[{"const":"arm64","type":"string"},{"const":"x64","type":"string"}],"$anchor":"null-architecture","type":"string"}],"type":"array"},{"const":"ios","type":"string"},{"const":"web","type":"string"},{"const":"routine.co","type":"string"},{"const":"api_server","type":"string"}],"$anchor":"dist","title":"Distribution","type":["array","string"]},"id":{"$anchor":"device-id","title":"Id","type":"string"},"name":{"title":"Name","default":null,"type":["null","string"]},"push_token":{"title":"Push_token","default":null,"type":["null","string"]}},"$schema":"https://json-schema.org/draft/2020-12/schema","$anchor":"device","type":"object"}}}},"404":{"description":"The device does not exist","content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"details":{"title":"Details"},"method":{"anyOf":[{"const":"delete","type":"string"},{"const":"get","type":"string"},{"const":"head","type":"string"},{"const":"options","type":"string"},{"const":"patch","type":"string"},{"const":"post","type":"string"},{"const":"put","type":"string"}],"$anchor":"method","title":"Method","type":"string"},"path":{"title":"Path","type":"string"},"reason":{"title":"Reason","description":"Human readable error.","type":"string"},"report":{"title":"Report","description":"The sentry report id, if any.","type":"string"},"retry_after":{"$anchor":"time","title":"Retry_after","description":"The earliest possible retry, iff the request should be retried","type":"string"}},"$schema":"https://json-schema.org/draft/2020-12/schema","$anchor":"errors_intf","type":"object"}}}}}},"delete":{"parameters":[{"name":"Authorization","in":"header"},{"name":"x-routine-token","in":"header"}],"responses":{"200":{"description":"The deleted device","content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"distribution":{"anyOf":[{"const":"android","type":"string"},{"prefixItems":[{"anyOf":[{"const":"macos","type":"string"},{"const":"gnu_linux","type":"string"},{"const":"win","type":"string"}],"$anchor":"null-os","type":"string"},{"anyOf":[{"const":"arm64","type":"string"},{"const":"x64","type":"string"}],"$anchor":"null-architecture","type":"string"}],"type":"array"},{"const":"ios","type":"string"},{"const":"web","type":"string"},{"const":"routine.co","type":"string"},{"const":"api_server","type":"string"}],"$anchor":"dist","title":"Distribution","type":["array","string"]},"id":{"$anchor":"device-id","title":"Id","type":"string"},"name":{"title":"Name","default":null,"type":["null","string"]},"push_token":{"title":"Push_token","default":null,"type":["null","string"]}},"$schema":"https://json-schema.org/draft/2020-12/schema","$anchor":"device","type":"object"}}}},"404":{"description":"The device does not exist","content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"details":{"title":"Details"},"method":{"anyOf":[{"const":"delete","type":"string"},{"const":"get","type":"string"},{"const":"head","type":"string"},{"const":"options","type":"string"},{"const":"patch","type":"string"},{"const":"post","type":"string"},{"const":"put","type":"string"}],"$anchor":"method","title":"Method","type":"string"},"path":{"title":"Path","type":"string"},"reason":{"title":"Reason","description":"Human readable error.","type":"string"},"report":{"title":"Report","description":"The sentry report id, if any.","type":"string"},"retry_after":{"$anchor":"time","title":"Retry_after","description":"The earliest possible retry, iff the request should be retried","type":"string"}},"$schema":"https://json-schema.org/draft/2020-12/schema","$anchor":"errors_intf","type":"object"}}}}}},"patch":{"parameters":[{"name":"Authorization","in":"header"},{"name":"x-routine-token","in":"header"}],"requestBody":{"description":"The device","content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"name":{"title":"Name","default":null,"type":["null","string"]},"push_token":{"title":"Push_token","default":null,"type":["null","string"]}},"$schema":"https://json-schema.org/draft/2020-12/schema","$anchor":"device-patch","type":"object"}}},"required":true},"responses":{"200":{"description":"The upserted device","content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"distribution":{"anyOf":[{"const":"android","type":"string"},{"prefixItems":[{"anyOf":[{"const":"macos","type":"string"},{"const":"gnu_linux","type":"string"},{"const":"win","type":"string"}],"$anchor":"null-os","type":"string"},{"anyOf":[{"const":"arm64","type":"string"},{"const":"x64","type":"string"}],"$anchor":"null-architecture","type":"string"}],"type":"array"},{"const":"ios","type":"string"},{"const":"web","type":"string"},{"const":"routine.co","type":"string"},{"const":"api_server","type":"string"}],"$anchor":"dist","title":"Distribution","type":["array","string"]},"id":{"$anchor":"device-id","title":"Id","type":"string"},"name":{"title":"Name","default":null,"type":["null","string"]},"push_token":{"title":"Push_token","default":null,"type":["null","string"]}},"$schema":"https://json-schema.org/draft/2020-12/schema","$anchor":"device","type":"object"}}}},"404":{"description":"The device does not exist","content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"details":{"title":"Details"},"method":{"anyOf":[{"const":"delete","type":"string"},{"const":"get","type":"string"},{"const":"head","type":"string"},{"const":"options","type":"string"},{"const":"patch","type":"string"},{"const":"post","type":"string"},{"const":"put","type":"string"}],"$anchor":"method","title":"Method","type":"string"},"path":{"title":"Path","type":"string"},"reason":{"title":"Reason","description":"Human readable error.","type":"string"},"report":{"title":"Report","description":"The sentry report id, if any.","type":"string"},"retry_after":{"$anchor":"time","title":"Retry_after","description":"The earliest possible retry, iff the request should be retried","type":"string"}},"$schema":"https://json-schema.org/draft/2020-12/schema","$anchor":"errors_intf","type":"object"}}}}}},"parameters":[{"name":"id","in":"path","description":"Id of the device","required":true}]},"/fail":{"get":{"responses":{"204":{"description":"trigger a fatal API error"}}}},"/healthcheck":{"get":{"responses":{"200":{"description":"Health check","content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"healthy":{"title":"Healthy","type":"boolean"},"hostname":{"title":"Hostname","type":"string"},"response_time":{"$anchor":"span","title":"Response_time","type":"integer"},"stale_database_connections":{"title":"Stale_database_connections","type":"integer"},"uptime":{"$ref":"#span","title":"Uptime"},"database_connections":{"items":{"prefixItems":[{"type":"integer"},{"additionalProperties":false,"properties":{"current_query":{"title":"Current_query","type":["null","string"]},"name":{"title":"Name","type":"string"},"request_id":{"title":"Request_id","type":"string"},"start":{"$anchor":"time","title":"Start","type":"string"}},"$anchor":"connection","type":"object"}],"type":"array"},"$anchor":"connection-map","title":"Database_connections","type":"array"},"push_notification_servers":{"items":{"additionalProperties":false,"properties":{"id":{"$anchor":"pns-id","title":"Id","type":"string"},"last_ping":{"$ref":"#time","title":"Last_ping"},"url":{"$anchor":"uri","title":"Url","type":"string"}},"$anchor":"push_notification_server","type":"object"},"title":"Push_notification_servers","type":"array"}},"$schema":"https://json-schema.org/draft/2020-12/schema","$anchor":"healthcheck","type":"object"}}}},"503":{"description":"Failed health check","content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"healthy":{"title":"Healthy","type":"boolean"},"hostname":{"title":"Hostname","type":"string"},"response_time":{"$anchor":"span","title":"Response_time","type":"integer"},"stale_database_connections":{"title":"Stale_database_connections","type":"integer"},"uptime":{"$ref":"#span","title":"Uptime"},"database_connections":{"items":{"prefixItems":[{"type":"integer"},{"additionalProperties":false,"properties":{"current_query":{"title":"Current_query","type":["null","string"]},"name":{"title":"Name","type":"string"},"request_id":{"title":"Request_id","type":"string"},"start":{"$anchor":"time","title":"Start","type":"string"}},"$anchor":"connection","type":"object"}],"type":"array"},"$anchor":"connection-map","title":"Database_connections","type":"array"},"push_notification_servers":{"items":{"additionalProperties":false,"properties":{"id":{"$anchor":"pns-id","title":"Id","type":"string"},"last_ping":{"$ref":"#time","title":"Last_ping"},"url":{"$anchor":"uri","title":"Url","type":"string"}},"$anchor":"push_notification_server","type":"object"},"title":"Push_notification_servers","type":"array"}},"$schema":"https://json-schema.org/draft/2020-12/schema","$anchor":"healthcheck","type":"object"}}}}}}},"/help/search":{"post":{"requestBody":{"description":"Help search query","content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"q":{"title":"Q","type":"string"}},"$schema":"https://json-schema.org/draft/2020-12/schema","$anchor":"search_request","type":"object"}}},"required":true},"responses":{"200":{"description":"Help search results","content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"articles":{"items":{"additionalProperties":false,"properties":{"title":{"title":"Title","type":"string"},"url":{"title":"Url","type":"string"},"body":{"title":"Body","type":"string"}},"$anchor":"article","description":"A help article from https://help.routine.co","type":"object"},"title":"Articles","type":"array"}},"$schema":"https://json-schema.org/draft/2020-12/schema","$anchor":"search_response","type":"object"}}}}}}},"/integrations/google/calendar/notifications":{"post":{"parameters":[{"name":"X-Goog-Channel-ID","in":"header","required":true},{"name":"X-Goog-Resource-ID","in":"header","required":true},{"name":"X-Goog-Resource-State","in":"header","required":true},{"name":"X-Goog-Channel-Token","in":"header","required":true}],"responses":{"204":{"description":"Notification acknowledged"}}}},"/integrations/notion/callback":{"get":{"parameters":[{"name":"code","in":"query","description":"The Notion OAuth code","required":true,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}},{"name":"state","in":"query","description":"The Notion OAuth state","required":true,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}}],"responses":{"303":{"description":"Authenticate through Notion's OAuth","headers":{"Location":{}}},"200":{"description":"Authentication through Notion's OAuth success","headers":{"Content-Type":{}},"content":{"text/plain":{}}},"401":{"description":"Notion token is invalid","headers":{"X-Details":{},"X-Details":{},"X-Reason":{}},"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"details":{"title":"Details"},"method":{"anyOf":[{"const":"delete","type":"string"},{"const":"get","type":"string"},{"const":"head","type":"string"},{"const":"options","type":"string"},{"const":"patch","type":"string"},{"const":"post","type":"string"},{"const":"put","type":"string"}],"$anchor":"method","title":"Method","type":"string"},"path":{"title":"Path","type":"string"},"reason":{"title":"Reason","description":"Human readable error.","type":"string"},"report":{"title":"Report","description":"The sentry report id, if any.","type":"string"},"retry_after":{"$anchor":"time","title":"Retry_after","description":"The earliest possible retry, iff the request should be retried","type":"string"}},"$schema":"https://json-schema.org/draft/2020-12/schema","$anchor":"errors_intf","type":"object"}}}},"500":{"description":"Notion API error","headers":{"X-Details":{},"X-Details":{},"X-Reason":{}},"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"details":{"title":"Details"},"method":{"anyOf":[{"const":"delete","type":"string"},{"const":"get","type":"string"},{"const":"head","type":"string"},{"const":"options","type":"string"},{"const":"patch","type":"string"},{"const":"post","type":"string"},{"const":"put","type":"string"}],"$anchor":"method","title":"Method","type":"string"},"path":{"title":"Path","type":"string"},"reason":{"title":"Reason","description":"Human readable error.","type":"string"},"report":{"title":"Report","description":"The sentry report id, if any.","type":"string"},"retry_after":{"$anchor":"time","title":"Retry_after","description":"The earliest possible retry, iff the request should be retried","type":"string"}},"$schema":"https://json-schema.org/draft/2020-12/schema","$anchor":"errors_intf","type":"object"}}}},"501":{"description":"Notion integration not implemented","headers":{"X-Details":{},"X-Details":{},"X-Reason":{}},"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"details":{"title":"Details"},"method":{"anyOf":[{"const":"delete","type":"string"},{"const":"get","type":"string"},{"const":"head","type":"string"},{"const":"options","type":"string"},{"const":"patch","type":"string"},{"const":"post","type":"string"},{"const":"put","type":"string"}],"$anchor":"method","title":"Method","type":"string"},"path":{"title":"Path","type":"string"},"reason":{"title":"Reason","description":"Human readable error.","type":"string"},"report":{"title":"Report","description":"The sentry report id, if any.","type":"string"},"retry_after":{"$anchor":"time","title":"Retry_after","description":"The earliest possible retry, iff the request should be retried","type":"string"}},"$schema":"https://json-schema.org/draft/2020-12/schema","$anchor":"errors_intf","type":"object"}}}}}}},"/integrations/notion/oauth":{"get":{"parameters":[{"name":"Host","in":"header","required":true},{"name":"x-forwarded-proto","in":"header"},{"name":"source","in":"query","description":"The origin of the request, web or app","required":true,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}}],"responses":{"303":{"description":"Authenticate through Notion's OAuth","headers":{"Location":{}}},"401":{"description":"Notion token is invalid","headers":{"X-Details":{},"X-Details":{},"X-Reason":{}},"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"details":{"title":"Details"},"method":{"anyOf":[{"const":"delete","type":"string"},{"const":"get","type":"string"},{"const":"head","type":"string"},{"const":"options","type":"string"},{"const":"patch","type":"string"},{"const":"post","type":"string"},{"const":"put","type":"string"}],"$anchor":"method","title":"Method","type":"string"},"path":{"title":"Path","type":"string"},"reason":{"title":"Reason","description":"Human readable error.","type":"string"},"report":{"title":"Report","description":"The sentry report id, if any.","type":"string"},"retry_after":{"$anchor":"time","title":"Retry_after","description":"The earliest possible retry, iff the request should be retried","type":"string"}},"$schema":"https://json-schema.org/draft/2020-12/schema","$anchor":"errors_intf","type":"object"}}}},"500":{"description":"Notion API error","headers":{"X-Details":{},"X-Details":{},"X-Reason":{}},"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"details":{"title":"Details"},"method":{"anyOf":[{"const":"delete","type":"string"},{"const":"get","type":"string"},{"const":"head","type":"string"},{"const":"options","type":"string"},{"const":"patch","type":"string"},{"const":"post","type":"string"},{"const":"put","type":"string"}],"$anchor":"method","title":"Method","type":"string"},"path":{"title":"Path","type":"string"},"reason":{"title":"Reason","description":"Human readable error.","type":"string"},"report":{"title":"Report","description":"The sentry report id, if any.","type":"string"},"retry_after":{"$anchor":"time","title":"Retry_after","description":"The earliest possible retry, iff the request should be retried","type":"string"}},"$schema":"https://json-schema.org/draft/2020-12/schema","$anchor":"errors_intf","type":"object"}}}},"501":{"description":"Notion integration not implemented","headers":{"X-Details":{},"X-Details":{},"X-Reason":{}},"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"details":{"title":"Details"},"method":{"anyOf":[{"const":"delete","type":"string"},{"const":"get","type":"string"},{"const":"head","type":"string"},{"const":"options","type":"string"},{"const":"patch","type":"string"},{"const":"post","type":"string"},{"const":"put","type":"string"}],"$anchor":"method","title":"Method","type":"string"},"path":{"title":"Path","type":"string"},"reason":{"title":"Reason","description":"Human readable error.","type":"string"},"report":{"title":"Report","description":"The sentry report id, if any.","type":"string"},"retry_after":{"$anchor":"time","title":"Retry_after","description":"The earliest possible retry, iff the request should be retried","type":"string"}},"$schema":"https://json-schema.org/draft/2020-12/schema","$anchor":"errors_intf","type":"object"}}}}}}},"/integrations/notion/token":{"post":{"parameters":[{"name":"Host","in":"header","required":true},{"name":"x-forwarded-proto","in":"header"},{"name":"Authorization","in":"header"},{"name":"x-routine-token","in":"header"},{"name":"code","in":"query","description":"The Notion OAuth code","required":true,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}}],"responses":{"200":{"description":"The upserted Notion integration","content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"access_token":{"title":"Access_token","description":"An access token used to authorize requests to the Notion API.","type":"string"},"owner":{"title":"Owner","description":"An object containing information about who can view and share this\n          integration."},"workspace_id":{"title":"Workspace_id","description":"The ID of the workspace where this authorization took place.","type":"string"},"workspace_name":{"title":"Workspace_name","description":"A human-readable name which can be used to display this authorization\n          in UI.","type":"string"},"workspace_icon":{"$anchor":"uri","title":"Workspace_icon","description":"A URL to an image which can be used to display this authorization in\n          UI.","type":"string"}},"$schema":"https://json-schema.org/draft/2020-12/schema","$anchor":"notion-integration","description":"The subset of {!Notion.Oauth.response_success} that we send back to the\n    clients.","type":"object"}}}},"401":{"description":"Notion token is invalid","headers":{"X-Details":{},"X-Details":{},"X-Reason":{}},"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"details":{"title":"Details"},"method":{"anyOf":[{"const":"delete","type":"string"},{"const":"get","type":"string"},{"const":"head","type":"string"},{"const":"options","type":"string"},{"const":"patch","type":"string"},{"const":"post","type":"string"},{"const":"put","type":"string"}],"$anchor":"method","title":"Method","type":"string"},"path":{"title":"Path","type":"string"},"reason":{"title":"Reason","description":"Human readable error.","type":"string"},"report":{"title":"Report","description":"The sentry report id, if any.","type":"string"},"retry_after":{"$anchor":"time","title":"Retry_after","description":"The earliest possible retry, iff the request should be retried","type":"string"}},"$schema":"https://json-schema.org/draft/2020-12/schema","$anchor":"errors_intf","type":"object"}}}},"500":{"description":"Notion API error","headers":{"X-Details":{},"X-Details":{},"X-Reason":{}},"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"details":{"title":"Details"},"method":{"anyOf":[{"const":"delete","type":"string"},{"const":"get","type":"string"},{"const":"head","type":"string"},{"const":"options","type":"string"},{"const":"patch","type":"string"},{"const":"post","type":"string"},{"const":"put","type":"string"}],"$anchor":"method","title":"Method","type":"string"},"path":{"title":"Path","type":"string"},"reason":{"title":"Reason","description":"Human readable error.","type":"string"},"report":{"title":"Report","description":"The sentry report id, if any.","type":"string"},"retry_after":{"$anchor":"time","title":"Retry_after","description":"The earliest possible retry, iff the request should be retried","type":"string"}},"$schema":"https://json-schema.org/draft/2020-12/schema","$anchor":"errors_intf","type":"object"}}}},"501":{"description":"Notion integration not implemented","headers":{"X-Details":{},"X-Details":{},"X-Reason":{}},"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"details":{"title":"Details"},"method":{"anyOf":[{"const":"delete","type":"string"},{"const":"get","type":"string"},{"const":"head","type":"string"},{"const":"options","type":"string"},{"const":"patch","type":"string"},{"const":"post","type":"string"},{"const":"put","type":"string"}],"$anchor":"method","title":"Method","type":"string"},"path":{"title":"Path","type":"string"},"reason":{"title":"Reason","description":"Human readable error.","type":"string"},"report":{"title":"Report","description":"The sentry report id, if any.","type":"string"},"retry_after":{"$anchor":"time","title":"Retry_after","description":"The earliest possible retry, iff the request should be retried","type":"string"}},"$schema":"https://json-schema.org/draft/2020-12/schema","$anchor":"errors_intf","type":"object"}}}}}}},"/integrations/integration_app/access_token":{"post":{"parameters":[{"name":"Authorization","in":"header"},{"name":"x-routine-token","in":"header"}],"requestBody":{"description":"Request body with organization ID","content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"organizationId":{"$anchor":"org-id","title":"OrganizationId","type":"string"}},"$schema":"https://json-schema.org/draft/2020-12/schema","$anchor":"generate_access_token_request","description":"The HTTP body of a request from the front to generate an Integration App\n    access token. *","type":"object"}}},"required":true},"responses":{"200":{"description":"An Integration App access token for the user","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}}}},"401":{"description":"Authentication failed","headers":{"X-Details":{},"X-Details":{},"X-Reason":{}},"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"details":{"title":"Details"},"method":{"anyOf":[{"const":"delete","type":"string"},{"const":"get","type":"string"},{"const":"head","type":"string"},{"const":"options","type":"string"},{"const":"patch","type":"string"},{"const":"post","type":"string"},{"const":"put","type":"string"}],"$anchor":"method","title":"Method","type":"string"},"path":{"title":"Path","type":"string"},"reason":{"title":"Reason","description":"Human readable error.","type":"string"},"report":{"title":"Report","description":"The sentry report id, if any.","type":"string"},"retry_after":{"$anchor":"time","title":"Retry_after","description":"The earliest possible retry, iff the request should be retried","type":"string"}},"$schema":"https://json-schema.org/draft/2020-12/schema","$anchor":"errors_intf","type":"object"}}}}}}},"/integrations/integration_app/event_webhook":{"post":{"parameters":[{"name":"x-membrane-token","in":"header","required":true}],"requestBody":{"description":"The event webhook payload","content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"eventType":{"anyOf":[{"const":"connection.created","type":"string"},{"const":"connection.deleted","type":"string"}],"$anchor":"event_type","title":"EventType","type":"string"},"data":{"additionalProperties":false,"properties":{"connection":{"additionalProperties":false,"properties":{"user":{"additionalProperties":false,"properties":{"internalId":{"$anchor":"org-id","title":"InternalId","type":"string"}},"$anchor":"user","title":"User","type":"object"},"id":{"$anchor":"integration-app-connection-id","title":"Id","type":"string"},"integration":{"additionalProperties":false,"properties":{"name":{"title":"Name","type":"string"}},"$anchor":"integration","title":"Integration","type":"object"}},"$anchor":"connection","title":"Connection","type":"object"}},"$anchor":"data","title":"Data","type":"object"}},"$schema":"https://json-schema.org/draft/2020-12/schema","$anchor":"payload","description":"Event webhook sent by Integration App when something happens to a user\n      connection.\n\n      Example webhook sent by Integration App. Notice that the most interesting\n      parts are:\n      - [data.connection.user.internalId] which is the organization ID\n      - [data.connection.user.fields.userId] which is the connection owner ID\n\n      {@json[\n         {\n          \"eventType\": \"connection.created\",\n          \"data\": {\n            \"connection\": {\n              \"state\": \"READY\",\n              \"errors\": [],\n              \"isDeactivated\": false,\n              \"id\": \"67ceb024d80c24daf08c70d4\",\n              \"name\": \"Google Tasks\",\n              \"userId\": \"org:qgAqJjWKcyM-qCwy5lH6H\",\n              \"isTest\": false,\n              \"user\": {\n                \"id\": \"67c5bfc6e09731f017be7659\",\n                \"internalId\": \"org:qgAqJjWKcyM-qCwy5lH6H\",\n                \"name\": \"julien.debon@routine.co's org\",\n                \"fields\": {\n                  \"userId\": \"account:SRM91oVFwV9sollYWBdc1\"\n                },\n                \"createdAt\": \"Mon Mar 03 2025 14:42:14 GMT+0000 (Coordinated Universal Time)\",\n                \"lastActiveAt\": \"2025-03-03\",\n                \"isBillable\": false\n              },\n              \"integrationId\": \"67c96efb1a129c401dff12e9\",\n              \"authOptionKey\": \"\",\n              \"integration\": {\n                \"key\": \"google-tasks\",\n                \"state\": \"READY\",\n                \"errors\": [],\n                \"isDeactivated\": false,\n                \"id\": \"67c96efb1a129c401dff12e9\",\n                \"name\": \"Google Tasks\",\n                \"uuid\": \"4fbbe432-d6a9-461b-8b91-0ec3d6cabb1f\",\n                \"connectorId\": \"67c972d65693feb0102f8e8c\",\n                \"hasDefaultParameters\": false,\n                \"hasMissingParameters\": false,\n                \"hasDocumentation\": true,\n                \"hasOperations\": true,\n                \"hasData\": true,\n                \"hasEvents\": false,\n                \"hasGlobalWebhooks\": false,\n                \"hasUdm\": false,\n                \"areParametersCustomized\": true,\n                \"baseUri\": \"s3://integration-app-connectors/67ab0b3218755d39a4733808/9eccbdb9-3c9a-4428-8a0b-735241221f15\",\n                \"logoUri\": \"https://static.integration.app/connectors/google-tasks/asset-c7b415e3-91e0-414a-bbb6-3fc995a6d932.png\",\n                \"appUuid\": \"4d824762-e20c-4964-9f48-0cd54c68a1ca\",\n                \"dataCollectionsCount\": 2,\n                \"operationsCount\": 14,\n                \"eventsCount\": 0,\n                \"authType\": \"oauth2\"\n              },\n              \"disconnected\": false,\n              \"isDefunct\": false,\n              \"createdAt\": \"2025-03-10T09:25:56.846Z\",\n              \"updatedAt\": \"2025-03-10T09:25:56.886Z\"\n            }\n          }\n        }\n      ]}","type":"object"}}},"required":true},"responses":{"200":{"description":"Nothing","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"null"}}}},"401":{"description":"Authentication failed","headers":{"X-Details":{},"X-Details":{},"X-Reason":{}},"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"details":{"title":"Details"},"method":{"anyOf":[{"const":"delete","type":"string"},{"const":"get","type":"string"},{"const":"head","type":"string"},{"const":"options","type":"string"},{"const":"patch","type":"string"},{"const":"post","type":"string"},{"const":"put","type":"string"}],"$anchor":"method","title":"Method","type":"string"},"path":{"title":"Path","type":"string"},"reason":{"title":"Reason","description":"Human readable error.","type":"string"},"report":{"title":"Report","description":"The sentry report id, if any.","type":"string"},"retry_after":{"$anchor":"time","title":"Retry_after","description":"The earliest possible retry, iff the request should be retried","type":"string"}},"$schema":"https://json-schema.org/draft/2020-12/schema","$anchor":"errors_intf","type":"object"}}}}}}},"/integrations/integration_app/data_record_change_webhook":{"post":{"parameters":[{"name":"x-membrane-token","in":"header","required":true}],"requestBody":{"description":"The data record change webhook payload","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"properties":{"eventType":{"title":"EventType","const":"created","type":"string"},"record":{"title":"Record"},"organizationId":{"$anchor":"org-id","title":"OrganizationId","type":"string"},"workspaceId":{"$anchor":"workspace-id","title":"WorkspaceId","type":"string"},"recordId":{"$anchor":"integration-app-data-record-id","title":"RecordId","type":"string"},"flowInstanceId":{"$anchor":"integration-app-flow-instance-id","title":"FlowInstanceId","type":"string"}}},{"additionalProperties":false,"properties":{"eventType":{"title":"EventType","const":"updated","type":"string"},"record":{"title":"Record"},"organizationId":{"$anchor":"org-id","title":"OrganizationId","type":"string"},"workspaceId":{"$anchor":"workspace-id","title":"WorkspaceId","type":"string"},"recordId":{"$anchor":"integration-app-data-record-id","title":"RecordId","type":"string"},"flowInstanceId":{"$anchor":"integration-app-flow-instance-id","title":"FlowInstanceId","type":"string"}}},{"additionalProperties":false,"properties":{"eventType":{"title":"EventType","const":"deleted","type":"string"},"organizationId":{"$anchor":"org-id","title":"OrganizationId","type":"string"},"workspaceId":{"$anchor":"workspace-id","title":"WorkspaceId","type":"string"},"recordId":{"$anchor":"integration-app-data-record-id","title":"RecordId","type":"string"},"flowInstanceId":{"$anchor":"integration-app-flow-instance-id","title":"FlowInstanceId","type":"string"}}}],"$schema":"https://json-schema.org/draft/2020-12/schema","$anchor":"data_record_change_webhook_payload","description":"The payload of data record change webhooks sent by Integration App.\n\n      {b You MUST ensure that this corresponds to the structure in Integration\n         App Console / Packages / Flows / <Flow responsible for sending data\n         record changes> / Nodes / <Node responsible for sending to Routine> /\n         Request to your App / Request Parameters / Body}","type":"object"}}},"required":true},"responses":{"200":{"description":"Nothing","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"null"}}}},"401":{"description":"Authentication failed","headers":{"X-Details":{},"X-Details":{},"X-Reason":{}},"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"details":{"title":"Details"},"method":{"anyOf":[{"const":"delete","type":"string"},{"const":"get","type":"string"},{"const":"head","type":"string"},{"const":"options","type":"string"},{"const":"patch","type":"string"},{"const":"post","type":"string"},{"const":"put","type":"string"}],"$anchor":"method","title":"Method","type":"string"},"path":{"title":"Path","type":"string"},"reason":{"title":"Reason","description":"Human readable error.","type":"string"},"report":{"title":"Report","description":"The sentry report id, if any.","type":"string"},"retry_after":{"$anchor":"time","title":"Retry_after","description":"The earliest possible retry, iff the request should be retried","type":"string"}},"$schema":"https://json-schema.org/draft/2020-12/schema","$anchor":"errors_intf","type":"object"}}}}}}},"/integrations/integration_app/oauth_callback":{"get":{"parameters":[{"name":"*","in":"query","description":"All query parameters passed to Integration App"}],"responses":{"303":{"description":"\nRedirect to Integration App callback URL. This is needed for some\napplications like Google.\n\nSee https://docs.getmembrane.com/docs/connections#custom-callback-url\n","headers":{"Location":{}}}}}},"/invite":{"post":{"parameters":[{"name":"Authorization","in":"header"},{"name":"x-routine-token","in":"header"}],"requestBody":{"description":"The invitation to fulfill","content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"invited_email":{"$anchor":"email","title":"Invited_email","type":"string"}},"$schema":"https://json-schema.org/draft/2020-12/schema","$anchor":"invitation","type":"object"}}},"required":true},"responses":{"204":{"description":"Invite success"},"401":{"description":"Authentication failed","headers":{"X-Details":{},"X-Details":{},"X-Reason":{}},"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"details":{"title":"Details"},"method":{"anyOf":[{"const":"delete","type":"string"},{"const":"get","type":"string"},{"const":"head","type":"string"},{"const":"options","type":"string"},{"const":"patch","type":"string"},{"const":"post","type":"string"},{"const":"put","type":"string"}],"$anchor":"method","title":"Method","type":"string"},"path":{"title":"Path","type":"string"},"reason":{"title":"Reason","description":"Human readable error.","type":"string"},"report":{"title":"Report","description":"The sentry report id, if any.","type":"string"},"retry_after":{"$anchor":"time","title":"Retry_after","description":"The earliest possible retry, iff the request should be retried","type":"string"}},"$schema":"https://json-schema.org/draft/2020-12/schema","$anchor":"errors_intf","type":"object"}}}}}}},"/marketplace/submit":{"post":{"parameters":[{"name":"Authorization","in":"header"},{"name":"x-routine-token","in":"header"},{"name":"token","in":"query","description":"Authentication bearer token","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":["null","string"]}},{"name":"Content-Type","in":"header","required":true}],"requestBody":{"description":"multipart/form-data submission, with a `title` and `description` text field, a `package` file and an optional `screenshot` file","content":{},"required":true},"responses":{"204":{"description":"The file was submitted"}}}},"/migrate-pages":{"post":{"responses":{"204":{"description":"Google pages were migrated"}}}},"/migrate-tasks":{"post":{"responses":{"204":{"description":"Google tasks were migrated"}}}},"/oauth":{"get":{"parameters":[{"name":"Host","in":"header","required":true},{"name":"x-forwarded-proto","in":"header"},{"name":"dist","in":"query","description":"Distribution","required":true,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}},{"name":"provider","in":"query","description":"Authentication provider","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":["null","string"]}},{"name":"email","in":"query","description":"User email","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":["null","string"]}},{"name":"anonymous_id","in":"query","description":"Metrics anonymous id","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":["null","string"]}},{"name":"referral","in":"query","description":"Rewardful referral code","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":["null","string"]}},{"name":"device","in":"query","description":"id of the device","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":["null","string"]}},{"name":"version","in":"query","description":"Routine client version","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":["null","string"]}},{"name":"return_info","in":"query","description":"Opaque parameter restituted as-is to the app","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":["null","string"]}}],"responses":{"200":{"description":"Authenticate with the given provider.","headers":{"Content-Type":{}},"content":{"text/plain":{}}},"303":{"description":"Authenticate with the given provider.","headers":{"Location":{}}},"501":{"description":"No email service configured"}}},"delete":{"parameters":[{"name":"Authorization","in":"header"},{"name":"x-routine-token","in":"header"}],"responses":{"204":{"description":"The account was deleted"},"404":{"description":"The account does not exist"}}}},"/oauth/accounts/:email":{"delete":{"parameters":[{"name":"Authorization","in":"header"},{"name":"x-routine-token","in":"header"}],"responses":{"204":{"description":"The account was deleted"},"404":{"description":"The account does not exist"}}},"parameters":[{"name":"email","in":"path","description":"The email of the account to delete","required":true}]},"/oauth/add-account":{"get":{"parameters":[{"name":"Host","in":"header","required":true},{"name":"x-forwarded-proto","in":"header"},{"name":"dist","in":"query","description":"Distribution","required":true,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}},{"name":"provider","in":"query","description":"Authentication provider","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":["null","string"]}},{"name":"email","in":"query","description":"User email","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":["null","string"]}},{"name":"anonymous_id","in":"query","description":"Metrics anonymous id","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":["null","string"]}},{"name":"referral","in":"query","description":"Rewardful referral code","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":["null","string"]}},{"name":"device","in":"query","description":"id of the device","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":["null","string"]}},{"name":"version","in":"query","description":"Routine client version","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":["null","string"]}},{"name":"return_info","in":"query","description":"Opaque parameter restituted as-is to the app","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":["null","string"]}}],"responses":{"200":{"description":"Authenticate with the given provider.","headers":{"Content-Type":{}},"content":{"text/plain":{}}},"303":{"description":"Authenticate with the given provider.","headers":{"Location":{}}},"501":{"description":"No email service configured"}}}},"/oauth/admin":{"get":{"parameters":[{"name":"Host","in":"header","required":true},{"name":"x-forwarded-proto","in":"header"},{"name":"dist","in":"query","description":"Distribution","required":true,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}},{"name":"provider","in":"query","description":"Authentication provider","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":["null","string"]}},{"name":"email","in":"query","description":"User email","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":["null","string"]}},{"name":"anonymous_id","in":"query","description":"Metrics anonymous id","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":["null","string"]}},{"name":"referral","in":"query","description":"Rewardful referral code","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":["null","string"]}},{"name":"device","in":"query","description":"id of the device","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":["null","string"]}},{"name":"version","in":"query","description":"Routine client version","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":["null","string"]}},{"name":"return_info","in":"query","description":"Opaque parameter restituted as-is to the app","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":["null","string"]}}],"responses":{"200":{"description":"Authenticate with the given provider.","headers":{"Content-Type":{}},"content":{"text/plain":{}}},"303":{"description":"Authenticate with the given provider.","headers":{"Location":{}}},"501":{"description":"No email service configured"}}}},"/oauth/callback":{"get":{"parameters":[{"name":"Host","in":"header","required":true},{"name":"x-forwarded-proto","in":"header"},{"name":"provider","in":"query","description":"Authentication provider","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":["null","string"]}},{"name":"code","in":"query","description":"OAuth authorization code","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":["null","string"]}},{"name":"scope","in":"query","description":"OAuth granted scopes","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":["null","string"]}},{"name":"state","in":"query","description":"OAuth state","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":["null","string"]}},{"name":"*","in":"query","description":"Additional unused Google API parameters"}],"responses":{"200":{"description":"Google OAuth authorization succeeded","headers":{"Content-Type":{}},"content":{"text/plain":{}}},"303":{"description":"Google OAuth authorization succeeded","headers":{"Location":{}}},"410":{"description":"Token is expired","headers":{"Content-Type":{}},"content":{"text/plain":{}}},"401":{"description":"Google OAuth authorization failed","headers":{"X-Details":{},"X-Details":{},"X-Reason":{}},"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"details":{"title":"Details"},"method":{"anyOf":[{"const":"delete","type":"string"},{"const":"get","type":"string"},{"const":"head","type":"string"},{"const":"options","type":"string"},{"const":"patch","type":"string"},{"const":"post","type":"string"},{"const":"put","type":"string"}],"$anchor":"method","title":"Method","type":"string"},"path":{"title":"Path","type":"string"},"reason":{"title":"Reason","description":"Human readable error.","type":"string"},"report":{"title":"Report","description":"The sentry report id, if any.","type":"string"},"retry_after":{"$anchor":"time","title":"Retry_after","description":"The earliest possible retry, iff the request should be retried","type":"string"}},"$schema":"https://json-schema.org/draft/2020-12/schema","$anchor":"errors_intf","type":"object"}}}}}}},"/oauth/claim-account":{"post":{"parameters":[{"name":"Authorization","in":"header"},{"name":"x-routine-token","in":"header"},{"name":"token","in":"query","description":"token for the claimed account","required":true,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}}],"responses":{"204":{"description":"The account was claimed"},"410":{"description":"Claim token is too old","headers":{"X-Details":{},"X-Details":{},"X-Reason":{}},"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"details":{"title":"Details"},"method":{"anyOf":[{"const":"delete","type":"string"},{"const":"get","type":"string"},{"const":"head","type":"string"},{"const":"options","type":"string"},{"const":"patch","type":"string"},{"const":"post","type":"string"},{"const":"put","type":"string"}],"$anchor":"method","title":"Method","type":"string"},"path":{"title":"Path","type":"string"},"reason":{"title":"Reason","description":"Human readable error.","type":"string"},"report":{"title":"Report","description":"The sentry report id, if any.","type":"string"},"retry_after":{"$anchor":"time","title":"Retry_after","description":"The earliest possible retry, iff the request should be retried","type":"string"}},"$schema":"https://json-schema.org/draft/2020-12/schema","$anchor":"errors_intf","type":"object"}}}}}}},"/oauth/grant":{"get":{"parameters":[{"name":"Host","in":"header","required":true},{"name":"x-forwarded-proto","in":"header"},{"name":"dist","in":"query","description":"Distribution","required":true,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}},{"name":"email","in":"query","description":"User email","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":["null","string"]}},{"name":"scopes","in":"query","description":"Google scopes to request permission for","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":["null","string"]}},{"name":"version","in":"query","description":"Routine client version","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":["null","string"]}},{"name":"return_info","in":"query","description":"Opaque parameter restituted as-is to the app","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":["null","string"]}}],"responses":{"303":{"description":"Authenticate through Google OAuth if needed","headers":{"Location":{}}}}}},"/oauth/renew":{"post":{"parameters":[{"name":"dist","in":"query","description":"Distribution","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":["null","string"]}},{"name":"X-Routine-Version","in":"header","description":"Routine client version"},{"name":"Timezone","in":"header"},{"name":"Authorization","in":"header"},{"name":"x-routine-token","in":"header"}],"responses":{"200":{"description":"The renewed token","content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"token":{"title":"Token","description":"Routine token","type":"string"},"channel":{"anyOf":[{"const":"bleeding","type":"string"},{"const":"stable","type":"string"}],"$anchor":"release_channel","title":"Channel","description":"The user's release channel.","default":"stable","type":"string"},"id":{"$anchor":"account-id","title":"Id","description":"Account id, i.e. the main google account","type":"string"},"user_id":{"$ref":"#account-id","title":"User_id","description":"The internal (opaque) account id"},"premium":{"title":"Premium","description":"The potential premium key","type":"string"},"workspace":{"additionalProperties":false,"properties":{"created":{"$anchor":"time","title":"Created","type":"string"},"id":{"$anchor":"workspace-id","title":"Id","type":"string"},"owner":{"$anchor":"org-id","title":"Owner","type":"string"},"name":{"title":"Name","type":"string"},"cookie":{"title":"Cookie","type":"string"},"default":{"title":"Default","type":"boolean"}},"$anchor":"workspace","title":"Workspace","description":"Personal workspace of the user","type":"object"},"uid":{"title":"Uid","type":"string"}},"$schema":"https://json-schema.org/draft/2020-12/schema","$anchor":"login_response","type":"object"}}}},"303":{"description":"Use another API instead","headers":{"Location":{}}},"401":{"description":"Renewal failed","headers":{"X-Details":{},"X-Details":{},"X-Reason":{}},"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"details":{"title":"Details"},"method":{"anyOf":[{"const":"delete","type":"string"},{"const":"get","type":"string"},{"const":"head","type":"string"},{"const":"options","type":"string"},{"const":"patch","type":"string"},{"const":"post","type":"string"},{"const":"put","type":"string"}],"$anchor":"method","title":"Method","type":"string"},"path":{"title":"Path","type":"string"},"reason":{"title":"Reason","description":"Human readable error.","type":"string"},"report":{"title":"Report","description":"The sentry report id, if any.","type":"string"},"retry_after":{"$anchor":"time","title":"Retry_after","description":"The earliest possible retry, iff the request should be retried","type":"string"}},"$schema":"https://json-schema.org/draft/2020-12/schema","$anchor":"errors_intf","type":"object"}}}}}}},"/oauth-server/authorize":{"get":{"parameters":[{"name":"Host","in":"header","required":true},{"name":"x-forwarded-proto","in":"header"},{"name":"client_id","in":"query","description":"The Routine OAuth client identifier.","required":true,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}},{"name":"redirect_uri","in":"query","description":"The callback URL.","required":true,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}},{"name":"response_type","in":"query","description":"Always pass \"code\".","required":true,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}},{"name":"deeplink","in":"query","description":"Whether to redirect to routine native App.","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":["null","string"]}},{"name":"state","in":"query","description":"An arbitrary state that will be yielded back when exchanging the token.","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":["null","string"]}}],"responses":{"303":{"description":"Redirect to the client's uri with an authorization code.","headers":{"Location":{}}}}},"post":{"parameters":[{"name":"Authorization","in":"header"},{"name":"x-routine-token","in":"header"},{"name":"client_id","in":"query","description":"The Routine OAuth client identifier.","required":true,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}},{"name":"redirect_uri","in":"query","description":"The callback URL.","required":true,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}},{"name":"response_type","in":"query","description":"Always pass \"code\".","required":true,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}},{"name":"state","in":"query","description":"An arbitrary state that will be yielded back when exchanging the token.","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":["null","string"]}}],"responses":{"204":{"description":"Redirect to the client's uri with an authorization code.","headers":{"Access-Control-Expose-Headers":{},"Location":{}}},"400":{"description":"The response_type is not supported","content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"details":{"title":"Details"},"method":{"anyOf":[{"const":"delete","type":"string"},{"const":"get","type":"string"},{"const":"head","type":"string"},{"const":"options","type":"string"},{"const":"patch","type":"string"},{"const":"post","type":"string"},{"const":"put","type":"string"}],"$anchor":"method","title":"Method","type":"string"},"path":{"title":"Path","type":"string"},"reason":{"title":"Reason","description":"Human readable error.","type":"string"},"report":{"title":"Report","description":"The sentry report id, if any.","type":"string"},"retry_after":{"$anchor":"time","title":"Retry_after","description":"The earliest possible retry, iff the request should be retried","type":"string"}},"$schema":"https://json-schema.org/draft/2020-12/schema","$anchor":"errors_intf","type":"object"}}}},"404":{"description":"The OAuth client does not exist","content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"details":{"title":"Details"},"method":{"anyOf":[{"const":"delete","type":"string"},{"const":"get","type":"string"},{"const":"head","type":"string"},{"const":"options","type":"string"},{"const":"patch","type":"string"},{"const":"post","type":"string"},{"const":"put","type":"string"}],"$anchor":"method","title":"Method","type":"string"},"path":{"title":"Path","type":"string"},"reason":{"title":"Reason","description":"Human readable error.","type":"string"},"report":{"title":"Report","description":"The sentry report id, if any.","type":"string"},"retry_after":{"$anchor":"time","title":"Retry_after","description":"The earliest possible retry, iff the request should be retried","type":"string"}},"$schema":"https://json-schema.org/draft/2020-12/schema","$anchor":"errors_intf","type":"object"}}}},"401":{"description":"The redirection URL is invalid","content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"details":{"title":"Details"},"method":{"anyOf":[{"const":"delete","type":"string"},{"const":"get","type":"string"},{"const":"head","type":"string"},{"const":"options","type":"string"},{"const":"patch","type":"string"},{"const":"post","type":"string"},{"const":"put","type":"string"}],"$anchor":"method","title":"Method","type":"string"},"path":{"title":"Path","type":"string"},"reason":{"title":"Reason","description":"Human readable error.","type":"string"},"report":{"title":"Report","description":"The sentry report id, if any.","type":"string"},"retry_after":{"$anchor":"time","title":"Retry_after","description":"The earliest possible retry, iff the request should be retried","type":"string"}},"$schema":"https://json-schema.org/draft/2020-12/schema","$anchor":"errors_intf","type":"object"}}}}}}},"/oauth-server/self":{"get":{"parameters":[{"name":"Authorization","in":"header"},{"name":"x-routine-token","in":"header"}],"responses":{"200":{"description":"The Connection info.","content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"name":{"title":"Name","description":"Short name","type":"string"},"description":{"title":"Description","description":"One-liner tagline","type":"string"},"email":{"title":"Email","description":"Support email","type":"string"},"icon":{"$anchor":"uri","title":"Icon","description":"Icon","type":"string"},"homepage":{"$ref":"#uri","title":"Homepage","description":"Homepage uri"},"privacy":{"$ref":"#uri","title":"Privacy","description":"Privacy policy uri"},"tou":{"$ref":"#uri","title":"Tou","description":"Terms of use uri"},"owner":{"$anchor":"account-id","title":"Owner","type":"string"}},"$schema":"https://json-schema.org/draft/2020-12/schema","$anchor":"connection","type":"object"}}}},"401":{"description":"The OAuth bearer token is invalid","content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"details":{"title":"Details"},"method":{"anyOf":[{"const":"delete","type":"string"},{"const":"get","type":"string"},{"const":"head","type":"string"},{"const":"options","type":"string"},{"const":"patch","type":"string"},{"const":"post","type":"string"},{"const":"put","type":"string"}],"$anchor":"method","title":"Method","type":"string"},"path":{"title":"Path","type":"string"},"reason":{"title":"Reason","description":"Human readable error.","type":"string"},"report":{"title":"Report","description":"The sentry report id, if any.","type":"string"},"retry_after":{"$anchor":"time","title":"Retry_after","description":"The earliest possible retry, iff the request should be retried","type":"string"}},"$schema":"https://json-schema.org/draft/2020-12/schema","$anchor":"errors_intf","type":"object"}}}}}}},"/oauth-server/token":{"post":{"parameters":[{"name":"Authorization","in":"header","required":true},{"name":"code","in":"query","description":"The temporary code.","required":true,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}},{"name":"redirect_uri","in":"query","description":"The callback URL.","required":true,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}},{"name":"grant_type","in":"query","description":"Always pass \"authorization_code\".","required":true,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}}],"responses":{"200":{"description":"The access token.","content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"access_token":{"title":"Access_token","type":"string"}},"$schema":"https://json-schema.org/draft/2020-12/schema","$anchor":"token_response","type":"object"}}}},"400":{"description":"The grant_type is not supported","content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"details":{"title":"Details"},"method":{"anyOf":[{"const":"delete","type":"string"},{"const":"get","type":"string"},{"const":"head","type":"string"},{"const":"options","type":"string"},{"const":"patch","type":"string"},{"const":"post","type":"string"},{"const":"put","type":"string"}],"$anchor":"method","title":"Method","type":"string"},"path":{"title":"Path","type":"string"},"reason":{"title":"Reason","description":"Human readable error.","type":"string"},"report":{"title":"Report","description":"The sentry report id, if any.","type":"string"},"retry_after":{"$anchor":"time","title":"Retry_after","description":"The earliest possible retry, iff the request should be retried","type":"string"}},"$schema":"https://json-schema.org/draft/2020-12/schema","$anchor":"errors_intf","type":"object"}}}},"404":{"description":"The OAuth client does not exist","content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"details":{"title":"Details"},"method":{"anyOf":[{"const":"delete","type":"string"},{"const":"get","type":"string"},{"const":"head","type":"string"},{"const":"options","type":"string"},{"const":"patch","type":"string"},{"const":"post","type":"string"},{"const":"put","type":"string"}],"$anchor":"method","title":"Method","type":"string"},"path":{"title":"Path","type":"string"},"reason":{"title":"Reason","description":"Human readable error.","type":"string"},"report":{"title":"Report","description":"The sentry report id, if any.","type":"string"},"retry_after":{"$anchor":"time","title":"Retry_after","description":"The earliest possible retry, iff the request should be retried","type":"string"}},"$schema":"https://json-schema.org/draft/2020-12/schema","$anchor":"errors_intf","type":"object"}}}},"401":{"description":"The redirection URL, client secret or code is invalid","content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"details":{"title":"Details"},"method":{"anyOf":[{"const":"delete","type":"string"},{"const":"get","type":"string"},{"const":"head","type":"string"},{"const":"options","type":"string"},{"const":"patch","type":"string"},{"const":"post","type":"string"},{"const":"put","type":"string"}],"$anchor":"method","title":"Method","type":"string"},"path":{"title":"Path","type":"string"},"reason":{"title":"Reason","description":"Human readable error.","type":"string"},"report":{"title":"Report","description":"The sentry report id, if any.","type":"string"},"retry_after":{"$anchor":"time","title":"Retry_after","description":"The earliest possible retry, iff the request should be retried","type":"string"}},"$schema":"https://json-schema.org/draft/2020-12/schema","$anchor":"errors_intf","type":"object"}}}}}}},"/oauth-server/clients/:client-id":{"get":{"parameters":[{"name":"Authorization","in":"header"},{"name":"x-routine-token","in":"header"}],"responses":{"200":{"description":"The OAuth client infos.","content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"name":{"title":"Name","description":"Short name","type":"string"},"description":{"title":"Description","description":"One-liner tagline","type":"string"},"email":{"title":"Email","description":"Support email","type":"string"},"icon":{"$anchor":"uri","title":"Icon","description":"Icon","type":"string"},"homepage":{"$ref":"#uri","title":"Homepage","description":"Homepage uri"},"privacy":{"$ref":"#uri","title":"Privacy","description":"Privacy policy uri"},"tou":{"$ref":"#uri","title":"Tou","description":"Terms of use uri"},"grant":{"additionalProperties":false,"properties":{"capacities":{"items":{"anyOf":[{"const":"task_add","type":"string"},{"const":"task_archive","type":"string"}],"$anchor":"capacity","type":"string"},"title":"Capacities","description":"The granted capacities.","type":"array"},"time":{"$anchor":"time","title":"Time","description":"The time at which this grant was issued.","type":"string"}},"$anchor":"grant","title":"Grant","description":"The capacities granted to this client","type":"object"}},"$schema":"https://json-schema.org/draft/2020-12/schema","$anchor":"client_grant","type":"object"}}}},"404":{"description":"The OAuth client does not exist","content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"details":{"title":"Details"},"method":{"anyOf":[{"const":"delete","type":"string"},{"const":"get","type":"string"},{"const":"head","type":"string"},{"const":"options","type":"string"},{"const":"patch","type":"string"},{"const":"post","type":"string"},{"const":"put","type":"string"}],"$anchor":"method","title":"Method","type":"string"},"path":{"title":"Path","type":"string"},"reason":{"title":"Reason","description":"Human readable error.","type":"string"},"report":{"title":"Report","description":"The sentry report id, if any.","type":"string"},"retry_after":{"$anchor":"time","title":"Retry_after","description":"The earliest possible retry, iff the request should be retried","type":"string"}},"$schema":"https://json-schema.org/draft/2020-12/schema","$anchor":"errors_intf","type":"object"}}}}}},"parameters":[{"name":"client-id","in":"path","description":"The id of the OAuth client","required":true}]},"/openai/v1/chat/completions":{"post":{"parameters":[{"name":"Authorization","in":"header"},{"name":"x-routine-token","in":"header"}],"requestBody":{"description":"Model configuration","content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"messages":{"items":{"anyOf":[{"additionalProperties":false,"properties":{"role":{"const":"assistant","type":"string"},"content":{"title":"Content","description":"The contents of the assistant message.","type":"string"},"name":{"title":"Name","description":"An optional name for the participant. Provides the model\n                  information to differentiate between participants of the same\n                  role.","type":"string"},"refusal":{"title":"Refusal","description":"The refusal message by the assistant.","type":"string"}},"type":"object"},{"additionalProperties":false,"properties":{"role":{"const":"developer","type":"string"},"content":{"title":"Content","description":"The contents of the developer message.","type":"string"},"name":{"title":"Name","description":"An optional name for the participant. Provides the model\n                  information to differentiate between participants of the same\n                  role.","type":"string"}},"type":"object"},{"additionalProperties":false,"properties":{"role":{"const":"system","type":"string"},"content":{"title":"Content","description":"The contents of the system message.","type":"string"},"name":{"title":"Name","description":"An optional name for the participant. Provides the model\n                  information to differentiate between participants of the same\n                  role.","type":"string"}},"type":"object"},{"additionalProperties":false,"properties":{"role":{"const":"tool_call","type":"string"},"content":{"title":"Content","description":"The contents of the assistant message.","type":"string"},"tool_call_id":{"title":"Tool_call_id","description":"Tool call that this message is responding to.","type":"string"}},"type":"object"},{"additionalProperties":false,"properties":{"role":{"const":"user","type":"string"},"content":{"title":"Content","description":"The contents of the user message.","type":"string"},"name":{"title":"Name","description":"An optional name for the participant. Provides the model\n                  information to differentiate between participants of the same\n                  role.","type":"string"}},"type":"object"}],"$anchor":"openai-chat-completions-message","type":"object"},"$anchor":"openai-chat-completions-message-list-nonempty","title":"Messages","type":"array"},"model":{"title":"Model","type":"string"},"organization_id":{"title":"Organization_id","description":"Routine-only: The organization that the request comes from.\n                Optional for backward compatibility.","default":null,"type":["null","string"]}},"$schema":"https://json-schema.org/draft/2020-12/schema","$anchor":"openai-chat-completions-creation-client","type":"object"}}},"required":true},"responses":{"200":{"description":"A chat completion response returned by model, based on the provided input.","content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"id":{"title":"Id","type":"string"},"created":{"$anchor":"timestamp","title":"Created","type":"integer"},"model":{"title":"Model","type":"string"},"choices":{"items":{"additionalProperties":false,"properties":{"index":{"title":"Index","type":"integer"},"message":{"additionalProperties":false,"properties":{"role":{"title":"Role","type":"string"},"content":{"title":"Content","type":"string"},"refusal":{"title":"Refusal","type":"string"},"annotations":{"items":{"anyOf":[{"additionalProperties":false,"properties":{"type":{"const":"url_citation","type":"string"},"url_citation":{"additionalProperties":false,"properties":{"end_index":{"title":"End_index","description":"The index of the last character of the URL citation in the message.","type":"integer"},"start_index":{"title":"Start_index","description":"The index of the first character of the URL citation in the message.","type":"integer"},"title":{"title":"Title","description":"The title of the web resource.","type":"string"},"url":{"$anchor":"uri","title":"Url","description":"The URL of the web resource.","type":"string"}},"$anchor":"url_citation","title":"Url_citation","type":"object"}},"type":"object"}],"$anchor":"annotation","type":"object"},"title":"Annotations","type":"array"}},"$anchor":"message","title":"Message","type":"object"},"finish_reason":{"anyOf":[{"const":"content_filter","type":"string"},{"const":"length","type":"string"},{"const":"stop","type":"string"},{"const":"tool_calls","type":"string"}],"$anchor":"finish_reason","title":"Finish_reason","type":"string"}},"$anchor":"choice","type":"object"},"title":"Choices","type":"array"},"usage":{"additionalProperties":false,"properties":{"prompt_tokens":{"title":"Prompt_tokens","type":"integer"},"completion_tokens":{"title":"Completion_tokens","type":"integer"},"total_tokens":{"title":"Total_tokens","type":"integer"},"prompt_tokens_details":{"additionalProperties":false,"properties":{"cached_tokens":{"title":"Cached_tokens","type":"integer"},"audio_tokens":{"title":"Audio_tokens","type":"integer"}},"$anchor":"prompt_tokens_details","title":"Prompt_tokens_details","type":"object"},"completion_tokens_details":{"additionalProperties":false,"properties":{"reasoning_tokens":{"title":"Reasoning_tokens","type":"integer"},"audio_tokens":{"title":"Audio_tokens","type":"integer"},"accepted_prediction_tokens":{"title":"Accepted_prediction_tokens","type":"integer"},"rejected_prediction_tokens":{"title":"Rejected_prediction_tokens","type":"integer"}},"$anchor":"completion_tokens_details","title":"Completion_tokens_details","type":"object"}},"$anchor":"usage","title":"Usage","type":"object"},"service_tier":{"title":"Service_tier","type":"string"},"system_fingerprint":{"title":"System_fingerprint","type":"string"}},"$schema":"https://json-schema.org/draft/2020-12/schema","$anchor":"completions","type":"object"}}}}}}},"/openai/v1/chat/completions/:completion_id":{"delete":{"parameters":[{"name":"Authorization","in":"header"},{"name":"x-routine-token","in":"header"}],"responses":{"204":{"description":"The stored chat completion was deleted."}}},"parameters":[{"name":"completion_id","in":"path","description":"The ID of the chat completion.","required":true}]},"/openai/v1/responses":{"post":{"parameters":[{"name":"Authorization","in":"header"},{"name":"x-routine-token","in":"header"}],"requestBody":{"description":"OpenAI Responses API request","content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"model":{"title":"Model","type":"string"},"input":{"items":{"anyOf":[{"additionalProperties":false,"properties":{"role":{"anyOf":[{"const":"user","type":"string"},{"const":"assistant","type":"string"},{"const":"system","type":"string"},{"const":"developer","type":"string"}],"$anchor":"openai-message-role","title":"Role","type":"string"},"content":{"title":"Content","description":"Plain-text message with no file attachments.","type":"string"}},"type":"object"},{"additionalProperties":false,"properties":{"type":{"title":"Type","type":"string"},"call_id":{"title":"Call_id","type":"string"},"output":{"title":"Output","type":"string"}},"type":"object"},{"additionalProperties":false,"properties":{"role":{"$ref":"#openai-message-role","title":"Role"},"content":{"items":{"anyOf":[{"additionalProperties":false,"properties":{"type":{"const":"input_text","type":"string"},"text":{"title":"Text","type":"string"}},"type":"object"},{"additionalProperties":false,"properties":{"type":{"const":"input_image","type":"string"},"image_url":{"$anchor":"uri","title":"Image_url","type":"string"}},"description":"Direct URL to an image file (PNG, JPEG, GIF, WebP).","type":"object"},{"additionalProperties":false,"properties":{"type":{"const":"input_file","type":"string"},"file_url":{"$ref":"#uri","title":"File_url"}},"description":"Direct URL to a non-image file (PDF, DOCX, spreadsheet, …).","type":"object"}],"$anchor":"content_part","type":"object"},"title":"Content","description":"Multi-part message: text plus one or more image/file parts.","type":"array"}},"type":"object"}],"$anchor":"openai-input-item","description":"An item in the [input] array sent to the OpenAI Responses API.","type":"object"},"title":"Input","type":"array"},"previous_response_id":{"$anchor":"openai-response-id","title":"Previous_response_id","type":"string"},"tools":{"items":{"anyOf":[{"additionalProperties":false,"properties":{"type":{"const":"function","type":"string"},"name":{"title":"Name","type":"string"},"description":{"title":"Description","type":"string"},"parameters":{"title":"Parameters"},"strict":{"title":"Strict","type":"boolean"},"defer_loading":{"title":"Defer_loading","type":"boolean"}},"$anchor":"function","type":"object"},{"additionalProperties":false,"properties":{"type":{"const":"namespace","type":"string"},"name":{"title":"Name","type":"string"},"description":{"title":"Description","type":"string"},"tools":{"items":{"anyOf":[{"$ref":"#function"}],"$anchor":"fn"},"title":"Tools","type":"array"}},"$anchor":"namespace","type":"object"},{"additionalProperties":false,"properties":{"type":{"const":"tool_search","type":"string"},"execution":{"title":"Execution","type":"string"},"description":{"title":"Description","type":"string"}},"$anchor":"tool_search","type":"object"},{"additionalProperties":false,"properties":{"type":{"const":"web_search","type":"string"},"search_context_size":{"title":"Search_context_size","description":"Controls the amount of context retrieved from the web. [\"low\"],\n                [\"medium\"] (default), or [\"high\"]. Higher values improve\n                accuracy at increased cost and latency.","type":"string"}},"$anchor":"web_search","type":"object"}],"$anchor":"tool","type":"object"},"title":"Tools","type":"array"},"tool_choice":{"title":"Tool_choice","type":"string"},"metadata":{"additionalProperties":{"type":"string"},"title":"Metadata","default":{},"type":"object"},"text":{"additionalProperties":false,"properties":{"format":{"additionalProperties":false,"properties":{"type":{"title":"Type","type":"string"},"name":{"title":"Name","type":"string"},"schema":{"title":"Schema"},"strict":{"title":"Strict","type":"boolean"}},"$anchor":"format","title":"Format","type":"object"}},"$anchor":"text","title":"Text","type":"object"},"reasoning":{"additionalProperties":false,"properties":{"effort":{"anyOf":[{"const":"none","type":"string"},{"const":"low","type":"string"},{"const":"medium","type":"string"},{"const":"high","type":"string"},{"const":"xhigh","type":"string"},{"const":"max","type":"string"}],"$anchor":"effort","title":"Effort","type":"string"}},"$anchor":"reasoning","title":"Reasoning","type":"object"},"organization_id":{"title":"Organization_id","description":"Routine-only: The organization that the request comes from.\n              Optional for backward compatibility.","default":null,"type":["null","string"]}},"$schema":"https://json-schema.org/draft/2020-12/schema","$anchor":"openai-creation-client","type":"object"}}},"required":true},"responses":{"200":{"description":"OpenAI Responses API response","content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"id":{"$anchor":"openai-response-id","title":"Id","type":"string"},"output":{"items":{"anyOf":[{"additionalProperties":false,"properties":{"type":{"const":"function_call","type":"string"},"call_id":{"title":"Call_id","type":"string"},"name":{"title":"Name","type":"string"},"arguments":{"anyOf":[{"type":"string"},{}],"$anchor":"string_or_json","title":"Arguments","type":"string"}},"type":"object"},{"additionalProperties":false,"properties":{"type":{"const":"message","type":"string"},"content":{"items":{"anyOf":[{"additionalProperties":false,"properties":{"type":{"const":"output_text","type":"string"},"text":{"title":"Text","type":"string"},"annotations":{"items":{"anyOf":[{"additionalProperties":false,"properties":{"type":{"const":"url_citation","type":"string"},"url":{"title":"Url","type":"string"},"title":{"title":"Title","type":"string"},"start_index":{"title":"Start_index","type":"integer"},"end_index":{"title":"End_index","type":"integer"}},"type":"object"}],"$anchor":"openai-url-citation","description":"A citation returned by the OpenAI Responses API.","type":"object"},"title":"Annotations","default":[],"type":"array"}},"type":"object"}],"$anchor":"content_item","type":"object"},"title":"Content","type":"array"}},"type":"object"},{"additionalProperties":false,"properties":{"type":{"const":"tool_search_call","type":"string"},"id":{"title":"Id","type":"string"},"call_id":{"title":"Call_id","type":"string"}},"type":"object"},{"additionalProperties":false,"properties":{"type":{"const":"tool_search_output","type":"string"},"id":{"title":"Id","type":"string"},"call_id":{"title":"Call_id","type":"string"}},"type":"object"},{"additionalProperties":false,"properties":{"type":{"const":"web_search_call","type":"string"},"id":{"title":"Id","type":"string"},"status":{"title":"Status","type":"string"}},"type":"object"},{"additionalProperties":false,"properties":{"type":{"const":"reasoning","type":"string"},"id":{"title":"Id","type":"string"}},"type":"object"}],"$anchor":"openai-output-item","type":"object"},"title":"Output","type":"array"},"usage":{"additionalProperties":false,"properties":{"input_tokens":{"title":"Input_tokens","type":"integer"},"output_tokens":{"title":"Output_tokens","type":"integer"},"total_tokens":{"title":"Total_tokens","type":"integer"},"input_tokens_details":{"additionalProperties":false,"properties":{"cached_tokens":{"title":"Cached_tokens","type":"integer"}},"$anchor":"input_tokens_details","title":"Input_tokens_details","default":{"cached_tokens":0},"type":"object"},"output_tokens_details":{"additionalProperties":false,"properties":{"reasoning_tokens":{"title":"Reasoning_tokens","type":"integer"}},"$anchor":"output_tokens_details","title":"Output_tokens_details","default":{"reasoning_tokens":0},"type":"object"}},"title":"Usage","default":null,"type":["null","object"]}},"$schema":"https://json-schema.org/draft/2020-12/schema","$anchor":"openai-response","type":"object"}}}}}}},"/organizations/join":{"post":{"parameters":[{"name":"Authorization","in":"header"},{"name":"x-routine-token","in":"header"},{"name":"token","in":"query","description":"Invitation token","required":true,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}}],"responses":{"204":{"description":"Whether the request was successful or not"},"404":{"description":"The organization or the account does not exist","content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"details":{"title":"Details"},"method":{"anyOf":[{"const":"delete","type":"string"},{"const":"get","type":"string"},{"const":"head","type":"string"},{"const":"options","type":"string"},{"const":"patch","type":"string"},{"const":"post","type":"string"},{"const":"put","type":"string"}],"$anchor":"method","title":"Method","type":"string"},"path":{"title":"Path","type":"string"},"reason":{"title":"Reason","description":"Human readable error.","type":"string"},"report":{"title":"Report","description":"The sentry report id, if any.","type":"string"},"retry_after":{"$anchor":"time","title":"Retry_after","description":"The earliest possible retry, iff the request should be retried","type":"string"}},"$schema":"https://json-schema.org/draft/2020-12/schema","$anchor":"errors_intf","type":"object"}}}},"410":{"description":"The invitation is expired","content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"details":{"title":"Details"},"method":{"anyOf":[{"const":"delete","type":"string"},{"const":"get","type":"string"},{"const":"head","type":"string"},{"const":"options","type":"string"},{"const":"patch","type":"string"},{"const":"post","type":"string"},{"const":"put","type":"string"}],"$anchor":"method","title":"Method","type":"string"},"path":{"title":"Path","type":"string"},"reason":{"title":"Reason","description":"Human readable error.","type":"string"},"report":{"title":"Report","description":"The sentry report id, if any.","type":"string"},"retry_after":{"$anchor":"time","title":"Retry_after","description":"The earliest possible retry, iff the request should be retried","type":"string"}},"$schema":"https://json-schema.org/draft/2020-12/schema","$anchor":"errors_intf","type":"object"}}}}}}},"/organizations/:id":{"get":{"parameters":[{"name":"Authorization","in":"header"},{"name":"x-routine-token","in":"header"}],"responses":{"200":{"description":"The current organization","content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"created":{"$anchor":"time","title":"Created","type":"string"},"id":{"$anchor":"org-id","title":"Id","type":"string"},"subscription":{"title":"Subscription","type":"string"},"owner":{"$anchor":"account-id","title":"Owner","description":"An organization has one owner, who has all permissions on the\n            organization.","type":"string"},"name":{"title":"Name","description":"The user-facing name for the organization.","type":"string"},"personal":{"title":"Personal","type":"boolean"}},"$schema":"https://json-schema.org/draft/2020-12/schema","$anchor":"organization","type":"object"}}}},"404":{"description":"The organization or the account does not exist","content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"details":{"title":"Details"},"method":{"anyOf":[{"const":"delete","type":"string"},{"const":"get","type":"string"},{"const":"head","type":"string"},{"const":"options","type":"string"},{"const":"patch","type":"string"},{"const":"post","type":"string"},{"const":"put","type":"string"}],"$anchor":"method","title":"Method","type":"string"},"path":{"title":"Path","type":"string"},"reason":{"title":"Reason","description":"Human readable error.","type":"string"},"report":{"title":"Report","description":"The sentry report id, if any.","type":"string"},"retry_after":{"$anchor":"time","title":"Retry_after","description":"The earliest possible retry, iff the request should be retried","type":"string"}},"$schema":"https://json-schema.org/draft/2020-12/schema","$anchor":"errors_intf","type":"object"}}}},"410":{"description":"The invitation is expired","content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"details":{"title":"Details"},"method":{"anyOf":[{"const":"delete","type":"string"},{"const":"get","type":"string"},{"const":"head","type":"string"},{"const":"options","type":"string"},{"const":"patch","type":"string"},{"const":"post","type":"string"},{"const":"put","type":"string"}],"$anchor":"method","title":"Method","type":"string"},"path":{"title":"Path","type":"string"},"reason":{"title":"Reason","description":"Human readable error.","type":"string"},"report":{"title":"Report","description":"The sentry report id, if any.","type":"string"},"retry_after":{"$anchor":"time","title":"Retry_after","description":"The earliest possible retry, iff the request should be retried","type":"string"}},"$schema":"https://json-schema.org/draft/2020-12/schema","$anchor":"errors_intf","type":"object"}}}}}},"parameters":[{"name":"id","in":"path","description":"Id of the org","required":true}]},"/organizations/:id/admin/stripe_customer":{"get":{"parameters":[{"name":"Authorization","in":"header"},{"name":"x-routine-token","in":"header"}],"responses":{"200":{"description":"The current stripe customer for the given org","content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"id":{"$anchor":"stripe-cus-id","title":"Id","type":"string"}},"$schema":"https://json-schema.org/draft/2020-12/schema","$anchor":"customer_id","type":"object"}}}},"404":{"description":"The organization or the account does not exist","content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"details":{"title":"Details"},"method":{"anyOf":[{"const":"delete","type":"string"},{"const":"get","type":"string"},{"const":"head","type":"string"},{"const":"options","type":"string"},{"const":"patch","type":"string"},{"const":"post","type":"string"},{"const":"put","type":"string"}],"$anchor":"method","title":"Method","type":"string"},"path":{"title":"Path","type":"string"},"reason":{"title":"Reason","description":"Human readable error.","type":"string"},"report":{"title":"Report","description":"The sentry report id, if any.","type":"string"},"retry_after":{"$anchor":"time","title":"Retry_after","description":"The earliest possible retry, iff the request should be retried","type":"string"}},"$schema":"https://json-schema.org/draft/2020-12/schema","$anchor":"errors_intf","type":"object"}}}},"410":{"description":"The invitation is expired","content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"details":{"title":"Details"},"method":{"anyOf":[{"const":"delete","type":"string"},{"const":"get","type":"string"},{"const":"head","type":"string"},{"const":"options","type":"string"},{"const":"patch","type":"string"},{"const":"post","type":"string"},{"const":"put","type":"string"}],"$anchor":"method","title":"Method","type":"string"},"path":{"title":"Path","type":"string"},"reason":{"title":"Reason","description":"Human readable error.","type":"string"},"report":{"title":"Report","description":"The sentry report id, if any.","type":"string"},"retry_after":{"$anchor":"time","title":"Retry_after","description":"The earliest possible retry, iff the request should be retried","type":"string"}},"$schema":"https://json-schema.org/draft/2020-12/schema","$anchor":"errors_intf","type":"object"}}}}}},"put":{"parameters":[{"name":"Authorization","in":"header"},{"name":"x-routine-token","in":"header"}],"requestBody":{"description":"The stripe customer to set","content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"id":{"$anchor":"stripe-cus-id","title":"Id","type":"string"}},"$schema":"https://json-schema.org/draft/2020-12/schema","$anchor":"customer_id","type":"object"}}},"required":true},"responses":{"200":{"description":"Successfuly set the stripe customer","content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"id":{"$anchor":"stripe-cus-id","title":"Id","type":"string"}},"$schema":"https://json-schema.org/draft/2020-12/schema","$anchor":"customer_id","type":"object"}}}},"404":{"description":"The organization or the account does not exist","content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"details":{"title":"Details"},"method":{"anyOf":[{"const":"delete","type":"string"},{"const":"get","type":"string"},{"const":"head","type":"string"},{"const":"options","type":"string"},{"const":"patch","type":"string"},{"const":"post","type":"string"},{"const":"put","type":"string"}],"$anchor":"method","title":"Method","type":"string"},"path":{"title":"Path","type":"string"},"reason":{"title":"Reason","description":"Human readable error.","type":"string"},"report":{"title":"Report","description":"The sentry report id, if any.","type":"string"},"retry_after":{"$anchor":"time","title":"Retry_after","description":"The earliest possible retry, iff the request should be retried","type":"string"}},"$schema":"https://json-schema.org/draft/2020-12/schema","$anchor":"errors_intf","type":"object"}}}},"410":{"description":"The invitation is expired","content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"details":{"title":"Details"},"method":{"anyOf":[{"const":"delete","type":"string"},{"const":"get","type":"string"},{"const":"head","type":"string"},{"const":"options","type":"string"},{"const":"patch","type":"string"},{"const":"post","type":"string"},{"const":"put","type":"string"}],"$anchor":"method","title":"Method","type":"string"},"path":{"title":"Path","type":"string"},"reason":{"title":"Reason","description":"Human readable error.","type":"string"},"report":{"title":"Report","description":"The sentry report id, if any.","type":"string"},"retry_after":{"$anchor":"time","title":"Retry_after","description":"The earliest possible retry, iff the request should be retried","type":"string"}},"$schema":"https://json-schema.org/draft/2020-12/schema","$anchor":"errors_intf","type":"object"}}}}}},"parameters":[{"name":"id","in":"path","description":"Id of the org","required":true}]},"/organizations/:id/details":{"get":{"parameters":[{"name":"Authorization","in":"header"},{"name":"x-routine-token","in":"header"}],"responses":{"200":{"description":"The current organization and all details","content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"members":{"additionalProperties":{"additionalProperties":false,"properties":{"access_role":{"anyOf":[{"description":"read-access to the list of members of the organization, read-write\n            access to the workspaces that the member has been added to","const":"member","type":"string"},{"description":"read-write access to everything in this organization.","const":"owner","type":"string"}],"$anchor":"access_role","title":"Access_role","description":"Level of permission of the member on the organization.","type":"string"},"email":{"$anchor":"account-id","title":"Email","description":"Main Routine account email of the member.","type":"string"},"id":{"$ref":"#account-id","title":"Id","description":"Unique account id of the member."},"name":{"title":"Name","description":"User-facing name displayed for this member.","type":"string"}},"$anchor":"member","type":"object"},"$anchor":"members","title":"Members","type":"object"},"members_pending":{"items":{"$anchor":"email","type":"string"},"title":"Members_pending","type":"array"},"organization":{"additionalProperties":false,"properties":{"created":{"$anchor":"time","title":"Created","type":"string"},"id":{"$anchor":"org-id","title":"Id","type":"string"},"subscription":{"title":"Subscription","type":"string"},"owner":{"$ref":"#account-id","title":"Owner","description":"An organization has one owner, who has all permissions on the\n            organization."},"name":{"title":"Name","description":"The user-facing name for the organization.","type":"string"},"personal":{"title":"Personal","type":"boolean"}},"$anchor":"string-org-poly","title":"Organization","type":"object"},"workspaces":{"additionalProperties":{"additionalProperties":false,"properties":{"created":{"$ref":"#time","title":"Created"},"id":{"$anchor":"workspace-id","title":"Id","type":"string"},"owner":{"$ref":"#org-id","title":"Owner"},"name":{"title":"Name","type":"string"}},"$anchor":"workspace-raw","type":"object"},"title":"Workspaces","type":"object"}},"$schema":"https://json-schema.org/draft/2020-12/schema","$anchor":"organization-full","type":"object"}}}},"404":{"description":"The organization or the account does not exist","content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"details":{"title":"Details"},"method":{"anyOf":[{"const":"delete","type":"string"},{"const":"get","type":"string"},{"const":"head","type":"string"},{"const":"options","type":"string"},{"const":"patch","type":"string"},{"const":"post","type":"string"},{"const":"put","type":"string"}],"$anchor":"method","title":"Method","type":"string"},"path":{"title":"Path","type":"string"},"reason":{"title":"Reason","description":"Human readable error.","type":"string"},"report":{"title":"Report","description":"The sentry report id, if any.","type":"string"},"retry_after":{"$anchor":"time","title":"Retry_after","description":"The earliest possible retry, iff the request should be retried","type":"string"}},"$schema":"https://json-schema.org/draft/2020-12/schema","$anchor":"errors_intf","type":"object"}}}},"410":{"description":"The invitation is expired","content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"details":{"title":"Details"},"method":{"anyOf":[{"const":"delete","type":"string"},{"const":"get","type":"string"},{"const":"head","type":"string"},{"const":"options","type":"string"},{"const":"patch","type":"string"},{"const":"post","type":"string"},{"const":"put","type":"string"}],"$anchor":"method","title":"Method","type":"string"},"path":{"title":"Path","type":"string"},"reason":{"title":"Reason","description":"Human readable error.","type":"string"},"report":{"title":"Report","description":"The sentry report id, if any.","type":"string"},"retry_after":{"$anchor":"time","title":"Retry_after","description":"The earliest possible retry, iff the request should be retried","type":"string"}},"$schema":"https://json-schema.org/draft/2020-12/schema","$anchor":"errors_intf","type":"object"}}}}}},"parameters":[{"name":"id","in":"path","description":"Id of the org","required":true}]},"/organizations/:id/subscription":{"post":{"parameters":[{"name":"Authorization","in":"header"},{"name":"x-routine-token","in":"header"}],"requestBody":{"description":"The price to switch to","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":["null","string"]}}},"required":true},"responses":{"204":{"description":"Confirmation needed.","headers":{"Location":{}}},"204":{"description":"The subscription was changed."},"404":{"description":"The organization or the account does not exist","content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"details":{"title":"Details"},"method":{"anyOf":[{"const":"delete","type":"string"},{"const":"get","type":"string"},{"const":"head","type":"string"},{"const":"options","type":"string"},{"const":"patch","type":"string"},{"const":"post","type":"string"},{"const":"put","type":"string"}],"$anchor":"method","title":"Method","type":"string"},"path":{"title":"Path","type":"string"},"reason":{"title":"Reason","description":"Human readable error.","type":"string"},"report":{"title":"Report","description":"The sentry report id, if any.","type":"string"},"retry_after":{"$anchor":"time","title":"Retry_after","description":"The earliest possible retry, iff the request should be retried","type":"string"}},"$schema":"https://json-schema.org/draft/2020-12/schema","$anchor":"errors_intf","type":"object"}}}},"410":{"description":"The invitation is expired","content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"details":{"title":"Details"},"method":{"anyOf":[{"const":"delete","type":"string"},{"const":"get","type":"string"},{"const":"head","type":"string"},{"const":"options","type":"string"},{"const":"patch","type":"string"},{"const":"post","type":"string"},{"const":"put","type":"string"}],"$anchor":"method","title":"Method","type":"string"},"path":{"title":"Path","type":"string"},"reason":{"title":"Reason","description":"Human readable error.","type":"string"},"report":{"title":"Report","description":"The sentry report id, if any.","type":"string"},"retry_after":{"$anchor":"time","title":"Retry_after","description":"The earliest possible retry, iff the request should be retried","type":"string"}},"$schema":"https://json-schema.org/draft/2020-12/schema","$anchor":"errors_intf","type":"object"}}}}}},"parameters":[{"name":"id","in":"path","description":"Id of the org","required":true}]},"/plans/customer_portal/:id":{"post":{"parameters":[{"name":"Authorization","in":"header"},{"name":"x-routine-token","in":"header"}],"requestBody":{"description":"Parameters for the portal creation","content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"_ignored":{"title":"_ignored","type":"null"}},"$schema":"https://json-schema.org/draft/2020-12/schema","$anchor":"customer_portal_creation","type":"object"}}},"required":true},"responses":{"200":{"description":"Information about the pending subscription","content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"id":{"$anchor":"stripe-bps-id","title":"Id","type":"string"},"customer":{"$anchor":"stripe-cus-id","title":"Customer","type":"string"},"return_url":{"title":"Return_url","type":"string"},"url":{"$anchor":"uri","title":"Url","type":"string"}},"$schema":"https://json-schema.org/draft/2020-12/schema","type":["null","object"]}}}}}},"parameters":[{"name":"id","in":"path","description":"Id of the org","required":true}]},"/push-notification-servers":{"post":{"parameters":[{"name":"Authorization","in":"header"},{"name":"x-routine-token","in":"header"}],"requestBody":{"description":"Push notification server informations","content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"port":{"title":"Port","type":"integer"}},"$schema":"https://json-schema.org/draft/2020-12/schema","$anchor":"register_request","type":"object"}}},"required":true},"responses":{"200":{"description":"Registered server id and token.","content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"id":{"$anchor":"pns-id","title":"Id","type":"string"},"token":{"title":"Token","type":"string"}},"$schema":"https://json-schema.org/draft/2020-12/schema","$anchor":"register_response","type":"object"}}}}}}},"/push-notification-servers/:id":{"put":{"parameters":[{"name":"Authorization","in":"header"},{"name":"x-routine-token","in":"header"}],"responses":{"204":{"description":"Push notification server was refreshed"},"410":{"description":"Push notification server timed out or was never registered"}}},"delete":{"parameters":[{"name":"Authorization","in":"header"},{"name":"x-routine-token","in":"header"}],"responses":{"204":{"description":"Push notification server was unregistered"}}},"parameters":[{"name":"id","in":"path","description":"Id of the pns","required":true}]},"/push-notification-servers/:id/:connection-id":{"put":{"parameters":[{"name":"Authorization","in":"header"},{"name":"x-routine-token","in":"header"}],"responses":{"200":{"description":"Push notification server was registered or refreshed","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"properties":{"notification":{"const":"crdt_notification","type":"string"},"message":{"title":"Message","description":"FIXME: This payload is ignored but still expected by clients up to\n              0.24.0."},"workspace":{"$anchor":"workspace-id","title":"Workspace","type":"string"}},"type":"object"},{"additionalProperties":false,"properties":{"notification":{"const":"synced","type":"string"}},"type":"object"}],"$schema":"https://json-schema.org/draft/2020-12/schema","$anchor":"push_notification","type":"object"}}}},"410":{"description":"The push notification server is expired","content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"details":{"title":"Details"},"method":{"anyOf":[{"const":"delete","type":"string"},{"const":"get","type":"string"},{"const":"head","type":"string"},{"const":"options","type":"string"},{"const":"patch","type":"string"},{"const":"post","type":"string"},{"const":"put","type":"string"}],"$anchor":"method","title":"Method","type":"string"},"path":{"title":"Path","type":"string"},"reason":{"title":"Reason","description":"Human readable error.","type":"string"},"report":{"title":"Report","description":"The sentry report id, if any.","type":"string"},"retry_after":{"$anchor":"time","title":"Retry_after","description":"The earliest possible retry, iff the request should be retried","type":"string"}},"$schema":"https://json-schema.org/draft/2020-12/schema","$anchor":"errors_intf","type":"object"}}}}}},"delete":{"parameters":[{"name":"Authorization","in":"header"},{"name":"x-routine-token","in":"header"}],"responses":{"204":{"description":"Push notification server was unregistered"}}},"parameters":[{"name":"id","in":"path","description":"Id of the pns","required":true},{"name":"connection-id","in":"path","description":"Push notifications connection id","required":true}]},"/tasks":{"get":{"parameters":[{"name":"Authorization","in":"header"},{"name":"x-routine-token","in":"header"}],"responses":{"200":{"description":"The user tasks","content":{"application/json":{"schema":{"items":{"additionalProperties":false,"properties":{"ignored":{"title":"Ignored","description":"The time at which the task was archived/ignored, if it is.","default":null,"type":["null","string"]},"completed":{"title":"Completed","description":"The time at which the task was completed, if it is completed.","default":null,"type":["null","string"]},"extension_row":{"anyOf":[{"type":"null"},{"$anchor":"row-id","type":"string"}],"title":"Extension_row","description":"Optional reference to a row in the task extensions table for\n              custom user-defined fields.","default":null,"type":["null","string"]},"integration_id":{"$anchor":"integration-id","title":"Integration_id","type":"string"},"distant_task_id":{"title":"Distant_task_id","type":"string"},"integration_data":{"title":"Integration_data","default":null,"type":"null"},"occurrence":{"additionalProperties":false,"properties":{"date":{"prefixItems":[{"type":"integer"},{"type":"integer"},{"type":"integer"}],"$anchor":"date","title":"Date","description":"The date this occurrence was spawned for.","type":"array"},"recurrence":{"$anchor":"task-rec-id","title":"Recurrence","description":"The parent task that spawned this occurrence.","type":"string"}},"title":"Occurrence","description":"Recurrence information if this task is an occurrence.","default":null,"type":["null","object"]},"parent":{"additionalProperties":false,"properties":{"kind":{"anyOf":[{"const":"event","type":"string"},{"const":"event-rec","type":"string"},{"const":"page","type":"string"},{"const":"people","type":"string"},{"const":"task","type":"string"},{"const":"task-rec","type":"string"},{"const":"object","type":"string"}],"$anchor":"parent-kind","title":"Kind","type":"string"},"id":{"title":"Id","type":"string"}},"title":"Parent","description":"The potential parent object.","default":null,"type":["null","object"]},"scheduled":{"anyOf":[{"type":"null"},{"additionalProperties":false,"properties":{"year":{"title":"Year","type":"integer"},"n":{"title":"N","type":"integer"}},"$anchor":"week","description":"The task is postponed to a batch","type":"object"},{"$ref":"#date"}],"title":"Scheduled","description":"The date at which the task is scheduled, if it is scheduled.","default":null,"type":["null","object"]},"starred":{"title":"Starred","description":"Whether the task is starred.","default":false,"type":"boolean"},"notes":{"additionalProperties":false,"properties":{"blocks":{"items":{"anyOf":[{"additionalProperties":false,"properties":{"id":{"$anchor":"block-id","title":"Id","type":"string"},"type":{"title":"Type","const":"blockquote","type":"string"},"content":{"title":"Content","type":"string"}}},{"additionalProperties":false,"properties":{"id":{"$anchor":"block-id","title":"Id","type":"string"},"type":{"title":"Type","const":"bullet","type":"string"},"list_type":{"anyOf":[{"const":"ordered","type":"string"},{"const":"unordered","type":"string"}],"$anchor":"block-list-type","title":"List_type","type":"string"},"content":{"title":"Content","type":"string"},"depth":{"title":"Depth","default":0,"type":"integer"}}},{"additionalProperties":false,"properties":{"id":{"$anchor":"block-id","title":"Id","type":"string"},"type":{"title":"Type","const":"check","type":"string"},"checked":{"title":"Checked","type":"boolean"},"content":{"title":"Content","type":"string"},"depth":{"title":"Depth","default":0,"type":"integer"}}},{"additionalProperties":false,"properties":{"id":{"$anchor":"block-id","title":"Id","type":"string"},"type":{"title":"Type","const":"code","type":"string"},"language":{"title":"Language","type":"string"},"content":{"title":"Content","type":"string"}}},{"additionalProperties":false,"properties":{"id":{"$anchor":"block-id","title":"Id","type":"string"},"type":{"title":"Type","const":"callout","type":"string"},"background_color":{"prefixItems":[{"type":"integer"},{"type":"integer"},{"type":"integer"}],"$anchor":"color","title":"Background_color","type":"array"},"content":{"title":"Content","type":"string"},"icon":{"anyOf":[{"additionalProperties":false,"properties":{"kind":{"const":"emoji","type":"string"},"emoji":{"title":"Emoji","type":"string"}},"type":"object"}],"$anchor":"icon","title":"Icon","type":"object"}}},{"additionalProperties":false,"properties":{"id":{"$anchor":"block-id","title":"Id","type":"string"},"type":{"title":"Type","const":"divider","type":"string"}}},{"additionalProperties":false,"properties":{"id":{"$anchor":"block-id","title":"Id","type":"string"},"type":{"title":"Type","const":"embed","type":"string"},"content":{"title":"Content","type":"string"}}},{"additionalProperties":false,"properties":{"id":{"$anchor":"block-id","title":"Id","type":"string"},"type":{"title":"Type","const":"heading","type":"string"},"content":{"title":"Content","type":"string"},"level":{"title":"Level","type":"integer"},"retracted":{"title":"Retracted","default":false,"type":"boolean"}}},{"additionalProperties":false,"properties":{"id":{"$anchor":"block-id","title":"Id","type":"string"},"type":{"title":"Type","const":"object","type":"string"},"referee":{"additionalProperties":false,"properties":{"kind":{"anyOf":[{"const":"event","type":"string"},{"const":"event-rec","type":"string"},{"const":"page","type":"string"},{"const":"people","type":"string"},{"const":"task","type":"string"},{"const":"task-rec","type":"string"},{"const":"object","type":"string"},{"const":"organization","type":"string"},{"const":"table_ref","type":"string"},{"const":"workspace_ref","type":"string"},{"const":"agent","type":"string"},{"const":"automation","type":"string"},{"const":"conversation","type":"string"},{"const":"automation_run","type":"string"}],"$anchor":"reference-kind","title":"Kind","type":"string"},"id":{"title":"Id","type":"string"}},"$anchor":"reference-id","title":"Referee","type":"object"}}},{"additionalProperties":false,"properties":{"id":{"$anchor":"block-id","title":"Id","type":"string"},"type":{"title":"Type","const":"object","type":"string"},"workspace_id":{"$anchor":"workspace-id","title":"Workspace_id","type":"string"},"table_id":{"$anchor":"table-id","title":"Table_id","type":"string"},"row_id":{"$ref":"#row-id","title":"Row_id"}}},{"additionalProperties":false,"properties":{"id":{"$anchor":"block-id","title":"Id","type":"string"},"type":{"title":"Type","const":"paragraph","type":"string"},"content":{"title":"Content","type":"string"}}},{"additionalProperties":false,"properties":{"id":{"$anchor":"block-id","title":"Id","type":"string"},"type":{"title":"Type","const":"query","type":"string"},"content":{"title":"Content","type":"string"}}},{"additionalProperties":false,"properties":{"id":{"$anchor":"block-id","title":"Id","type":"string"},"type":{"title":"Type","const":"recurrent_task","type":"string"},"recurrent_task_id":{"$ref":"#task-rec-id","title":"Recurrent_task_id"},"content":{"title":"Content","type":"string"},"recurrence":{"anyOf":[{"additionalProperties":false,"properties":{"start":{"$ref":"#date","title":"Start"},"count":{"title":"Count","type":"integer"},"rule":{"anyOf":[{"additionalProperties":false,"properties":{"every":{"const":"day","type":"string"},"period":{"title":"Period","default":1,"type":"integer"}},"type":"object"},{"additionalProperties":false,"properties":{"every":{"const":"month","type":"string"},"period":{"title":"Period","default":1,"type":"integer"},"day":{"anyOf":[{"type":"integer"},{"prefixItems":[{"anyOf":[{"const":"monday","type":"string"},{"const":"tuesday","type":"string"},{"const":"wednesday","type":"string"},{"const":"thursday","type":"string"},{"const":"friday","type":"string"},{"const":"saturday","type":"string"},{"const":"sunday","type":"string"}],"$anchor":"weekday","type":"string"},{"type":"integer"}],"type":"array"}],"$anchor":"month_day","title":"Day","type":["array","integer"]}},"type":"object"},{"additionalProperties":false,"properties":{"every":{"const":"week","type":"string"},"period":{"title":"Period","default":1,"type":"integer"},"weekdays":{"additionalProperties":false,"properties":{"monday":{"title":"Monday","default":false,"type":"boolean"},"tuesday":{"title":"Tuesday","default":false,"type":"boolean"},"wednesday":{"title":"Wednesday","default":false,"type":"boolean"},"thursday":{"title":"Thursday","default":false,"type":"boolean"},"friday":{"title":"Friday","default":false,"type":"boolean"},"saturday":{"title":"Saturday","default":false,"type":"boolean"},"sunday":{"title":"Sunday","default":false,"type":"boolean"}},"$anchor":"weekdays","title":"Weekdays","type":"object"},"weekstart":{"$ref":"#weekday","title":"Weekstart","default":"monday"}},"type":"object"},{"additionalProperties":false,"properties":{"every":{"const":"workday","type":"string"},"period":{"title":"Period","default":1,"type":"integer"}},"type":"object"},{"additionalProperties":false,"properties":{"every":{"const":"year","type":"string"},"period":{"title":"Period","default":1,"type":"integer"},"day":{"title":"Day","type":"integer"},"month":{"anyOf":[{"const":"january","type":"string"},{"const":"february","type":"string"},{"const":"march","type":"string"},{"const":"april","type":"string"},{"const":"may","type":"string"},{"const":"june","type":"string"},{"const":"july","type":"string"},{"const":"august","type":"string"},{"const":"september","type":"string"},{"const":"october","type":"string"},{"const":"november","type":"string"},{"const":"december","type":"string"}],"$anchor":"month","title":"Month","type":"string"}},"type":"object"}],"$anchor":"rule","title":"Rule","type":"object"}}},{"additionalProperties":false,"properties":{"end":{"$ref":"#date","title":"End"},"start":{"$ref":"#date","title":"Start"},"rule":{"anyOf":[{"additionalProperties":false,"properties":{"every":{"const":"day","type":"string"},"period":{"title":"Period","default":1,"type":"integer"}},"type":"object"},{"additionalProperties":false,"properties":{"every":{"const":"month","type":"string"},"period":{"title":"Period","default":1,"type":"integer"},"day":{"anyOf":[{"type":"integer"},{"prefixItems":[{"anyOf":[{"const":"monday","type":"string"},{"const":"tuesday","type":"string"},{"const":"wednesday","type":"string"},{"const":"thursday","type":"string"},{"const":"friday","type":"string"},{"const":"saturday","type":"string"},{"const":"sunday","type":"string"}],"$anchor":"weekday","type":"string"},{"type":"integer"}],"type":"array"}],"$anchor":"month_day","title":"Day","type":["array","integer"]}},"type":"object"},{"additionalProperties":false,"properties":{"every":{"const":"week","type":"string"},"period":{"title":"Period","default":1,"type":"integer"},"weekdays":{"additionalProperties":false,"properties":{"monday":{"title":"Monday","default":false,"type":"boolean"},"tuesday":{"title":"Tuesday","default":false,"type":"boolean"},"wednesday":{"title":"Wednesday","default":false,"type":"boolean"},"thursday":{"title":"Thursday","default":false,"type":"boolean"},"friday":{"title":"Friday","default":false,"type":"boolean"},"saturday":{"title":"Saturday","default":false,"type":"boolean"},"sunday":{"title":"Sunday","default":false,"type":"boolean"}},"$anchor":"weekdays","title":"Weekdays","type":"object"},"weekstart":{"$ref":"#weekday","title":"Weekstart","default":"monday"}},"type":"object"},{"additionalProperties":false,"properties":{"every":{"const":"workday","type":"string"},"period":{"title":"Period","default":1,"type":"integer"}},"type":"object"},{"additionalProperties":false,"properties":{"every":{"const":"year","type":"string"},"period":{"title":"Period","default":1,"type":"integer"},"day":{"title":"Day","type":"integer"},"month":{"anyOf":[{"const":"january","type":"string"},{"const":"february","type":"string"},{"const":"march","type":"string"},{"const":"april","type":"string"},{"const":"may","type":"string"},{"const":"june","type":"string"},{"const":"july","type":"string"},{"const":"august","type":"string"},{"const":"september","type":"string"},{"const":"october","type":"string"},{"const":"november","type":"string"},{"const":"december","type":"string"}],"$anchor":"month","title":"Month","type":"string"}},"type":"object"}],"$anchor":"rule","title":"Rule","type":"object"}}}],"$anchor":"recurrence","title":"Recurrence","type":"object"}}},{"additionalProperties":false,"properties":{"id":{"$anchor":"block-id","title":"Id","type":"string"},"type":{"title":"Type","const":"todo","type":"string"},"checked":{"title":"Checked","description":"true if the task has been completed","type":"boolean"},"content":{"title":"Content","description":"title of the task","type":"string"},"task":{"$anchor":"task-id","title":"Task","description":"ID of the task - should be null for a new todo block. Old documents\n            hold a plain google task id in this field so we need to accept\n            broader values","type":"string"}}}],"$anchor":"block","type":"object"},"title":"Blocks","type":"array"}},"$anchor":"document","title":"Notes","description":"The task notes.","default":{"blocks":[]},"type":"object"},"title":{"title":"Title","description":"The task title.","type":"string"},"url":{"title":"Url","description":"The potential capture context.","default":null,"type":["null","string"]}},"$anchor":"task-read","description":"Task editable fields.","type":"object"},"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array"}}}}}}},"/tasks/:id":{"put":{"parameters":[{"name":"Authorization","in":"header"},{"name":"x-routine-token","in":"header"}],"requestBody":{"description":"The task","content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"ignored":{"title":"Ignored","description":"The time at which the task was archived/ignored, if it is.","default":null,"type":["null","string"]},"completed":{"title":"Completed","description":"The time at which the task was completed, if it is completed.","default":null,"type":["null","string"]},"extension_row":{"anyOf":[{"type":"null"},{"$anchor":"row-id","type":"string"}],"title":"Extension_row","description":"Optional reference to a row in the task extensions table for\n              custom user-defined fields.","default":null,"type":["null","string"]},"integration_id":{"$anchor":"integration-id","title":"Integration_id","type":"string"},"distant_task_id":{"title":"Distant_task_id","type":"string"},"integration_data":{"title":"Integration_data","default":null,"type":"null"},"occurrence":{"additionalProperties":false,"properties":{"date":{"prefixItems":[{"type":"integer"},{"type":"integer"},{"type":"integer"}],"$anchor":"date","title":"Date","description":"The date this occurrence was spawned for.","type":"array"},"recurrence":{"$anchor":"task-rec-id","title":"Recurrence","description":"The parent task that spawned this occurrence.","type":"string"}},"title":"Occurrence","description":"Recurrence information if this task is an occurrence.","default":null,"type":["null","object"]},"parent":{"additionalProperties":false,"properties":{"kind":{"anyOf":[{"const":"event","type":"string"},{"const":"event-rec","type":"string"},{"const":"page","type":"string"},{"const":"people","type":"string"},{"const":"task","type":"string"},{"const":"task-rec","type":"string"},{"const":"object","type":"string"}],"$anchor":"parent-kind","title":"Kind","type":"string"},"id":{"title":"Id","type":"string"}},"title":"Parent","description":"The potential parent object.","default":null,"type":["null","object"]},"scheduled":{"anyOf":[{"type":"null"},{"additionalProperties":false,"properties":{"year":{"title":"Year","type":"integer"},"n":{"title":"N","type":"integer"}},"$anchor":"week","description":"The task is postponed to a batch","type":"object"},{"$ref":"#date"}],"title":"Scheduled","description":"The date at which the task is scheduled, if it is scheduled.","default":null,"type":["null","object"]},"starred":{"title":"Starred","description":"Whether the task is starred.","default":false,"type":"boolean"},"notes":{"additionalProperties":false,"properties":{"blocks":{"items":{"anyOf":[{"additionalProperties":false,"properties":{"id":{"$anchor":"block-id","title":"Id","type":"string"},"type":{"title":"Type","const":"blockquote","type":"string"},"content":{"title":"Content","type":"string"}}},{"additionalProperties":false,"properties":{"id":{"$anchor":"block-id","title":"Id","type":"string"},"type":{"title":"Type","const":"bullet","type":"string"},"list_type":{"anyOf":[{"const":"ordered","type":"string"},{"const":"unordered","type":"string"}],"$anchor":"block-list-type","title":"List_type","type":"string"},"content":{"title":"Content","type":"string"},"depth":{"title":"Depth","default":0,"type":"integer"}}},{"additionalProperties":false,"properties":{"id":{"$anchor":"block-id","title":"Id","type":"string"},"type":{"title":"Type","const":"check","type":"string"},"checked":{"title":"Checked","type":"boolean"},"content":{"title":"Content","type":"string"},"depth":{"title":"Depth","default":0,"type":"integer"}}},{"additionalProperties":false,"properties":{"id":{"$anchor":"block-id","title":"Id","type":"string"},"type":{"title":"Type","const":"code","type":"string"},"language":{"title":"Language","type":"string"},"content":{"title":"Content","type":"string"}}},{"additionalProperties":false,"properties":{"id":{"$anchor":"block-id","title":"Id","type":"string"},"type":{"title":"Type","const":"callout","type":"string"},"background_color":{"prefixItems":[{"type":"integer"},{"type":"integer"},{"type":"integer"}],"$anchor":"color","title":"Background_color","type":"array"},"content":{"title":"Content","type":"string"},"icon":{"anyOf":[{"additionalProperties":false,"properties":{"kind":{"const":"emoji","type":"string"},"emoji":{"title":"Emoji","type":"string"}},"type":"object"}],"$anchor":"icon","title":"Icon","type":"object"}}},{"additionalProperties":false,"properties":{"id":{"$anchor":"block-id","title":"Id","type":"string"},"type":{"title":"Type","const":"divider","type":"string"}}},{"additionalProperties":false,"properties":{"id":{"$anchor":"block-id","title":"Id","type":"string"},"type":{"title":"Type","const":"embed","type":"string"},"content":{"title":"Content","type":"string"}}},{"additionalProperties":false,"properties":{"id":{"$anchor":"block-id","title":"Id","type":"string"},"type":{"title":"Type","const":"heading","type":"string"},"content":{"title":"Content","type":"string"},"level":{"title":"Level","type":"integer"},"retracted":{"title":"Retracted","default":false,"type":"boolean"}}},{"additionalProperties":false,"properties":{"id":{"$anchor":"block-id","title":"Id","type":"string"},"type":{"title":"Type","const":"object","type":"string"},"referee":{"additionalProperties":false,"properties":{"kind":{"anyOf":[{"const":"event","type":"string"},{"const":"event-rec","type":"string"},{"const":"page","type":"string"},{"const":"people","type":"string"},{"const":"task","type":"string"},{"const":"task-rec","type":"string"},{"const":"object","type":"string"},{"const":"organization","type":"string"},{"const":"table_ref","type":"string"},{"const":"workspace_ref","type":"string"},{"const":"agent","type":"string"},{"const":"automation","type":"string"},{"const":"conversation","type":"string"},{"const":"automation_run","type":"string"}],"$anchor":"reference-kind","title":"Kind","type":"string"},"id":{"title":"Id","type":"string"}},"$anchor":"reference-id","title":"Referee","type":"object"}}},{"additionalProperties":false,"properties":{"id":{"$anchor":"block-id","title":"Id","type":"string"},"type":{"title":"Type","const":"object","type":"string"},"workspace_id":{"$anchor":"workspace-id","title":"Workspace_id","type":"string"},"table_id":{"$anchor":"table-id","title":"Table_id","type":"string"},"row_id":{"$ref":"#row-id","title":"Row_id"}}},{"additionalProperties":false,"properties":{"id":{"$anchor":"block-id","title":"Id","type":"string"},"type":{"title":"Type","const":"paragraph","type":"string"},"content":{"title":"Content","type":"string"}}},{"additionalProperties":false,"properties":{"id":{"$anchor":"block-id","title":"Id","type":"string"},"type":{"title":"Type","const":"query","type":"string"},"content":{"title":"Content","type":"string"}}},{"additionalProperties":false,"properties":{"id":{"$anchor":"block-id","title":"Id","type":"string"},"type":{"title":"Type","const":"recurrent_task","type":"string"},"recurrent_task_id":{"$ref":"#task-rec-id","title":"Recurrent_task_id"},"content":{"title":"Content","type":"string"},"recurrence":{"anyOf":[{"additionalProperties":false,"properties":{"start":{"$ref":"#date","title":"Start"},"count":{"title":"Count","type":"integer"},"rule":{"anyOf":[{"additionalProperties":false,"properties":{"every":{"const":"day","type":"string"},"period":{"title":"Period","default":1,"type":"integer"}},"type":"object"},{"additionalProperties":false,"properties":{"every":{"const":"month","type":"string"},"period":{"title":"Period","default":1,"type":"integer"},"day":{"anyOf":[{"type":"integer"},{"prefixItems":[{"anyOf":[{"const":"monday","type":"string"},{"const":"tuesday","type":"string"},{"const":"wednesday","type":"string"},{"const":"thursday","type":"string"},{"const":"friday","type":"string"},{"const":"saturday","type":"string"},{"const":"sunday","type":"string"}],"$anchor":"weekday","type":"string"},{"type":"integer"}],"type":"array"}],"$anchor":"month_day","title":"Day","type":["array","integer"]}},"type":"object"},{"additionalProperties":false,"properties":{"every":{"const":"week","type":"string"},"period":{"title":"Period","default":1,"type":"integer"},"weekdays":{"additionalProperties":false,"properties":{"monday":{"title":"Monday","default":false,"type":"boolean"},"tuesday":{"title":"Tuesday","default":false,"type":"boolean"},"wednesday":{"title":"Wednesday","default":false,"type":"boolean"},"thursday":{"title":"Thursday","default":false,"type":"boolean"},"friday":{"title":"Friday","default":false,"type":"boolean"},"saturday":{"title":"Saturday","default":false,"type":"boolean"},"sunday":{"title":"Sunday","default":false,"type":"boolean"}},"$anchor":"weekdays","title":"Weekdays","type":"object"},"weekstart":{"$ref":"#weekday","title":"Weekstart","default":"monday"}},"type":"object"},{"additionalProperties":false,"properties":{"every":{"const":"workday","type":"string"},"period":{"title":"Period","default":1,"type":"integer"}},"type":"object"},{"additionalProperties":false,"properties":{"every":{"const":"year","type":"string"},"period":{"title":"Period","default":1,"type":"integer"},"day":{"title":"Day","type":"integer"},"month":{"anyOf":[{"const":"january","type":"string"},{"const":"february","type":"string"},{"const":"march","type":"string"},{"const":"april","type":"string"},{"const":"may","type":"string"},{"const":"june","type":"string"},{"const":"july","type":"string"},{"const":"august","type":"string"},{"const":"september","type":"string"},{"const":"october","type":"string"},{"const":"november","type":"string"},{"const":"december","type":"string"}],"$anchor":"month","title":"Month","type":"string"}},"type":"object"}],"$anchor":"rule","title":"Rule","type":"object"}}},{"additionalProperties":false,"properties":{"end":{"$ref":"#date","title":"End"},"start":{"$ref":"#date","title":"Start"},"rule":{"anyOf":[{"additionalProperties":false,"properties":{"every":{"const":"day","type":"string"},"period":{"title":"Period","default":1,"type":"integer"}},"type":"object"},{"additionalProperties":false,"properties":{"every":{"const":"month","type":"string"},"period":{"title":"Period","default":1,"type":"integer"},"day":{"anyOf":[{"type":"integer"},{"prefixItems":[{"anyOf":[{"const":"monday","type":"string"},{"const":"tuesday","type":"string"},{"const":"wednesday","type":"string"},{"const":"thursday","type":"string"},{"const":"friday","type":"string"},{"const":"saturday","type":"string"},{"const":"sunday","type":"string"}],"$anchor":"weekday","type":"string"},{"type":"integer"}],"type":"array"}],"$anchor":"month_day","title":"Day","type":["array","integer"]}},"type":"object"},{"additionalProperties":false,"properties":{"every":{"const":"week","type":"string"},"period":{"title":"Period","default":1,"type":"integer"},"weekdays":{"additionalProperties":false,"properties":{"monday":{"title":"Monday","default":false,"type":"boolean"},"tuesday":{"title":"Tuesday","default":false,"type":"boolean"},"wednesday":{"title":"Wednesday","default":false,"type":"boolean"},"thursday":{"title":"Thursday","default":false,"type":"boolean"},"friday":{"title":"Friday","default":false,"type":"boolean"},"saturday":{"title":"Saturday","default":false,"type":"boolean"},"sunday":{"title":"Sunday","default":false,"type":"boolean"}},"$anchor":"weekdays","title":"Weekdays","type":"object"},"weekstart":{"$ref":"#weekday","title":"Weekstart","default":"monday"}},"type":"object"},{"additionalProperties":false,"properties":{"every":{"const":"workday","type":"string"},"period":{"title":"Period","default":1,"type":"integer"}},"type":"object"},{"additionalProperties":false,"properties":{"every":{"const":"year","type":"string"},"period":{"title":"Period","default":1,"type":"integer"},"day":{"title":"Day","type":"integer"},"month":{"anyOf":[{"const":"january","type":"string"},{"const":"february","type":"string"},{"const":"march","type":"string"},{"const":"april","type":"string"},{"const":"may","type":"string"},{"const":"june","type":"string"},{"const":"july","type":"string"},{"const":"august","type":"string"},{"const":"september","type":"string"},{"const":"october","type":"string"},{"const":"november","type":"string"},{"const":"december","type":"string"}],"$anchor":"month","title":"Month","type":"string"}},"type":"object"}],"$anchor":"rule","title":"Rule","type":"object"}}}],"$anchor":"recurrence","title":"Recurrence","type":"object"}}},{"additionalProperties":false,"properties":{"id":{"$anchor":"block-id","title":"Id","type":"string"},"type":{"title":"Type","const":"todo","type":"string"},"checked":{"title":"Checked","description":"true if the task has been completed","type":"boolean"},"content":{"title":"Content","description":"title of the task","type":"string"},"task":{"$anchor":"task-id","title":"Task","description":"ID of the task - should be null for a new todo block. Old documents\n            hold a plain google task id in this field so we need to accept\n            broader values","type":"string"}}}],"$anchor":"block","type":"object"},"title":"Blocks","type":"array"}},"$anchor":"document","title":"Notes","description":"The task notes.","default":{"blocks":[]},"type":"object"},"title":{"title":"Title","description":"The task title.","type":"string"},"url":{"title":"Url","description":"The potential capture context.","default":null,"type":["null","string"]}},"$schema":"https://json-schema.org/draft/2020-12/schema","$anchor":"task-read","description":"Task editable fields.","type":"object"}}},"required":true},"responses":{"200":{"description":"The upserted task","content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"allocations":{"items":{"$anchor":"event-id","type":"string"},"title":"Allocations","default":[],"type":"array"},"client":{"title":"Client","default":null,"type":["null","string"]},"created":{"$anchor":"time","title":"Created","type":"string"},"deleted":{"$ref":"#time","title":"Deleted"},"etag":{"additionalProperties":false,"properties":{"time":{"$ref":"#time","title":"Time"},"version":{"title":"Version","type":"integer"}},"$anchor":"etag_intf","title":"Etag","type":"object"},"id":{"$anchor":"task-id","title":"Id","type":"string"},"ignored":{"title":"Ignored","description":"The time at which the task was archived/ignored, if it is.","default":null,"type":["null","string"]},"completed":{"title":"Completed","description":"The time at which the task was completed, if it is completed.","default":null,"type":["null","string"]},"extension_row":{"anyOf":[{"type":"null"},{"$anchor":"row-id","type":"string"}],"title":"Extension_row","description":"Optional reference to a row in the task extensions table for\n              custom user-defined fields.","default":null,"type":["null","string"]},"integration_id":{"$anchor":"integration-id","title":"Integration_id","type":"string"},"distant_task_id":{"title":"Distant_task_id","type":"string"},"integration_data":{"title":"Integration_data","default":null,"type":"null"},"occurrence":{"additionalProperties":false,"properties":{"date":{"prefixItems":[{"type":"integer"},{"type":"integer"},{"type":"integer"}],"$anchor":"date","title":"Date","description":"The date this occurrence was spawned for.","type":"array"},"recurrence":{"$anchor":"task-rec-id","title":"Recurrence","description":"The parent task that spawned this occurrence.","type":"string"}},"title":"Occurrence","description":"Recurrence information if this task is an occurrence.","default":null,"type":["null","object"]},"parent":{"additionalProperties":false,"properties":{"kind":{"anyOf":[{"const":"event","type":"string"},{"const":"event-rec","type":"string"},{"const":"page","type":"string"},{"const":"people","type":"string"},{"const":"task","type":"string"},{"const":"task-rec","type":"string"},{"const":"object","type":"string"}],"$anchor":"parent-kind","title":"Kind","type":"string"},"id":{"title":"Id","type":"string"}},"title":"Parent","description":"The potential parent object.","default":null,"type":["null","object"]},"scheduled":{"anyOf":[{"type":"null"},{"additionalProperties":false,"properties":{"year":{"title":"Year","type":"integer"},"n":{"title":"N","type":"integer"}},"$anchor":"week","description":"The task is postponed to a batch","type":"object"},{"$ref":"#date"}],"title":"Scheduled","description":"The date at which the task is scheduled, if it is scheduled.","default":null,"type":["null","object"]},"starred":{"title":"Starred","description":"Whether the task is starred.","default":false,"type":"boolean"},"notes":{"additionalProperties":false,"properties":{"blocks":{"items":{"anyOf":[{"additionalProperties":false,"properties":{"id":{"$anchor":"block-id","title":"Id","type":"string"},"type":{"title":"Type","const":"blockquote","type":"string"},"content":{"title":"Content","type":"string"}}},{"additionalProperties":false,"properties":{"id":{"$anchor":"block-id","title":"Id","type":"string"},"type":{"title":"Type","const":"bullet","type":"string"},"list_type":{"anyOf":[{"const":"ordered","type":"string"},{"const":"unordered","type":"string"}],"$anchor":"block-list-type","title":"List_type","type":"string"},"content":{"title":"Content","type":"string"},"depth":{"title":"Depth","default":0,"type":"integer"}}},{"additionalProperties":false,"properties":{"id":{"$anchor":"block-id","title":"Id","type":"string"},"type":{"title":"Type","const":"check","type":"string"},"checked":{"title":"Checked","type":"boolean"},"content":{"title":"Content","type":"string"},"depth":{"title":"Depth","default":0,"type":"integer"}}},{"additionalProperties":false,"properties":{"id":{"$anchor":"block-id","title":"Id","type":"string"},"type":{"title":"Type","const":"code","type":"string"},"language":{"title":"Language","type":"string"},"content":{"title":"Content","type":"string"}}},{"additionalProperties":false,"properties":{"id":{"$anchor":"block-id","title":"Id","type":"string"},"type":{"title":"Type","const":"callout","type":"string"},"background_color":{"prefixItems":[{"type":"integer"},{"type":"integer"},{"type":"integer"}],"$anchor":"color","title":"Background_color","type":"array"},"content":{"title":"Content","type":"string"},"icon":{"anyOf":[{"additionalProperties":false,"properties":{"kind":{"const":"emoji","type":"string"},"emoji":{"title":"Emoji","type":"string"}},"type":"object"}],"$anchor":"icon","title":"Icon","type":"object"}}},{"additionalProperties":false,"properties":{"id":{"$anchor":"block-id","title":"Id","type":"string"},"type":{"title":"Type","const":"divider","type":"string"}}},{"additionalProperties":false,"properties":{"id":{"$anchor":"block-id","title":"Id","type":"string"},"type":{"title":"Type","const":"embed","type":"string"},"content":{"title":"Content","type":"string"}}},{"additionalProperties":false,"properties":{"id":{"$anchor":"block-id","title":"Id","type":"string"},"type":{"title":"Type","const":"heading","type":"string"},"content":{"title":"Content","type":"string"},"level":{"title":"Level","type":"integer"},"retracted":{"title":"Retracted","default":false,"type":"boolean"}}},{"additionalProperties":false,"properties":{"id":{"$anchor":"block-id","title":"Id","type":"string"},"type":{"title":"Type","const":"object","type":"string"},"referee":{"additionalProperties":false,"properties":{"kind":{"anyOf":[{"const":"event","type":"string"},{"const":"event-rec","type":"string"},{"const":"page","type":"string"},{"const":"people","type":"string"},{"const":"task","type":"string"},{"const":"task-rec","type":"string"},{"const":"object","type":"string"},{"const":"organization","type":"string"},{"const":"table_ref","type":"string"},{"const":"workspace_ref","type":"string"},{"const":"agent","type":"string"},{"const":"automation","type":"string"},{"const":"conversation","type":"string"},{"const":"automation_run","type":"string"}],"$anchor":"reference-kind","title":"Kind","type":"string"},"id":{"title":"Id","type":"string"}},"$anchor":"reference-id","title":"Referee","type":"object"}}},{"additionalProperties":false,"properties":{"id":{"$anchor":"block-id","title":"Id","type":"string"},"type":{"title":"Type","const":"object","type":"string"},"workspace_id":{"$anchor":"workspace-id","title":"Workspace_id","type":"string"},"table_id":{"$anchor":"table-id","title":"Table_id","type":"string"},"row_id":{"$ref":"#row-id","title":"Row_id"}}},{"additionalProperties":false,"properties":{"id":{"$anchor":"block-id","title":"Id","type":"string"},"type":{"title":"Type","const":"paragraph","type":"string"},"content":{"title":"Content","type":"string"}}},{"additionalProperties":false,"properties":{"id":{"$anchor":"block-id","title":"Id","type":"string"},"type":{"title":"Type","const":"query","type":"string"},"content":{"title":"Content","type":"string"}}},{"additionalProperties":false,"properties":{"id":{"$anchor":"block-id","title":"Id","type":"string"},"type":{"title":"Type","const":"recurrent_task","type":"string"},"recurrent_task_id":{"$ref":"#task-rec-id","title":"Recurrent_task_id"},"content":{"title":"Content","type":"string"},"recurrence":{"anyOf":[{"additionalProperties":false,"properties":{"start":{"$ref":"#date","title":"Start"},"count":{"title":"Count","type":"integer"},"rule":{"anyOf":[{"additionalProperties":false,"properties":{"every":{"const":"day","type":"string"},"period":{"title":"Period","default":1,"type":"integer"}},"type":"object"},{"additionalProperties":false,"properties":{"every":{"const":"month","type":"string"},"period":{"title":"Period","default":1,"type":"integer"},"day":{"anyOf":[{"type":"integer"},{"prefixItems":[{"anyOf":[{"const":"monday","type":"string"},{"const":"tuesday","type":"string"},{"const":"wednesday","type":"string"},{"const":"thursday","type":"string"},{"const":"friday","type":"string"},{"const":"saturday","type":"string"},{"const":"sunday","type":"string"}],"$anchor":"weekday","type":"string"},{"type":"integer"}],"type":"array"}],"$anchor":"month_day","title":"Day","type":["array","integer"]}},"type":"object"},{"additionalProperties":false,"properties":{"every":{"const":"week","type":"string"},"period":{"title":"Period","default":1,"type":"integer"},"weekdays":{"additionalProperties":false,"properties":{"monday":{"title":"Monday","default":false,"type":"boolean"},"tuesday":{"title":"Tuesday","default":false,"type":"boolean"},"wednesday":{"title":"Wednesday","default":false,"type":"boolean"},"thursday":{"title":"Thursday","default":false,"type":"boolean"},"friday":{"title":"Friday","default":false,"type":"boolean"},"saturday":{"title":"Saturday","default":false,"type":"boolean"},"sunday":{"title":"Sunday","default":false,"type":"boolean"}},"$anchor":"weekdays","title":"Weekdays","type":"object"},"weekstart":{"$ref":"#weekday","title":"Weekstart","default":"monday"}},"type":"object"},{"additionalProperties":false,"properties":{"every":{"const":"workday","type":"string"},"period":{"title":"Period","default":1,"type":"integer"}},"type":"object"},{"additionalProperties":false,"properties":{"every":{"const":"year","type":"string"},"period":{"title":"Period","default":1,"type":"integer"},"day":{"title":"Day","type":"integer"},"month":{"anyOf":[{"const":"january","type":"string"},{"const":"february","type":"string"},{"const":"march","type":"string"},{"const":"april","type":"string"},{"const":"may","type":"string"},{"const":"june","type":"string"},{"const":"july","type":"string"},{"const":"august","type":"string"},{"const":"september","type":"string"},{"const":"october","type":"string"},{"const":"november","type":"string"},{"const":"december","type":"string"}],"$anchor":"month","title":"Month","type":"string"}},"type":"object"}],"$anchor":"rule","title":"Rule","type":"object"}}},{"additionalProperties":false,"properties":{"end":{"$ref":"#date","title":"End"},"start":{"$ref":"#date","title":"Start"},"rule":{"anyOf":[{"additionalProperties":false,"properties":{"every":{"const":"day","type":"string"},"period":{"title":"Period","default":1,"type":"integer"}},"type":"object"},{"additionalProperties":false,"properties":{"every":{"const":"month","type":"string"},"period":{"title":"Period","default":1,"type":"integer"},"day":{"anyOf":[{"type":"integer"},{"prefixItems":[{"anyOf":[{"const":"monday","type":"string"},{"const":"tuesday","type":"string"},{"const":"wednesday","type":"string"},{"const":"thursday","type":"string"},{"const":"friday","type":"string"},{"const":"saturday","type":"string"},{"const":"sunday","type":"string"}],"$anchor":"weekday","type":"string"},{"type":"integer"}],"type":"array"}],"$anchor":"month_day","title":"Day","type":["array","integer"]}},"type":"object"},{"additionalProperties":false,"properties":{"every":{"const":"week","type":"string"},"period":{"title":"Period","default":1,"type":"integer"},"weekdays":{"additionalProperties":false,"properties":{"monday":{"title":"Monday","default":false,"type":"boolean"},"tuesday":{"title":"Tuesday","default":false,"type":"boolean"},"wednesday":{"title":"Wednesday","default":false,"type":"boolean"},"thursday":{"title":"Thursday","default":false,"type":"boolean"},"friday":{"title":"Friday","default":false,"type":"boolean"},"saturday":{"title":"Saturday","default":false,"type":"boolean"},"sunday":{"title":"Sunday","default":false,"type":"boolean"}},"$anchor":"weekdays","title":"Weekdays","type":"object"},"weekstart":{"$ref":"#weekday","title":"Weekstart","default":"monday"}},"type":"object"},{"additionalProperties":false,"properties":{"every":{"const":"workday","type":"string"},"period":{"title":"Period","default":1,"type":"integer"}},"type":"object"},{"additionalProperties":false,"properties":{"every":{"const":"year","type":"string"},"period":{"title":"Period","default":1,"type":"integer"},"day":{"title":"Day","type":"integer"},"month":{"anyOf":[{"const":"january","type":"string"},{"const":"february","type":"string"},{"const":"march","type":"string"},{"const":"april","type":"string"},{"const":"may","type":"string"},{"const":"june","type":"string"},{"const":"july","type":"string"},{"const":"august","type":"string"},{"const":"september","type":"string"},{"const":"october","type":"string"},{"const":"november","type":"string"},{"const":"december","type":"string"}],"$anchor":"month","title":"Month","type":"string"}},"type":"object"}],"$anchor":"rule","title":"Rule","type":"object"}}}],"$anchor":"recurrence","title":"Recurrence","type":"object"}}},{"additionalProperties":false,"properties":{"id":{"$anchor":"block-id","title":"Id","type":"string"},"type":{"title":"Type","const":"todo","type":"string"},"checked":{"title":"Checked","description":"true if the task has been completed","type":"boolean"},"content":{"title":"Content","description":"title of the task","type":"string"},"task":{"$ref":"#task-id","title":"Task","description":"ID of the task - should be null for a new todo block. Old documents\n            hold a plain google task id in this field so we need to accept\n            broader values"}}}],"$anchor":"block","type":"object"},"title":"Blocks","type":"array"}},"$anchor":"document","title":"Notes","description":"The task notes.","default":{"blocks":[]},"type":"object"},"title":{"title":"Title","description":"The task title.","type":"string"},"url":{"title":"Url","description":"The potential capture context.","default":null,"type":["null","string"]}},"$schema":"https://json-schema.org/draft/2020-12/schema","$anchor":"task","description":"A task.","type":"object"}}}}}},"parameters":[{"name":"id","in":"path","description":"Id of the task","required":true}]},"/workspaces/:id":{"get":{"parameters":[{"name":"Authorization","in":"header"},{"name":"x-routine-token","in":"header"}],"responses":{"200":{"description":"The current workspace","content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"created":{"$anchor":"time","title":"Created","type":"string"},"id":{"$anchor":"workspace-id","title":"Id","type":"string"},"owner":{"$anchor":"org-id","title":"Owner","type":"string"},"name":{"title":"Name","type":"string"},"cookie":{"title":"Cookie","type":"string"},"default":{"title":"Default","type":"boolean"}},"$schema":"https://json-schema.org/draft/2020-12/schema","$anchor":"workspace","type":"object"}}}},"404":{"description":"The workspace does not exist","content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"details":{"title":"Details"},"method":{"anyOf":[{"const":"delete","type":"string"},{"const":"get","type":"string"},{"const":"head","type":"string"},{"const":"options","type":"string"},{"const":"patch","type":"string"},{"const":"post","type":"string"},{"const":"put","type":"string"}],"$anchor":"method","title":"Method","type":"string"},"path":{"title":"Path","type":"string"},"reason":{"title":"Reason","description":"Human readable error.","type":"string"},"report":{"title":"Report","description":"The sentry report id, if any.","type":"string"},"retry_after":{"$anchor":"time","title":"Retry_after","description":"The earliest possible retry, iff the request should be retried","type":"string"}},"$schema":"https://json-schema.org/draft/2020-12/schema","$anchor":"errors_intf","type":"object"}}}}}},"parameters":[{"name":"id","in":"path","description":"Id of the workspace","required":true}]},"/workspaces/:id/attachments/upload/:filename":{"put":{"parameters":[{"name":"X-Routine-Version","in":"header","description":"Routine client version"},{"name":"Authorization","in":"header"},{"name":"x-routine-token","in":"header"},{"name":"Content-Type","in":"header","required":true}],"responses":{"204":{"description":"Redirection to the actual upload URL.","headers":{"Location":{}}},"303":{"description":"Redirection to the actual upload URL.","headers":{"Location":{}}},"404":{"description":"The workspace does not exist","content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"details":{"title":"Details"},"method":{"anyOf":[{"const":"delete","type":"string"},{"const":"get","type":"string"},{"const":"head","type":"string"},{"const":"options","type":"string"},{"const":"patch","type":"string"},{"const":"post","type":"string"},{"const":"put","type":"string"}],"$anchor":"method","title":"Method","type":"string"},"path":{"title":"Path","type":"string"},"reason":{"title":"Reason","description":"Human readable error.","type":"string"},"report":{"title":"Report","description":"The sentry report id, if any.","type":"string"},"retry_after":{"$anchor":"time","title":"Retry_after","description":"The earliest possible retry, iff the request should be retried","type":"string"}},"$schema":"https://json-schema.org/draft/2020-12/schema","$anchor":"errors_intf","type":"object"}}}}}},"parameters":[{"name":"id","in":"path","description":"Id of the workspace","required":true},{"name":"filename","in":"path","description":"Name of the uploaded file","required":true}]},"/workspaces/:id/attachments/:id":{"post":{"parameters":[{"name":"Authorization","in":"header"},{"name":"x-routine-token","in":"header"}],"responses":{"200":{"description":"The finalized attachment.","content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"created":{"$anchor":"time","title":"Created","type":"string"},"id":{"$anchor":"attachment-id","title":"Id","type":"string"},"mime":{"title":"Mime","type":"string"},"name":{"title":"Name","type":"string"},"url":{"$anchor":"uri","title":"Url","type":"string"}},"$schema":"https://json-schema.org/draft/2020-12/schema","$anchor":"attachment","type":"object"}}}},"404":{"description":"The workspace does not exist","content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"details":{"title":"Details"},"method":{"anyOf":[{"const":"delete","type":"string"},{"const":"get","type":"string"},{"const":"head","type":"string"},{"const":"options","type":"string"},{"const":"patch","type":"string"},{"const":"post","type":"string"},{"const":"put","type":"string"}],"$anchor":"method","title":"Method","type":"string"},"path":{"title":"Path","type":"string"},"reason":{"title":"Reason","description":"Human readable error.","type":"string"},"report":{"title":"Report","description":"The sentry report id, if any.","type":"string"},"retry_after":{"$anchor":"time","title":"Retry_after","description":"The earliest possible retry, iff the request should be retried","type":"string"}},"$schema":"https://json-schema.org/draft/2020-12/schema","$anchor":"errors_intf","type":"object"}}}}}},"parameters":[{"name":"id","in":"path","description":"Id of the workspace","required":true},{"name":"id","in":"path","description":"Id of the attachment","required":true}]},"/workspaces/:id/clocks":{"get":{"parameters":[{"name":"Authorization","in":"header"},{"name":"x-routine-token","in":"header"}],"responses":{"200":{"description":"Latest replica commits present locally.","content":{"application/json":{"schema":{"additionalProperties":{"type":"integer"},"$schema":"https://json-schema.org/draft/2020-12/schema","$anchor":"clocks","type":"object"}}}},"404":{"description":"The workspace does not exist","content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"details":{"title":"Details"},"method":{"anyOf":[{"const":"delete","type":"string"},{"const":"get","type":"string"},{"const":"head","type":"string"},{"const":"options","type":"string"},{"const":"patch","type":"string"},{"const":"post","type":"string"},{"const":"put","type":"string"}],"$anchor":"method","title":"Method","type":"string"},"path":{"title":"Path","type":"string"},"reason":{"title":"Reason","description":"Human readable error.","type":"string"},"report":{"title":"Report","description":"The sentry report id, if any.","type":"string"},"retry_after":{"$anchor":"time","title":"Retry_after","description":"The earliest possible retry, iff the request should be retried","type":"string"}},"$schema":"https://json-schema.org/draft/2020-12/schema","$anchor":"errors_intf","type":"object"}}}}}},"parameters":[{"name":"id","in":"path","description":"Id of the workspace","required":true}]},"/workspaces/:id/clocks/:replica":{"get":{"parameters":[{"name":"Authorization","in":"header"},{"name":"x-routine-token","in":"header"}],"responses":{"200":{"description":"Latest replica commit present locally, if any.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":["integer","null"]}}}},"404":{"description":"The workspace does not exist","content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"details":{"title":"Details"},"method":{"anyOf":[{"const":"delete","type":"string"},{"const":"get","type":"string"},{"const":"head","type":"string"},{"const":"options","type":"string"},{"const":"patch","type":"string"},{"const":"post","type":"string"},{"const":"put","type":"string"}],"$anchor":"method","title":"Method","type":"string"},"path":{"title":"Path","type":"string"},"reason":{"title":"Reason","description":"Human readable error.","type":"string"},"report":{"title":"Report","description":"The sentry report id, if any.","type":"string"},"retry_after":{"$anchor":"time","title":"Retry_after","description":"The earliest possible retry, iff the request should be retried","type":"string"}},"$schema":"https://json-schema.org/draft/2020-12/schema","$anchor":"errors_intf","type":"object"}}}}}},"parameters":[{"name":"id","in":"path","description":"Id of the workspace","required":true},{"name":"replica","in":"path","description":"The replica whose clock to fetch","required":true}]},"/workspaces/:id/members":{"get":{"parameters":[{"name":"Authorization","in":"header"},{"name":"x-routine-token","in":"header"}],"responses":{"200":{"description":"The workspace members.","content":{"application/json":{"schema":{"items":{"$anchor":"account-id","type":"string"},"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array"}}}},"404":{"description":"The workspace does not exist","content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"details":{"title":"Details"},"method":{"anyOf":[{"const":"delete","type":"string"},{"const":"get","type":"string"},{"const":"head","type":"string"},{"const":"options","type":"string"},{"const":"patch","type":"string"},{"const":"post","type":"string"},{"const":"put","type":"string"}],"$anchor":"method","title":"Method","type":"string"},"path":{"title":"Path","type":"string"},"reason":{"title":"Reason","description":"Human readable error.","type":"string"},"report":{"title":"Report","description":"The sentry report id, if any.","type":"string"},"retry_after":{"$anchor":"time","title":"Retry_after","description":"The earliest possible retry, iff the request should be retried","type":"string"}},"$schema":"https://json-schema.org/draft/2020-12/schema","$anchor":"errors_intf","type":"object"}}}}}},"parameters":[{"name":"id","in":"path","description":"Id of the workspace","required":true}]},"/workspaces/:id/pull":{"post":{"parameters":[{"name":"Authorization","in":"header"},{"name":"x-routine-token","in":"header"},{"name":"X-Routine-Version","in":"header","description":"Routine client version"},{"name":"X-routine-workspace-cookie","in":"header","description":"The expected workspace cookie"}],"requestBody":{"description":"Replica clocks already stored locally.","content":{"application/json":{"schema":{"additionalProperties":{"type":"integer"},"$schema":"https://json-schema.org/draft/2020-12/schema","$anchor":"clocks","type":"object"}}},"required":true},"responses":{"200":{"description":"Commits missing locally.","content":{"application/json":{"schema":{"items":{"additionalProperties":false,"properties":{"parents":{"items":{"additionalProperties":false,"properties":{"timestamp":{"title":"Timestamp","type":"integer"},"replica":{"$anchor":"replica-id","title":"Replica","type":"string"}},"$anchor":"replica-timestamp","type":"object"},"$anchor":"replica-timestamp-set","title":"Parents","type":"array"},"timestamp":{"$ref":"#replica-timestamp","title":"Timestamp"},"delta":{"items":{"anyOf":[{"additionalProperties":false,"properties":{"ai":{"items":{"anyOf":[{"additionalProperties":false,"properties":{"agents":{"items":{"anyOf":[{"additionalProperties":false,"properties":{"add":{"$anchor":"agent-id","title":"Add","type":"string"},"id":{"$ref":"#replica-timestamp","title":"Id"},"value":{"additionalProperties":false,"properties":{"agent_instructions":{"additionalProperties":false,"properties":{"context":{"additionalProperties":false,"properties":{"integrations":{"items":{"additionalProperties":false,"properties":{"key":{"anyOf":[{"const":"apolloio","type":"string"},{"const":"asana","type":"string"},{"const":"clickup","type":"string"},{"const":"github","type":"string"},{"const":"gmail","type":"string"},{"const":"slack","type":"string"},{"const":"attio","type":"string"},{"const":"pipedrive","type":"string"},{"const":"linear","type":"string"},{"const":"gitlab","type":"string"},{"const":"trello","type":"string"},{"const":"jira","type":"string"},{"const":"whatsapp","type":"string"},{"const":"todoist","type":"string"},{"const":"featurebase","type":"string"},{"const":"linkedin","type":"string"},{"const":"instantly","type":"string"},{"const":"notion","type":"string"}],"$anchor":"integration_key","title":"Key","type":"string"},"data":{"title":"Data","type":"string"},"org_id":{"title":"Org_id","description":"The organization that owns this connection. [None] for records\n                stored before this field was added; in that case the controller\n                falls back to the owner org, which may be incorrect.","default":null,"type":["null","string"]}},"$anchor":"ai-prompt-context-integration","type":"object"},"title":"Integrations","default":[],"type":"array"},"mentions":{"items":{"additionalProperties":false,"properties":{"key":{"title":"Key","type":"string"},"data":{"$anchor":"account-id","title":"Data","type":"string"}},"$anchor":"ai-prompt-context-mention","type":"object"},"title":"Mentions","default":[],"type":"array"},"references":{"items":{"additionalProperties":false,"properties":{"key":{"title":"Key","type":"string"},"data":{"additionalProperties":false,"properties":{"kind":{"anyOf":[{"const":"event","type":"string"},{"const":"event-rec","type":"string"},{"const":"page","type":"string"},{"const":"people","type":"string"},{"const":"task","type":"string"},{"const":"task-rec","type":"string"},{"const":"object","type":"string"},{"const":"organization","type":"string"},{"const":"table_ref","type":"string"},{"const":"workspace_ref","type":"string"},{"const":"agent","type":"string"},{"const":"automation","type":"string"},{"const":"conversation","type":"string"},{"const":"automation_run","type":"string"}],"$anchor":"reference-kind","title":"Kind","type":"string"},"id":{"title":"Id","type":"string"}},"$anchor":"reference-id","title":"Data","type":"object"}},"$anchor":"ai-prompt-context-reference","type":"object"},"title":"References","default":[],"type":"array"}},"$anchor":"ai-prompt-context","title":"Context","default":{},"type":"object"},"document":{"additionalProperties":false,"properties":{"blocks":{"items":{"anyOf":[{"additionalProperties":false,"properties":{"id":{"$anchor":"block-id","title":"Id","type":"string"},"type":{"title":"Type","const":"blockquote","type":"string"},"content":{"title":"Content","type":"string"}}},{"additionalProperties":false,"properties":{"id":{"$anchor":"block-id","title":"Id","type":"string"},"type":{"title":"Type","const":"bullet","type":"string"},"list_type":{"anyOf":[{"const":"ordered","type":"string"},{"const":"unordered","type":"string"}],"$anchor":"block-list-type","title":"List_type","type":"string"},"content":{"title":"Content","type":"string"},"depth":{"title":"Depth","default":0,"type":"integer"}}},{"additionalProperties":false,"properties":{"id":{"$anchor":"block-id","title":"Id","type":"string"},"type":{"title":"Type","const":"check","type":"string"},"checked":{"title":"Checked","type":"boolean"},"content":{"title":"Content","type":"string"},"depth":{"title":"Depth","default":0,"type":"integer"}}},{"additionalProperties":false,"properties":{"id":{"$anchor":"block-id","title":"Id","type":"string"},"type":{"title":"Type","const":"code","type":"string"},"language":{"title":"Language","type":"string"},"content":{"title":"Content","type":"string"}}},{"additionalProperties":false,"properties":{"id":{"$anchor":"block-id","title":"Id","type":"string"},"type":{"title":"Type","const":"callout","type":"string"},"background_color":{"prefixItems":[{"type":"integer"},{"type":"integer"},{"type":"integer"}],"$anchor":"color","title":"Background_color","type":"array"},"content":{"title":"Content","type":"string"},"icon":{"anyOf":[{"additionalProperties":false,"properties":{"kind":{"const":"emoji","type":"string"},"emoji":{"title":"Emoji","type":"string"}},"type":"object"}],"$anchor":"icon","title":"Icon","type":"object"}}},{"additionalProperties":false,"properties":{"id":{"$anchor":"block-id","title":"Id","type":"string"},"type":{"title":"Type","const":"divider","type":"string"}}},{"additionalProperties":false,"properties":{"id":{"$anchor":"block-id","title":"Id","type":"string"},"type":{"title":"Type","const":"embed","type":"string"},"content":{"title":"Content","type":"string"}}},{"additionalProperties":false,"properties":{"id":{"$anchor":"block-id","title":"Id","type":"string"},"type":{"title":"Type","const":"heading","type":"string"},"content":{"title":"Content","type":"string"},"level":{"title":"Level","type":"integer"},"retracted":{"title":"Retracted","default":false,"type":"boolean"}}},{"additionalProperties":false,"properties":{"id":{"$anchor":"block-id","title":"Id","type":"string"},"type":{"title":"Type","const":"object","type":"string"},"referee":{"$ref":"#reference-id","title":"Referee"}}},{"additionalProperties":false,"properties":{"id":{"$anchor":"block-id","title":"Id","type":"string"},"type":{"title":"Type","const":"object","type":"string"},"workspace_id":{"$anchor":"workspace-id","title":"Workspace_id","type":"string"},"table_id":{"$anchor":"table-id","title":"Table_id","type":"string"},"row_id":{"$anchor":"row-id","title":"Row_id","type":"string"}}},{"additionalProperties":false,"properties":{"id":{"$anchor":"block-id","title":"Id","type":"string"},"type":{"title":"Type","const":"paragraph","type":"string"},"content":{"title":"Content","type":"string"}}},{"additionalProperties":false,"properties":{"id":{"$anchor":"block-id","title":"Id","type":"string"},"type":{"title":"Type","const":"query","type":"string"},"content":{"title":"Content","type":"string"}}},{"additionalProperties":false,"properties":{"id":{"$anchor":"block-id","title":"Id","type":"string"},"type":{"title":"Type","const":"recurrent_task","type":"string"},"recurrent_task_id":{"$anchor":"task-rec-id","title":"Recurrent_task_id","type":"string"},"content":{"title":"Content","type":"string"},"recurrence":{"anyOf":[{"additionalProperties":false,"properties":{"start":{"prefixItems":[{"type":"integer"},{"type":"integer"},{"type":"integer"}],"$anchor":"date","title":"Start","type":"array"},"count":{"title":"Count","type":"integer"},"rule":{"anyOf":[{"additionalProperties":false,"properties":{"every":{"const":"day","type":"string"},"period":{"title":"Period","default":1,"type":"integer"}},"type":"object"},{"additionalProperties":false,"properties":{"every":{"const":"month","type":"string"},"period":{"title":"Period","default":1,"type":"integer"},"day":{"anyOf":[{"type":"integer"},{"prefixItems":[{"anyOf":[{"const":"monday","type":"string"},{"const":"tuesday","type":"string"},{"const":"wednesday","type":"string"},{"const":"thursday","type":"string"},{"const":"friday","type":"string"},{"const":"saturday","type":"string"},{"const":"sunday","type":"string"}],"$anchor":"weekday","type":"string"},{"type":"integer"}],"type":"array"}],"$anchor":"month_day","title":"Day","type":["array","integer"]}},"type":"object"},{"additionalProperties":false,"properties":{"every":{"const":"week","type":"string"},"period":{"title":"Period","default":1,"type":"integer"},"weekdays":{"additionalProperties":false,"properties":{"monday":{"title":"Monday","default":false,"type":"boolean"},"tuesday":{"title":"Tuesday","default":false,"type":"boolean"},"wednesday":{"title":"Wednesday","default":false,"type":"boolean"},"thursday":{"title":"Thursday","default":false,"type":"boolean"},"friday":{"title":"Friday","default":false,"type":"boolean"},"saturday":{"title":"Saturday","default":false,"type":"boolean"},"sunday":{"title":"Sunday","default":false,"type":"boolean"}},"$anchor":"weekdays","title":"Weekdays","type":"object"},"weekstart":{"$ref":"#weekday","title":"Weekstart","default":"monday"}},"type":"object"},{"additionalProperties":false,"properties":{"every":{"const":"workday","type":"string"},"period":{"title":"Period","default":1,"type":"integer"}},"type":"object"},{"additionalProperties":false,"properties":{"every":{"const":"year","type":"string"},"period":{"title":"Period","default":1,"type":"integer"},"day":{"title":"Day","type":"integer"},"month":{"anyOf":[{"const":"january","type":"string"},{"const":"february","type":"string"},{"const":"march","type":"string"},{"const":"april","type":"string"},{"const":"may","type":"string"},{"const":"june","type":"string"},{"const":"july","type":"string"},{"const":"august","type":"string"},{"const":"september","type":"string"},{"const":"october","type":"string"},{"const":"november","type":"string"},{"const":"december","type":"string"}],"$anchor":"month","title":"Month","type":"string"}},"type":"object"}],"$anchor":"rule","title":"Rule","type":"object"}}},{"additionalProperties":false,"properties":{"end":{"$ref":"#date","title":"End"},"start":{"$ref":"#date","title":"Start"},"rule":{"anyOf":[{"additionalProperties":false,"properties":{"every":{"const":"day","type":"string"},"period":{"title":"Period","default":1,"type":"integer"}},"type":"object"},{"additionalProperties":false,"properties":{"every":{"const":"month","type":"string"},"period":{"title":"Period","default":1,"type":"integer"},"day":{"anyOf":[{"type":"integer"},{"prefixItems":[{"anyOf":[{"const":"monday","type":"string"},{"const":"tuesday","type":"string"},{"const":"wednesday","type":"string"},{"const":"thursday","type":"string"},{"const":"friday","type":"string"},{"const":"saturday","type":"string"},{"const":"sunday","type":"string"}],"$anchor":"weekday","type":"string"},{"type":"integer"}],"type":"array"}],"$anchor":"month_day","title":"Day","type":["array","integer"]}},"type":"object"},{"additionalProperties":false,"properties":{"every":{"const":"week","type":"string"},"period":{"title":"Period","default":1,"type":"integer"},"weekdays":{"additionalProperties":false,"properties":{"monday":{"title":"Monday","default":false,"type":"boolean"},"tuesday":{"title":"Tuesday","default":false,"type":"boolean"},"wednesday":{"title":"Wednesday","default":false,"type":"boolean"},"thursday":{"title":"Thursday","default":false,"type":"boolean"},"friday":{"title":"Friday","default":false,"type":"boolean"},"saturday":{"title":"Saturday","default":false,"type":"boolean"},"sunday":{"title":"Sunday","default":false,"type":"boolean"}},"$anchor":"weekdays","title":"Weekdays","type":"object"},"weekstart":{"$ref":"#weekday","title":"Weekstart","default":"monday"}},"type":"object"},{"additionalProperties":false,"properties":{"every":{"const":"workday","type":"string"},"period":{"title":"Period","default":1,"type":"integer"}},"type":"object"},{"additionalProperties":false,"properties":{"every":{"const":"year","type":"string"},"period":{"title":"Period","default":1,"type":"integer"},"day":{"title":"Day","type":"integer"},"month":{"anyOf":[{"const":"january","type":"string"},{"const":"february","type":"string"},{"const":"march","type":"string"},{"const":"april","type":"string"},{"const":"may","type":"string"},{"const":"june","type":"string"},{"const":"july","type":"string"},{"const":"august","type":"string"},{"const":"september","type":"string"},{"const":"october","type":"string"},{"const":"november","type":"string"},{"const":"december","type":"string"}],"$anchor":"month","title":"Month","type":"string"}},"type":"object"}],"$anchor":"rule","title":"Rule","type":"object"}}}],"$anchor":"recurrence","title":"Recurrence","type":"object"}}},{"additionalProperties":false,"properties":{"id":{"$anchor":"block-id","title":"Id","type":"string"},"type":{"title":"Type","const":"todo","type":"string"},"checked":{"title":"Checked","description":"true if the task has been completed","type":"boolean"},"content":{"title":"Content","description":"title of the task","type":"string"},"task":{"$anchor":"task-id","title":"Task","description":"ID of the task - should be null for a new todo block. Old documents\n            hold a plain google task id in this field so we need to accept\n            broader values","type":"string"}}}],"$anchor":"block","type":"object"},"title":"Blocks","type":"array"}},"$anchor":"document","title":"Document","type":"object"}},"$anchor":"ai-prompt","title":"Agent_instructions","type":"object"},"automations":{"items":{"$anchor":"automation-id","type":"string"},"title":"Automations","default":[],"type":"array"},"conversations":{"items":{"$anchor":"conversation-id","type":"string"},"$anchor":"conversation-id-set","title":"Conversations","default":[],"type":"array"},"id":{"anyOf":[{"$ref":"#agent-id"},{"$anchor":"assistant-id","type":"string"}],"$anchor":"any-agent-id","title":"Id","type":"string"},"key":{"title":"Key","type":"string"},"name":{"title":"Name","type":"string"},"user_preferences":{"$ref":"#ai-prompt","title":"User_preferences"},"working_memory":{"$ref":"#ai-prompt","title":"Working_memory"}},"$anchor":"ai-agent","title":"Value","type":"object"}},"type":"object"},{"additionalProperties":false,"properties":{"element":{"$ref":"#agent-id","title":"Element"},"id":{"$ref":"#replica-timestamp","title":"Id"},"delta":{"items":{"anyOf":[{"additionalProperties":false,"properties":{"agent_instructions":{"items":{"anyOf":[{"additionalProperties":false,"properties":{"context":{"items":{"anyOf":[{"additionalProperties":false,"properties":{"integrations":{"items":{"anyOf":[{"additionalProperties":false,"properties":{"delete":{"$ref":"#replica-timestamp-set","title":"Delete"}},"type":"object"},{"additionalProperties":false,"properties":{"element":{"$ref":"#replica-timestamp","title":"Element"},"delta":{"title":"Delta"}},"type":"object"},{"additionalProperties":false,"properties":{"insert":{"$ref":"#replica-timestamp","title":"Insert"},"left":{"title":"Left","default":false,"type":"boolean"},"parent":{"$ref":"#replica-timestamp","title":"Parent"},"value":{"items":{"$ref":"#ai-prompt-context-integration"},"title":"Value","type":"array"}},"type":"object"}],"type":"object"},"title":"Integrations","type":"array"}},"type":"object"},{"additionalProperties":false,"properties":{"mentions":{"items":{"anyOf":[{"additionalProperties":false,"properties":{"delete":{"$ref":"#replica-timestamp-set","title":"Delete"}},"type":"object"},{"additionalProperties":false,"properties":{"element":{"$ref":"#replica-timestamp","title":"Element"},"delta":{"title":"Delta"}},"type":"object"},{"additionalProperties":false,"properties":{"insert":{"$ref":"#replica-timestamp","title":"Insert"},"left":{"title":"Left","default":false,"type":"boolean"},"parent":{"$ref":"#replica-timestamp","title":"Parent"},"value":{"items":{"$ref":"#ai-prompt-context-mention"},"title":"Value","type":"array"}},"type":"object"}],"type":"object"},"title":"Mentions","type":"array"}},"type":"object"},{"additionalProperties":false,"properties":{"references":{"items":{"anyOf":[{"additionalProperties":false,"properties":{"delete":{"$ref":"#replica-timestamp-set","title":"Delete"}},"type":"object"},{"additionalProperties":false,"properties":{"element":{"$ref":"#replica-timestamp","title":"Element"},"delta":{"title":"Delta"}},"type":"object"},{"additionalProperties":false,"properties":{"insert":{"$ref":"#replica-timestamp","title":"Insert"},"left":{"title":"Left","default":false,"type":"boolean"},"parent":{"$ref":"#replica-timestamp","title":"Parent"},"value":{"items":{"$ref":"#ai-prompt-context-reference"},"title":"Value","type":"array"}},"type":"object"}],"type":"object"},"title":"References","type":"array"}},"type":"object"}],"$anchor":"PromptContext-delta","type":"object"},"title":"Context","type":"array"}},"type":"object"},{"additionalProperties":false,"properties":{"document":{"items":{"anyOf":[{"additionalProperties":false,"properties":{"delta":{"items":{"$ref":"#delta"},"title":"Delta","type":"array"}},"type":"object"},{"additionalProperties":false,"properties":{"delta":{"items":{"anyOf":[{"additionalProperties":false,"properties":{"delete":{"$ref":"#replica-timestamp-set","title":"Delete"}},"type":"object"},{"additionalProperties":false,"properties":{"element":{"$ref":"#replica-timestamp","title":"Element"},"delta":{"title":"Delta"}},"type":"object"},{"additionalProperties":false,"properties":{"insert":{"$ref":"#replica-timestamp","title":"Insert"},"left":{"title":"Left","default":false,"type":"boolean"},"parent":{"$ref":"#replica-timestamp","title":"Parent"},"value":{"items":{"$ref":"#block-id"},"title":"Value","type":"array"}},"type":"object"}],"type":"object"},"title":"Delta","type":"array"}},"type":"object"}],"$anchor":"crdt-pair-delta","type":"object"},"title":"Document","type":"array"}},"type":"object"}],"$anchor":"PromptPrompt_crdt-delta","type":"object"},"title":"Agent_instructions","type":"array"}},"type":"object"},{"additionalProperties":false,"properties":{"automations":{"items":{"anyOf":[{"additionalProperties":false,"properties":{"delete":{"$ref":"#replica-timestamp-set","title":"Delete"}},"type":"object"},{"additionalProperties":false,"properties":{"element":{"$ref":"#replica-timestamp","title":"Element"},"delta":{"title":"Delta"}},"type":"object"},{"additionalProperties":false,"properties":{"insert":{"$ref":"#replica-timestamp","title":"Insert"},"left":{"title":"Left","default":false,"type":"boolean"},"parent":{"$ref":"#replica-timestamp","title":"Parent"},"value":{"items":{"$ref":"#automation-id"},"title":"Value","type":"array"}},"type":"object"}],"type":"object"},"title":"Automations","type":"array"}},"type":"object"},{"additionalProperties":false,"properties":{"conversations":{"items":{"$ref":"#delta"},"title":"Conversations","type":"array"}},"type":"object"},{"additionalProperties":false,"properties":{"id":{"title":"Id"}},"type":"object"},{"additionalProperties":false,"properties":{"key":{"items":{"anyOf":[{"additionalProperties":false,"properties":{"timestamp":{"$ref":"#replica-timestamp","title":"Timestamp"},"value":{"title":"Value","type":["null","string"]}},"type":"object"}],"type":"object"},"title":"Key","type":"array"}},"type":"object"},{"additionalProperties":false,"properties":{"name":{"items":{"anyOf":[{"additionalProperties":false,"properties":{"timestamp":{"$ref":"#replica-timestamp","title":"Timestamp"},"value":{"title":"Value","type":["null","string"]}},"type":"object"}],"type":"object"},"title":"Name","type":"array"}},"type":"object"},{"additionalProperties":false,"properties":{"user_preferences":{"items":{"$ref":"#PromptPrompt_crdt-delta"},"title":"User_preferences","type":"array"}},"type":"object"},{"additionalProperties":false,"properties":{"working_memory":{"items":{"$ref":"#PromptPrompt_crdt-delta"},"title":"Working_memory","type":"array"}},"type":"object"}],"$anchor":"AgentAgent_crdt-delta","type":"object"},"title":"Delta","type":"array"}},"type":"object"},{"additionalProperties":false,"properties":{"remove":{"$ref":"#agent-id","title":"Remove"},"id":{"$ref":"#replica-timestamp","title":"Id"}},"type":"object"}],"$anchor":"delta","type":"object"},"title":"Agents","type":"array"}},"type":"object"},{"additionalProperties":false,"properties":{"assistant":{"items":{"$ref":"#delta"},"title":"Assistant","type":"array"}},"type":"object"},{"additionalProperties":false,"properties":{"automation_runs":{"items":{"$ref":"#delta"},"title":"Automation_runs","type":"array"}},"type":"object"},{"additionalProperties":false,"properties":{"steps":{"items":{"$ref":"#delta"},"title":"Steps","type":"array"}},"type":"object"},{"additionalProperties":false,"properties":{"automations":{"items":{"$ref":"#delta"},"title":"Automations","type":"array"}},"type":"object"},{"additionalProperties":false,"properties":{"conversations":{"items":{"$ref":"#delta"},"title":"Conversations","type":"array"}},"type":"object"}],"$anchor":"ai-delta","type":"object"},"title":"Ai","type":"array"}},"type":"object"},{"additionalProperties":false,"properties":{"calendars":{"items":{"$ref":"#delta"},"title":"Calendars","type":"array"}},"type":"object"},{"additionalProperties":false,"properties":{"connections":{"items":{"$ref":"#delta"},"title":"Connections","type":"array"}},"type":"object"},{"additionalProperties":false,"properties":{"events":{"items":{"$ref":"#delta"},"title":"Events","type":"array"}},"type":"object"},{"additionalProperties":false,"properties":{"events-rec":{"items":{"$ref":"#delta"},"title":"Events-rec","type":"array"}},"type":"object"},{"additionalProperties":false,"properties":{"integration-app":{"items":{"anyOf":[{"additionalProperties":false,"properties":{"enabled_data_collections":{"items":{"$ref":"#delta"},"title":"Enabled_data_collections","type":"array"}},"type":"object"}],"$anchor":"integration-app-delta","type":"object"},"title":"Integration-app","type":"array"}},"type":"object"},{"additionalProperties":false,"properties":{"integrations":{"items":{"$ref":"#delta"},"title":"Integrations","type":"array"}},"type":"object"},{"additionalProperties":false,"properties":{"hierarchy":{"items":{"anyOf":[{"additionalProperties":false,"properties":{"id":{"$ref":"#replica-timestamp","title":"Id"},"parent":{"$ref":"#replica-timestamp","title":"Parent"},"value":{"$anchor":"page-id","title":"Value","type":"string"}},"type":"object"},{"additionalProperties":false,"properties":{"id":{"$ref":"#replica-timestamp","title":"Id"},"delta":{"title":"Delta"}},"type":"object"},{"additionalProperties":false,"properties":{"id":{"$ref":"#replica-timestamp","title":"Id"},"parent":{"$ref":"#replica-timestamp","title":"Parent"},"timestamp":{"$ref":"#replica-timestamp","title":"Timestamp"}},"type":"object"}],"type":"object"},"title":"Hierarchy","type":"array"}},"type":"object"},{"additionalProperties":false,"properties":{"home":{"items":{"anyOf":[{"additionalProperties":false,"properties":{"timestamp":{"$ref":"#replica-timestamp","title":"Timestamp"},"value":{"title":"Value","type":["null","string"]}},"type":"object"}],"type":"object"},"title":"Home","type":"array"}},"type":"object"},{"additionalProperties":false,"properties":{"members":{"items":{"anyOf":[{"$ref":"#delta"},{"anyOf":[{"additionalProperties":false,"properties":{"add":{"$ref":"#account-id","title":"Add"},"id":{"$ref":"#replica-timestamp","title":"Id"},"value":{"title":"Value","type":"null"}},"type":"object"},{"additionalProperties":false,"properties":{"element":{"$ref":"#account-id","title":"Element"},"id":{"$ref":"#replica-timestamp","title":"Id"},"delta":{"title":"Delta"}},"type":"object"},{"additionalProperties":false,"properties":{"remove":{"$ref":"#account-id","title":"Remove"},"id":{"$ref":"#replica-timestamp","title":"Id"}},"type":"object"}],"type":"object"}],"$anchor":"workspace-member-role-delta","type":"object"},"title":"Members","type":"array"}},"type":"object"},{"additionalProperties":false,"properties":{"notices":{"items":{"$ref":"#delta"},"title":"Notices","type":"array"}},"type":"object"},{"additionalProperties":false,"properties":{"notices-personal-archived":{"items":{"$ref":"#delta"},"title":"Notices-personal-archived","type":"array"}},"type":"object"},{"additionalProperties":false,"properties":{"notices-personal-viewed":{"items":{"$ref":"#delta"},"title":"Notices-personal-viewed","type":"array"}},"type":"object"},{"additionalProperties":false,"properties":{"organizations":{"items":{"$ref":"#delta"},"title":"Organizations","type":"array"}},"type":"object"},{"additionalProperties":false,"properties":{"pages":{"items":{"$ref":"#delta"},"title":"Pages","type":"array"}},"type":"object"},{"additionalProperties":false,"properties":{"people":{"items":{"$ref":"#delta"},"title":"People","type":"array"}},"type":"object"},{"additionalProperties":false,"properties":{"menu-items":{"items":{"anyOf":[{"additionalProperties":false,"properties":{"delete":{"$ref":"#replica-timestamp-set","title":"Delete"}},"type":"object"},{"additionalProperties":false,"properties":{"element":{"$ref":"#replica-timestamp","title":"Element"},"delta":{"items":{"anyOf":[{"additionalProperties":false,"properties":{"target":{"title":"Target"}},"type":"object"},{"additionalProperties":false,"properties":{"home":{"items":{"anyOf":[{"additionalProperties":false,"properties":{"timestamp":{"$ref":"#replica-timestamp","title":"Timestamp"},"value":{"$anchor":"bool","title":"Value","type":"boolean"}},"type":"object"}],"type":"object"},"title":"Home","type":"array"}},"type":"object"}],"$anchor":"Menu_itemMenu_item_crdt-delta","type":"object"},"title":"Delta","type":"array"}},"type":"object"},{"additionalProperties":false,"properties":{"insert":{"$ref":"#replica-timestamp","title":"Insert"},"left":{"title":"Left","default":false,"type":"boolean"},"parent":{"$ref":"#replica-timestamp","title":"Parent"},"value":{"items":{"additionalProperties":false,"properties":{"target":{"anyOf":[{"anyOf":[{"additionalProperties":false,"properties":{"kind":{"const":"object","type":"string"},"value":{"$ref":"#reference-id","title":"Value"}},"description":"A menu item pointing to a Routine object","type":"object"},{"additionalProperties":false,"properties":{"kind":{"const":"app_screen","type":"string"},"organization":{"$anchor":"org-id","title":"Organization","description":"The organization this screen targets. Unspecified is\n                interchangeable with the personal organization for backward\n                compatibility.","type":"string"},"value":{"anyOf":[{"const":"agenda","type":"string"},{"const":"assistant","type":"string"},{"const":"calendar","type":"string"},{"const":"inbox","type":"string"},{"const":"journal","type":"string"},{"const":"labels","type":"string"},{"const":"page","type":"string"},{"const":"people","type":"string"},{"const":"projects","type":"string"},{"const":"task","type":"string"}],"$anchor":"menu-item-app-screen","title":"Value","type":"string"}},"description":"A specific screen in the app","type":"object"},{"additionalProperties":false,"properties":{"kind":{"const":"organization_homepage","type":"string"},"value":{"$ref":"#org-id","title":"Value"}},"description":"A menu item pointing to an Organization homepage","type":"object"},{"additionalProperties":false,"properties":{"kind":{"const":"database","type":"string"},"workspace_id":{"$ref":"#workspace-id","title":"Workspace_id"},"table_id":{"$ref":"#table-id","title":"Table_id"}},"description":"A menu item pointing to a Database view","type":"object"},{"additionalProperties":false,"properties":{"kind":{"const":"workspace_homepage","type":"string"},"value":{"$ref":"#workspace-id","title":"Value"}},"description":"A menu item pointing to a Workspace homepage","type":"object"},{"additionalProperties":false,"properties":{"kind":{"const":"agent","type":"string"},"agent_id":{"$ref":"#any-agent-id","title":"Agent_id"},"organization_id":{"$ref":"#org-id","title":"Organization_id"}},"description":"A menu item pointing to an AI Agent","type":"object"}],"$anchor":"menu-item-target","description":"The target of a menu item","type":"object"},{"anyOf":[{"additionalProperties":false,"properties":{"kind":{"const":"object","type":"string"},"value":{"$ref":"#reference-id","title":"Value"}},"type":"object"},{"additionalProperties":false,"properties":{"kind":{"const":"app_screen","type":"string"},"organization":{"$ref":"#org-id","title":"Organization"},"value":{"$ref":"#menu-item-app-screen","title":"Value"}},"type":"object"},{"additionalProperties":false,"properties":{"kind":{"const":"organization_homepage","type":"string"},"value":{"$ref":"#org-id","title":"Value"}},"type":"object"},{"additionalProperties":false,"properties":{"kind":{"const":"database","type":"string"},"workspace_id":{"$ref":"#workspace-id","title":"Workspace_id"},"table_id":{"$ref":"#table-id","title":"Table_id"}},"type":"object"},{"additionalProperties":false,"properties":{"kind":{"const":"agent","type":"string"},"object_id":{"$anchor":"object-id","title":"Object_id","type":"string"}},"type":"object"}],"$anchor":"menu-item-target-old","type":"object"}],"title":"Target","type":"object"},"home":{"title":"Home","type":"boolean"}},"$anchor":"menu-item-compat","type":"object"},"title":"Value","type":"array"}},"type":"object"}],"type":"object"},"title":"Menu-items","type":"array"}},"type":"object"},{"additionalProperties":false,"properties":{"recurrences":{"items":{"$ref":"#delta"},"title":"Recurrences","type":"array"}},"type":"object"},{"additionalProperties":false,"properties":{"settings":{"items":{"anyOf":[{"additionalProperties":false,"properties":{"access_restriction":{"items":{"$ref":"#delta"},"title":"Access_restriction","type":"array"}},"type":"object"},{"additionalProperties":false,"properties":{"locale":{"items":{"anyOf":[{"additionalProperties":false,"properties":{"timestamp":{"$ref":"#replica-timestamp","title":"Timestamp"},"value":{"additionalProperties":false,"properties":{"hours":{"title":"Hours","type":["integer","null"]}},"$anchor":"locale-settings","title":"Value","type":"object"}},"type":"object"}],"type":"object"},"title":"Locale","type":"array"}},"type":"object"},{"additionalProperties":false,"properties":{"hours":{"items":{"anyOf":[{"additionalProperties":false,"properties":{"timestamp":{"$ref":"#replica-timestamp","title":"Timestamp"},"value":{"additionalProperties":false,"properties":{"day":{"additionalProperties":false,"properties":{"hours":{"title":"Hours","maximum":24,"minimum":0,"type":"integer"},"minutes":{"title":"Minutes","default":0,"maximum":60,"minimum":0,"type":"integer"},"seconds":{"title":"Seconds","default":0,"maximum":60,"minimum":0,"type":"integer"}},"title":"Day","default":null,"type":["null","object"]},"noon":{"additionalProperties":false,"properties":{"hours":{"title":"Hours","maximum":24,"minimum":0,"type":"integer"},"minutes":{"title":"Minutes","default":0,"maximum":60,"minimum":0,"type":"integer"},"seconds":{"title":"Seconds","default":0,"maximum":60,"minimum":0,"type":"integer"}},"title":"Noon","default":null,"type":["null","object"]},"afternoon":{"additionalProperties":false,"properties":{"hours":{"title":"Hours","maximum":24,"minimum":0,"type":"integer"},"minutes":{"title":"Minutes","default":0,"maximum":60,"minimum":0,"type":"integer"},"seconds":{"title":"Seconds","default":0,"maximum":60,"minimum":0,"type":"integer"}},"title":"Afternoon","default":null,"type":["null","object"]},"evening":{"additionalProperties":false,"properties":{"hours":{"title":"Hours","maximum":24,"minimum":0,"type":"integer"},"minutes":{"title":"Minutes","default":0,"maximum":60,"minimum":0,"type":"integer"},"seconds":{"title":"Seconds","default":0,"maximum":60,"minimum":0,"type":"integer"}},"title":"Evening","default":null,"type":["null","object"]},"night":{"additionalProperties":false,"properties":{"hours":{"title":"Hours","maximum":24,"minimum":0,"type":"integer"},"minutes":{"title":"Minutes","default":0,"maximum":60,"minimum":0,"type":"integer"},"seconds":{"title":"Seconds","default":0,"maximum":60,"minimum":0,"type":"integer"}},"title":"Night","default":null,"type":["null","object"]}},"$anchor":"hours-settings","title":"Value","type":"object"}},"type":"object"}],"type":"object"},"title":"Hours","type":"array"}},"type":"object"},{"additionalProperties":false,"properties":{"mru_destinations":{"items":{"$ref":"#delta"},"title":"Mru_destinations","type":"array"}},"type":"object"},{"additionalProperties":false,"properties":{"mru_people":{"items":{"$ref":"#delta"},"title":"Mru_people","type":"array"}},"type":"object"},{"additionalProperties":false,"properties":{"week_start":{"items":{"anyOf":[{"additionalProperties":false,"properties":{"timestamp":{"$ref":"#replica-timestamp","title":"Timestamp"},"value":{"$ref":"#weekday","title":"Value"}},"type":"object"}],"type":"object"},"title":"Week_start","type":"array"}},"type":"object"}],"$anchor":"settings-delta","type":"object"},"title":"Settings","type":"array"}},"type":"object"},{"additionalProperties":false,"properties":{"subscription":{"items":{"anyOf":[{"additionalProperties":false,"properties":{"timestamp":{"$ref":"#replica-timestamp","title":"Timestamp"},"value":{"title":"Value","type":["null","string"]}},"type":"object"}],"type":"object"},"title":"Subscription","type":"array"}},"type":"object"},{"additionalProperties":false,"properties":{"task-bindings":{"items":{"$ref":"#delta"},"title":"Task-bindings","type":"array"}},"type":"object"},{"additionalProperties":false,"properties":{"task-binding-settings":{"items":{"$ref":"#delta"},"title":"Task-binding-settings","type":"array"}},"type":"object"},{"additionalProperties":false,"properties":{"tasks":{"items":{"$ref":"#delta"},"title":"Tasks","type":"array"}},"type":"object"},{"additionalProperties":false,"properties":{"tables":{"items":{"$ref":"#delta"},"title":"Tables","type":"array"}},"type":"object"},{"additionalProperties":false,"properties":{"object-hierarchy":{"items":{"anyOf":[{"additionalProperties":false,"properties":{"id":{"$ref":"#replica-timestamp","title":"Id"},"parent":{"$ref":"#replica-timestamp","title":"Parent"},"value":{"$ref":"#object-id","title":"Value"}},"type":"object"},{"additionalProperties":false,"properties":{"id":{"$ref":"#replica-timestamp","title":"Id"},"delta":{"title":"Delta"}},"type":"object"},{"additionalProperties":false,"properties":{"id":{"$ref":"#replica-timestamp","title":"Id"},"parent":{"$ref":"#replica-timestamp","title":"Parent"},"timestamp":{"$ref":"#replica-timestamp","title":"Timestamp"}},"type":"object"}],"type":"object"},"title":"Object-hierarchy","type":"array"}},"type":"object"}],"$anchor":"crdt-routine-delta","type":"object"},"title":"Delta","type":"array"}},"$anchor":"commit","type":"object"},"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array"}}}},"404":{"description":"The workspace does not exist","content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"details":{"title":"Details"},"method":{"anyOf":[{"const":"delete","type":"string"},{"const":"get","type":"string"},{"const":"head","type":"string"},{"const":"options","type":"string"},{"const":"patch","type":"string"},{"const":"post","type":"string"},{"const":"put","type":"string"}],"$anchor":"method","title":"Method","type":"string"},"path":{"title":"Path","type":"string"},"reason":{"title":"Reason","description":"Human readable error.","type":"string"},"report":{"title":"Report","description":"The sentry report id, if any.","type":"string"},"retry_after":{"$anchor":"time","title":"Retry_after","description":"The earliest possible retry, iff the request should be retried","type":"string"}},"$schema":"https://json-schema.org/draft/2020-12/schema","$anchor":"errors_intf","type":"object"}}}},"409":{"description":"The provided cookie mismatched the expected one","content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"details":{"title":"Details"},"method":{"anyOf":[{"const":"delete","type":"string"},{"const":"get","type":"string"},{"const":"head","type":"string"},{"const":"options","type":"string"},{"const":"patch","type":"string"},{"const":"post","type":"string"},{"const":"put","type":"string"}],"$anchor":"method","title":"Method","type":"string"},"path":{"title":"Path","type":"string"},"reason":{"title":"Reason","description":"Human readable error.","type":"string"},"report":{"title":"Report","description":"The sentry report id, if any.","type":"string"},"retry_after":{"$anchor":"time","title":"Retry_after","description":"The earliest possible retry, iff the request should be retried","type":"string"}},"$schema":"https://json-schema.org/draft/2020-12/schema","$anchor":"errors_intf","type":"object"}}}}}},"parameters":[{"name":"id","in":"path","description":"Id of the workspace","required":true}]},"/workspaces/:id/push":{"post":{"parameters":[{"name":"Authorization","in":"header"},{"name":"x-routine-token","in":"header"}],"requestBody":{"description":"Commits to record.","content":{"application/json":{"schema":{"items":{"additionalProperties":false,"properties":{"parents":{"items":{"additionalProperties":false,"properties":{"timestamp":{"title":"Timestamp","type":"integer"},"replica":{"$anchor":"replica-id","title":"Replica","type":"string"}},"$anchor":"replica-timestamp","type":"object"},"$anchor":"replica-timestamp-set","title":"Parents","type":"array"},"timestamp":{"$ref":"#replica-timestamp","title":"Timestamp"},"delta":{"items":{"anyOf":[{"additionalProperties":false,"properties":{"ai":{"items":{"anyOf":[{"additionalProperties":false,"properties":{"agents":{"items":{"anyOf":[{"additionalProperties":false,"properties":{"add":{"$anchor":"agent-id","title":"Add","type":"string"},"id":{"$ref":"#replica-timestamp","title":"Id"},"value":{"additionalProperties":false,"properties":{"agent_instructions":{"additionalProperties":false,"properties":{"context":{"additionalProperties":false,"properties":{"integrations":{"items":{"additionalProperties":false,"properties":{"key":{"anyOf":[{"const":"apolloio","type":"string"},{"const":"asana","type":"string"},{"const":"clickup","type":"string"},{"const":"github","type":"string"},{"const":"gmail","type":"string"},{"const":"slack","type":"string"},{"const":"attio","type":"string"},{"const":"pipedrive","type":"string"},{"const":"linear","type":"string"},{"const":"gitlab","type":"string"},{"const":"trello","type":"string"},{"const":"jira","type":"string"},{"const":"whatsapp","type":"string"},{"const":"todoist","type":"string"},{"const":"featurebase","type":"string"},{"const":"linkedin","type":"string"},{"const":"instantly","type":"string"},{"const":"notion","type":"string"}],"$anchor":"integration_key","title":"Key","type":"string"},"data":{"title":"Data","type":"string"},"org_id":{"title":"Org_id","description":"The organization that owns this connection. [None] for records\n                stored before this field was added; in that case the controller\n                falls back to the owner org, which may be incorrect.","default":null,"type":["null","string"]}},"$anchor":"ai-prompt-context-integration","type":"object"},"title":"Integrations","default":[],"type":"array"},"mentions":{"items":{"additionalProperties":false,"properties":{"key":{"title":"Key","type":"string"},"data":{"$anchor":"account-id","title":"Data","type":"string"}},"$anchor":"ai-prompt-context-mention","type":"object"},"title":"Mentions","default":[],"type":"array"},"references":{"items":{"additionalProperties":false,"properties":{"key":{"title":"Key","type":"string"},"data":{"additionalProperties":false,"properties":{"kind":{"anyOf":[{"const":"event","type":"string"},{"const":"event-rec","type":"string"},{"const":"page","type":"string"},{"const":"people","type":"string"},{"const":"task","type":"string"},{"const":"task-rec","type":"string"},{"const":"object","type":"string"},{"const":"organization","type":"string"},{"const":"table_ref","type":"string"},{"const":"workspace_ref","type":"string"},{"const":"agent","type":"string"},{"const":"automation","type":"string"},{"const":"conversation","type":"string"},{"const":"automation_run","type":"string"}],"$anchor":"reference-kind","title":"Kind","type":"string"},"id":{"title":"Id","type":"string"}},"$anchor":"reference-id","title":"Data","type":"object"}},"$anchor":"ai-prompt-context-reference","type":"object"},"title":"References","default":[],"type":"array"}},"$anchor":"ai-prompt-context","title":"Context","default":{},"type":"object"},"document":{"additionalProperties":false,"properties":{"blocks":{"items":{"anyOf":[{"additionalProperties":false,"properties":{"id":{"$anchor":"block-id","title":"Id","type":"string"},"type":{"title":"Type","const":"blockquote","type":"string"},"content":{"title":"Content","type":"string"}}},{"additionalProperties":false,"properties":{"id":{"$anchor":"block-id","title":"Id","type":"string"},"type":{"title":"Type","const":"bullet","type":"string"},"list_type":{"anyOf":[{"const":"ordered","type":"string"},{"const":"unordered","type":"string"}],"$anchor":"block-list-type","title":"List_type","type":"string"},"content":{"title":"Content","type":"string"},"depth":{"title":"Depth","default":0,"type":"integer"}}},{"additionalProperties":false,"properties":{"id":{"$anchor":"block-id","title":"Id","type":"string"},"type":{"title":"Type","const":"check","type":"string"},"checked":{"title":"Checked","type":"boolean"},"content":{"title":"Content","type":"string"},"depth":{"title":"Depth","default":0,"type":"integer"}}},{"additionalProperties":false,"properties":{"id":{"$anchor":"block-id","title":"Id","type":"string"},"type":{"title":"Type","const":"code","type":"string"},"language":{"title":"Language","type":"string"},"content":{"title":"Content","type":"string"}}},{"additionalProperties":false,"properties":{"id":{"$anchor":"block-id","title":"Id","type":"string"},"type":{"title":"Type","const":"callout","type":"string"},"background_color":{"prefixItems":[{"type":"integer"},{"type":"integer"},{"type":"integer"}],"$anchor":"color","title":"Background_color","type":"array"},"content":{"title":"Content","type":"string"},"icon":{"anyOf":[{"additionalProperties":false,"properties":{"kind":{"const":"emoji","type":"string"},"emoji":{"title":"Emoji","type":"string"}},"type":"object"}],"$anchor":"icon","title":"Icon","type":"object"}}},{"additionalProperties":false,"properties":{"id":{"$anchor":"block-id","title":"Id","type":"string"},"type":{"title":"Type","const":"divider","type":"string"}}},{"additionalProperties":false,"properties":{"id":{"$anchor":"block-id","title":"Id","type":"string"},"type":{"title":"Type","const":"embed","type":"string"},"content":{"title":"Content","type":"string"}}},{"additionalProperties":false,"properties":{"id":{"$anchor":"block-id","title":"Id","type":"string"},"type":{"title":"Type","const":"heading","type":"string"},"content":{"title":"Content","type":"string"},"level":{"title":"Level","type":"integer"},"retracted":{"title":"Retracted","default":false,"type":"boolean"}}},{"additionalProperties":false,"properties":{"id":{"$anchor":"block-id","title":"Id","type":"string"},"type":{"title":"Type","const":"object","type":"string"},"referee":{"$ref":"#reference-id","title":"Referee"}}},{"additionalProperties":false,"properties":{"id":{"$anchor":"block-id","title":"Id","type":"string"},"type":{"title":"Type","const":"object","type":"string"},"workspace_id":{"$anchor":"workspace-id","title":"Workspace_id","type":"string"},"table_id":{"$anchor":"table-id","title":"Table_id","type":"string"},"row_id":{"$anchor":"row-id","title":"Row_id","type":"string"}}},{"additionalProperties":false,"properties":{"id":{"$anchor":"block-id","title":"Id","type":"string"},"type":{"title":"Type","const":"paragraph","type":"string"},"content":{"title":"Content","type":"string"}}},{"additionalProperties":false,"properties":{"id":{"$anchor":"block-id","title":"Id","type":"string"},"type":{"title":"Type","const":"query","type":"string"},"content":{"title":"Content","type":"string"}}},{"additionalProperties":false,"properties":{"id":{"$anchor":"block-id","title":"Id","type":"string"},"type":{"title":"Type","const":"recurrent_task","type":"string"},"recurrent_task_id":{"$anchor":"task-rec-id","title":"Recurrent_task_id","type":"string"},"content":{"title":"Content","type":"string"},"recurrence":{"anyOf":[{"additionalProperties":false,"properties":{"start":{"prefixItems":[{"type":"integer"},{"type":"integer"},{"type":"integer"}],"$anchor":"date","title":"Start","type":"array"},"count":{"title":"Count","type":"integer"},"rule":{"anyOf":[{"additionalProperties":false,"properties":{"every":{"const":"day","type":"string"},"period":{"title":"Period","default":1,"type":"integer"}},"type":"object"},{"additionalProperties":false,"properties":{"every":{"const":"month","type":"string"},"period":{"title":"Period","default":1,"type":"integer"},"day":{"anyOf":[{"type":"integer"},{"prefixItems":[{"anyOf":[{"const":"monday","type":"string"},{"const":"tuesday","type":"string"},{"const":"wednesday","type":"string"},{"const":"thursday","type":"string"},{"const":"friday","type":"string"},{"const":"saturday","type":"string"},{"const":"sunday","type":"string"}],"$anchor":"weekday","type":"string"},{"type":"integer"}],"type":"array"}],"$anchor":"month_day","title":"Day","type":["array","integer"]}},"type":"object"},{"additionalProperties":false,"properties":{"every":{"const":"week","type":"string"},"period":{"title":"Period","default":1,"type":"integer"},"weekdays":{"additionalProperties":false,"properties":{"monday":{"title":"Monday","default":false,"type":"boolean"},"tuesday":{"title":"Tuesday","default":false,"type":"boolean"},"wednesday":{"title":"Wednesday","default":false,"type":"boolean"},"thursday":{"title":"Thursday","default":false,"type":"boolean"},"friday":{"title":"Friday","default":false,"type":"boolean"},"saturday":{"title":"Saturday","default":false,"type":"boolean"},"sunday":{"title":"Sunday","default":false,"type":"boolean"}},"$anchor":"weekdays","title":"Weekdays","type":"object"},"weekstart":{"$ref":"#weekday","title":"Weekstart","default":"monday"}},"type":"object"},{"additionalProperties":false,"properties":{"every":{"const":"workday","type":"string"},"period":{"title":"Period","default":1,"type":"integer"}},"type":"object"},{"additionalProperties":false,"properties":{"every":{"const":"year","type":"string"},"period":{"title":"Period","default":1,"type":"integer"},"day":{"title":"Day","type":"integer"},"month":{"anyOf":[{"const":"january","type":"string"},{"const":"february","type":"string"},{"const":"march","type":"string"},{"const":"april","type":"string"},{"const":"may","type":"string"},{"const":"june","type":"string"},{"const":"july","type":"string"},{"const":"august","type":"string"},{"const":"september","type":"string"},{"const":"october","type":"string"},{"const":"november","type":"string"},{"const":"december","type":"string"}],"$anchor":"month","title":"Month","type":"string"}},"type":"object"}],"$anchor":"rule","title":"Rule","type":"object"}}},{"additionalProperties":false,"properties":{"end":{"$ref":"#date","title":"End"},"start":{"$ref":"#date","title":"Start"},"rule":{"anyOf":[{"additionalProperties":false,"properties":{"every":{"const":"day","type":"string"},"period":{"title":"Period","default":1,"type":"integer"}},"type":"object"},{"additionalProperties":false,"properties":{"every":{"const":"month","type":"string"},"period":{"title":"Period","default":1,"type":"integer"},"day":{"anyOf":[{"type":"integer"},{"prefixItems":[{"anyOf":[{"const":"monday","type":"string"},{"const":"tuesday","type":"string"},{"const":"wednesday","type":"string"},{"const":"thursday","type":"string"},{"const":"friday","type":"string"},{"const":"saturday","type":"string"},{"const":"sunday","type":"string"}],"$anchor":"weekday","type":"string"},{"type":"integer"}],"type":"array"}],"$anchor":"month_day","title":"Day","type":["array","integer"]}},"type":"object"},{"additionalProperties":false,"properties":{"every":{"const":"week","type":"string"},"period":{"title":"Period","default":1,"type":"integer"},"weekdays":{"additionalProperties":false,"properties":{"monday":{"title":"Monday","default":false,"type":"boolean"},"tuesday":{"title":"Tuesday","default":false,"type":"boolean"},"wednesday":{"title":"Wednesday","default":false,"type":"boolean"},"thursday":{"title":"Thursday","default":false,"type":"boolean"},"friday":{"title":"Friday","default":false,"type":"boolean"},"saturday":{"title":"Saturday","default":false,"type":"boolean"},"sunday":{"title":"Sunday","default":false,"type":"boolean"}},"$anchor":"weekdays","title":"Weekdays","type":"object"},"weekstart":{"$ref":"#weekday","title":"Weekstart","default":"monday"}},"type":"object"},{"additionalProperties":false,"properties":{"every":{"const":"workday","type":"string"},"period":{"title":"Period","default":1,"type":"integer"}},"type":"object"},{"additionalProperties":false,"properties":{"every":{"const":"year","type":"string"},"period":{"title":"Period","default":1,"type":"integer"},"day":{"title":"Day","type":"integer"},"month":{"anyOf":[{"const":"january","type":"string"},{"const":"february","type":"string"},{"const":"march","type":"string"},{"const":"april","type":"string"},{"const":"may","type":"string"},{"const":"june","type":"string"},{"const":"july","type":"string"},{"const":"august","type":"string"},{"const":"september","type":"string"},{"const":"october","type":"string"},{"const":"november","type":"string"},{"const":"december","type":"string"}],"$anchor":"month","title":"Month","type":"string"}},"type":"object"}],"$anchor":"rule","title":"Rule","type":"object"}}}],"$anchor":"recurrence","title":"Recurrence","type":"object"}}},{"additionalProperties":false,"properties":{"id":{"$anchor":"block-id","title":"Id","type":"string"},"type":{"title":"Type","const":"todo","type":"string"},"checked":{"title":"Checked","description":"true if the task has been completed","type":"boolean"},"content":{"title":"Content","description":"title of the task","type":"string"},"task":{"$anchor":"task-id","title":"Task","description":"ID of the task - should be null for a new todo block. Old documents\n            hold a plain google task id in this field so we need to accept\n            broader values","type":"string"}}}],"$anchor":"block","type":"object"},"title":"Blocks","type":"array"}},"$anchor":"document","title":"Document","type":"object"}},"$anchor":"ai-prompt","title":"Agent_instructions","type":"object"},"automations":{"items":{"$anchor":"automation-id","type":"string"},"title":"Automations","default":[],"type":"array"},"conversations":{"items":{"$anchor":"conversation-id","type":"string"},"$anchor":"conversation-id-set","title":"Conversations","default":[],"type":"array"},"id":{"anyOf":[{"$ref":"#agent-id"},{"$anchor":"assistant-id","type":"string"}],"$anchor":"any-agent-id","title":"Id","type":"string"},"key":{"title":"Key","type":"string"},"name":{"title":"Name","type":"string"},"user_preferences":{"$ref":"#ai-prompt","title":"User_preferences"},"working_memory":{"$ref":"#ai-prompt","title":"Working_memory"}},"$anchor":"ai-agent","title":"Value","type":"object"}},"type":"object"},{"additionalProperties":false,"properties":{"element":{"$ref":"#agent-id","title":"Element"},"id":{"$ref":"#replica-timestamp","title":"Id"},"delta":{"items":{"anyOf":[{"additionalProperties":false,"properties":{"agent_instructions":{"items":{"anyOf":[{"additionalProperties":false,"properties":{"context":{"items":{"anyOf":[{"additionalProperties":false,"properties":{"integrations":{"items":{"anyOf":[{"additionalProperties":false,"properties":{"delete":{"$ref":"#replica-timestamp-set","title":"Delete"}},"type":"object"},{"additionalProperties":false,"properties":{"element":{"$ref":"#replica-timestamp","title":"Element"},"delta":{"title":"Delta"}},"type":"object"},{"additionalProperties":false,"properties":{"insert":{"$ref":"#replica-timestamp","title":"Insert"},"left":{"title":"Left","default":false,"type":"boolean"},"parent":{"$ref":"#replica-timestamp","title":"Parent"},"value":{"items":{"$ref":"#ai-prompt-context-integration"},"title":"Value","type":"array"}},"type":"object"}],"type":"object"},"title":"Integrations","type":"array"}},"type":"object"},{"additionalProperties":false,"properties":{"mentions":{"items":{"anyOf":[{"additionalProperties":false,"properties":{"delete":{"$ref":"#replica-timestamp-set","title":"Delete"}},"type":"object"},{"additionalProperties":false,"properties":{"element":{"$ref":"#replica-timestamp","title":"Element"},"delta":{"title":"Delta"}},"type":"object"},{"additionalProperties":false,"properties":{"insert":{"$ref":"#replica-timestamp","title":"Insert"},"left":{"title":"Left","default":false,"type":"boolean"},"parent":{"$ref":"#replica-timestamp","title":"Parent"},"value":{"items":{"$ref":"#ai-prompt-context-mention"},"title":"Value","type":"array"}},"type":"object"}],"type":"object"},"title":"Mentions","type":"array"}},"type":"object"},{"additionalProperties":false,"properties":{"references":{"items":{"anyOf":[{"additionalProperties":false,"properties":{"delete":{"$ref":"#replica-timestamp-set","title":"Delete"}},"type":"object"},{"additionalProperties":false,"properties":{"element":{"$ref":"#replica-timestamp","title":"Element"},"delta":{"title":"Delta"}},"type":"object"},{"additionalProperties":false,"properties":{"insert":{"$ref":"#replica-timestamp","title":"Insert"},"left":{"title":"Left","default":false,"type":"boolean"},"parent":{"$ref":"#replica-timestamp","title":"Parent"},"value":{"items":{"$ref":"#ai-prompt-context-reference"},"title":"Value","type":"array"}},"type":"object"}],"type":"object"},"title":"References","type":"array"}},"type":"object"}],"$anchor":"PromptContext-delta","type":"object"},"title":"Context","type":"array"}},"type":"object"},{"additionalProperties":false,"properties":{"document":{"items":{"anyOf":[{"additionalProperties":false,"properties":{"delta":{"items":{"$ref":"#delta"},"title":"Delta","type":"array"}},"type":"object"},{"additionalProperties":false,"properties":{"delta":{"items":{"anyOf":[{"additionalProperties":false,"properties":{"delete":{"$ref":"#replica-timestamp-set","title":"Delete"}},"type":"object"},{"additionalProperties":false,"properties":{"element":{"$ref":"#replica-timestamp","title":"Element"},"delta":{"title":"Delta"}},"type":"object"},{"additionalProperties":false,"properties":{"insert":{"$ref":"#replica-timestamp","title":"Insert"},"left":{"title":"Left","default":false,"type":"boolean"},"parent":{"$ref":"#replica-timestamp","title":"Parent"},"value":{"items":{"$ref":"#block-id"},"title":"Value","type":"array"}},"type":"object"}],"type":"object"},"title":"Delta","type":"array"}},"type":"object"}],"$anchor":"crdt-pair-delta","type":"object"},"title":"Document","type":"array"}},"type":"object"}],"$anchor":"PromptPrompt_crdt-delta","type":"object"},"title":"Agent_instructions","type":"array"}},"type":"object"},{"additionalProperties":false,"properties":{"automations":{"items":{"anyOf":[{"additionalProperties":false,"properties":{"delete":{"$ref":"#replica-timestamp-set","title":"Delete"}},"type":"object"},{"additionalProperties":false,"properties":{"element":{"$ref":"#replica-timestamp","title":"Element"},"delta":{"title":"Delta"}},"type":"object"},{"additionalProperties":false,"properties":{"insert":{"$ref":"#replica-timestamp","title":"Insert"},"left":{"title":"Left","default":false,"type":"boolean"},"parent":{"$ref":"#replica-timestamp","title":"Parent"},"value":{"items":{"$ref":"#automation-id"},"title":"Value","type":"array"}},"type":"object"}],"type":"object"},"title":"Automations","type":"array"}},"type":"object"},{"additionalProperties":false,"properties":{"conversations":{"items":{"$ref":"#delta"},"title":"Conversations","type":"array"}},"type":"object"},{"additionalProperties":false,"properties":{"id":{"title":"Id"}},"type":"object"},{"additionalProperties":false,"properties":{"key":{"items":{"anyOf":[{"additionalProperties":false,"properties":{"timestamp":{"$ref":"#replica-timestamp","title":"Timestamp"},"value":{"title":"Value","type":["null","string"]}},"type":"object"}],"type":"object"},"title":"Key","type":"array"}},"type":"object"},{"additionalProperties":false,"properties":{"name":{"items":{"anyOf":[{"additionalProperties":false,"properties":{"timestamp":{"$ref":"#replica-timestamp","title":"Timestamp"},"value":{"title":"Value","type":["null","string"]}},"type":"object"}],"type":"object"},"title":"Name","type":"array"}},"type":"object"},{"additionalProperties":false,"properties":{"user_preferences":{"items":{"$ref":"#PromptPrompt_crdt-delta"},"title":"User_preferences","type":"array"}},"type":"object"},{"additionalProperties":false,"properties":{"working_memory":{"items":{"$ref":"#PromptPrompt_crdt-delta"},"title":"Working_memory","type":"array"}},"type":"object"}],"$anchor":"AgentAgent_crdt-delta","type":"object"},"title":"Delta","type":"array"}},"type":"object"},{"additionalProperties":false,"properties":{"remove":{"$ref":"#agent-id","title":"Remove"},"id":{"$ref":"#replica-timestamp","title":"Id"}},"type":"object"}],"$anchor":"delta","type":"object"},"title":"Agents","type":"array"}},"type":"object"},{"additionalProperties":false,"properties":{"assistant":{"items":{"$ref":"#delta"},"title":"Assistant","type":"array"}},"type":"object"},{"additionalProperties":false,"properties":{"automation_runs":{"items":{"$ref":"#delta"},"title":"Automation_runs","type":"array"}},"type":"object"},{"additionalProperties":false,"properties":{"steps":{"items":{"$ref":"#delta"},"title":"Steps","type":"array"}},"type":"object"},{"additionalProperties":false,"properties":{"automations":{"items":{"$ref":"#delta"},"title":"Automations","type":"array"}},"type":"object"},{"additionalProperties":false,"properties":{"conversations":{"items":{"$ref":"#delta"},"title":"Conversations","type":"array"}},"type":"object"}],"$anchor":"ai-delta","type":"object"},"title":"Ai","type":"array"}},"type":"object"},{"additionalProperties":false,"properties":{"calendars":{"items":{"$ref":"#delta"},"title":"Calendars","type":"array"}},"type":"object"},{"additionalProperties":false,"properties":{"connections":{"items":{"$ref":"#delta"},"title":"Connections","type":"array"}},"type":"object"},{"additionalProperties":false,"properties":{"events":{"items":{"$ref":"#delta"},"title":"Events","type":"array"}},"type":"object"},{"additionalProperties":false,"properties":{"events-rec":{"items":{"$ref":"#delta"},"title":"Events-rec","type":"array"}},"type":"object"},{"additionalProperties":false,"properties":{"integration-app":{"items":{"anyOf":[{"additionalProperties":false,"properties":{"enabled_data_collections":{"items":{"$ref":"#delta"},"title":"Enabled_data_collections","type":"array"}},"type":"object"}],"$anchor":"integration-app-delta","type":"object"},"title":"Integration-app","type":"array"}},"type":"object"},{"additionalProperties":false,"properties":{"integrations":{"items":{"$ref":"#delta"},"title":"Integrations","type":"array"}},"type":"object"},{"additionalProperties":false,"properties":{"hierarchy":{"items":{"anyOf":[{"additionalProperties":false,"properties":{"id":{"$ref":"#replica-timestamp","title":"Id"},"parent":{"$ref":"#replica-timestamp","title":"Parent"},"value":{"$anchor":"page-id","title":"Value","type":"string"}},"type":"object"},{"additionalProperties":false,"properties":{"id":{"$ref":"#replica-timestamp","title":"Id"},"delta":{"title":"Delta"}},"type":"object"},{"additionalProperties":false,"properties":{"id":{"$ref":"#replica-timestamp","title":"Id"},"parent":{"$ref":"#replica-timestamp","title":"Parent"},"timestamp":{"$ref":"#replica-timestamp","title":"Timestamp"}},"type":"object"}],"type":"object"},"title":"Hierarchy","type":"array"}},"type":"object"},{"additionalProperties":false,"properties":{"home":{"items":{"anyOf":[{"additionalProperties":false,"properties":{"timestamp":{"$ref":"#replica-timestamp","title":"Timestamp"},"value":{"title":"Value","type":["null","string"]}},"type":"object"}],"type":"object"},"title":"Home","type":"array"}},"type":"object"},{"additionalProperties":false,"properties":{"members":{"items":{"anyOf":[{"$ref":"#delta"},{"anyOf":[{"additionalProperties":false,"properties":{"add":{"$ref":"#account-id","title":"Add"},"id":{"$ref":"#replica-timestamp","title":"Id"},"value":{"title":"Value","type":"null"}},"type":"object"},{"additionalProperties":false,"properties":{"element":{"$ref":"#account-id","title":"Element"},"id":{"$ref":"#replica-timestamp","title":"Id"},"delta":{"title":"Delta"}},"type":"object"},{"additionalProperties":false,"properties":{"remove":{"$ref":"#account-id","title":"Remove"},"id":{"$ref":"#replica-timestamp","title":"Id"}},"type":"object"}],"type":"object"}],"$anchor":"workspace-member-role-delta","type":"object"},"title":"Members","type":"array"}},"type":"object"},{"additionalProperties":false,"properties":{"notices":{"items":{"$ref":"#delta"},"title":"Notices","type":"array"}},"type":"object"},{"additionalProperties":false,"properties":{"notices-personal-archived":{"items":{"$ref":"#delta"},"title":"Notices-personal-archived","type":"array"}},"type":"object"},{"additionalProperties":false,"properties":{"notices-personal-viewed":{"items":{"$ref":"#delta"},"title":"Notices-personal-viewed","type":"array"}},"type":"object"},{"additionalProperties":false,"properties":{"organizations":{"items":{"$ref":"#delta"},"title":"Organizations","type":"array"}},"type":"object"},{"additionalProperties":false,"properties":{"pages":{"items":{"$ref":"#delta"},"title":"Pages","type":"array"}},"type":"object"},{"additionalProperties":false,"properties":{"people":{"items":{"$ref":"#delta"},"title":"People","type":"array"}},"type":"object"},{"additionalProperties":false,"properties":{"menu-items":{"items":{"anyOf":[{"additionalProperties":false,"properties":{"delete":{"$ref":"#replica-timestamp-set","title":"Delete"}},"type":"object"},{"additionalProperties":false,"properties":{"element":{"$ref":"#replica-timestamp","title":"Element"},"delta":{"items":{"anyOf":[{"additionalProperties":false,"properties":{"target":{"title":"Target"}},"type":"object"},{"additionalProperties":false,"properties":{"home":{"items":{"anyOf":[{"additionalProperties":false,"properties":{"timestamp":{"$ref":"#replica-timestamp","title":"Timestamp"},"value":{"$anchor":"bool","title":"Value","type":"boolean"}},"type":"object"}],"type":"object"},"title":"Home","type":"array"}},"type":"object"}],"$anchor":"Menu_itemMenu_item_crdt-delta","type":"object"},"title":"Delta","type":"array"}},"type":"object"},{"additionalProperties":false,"properties":{"insert":{"$ref":"#replica-timestamp","title":"Insert"},"left":{"title":"Left","default":false,"type":"boolean"},"parent":{"$ref":"#replica-timestamp","title":"Parent"},"value":{"items":{"additionalProperties":false,"properties":{"target":{"anyOf":[{"anyOf":[{"additionalProperties":false,"properties":{"kind":{"const":"object","type":"string"},"value":{"$ref":"#reference-id","title":"Value"}},"description":"A menu item pointing to a Routine object","type":"object"},{"additionalProperties":false,"properties":{"kind":{"const":"app_screen","type":"string"},"organization":{"$anchor":"org-id","title":"Organization","description":"The organization this screen targets. Unspecified is\n                interchangeable with the personal organization for backward\n                compatibility.","type":"string"},"value":{"anyOf":[{"const":"agenda","type":"string"},{"const":"assistant","type":"string"},{"const":"calendar","type":"string"},{"const":"inbox","type":"string"},{"const":"journal","type":"string"},{"const":"labels","type":"string"},{"const":"page","type":"string"},{"const":"people","type":"string"},{"const":"projects","type":"string"},{"const":"task","type":"string"}],"$anchor":"menu-item-app-screen","title":"Value","type":"string"}},"description":"A specific screen in the app","type":"object"},{"additionalProperties":false,"properties":{"kind":{"const":"organization_homepage","type":"string"},"value":{"$ref":"#org-id","title":"Value"}},"description":"A menu item pointing to an Organization homepage","type":"object"},{"additionalProperties":false,"properties":{"kind":{"const":"database","type":"string"},"workspace_id":{"$ref":"#workspace-id","title":"Workspace_id"},"table_id":{"$ref":"#table-id","title":"Table_id"}},"description":"A menu item pointing to a Database view","type":"object"},{"additionalProperties":false,"properties":{"kind":{"const":"workspace_homepage","type":"string"},"value":{"$ref":"#workspace-id","title":"Value"}},"description":"A menu item pointing to a Workspace homepage","type":"object"},{"additionalProperties":false,"properties":{"kind":{"const":"agent","type":"string"},"agent_id":{"$ref":"#any-agent-id","title":"Agent_id"},"organization_id":{"$ref":"#org-id","title":"Organization_id"}},"description":"A menu item pointing to an AI Agent","type":"object"}],"$anchor":"menu-item-target","description":"The target of a menu item","type":"object"},{"anyOf":[{"additionalProperties":false,"properties":{"kind":{"const":"object","type":"string"},"value":{"$ref":"#reference-id","title":"Value"}},"type":"object"},{"additionalProperties":false,"properties":{"kind":{"const":"app_screen","type":"string"},"organization":{"$ref":"#org-id","title":"Organization"},"value":{"$ref":"#menu-item-app-screen","title":"Value"}},"type":"object"},{"additionalProperties":false,"properties":{"kind":{"const":"organization_homepage","type":"string"},"value":{"$ref":"#org-id","title":"Value"}},"type":"object"},{"additionalProperties":false,"properties":{"kind":{"const":"database","type":"string"},"workspace_id":{"$ref":"#workspace-id","title":"Workspace_id"},"table_id":{"$ref":"#table-id","title":"Table_id"}},"type":"object"},{"additionalProperties":false,"properties":{"kind":{"const":"agent","type":"string"},"object_id":{"$anchor":"object-id","title":"Object_id","type":"string"}},"type":"object"}],"$anchor":"menu-item-target-old","type":"object"}],"title":"Target","type":"object"},"home":{"title":"Home","type":"boolean"}},"$anchor":"menu-item-compat","type":"object"},"title":"Value","type":"array"}},"type":"object"}],"type":"object"},"title":"Menu-items","type":"array"}},"type":"object"},{"additionalProperties":false,"properties":{"recurrences":{"items":{"$ref":"#delta"},"title":"Recurrences","type":"array"}},"type":"object"},{"additionalProperties":false,"properties":{"settings":{"items":{"anyOf":[{"additionalProperties":false,"properties":{"access_restriction":{"items":{"$ref":"#delta"},"title":"Access_restriction","type":"array"}},"type":"object"},{"additionalProperties":false,"properties":{"locale":{"items":{"anyOf":[{"additionalProperties":false,"properties":{"timestamp":{"$ref":"#replica-timestamp","title":"Timestamp"},"value":{"additionalProperties":false,"properties":{"hours":{"title":"Hours","type":["integer","null"]}},"$anchor":"locale-settings","title":"Value","type":"object"}},"type":"object"}],"type":"object"},"title":"Locale","type":"array"}},"type":"object"},{"additionalProperties":false,"properties":{"hours":{"items":{"anyOf":[{"additionalProperties":false,"properties":{"timestamp":{"$ref":"#replica-timestamp","title":"Timestamp"},"value":{"additionalProperties":false,"properties":{"day":{"additionalProperties":false,"properties":{"hours":{"title":"Hours","maximum":24,"minimum":0,"type":"integer"},"minutes":{"title":"Minutes","default":0,"maximum":60,"minimum":0,"type":"integer"},"seconds":{"title":"Seconds","default":0,"maximum":60,"minimum":0,"type":"integer"}},"title":"Day","default":null,"type":["null","object"]},"noon":{"additionalProperties":false,"properties":{"hours":{"title":"Hours","maximum":24,"minimum":0,"type":"integer"},"minutes":{"title":"Minutes","default":0,"maximum":60,"minimum":0,"type":"integer"},"seconds":{"title":"Seconds","default":0,"maximum":60,"minimum":0,"type":"integer"}},"title":"Noon","default":null,"type":["null","object"]},"afternoon":{"additionalProperties":false,"properties":{"hours":{"title":"Hours","maximum":24,"minimum":0,"type":"integer"},"minutes":{"title":"Minutes","default":0,"maximum":60,"minimum":0,"type":"integer"},"seconds":{"title":"Seconds","default":0,"maximum":60,"minimum":0,"type":"integer"}},"title":"Afternoon","default":null,"type":["null","object"]},"evening":{"additionalProperties":false,"properties":{"hours":{"title":"Hours","maximum":24,"minimum":0,"type":"integer"},"minutes":{"title":"Minutes","default":0,"maximum":60,"minimum":0,"type":"integer"},"seconds":{"title":"Seconds","default":0,"maximum":60,"minimum":0,"type":"integer"}},"title":"Evening","default":null,"type":["null","object"]},"night":{"additionalProperties":false,"properties":{"hours":{"title":"Hours","maximum":24,"minimum":0,"type":"integer"},"minutes":{"title":"Minutes","default":0,"maximum":60,"minimum":0,"type":"integer"},"seconds":{"title":"Seconds","default":0,"maximum":60,"minimum":0,"type":"integer"}},"title":"Night","default":null,"type":["null","object"]}},"$anchor":"hours-settings","title":"Value","type":"object"}},"type":"object"}],"type":"object"},"title":"Hours","type":"array"}},"type":"object"},{"additionalProperties":false,"properties":{"mru_destinations":{"items":{"$ref":"#delta"},"title":"Mru_destinations","type":"array"}},"type":"object"},{"additionalProperties":false,"properties":{"mru_people":{"items":{"$ref":"#delta"},"title":"Mru_people","type":"array"}},"type":"object"},{"additionalProperties":false,"properties":{"week_start":{"items":{"anyOf":[{"additionalProperties":false,"properties":{"timestamp":{"$ref":"#replica-timestamp","title":"Timestamp"},"value":{"$ref":"#weekday","title":"Value"}},"type":"object"}],"type":"object"},"title":"Week_start","type":"array"}},"type":"object"}],"$anchor":"settings-delta","type":"object"},"title":"Settings","type":"array"}},"type":"object"},{"additionalProperties":false,"properties":{"subscription":{"items":{"anyOf":[{"additionalProperties":false,"properties":{"timestamp":{"$ref":"#replica-timestamp","title":"Timestamp"},"value":{"title":"Value","type":["null","string"]}},"type":"object"}],"type":"object"},"title":"Subscription","type":"array"}},"type":"object"},{"additionalProperties":false,"properties":{"task-bindings":{"items":{"$ref":"#delta"},"title":"Task-bindings","type":"array"}},"type":"object"},{"additionalProperties":false,"properties":{"task-binding-settings":{"items":{"$ref":"#delta"},"title":"Task-binding-settings","type":"array"}},"type":"object"},{"additionalProperties":false,"properties":{"tasks":{"items":{"$ref":"#delta"},"title":"Tasks","type":"array"}},"type":"object"},{"additionalProperties":false,"properties":{"tables":{"items":{"$ref":"#delta"},"title":"Tables","type":"array"}},"type":"object"},{"additionalProperties":false,"properties":{"object-hierarchy":{"items":{"anyOf":[{"additionalProperties":false,"properties":{"id":{"$ref":"#replica-timestamp","title":"Id"},"parent":{"$ref":"#replica-timestamp","title":"Parent"},"value":{"$ref":"#object-id","title":"Value"}},"type":"object"},{"additionalProperties":false,"properties":{"id":{"$ref":"#replica-timestamp","title":"Id"},"delta":{"title":"Delta"}},"type":"object"},{"additionalProperties":false,"properties":{"id":{"$ref":"#replica-timestamp","title":"Id"},"parent":{"$ref":"#replica-timestamp","title":"Parent"},"timestamp":{"$ref":"#replica-timestamp","title":"Timestamp"}},"type":"object"}],"type":"object"},"title":"Object-hierarchy","type":"array"}},"type":"object"}],"$anchor":"crdt-routine-delta","type":"object"},"title":"Delta","type":"array"}},"$anchor":"commit","type":"object"},"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array"}}},"required":true},"responses":{"204":{"description":"The commits were properly saved"},"404":{"description":"The workspace does not exist","content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"details":{"title":"Details"},"method":{"anyOf":[{"const":"delete","type":"string"},{"const":"get","type":"string"},{"const":"head","type":"string"},{"const":"options","type":"string"},{"const":"patch","type":"string"},{"const":"post","type":"string"},{"const":"put","type":"string"}],"$anchor":"method","title":"Method","type":"string"},"path":{"title":"Path","type":"string"},"reason":{"title":"Reason","description":"Human readable error.","type":"string"},"report":{"title":"Report","description":"The sentry report id, if any.","type":"string"},"retry_after":{"$anchor":"time","title":"Retry_after","description":"The earliest possible retry, iff the request should be retried","type":"string"}},"$schema":"https://json-schema.org/draft/2020-12/schema","$anchor":"errors_intf","type":"object"}}}},"409":{"description":"The provided cookie mismatched the expected one","content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"details":{"title":"Details"},"method":{"anyOf":[{"const":"delete","type":"string"},{"const":"get","type":"string"},{"const":"head","type":"string"},{"const":"options","type":"string"},{"const":"patch","type":"string"},{"const":"post","type":"string"},{"const":"put","type":"string"}],"$anchor":"method","title":"Method","type":"string"},"path":{"title":"Path","type":"string"},"reason":{"title":"Reason","description":"Human readable error.","type":"string"},"report":{"title":"Report","description":"The sentry report id, if any.","type":"string"},"retry_after":{"$anchor":"time","title":"Retry_after","description":"The earliest possible retry, iff the request should be retried","type":"string"}},"$schema":"https://json-schema.org/draft/2020-12/schema","$anchor":"errors_intf","type":"object"}}}}}},"parameters":[{"name":"id","in":"path","description":"Id of the workspace","required":true}]},"/.well-known/assetlinks.json":{"get":{"responses":{"200":{"description":"Android deeplink certification","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}}}}}}}}