{"openapi":"3.1.0","info":{"title":"ZAIA GENERATIVE AI SERVICES","description":"User Management and Authentication API","version":"1.0.0"},"paths":{"/core/token/request_login_code":{"post":{"tags":["authentication"],"summary":"Send authentication code to email.","description":"Send authentication code to user's email.","operationId":"create_send_login_code_api_token_request_login_code_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"type":"string"},"type":"object","title":"Response Create Send Login Code Api Token Request Login Code Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/token/verify_login_code":{"post":{"tags":["authentication"],"summary":"Get verified authentication token with provided code.","description":"Verify provided user code and return a authentication token.","operationId":"verify_login_code_api_token_verify_login_code_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenVerifyRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/token/validate_token":{"get":{"tags":["authentication"],"summary":"Get validated token context.","description":"Validate authentication token and return user's context.","operationId":"validate_token_api_token_validate_token_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidateTokenResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/core/token/refresh":{"post":{"tags":["authentication"],"summary":"Refresh authentication tokens.","description":"Exchange a valid refresh token for a new access token and refresh token pair.","operationId":"refresh_tokens_api_token_refresh_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenResponse"}}}}}}},"/core/token/logout":{"post":{"tags":["authentication"],"summary":"Logout and invalidate refresh token.","description":"Ends the user's session and invalidates the refresh token.","operationId":"logout_api_token_logout_post","responses":{"204":{"description":"Successful Response"}},"security":[{"HTTPBearer":[]}]}},"/core/token/device/pending":{"post":{"tags":["authentication"],"summary":"Get the device that is waiting for a code.","description":"Show which application and device a code belongs to, so the user can check it before confirming.","operationId":"get_pending_sign_in_api_token_device_pending_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeviceSignInUserCodeRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeviceSignInPendingResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/core/token/device/start":{"post":{"tags":["authentication"],"summary":"Start signing a device in.","description":"Start a sign-in for an application outside the browser. Show the user code to the user and keep the device code to ask for the tokens.","operationId":"start_sign_in_api_token_device_start_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeviceSignInStartRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeviceSignInStartResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/token/device/approve":{"post":{"tags":["authentication"],"summary":"Confirm a device sign-in.","description":"Let the device with this code sign in as the current user.","operationId":"approve_sign_in_api_token_device_approve_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeviceSignInUserCodeRequest"}}},"required":true},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/core/token/device/deny":{"post":{"tags":["authentication"],"summary":"Refuse a device sign-in.","description":"Refuse the device with this code.","operationId":"deny_sign_in_api_token_device_deny_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeviceSignInUserCodeRequest"}}},"required":true},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/core/token/device/token":{"post":{"tags":["authentication"],"summary":"Collect the tokens of a confirmed device.","description":"Ask for the tokens of a sign-in. Answers 'authorization_pending' until the user has confirmed, 'access_denied' when the user refused, and 'expired_token' when the sign-in can no longer be used.","operationId":"exchange_device_code_api_token_device_token_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeviceSignInTokenRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeviceTokenResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeviceSignInTokenErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/token/device/refresh":{"post":{"tags":["authentication"],"summary":"Refresh the tokens of a device.","description":"Exchange a device's refresh token for a new access token and refresh token pair.","operationId":"refresh_device_tokens_api_token_device_refresh_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeviceTokenRefreshRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeviceTokenResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/token/device/logout":{"post":{"tags":["authentication"],"summary":"Sign a device out.","description":"End the device's sign-in. Its refresh token can no longer be used.","operationId":"logout_device_api_token_device_logout_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeviceTokenLogoutRequest"}}},"required":true},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/token/devices":{"get":{"tags":["authentication"],"summary":"Get the devices signed in to the current account.","description":"List the applications outside the browser that are signed in as the current user.","operationId":"get_linked_devices_api_token_devices_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/LinkedDeviceResponse"},"type":"array","title":"Response Get Linked Devices Api Token Devices Get"}}}}},"security":[{"HTTPBearer":[]}]}},"/core/token/devices/{device_id}":{"delete":{"tags":["authentication"],"summary":"Sign one of the current account's devices out.","description":"End a device's sign-in. The device has to sign in again to continue.","operationId":"unlink_device_api_token_devices__device_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"device_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Device Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/auth/microsoft/login":{"get":{"tags":["authentication"],"summary":"Get the Microsoft sign-in URL.","description":"Returns the URL to redirect the user to for Microsoft sign-in, along with a state value that is validated when the user returns.","operationId":"get_login_url_api_auth_microsoft_login_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SsoLoginUrlResponse"}}}}}}},"/core/auth/microsoft/callback":{"get":{"tags":["authentication"],"summary":"Handle the Microsoft sign-in callback.","description":"Completes Microsoft sign-in and redirects the browser back to the app. On success the session is established via a secure cookie; the frontend then obtains an access token from the token refresh endpoint.","operationId":"handle_callback_api_auth_microsoft_callback_get","parameters":[{"name":"code","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code"}},{"name":"state","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"}},{"name":"error","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}}],"responses":{"303":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/auth/google/login":{"get":{"tags":["authentication"],"summary":"Get the Google sign-in URL.","description":"Returns the URL to redirect the user to for Google sign-in, along with a state value that is validated when the user returns.","operationId":"get_login_url_api_auth_google_login_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SsoLoginUrlResponse"}}}}}}},"/core/auth/google/callback":{"get":{"tags":["authentication"],"summary":"Handle the Google sign-in callback.","description":"Completes Google sign-in and redirects the browser back to the app. On success the session is established via a secure cookie; the frontend then obtains an access token from the token refresh endpoint.","operationId":"handle_callback_api_auth_google_callback_get","parameters":[{"name":"code","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code"}},{"name":"state","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"}},{"name":"error","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}}],"responses":{"303":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/auth/sso/invite/accept":{"get":{"tags":["authentication"],"summary":"Accept an SSO invitation from an email link.","description":"Validates the invitation and redirects the browser to the identity provider to sign in. Invalid or already-used invitations redirect back to the app with an error.","operationId":"accept_invite_redirect_api_auth_sso_invite_accept_get","parameters":[{"name":"token","in":"query","required":true,"schema":{"type":"string","description":"Signed SSO invite token from the invitation email.","title":"Token"},"description":"Signed SSO invite token from the invitation email."}],"responses":{"303":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/auth/sso/{provider}/invites":{"post":{"tags":["authentication"],"summary":"Invite a batch of users to sign in with SSO.","description":"Sends an SSO invitation email to each eligible user in the batch. Users that are not eligible are skipped. Returns a per-user status.","operationId":"create_invites_bulk_api_auth_sso__provider__invites_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"provider","in":"path","required":true,"schema":{"$ref":"#/components/schemas/SsoProvider"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SsoInviteBulkCreateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SsoInviteBulkCreateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/auth/sso/{provider}/identities/revoke":{"post":{"tags":["authentication"],"summary":"Revoke SSO access for a batch of users.","description":"Revokes SSO access for each user in the batch, removing any linked identity and cancelling any outstanding invitation. Returns a per-user status.","operationId":"revoke_identities_bulk_api_auth_sso__provider__identities_revoke_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"provider","in":"path","required":true,"schema":{"$ref":"#/components/schemas/SsoProvider"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SsoIdentityBulkRevokeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SsoIdentityBulkRevokeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/languages":{"get":{"tags":["languages"],"summary":"Get languages.","description":"Get all languages supported by the application.","operationId":"get_languages_paged_api_languages_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"top","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":10,"title":"Top"}},{"name":"skip","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Skip"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedResponse_LanguageResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/languages/{language_id}":{"put":{"tags":["languages"],"summary":"Create or update a language.","description":"Create or update a language by ID.","operationId":"create_or_update_language_api_languages__language_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"language_id","in":"path","required":true,"schema":{"type":"string","description":"ID of the language, following ISO 639-1","title":"Language Id"},"description":"ID of the language, following ISO 639-1"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LanguageUpdate"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/environments":{"get":{"tags":["environments"],"summary":"Get User Environments","description":"Retrieve all environments accessible to the authenticated user.\n\nArgs:\n    environment_service (EnvironmentServiceDI): Injected environment service for business logic.\n    auth_context (AuthContext): Authentication context containing user information.\n    pagination_params (PaginationParameters): Parameters for pagination.\n\nReturns:\n    PaginatedResponse[UserEnvironmentResponse]: Page of environments the user has access to.","operationId":"get_user_environments_api_environments_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"top","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":10,"title":"Top"}},{"name":"skip","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Skip"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedResponse_UserEnvironmentResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/environments/{environment_id}":{"get":{"tags":["environments"],"summary":"Get Environment","operationId":"get_environment_api_environments__environment_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"environment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Environment Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__schemas__environment_schemas__OrganizationEnvironmentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/organizations/{organization_id}/environments":{"get":{"tags":["environments"],"summary":"Get organization environments.","description":"Get all environments for an organization.","operationId":"get_organization_environments_api_organizations__organization_id__environments_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}},{"name":"active_only","in":"query","required":false,"schema":{"type":"boolean","description":"Filter by active status","default":true,"title":"Active Only"},"description":"Filter by active status"},{"name":"direct_assignment_only","in":"query","required":false,"schema":{"type":"boolean","description":"Filter for explicitly assigned environments. Automatically enabled for non-core administrators.","default":false,"title":"Direct Assignment Only"},"description":"Filter for explicitly assigned environments. Automatically enabled for non-core administrators."},{"name":"top","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":10,"title":"Top"}},{"name":"skip","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Skip"}},{"name":"minimum_role","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Minimum role required","title":"Minimum Role"},"description":"Minimum role required"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedResult_OrganizationEnvironmentResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["environments"],"summary":"Create Environment","description":"Create a new environment within an organization.\n\nArgs:\n    environment_service (EnvironmentServiceDI): Injected environment service for business logic.\n    organization_id (UUID): ID of the organization to create the environment in.\n    create_schema (EnvironmentCreate): Environment creation data with configuration.\n    auth_context (AuthContext): Authentication context containing user information.\n\nReturns:\n    EnvironmentResponse: The newly created environment.\n\nRaises:\n    ConflictException: If an environment with the same name exists in the organization.\n    NotFoundException: If the organization doesn't exist.","operationId":"create_environment_api_organizations__organization_id__environments_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnvironmentCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnvironmentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/organizations/{organization_id}/environments/{environment_id}":{"put":{"tags":["environments"],"summary":"Update Environment","description":"Update an existing environment within an organization.\n\nArgs:\n    environment_service (EnvironmentServiceDI): Injected environment service for business logic.\n    organization_id (UUID): ID of the organization containing the environment.\n    environment_id (UUID): ID of the environment to update.\n    update_schema (EnvironmentUpdate): Environment update data with new configuration.\n\nReturns:\n    EnvironmentResponse: The updated environment.\n\nRaises:\n    NotFoundException: If the environment with the specified ID doesn't exist.\n    ConflictException: If an environment with the same name exists in the organization.","operationId":"update_environment_api_organizations__organization_id__environments__environment_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}},{"name":"environment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Environment Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnvironmentUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnvironmentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["environments"],"summary":"Delete Environment","description":"Delete an existing environment from an organization.\n\nArgs:\n    environment_service (EnvironmentServiceCleanDI): Injected environment service for business logic.\n    organization_id (UUID): ID of the organization containing the environment.\n    environment_id (UUID): ID of the environment to delete.\n\nRaises:\n    EnvironmentNotFoundException: If the environment doesn't exist within the organization.\n    EnvironmentCoreDeletionException: If trying to delete the core environment.","operationId":"delete_environment_api_organizations__organization_id__environments__environment_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}},{"name":"environment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Environment Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/users/me/settings":{"put":{"tags":["users"],"summary":"Update User Settings","operationId":"update_user_settings_api_users_me_settings_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserSettingsUpdate"}}},"required":true},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/core/organizations/{organization_id}/users":{"get":{"tags":["users"],"summary":"Get Users Paged","operationId":"get_users_paged_api_organizations__organization_id__users_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"active_only","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Active Only"}},{"name":"unassigned_to_environment_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Unassigned To Environment Id"}},{"name":"top","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":10,"title":"Top"}},{"name":"skip","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Skip"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedResponse_OrganizationUserResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["users"],"summary":"Create User","operationId":"create_user_api_organizations__organization_id__users_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserCreateRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserCreateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/organizations/{organization_id}/users/{user_id}":{"get":{"tags":["users"],"summary":"Get User","operationId":"get_user_api_organizations__organization_id__users__user_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}},{"name":"user_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationUserDetailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["users"],"summary":"Delete User","operationId":"delete_user_api_organizations__organization_id__users__user_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}},{"name":"user_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"User Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["users"],"summary":"Update User","operationId":"update_user_api_organizations__organization_id__users__user_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}},{"name":"user_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"User Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/organizations/{organization_id}/users/import/template/download":{"get":{"tags":["users"],"summary":"Download Users Import Template","operationId":"download_users_import_template_api_organizations__organization_id__users_import_template_download_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}},{"name":"separator","in":"query","required":false,"schema":{"$ref":"#/components/schemas/CsvSeparator","default":"semicolon"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/organizations/{organization_id}/users/import":{"post":{"tags":["users"],"summary":"Import Users","operationId":"import_users_api_organizations__organization_id__users_import_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_import_users_api_organizations__organization_id__users_import_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserBulkImportResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/organizations/{organization_id}/users/{user_id}/migrate":{"post":{"tags":["users"],"summary":"Move a user to another organization","description":"The user is given the requested role, or the role they hold today if none is requested.\n\n**They do not keep their content.** Their documents and files are permanently deleted and they are returned with a new id. A user who signed in with a single sign-on provider is invited to link it again, with the outcome on the response.\n\nMoving a user to the organization they are already in changes nothing.","operationId":"migrate_user_api_organizations__organization_id__users__user_id__migrate_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}},{"name":"user_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"User Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserMigrateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserCreateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/environments/{environment_id}/users":{"get":{"tags":["users"],"summary":"Get Environment Users","operationId":"get_environment_users_api_environments__environment_id__users_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"environment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Environment Id"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"active_only","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Active Only"}},{"name":"environment_only","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Environment Only"}},{"name":"top","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":10,"title":"Top"}},{"name":"skip","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Skip"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedResponse_EnvironmentUserResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/roles":{"get":{"tags":["roles"],"summary":"Get roles.","description":"Get all roles supported by the application.","operationId":"get_roles_paged_api_roles_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"top","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":10,"title":"Top"}},{"name":"skip","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Skip"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedResponse_RoleResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/environments/{environment_id}/role":{"get":{"tags":["roles"],"summary":"Get the authenticated user's role in an environment","description":"Get the role for an authenticated user in a specific environment.","operationId":"get_current_user_role_api_environments__environment_id__role_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"environment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Environment Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"string","title":"Response Get Current User Role Api Environments  Environment Id  Role Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/environments/{environment_id}/users/roles":{"put":{"tags":["roles"],"summary":"Bulk create or update user roles in an environment.","description":"Create or update the same role assignment for multiple users in a specific environment.","operationId":"bulk_create_or_update_user_roles_api_environments__environment_id__users_roles_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"environment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Environment Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserRoleBulkAssignRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserRoleBulkAssignResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/environments/{environment_id}/users/roles/bulk-delete":{"post":{"tags":["roles"],"summary":"Bulk delete user roles in an environment.","description":"Delete role assignments for multiple users in a specific environment.","operationId":"bulk_delete_user_roles_api_environments__environment_id__users_roles_bulk_delete_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"environment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Environment Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserRoleBulkDeleteRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserRoleBulkDeleteResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/environments/{environment_id}/users/{user_id}/role":{"put":{"tags":["roles"],"summary":"Create or update a user role in an environment.","description":"Create or update a role for a user in a specific environment.","operationId":"create_or_update_user_role_api_environments__environment_id__users__user_id__role_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"environment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Environment Id"}},{"name":"user_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"User Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserRoleUpdate"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["roles"],"summary":"Delete a user role in an environment.","description":"Delete a role for a user in a specific environment.","operationId":"delete_user_roles_api_environments__environment_id__users__user_id__role_delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"environment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Environment Id"}},{"name":"user_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"User Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/users/{user_id}/roles":{"get":{"tags":["roles"],"summary":"Get roles for a user.","description":"Get all roles for a user in the environments.","operationId":"get_user_roles_api_users__user_id__roles_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"User Id"}},{"name":"top","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":10,"title":"Top"}},{"name":"skip","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Skip"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedResponse_UserRoleResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/organizations":{"get":{"tags":["organizations"],"summary":"Get Organizations","description":"Retrieve all organizations for the user, optionally filtered by active status.\n\nArgs:\n    organization_service (OrganizationServiceDI): Injected organization service for business logic.\n    auth_context (AuthContext): Authentication context for user.\n    pagination_params (PaginationParameters): Parameters for pagination.\n    active_only (bool): Flag to return only active organizations. Defaults to True.\n\nReturns:\n    PaginatedResponse[OrganizationListResponse]: Page of organizations.","operationId":"get_organizations_api_organizations_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"active_only","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Active Only"}},{"name":"top","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":10,"title":"Top"}},{"name":"skip","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Skip"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedResponse_OrganizationListResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["organizations"],"summary":"Create Organization","description":"Create a new organization with a default environment.\n\nArgs:\n    organization_manager (OrganizationManagerDI): Injected organization manager for business logic.\n    create_schema (OrganizationCreate): Organization creation data with configuration.\n    auth_context (AuthContext): Authentication context containing owner information.\n\nReturns:\n    OrganizationResponse: The newly created organization.\n\nRaises:\n    ConflictException: If an organization with the same name or VAT number already exists.","operationId":"create_organization_api_organizations_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/organizations/{organization_id}/branding":{"get":{"tags":["organizations"],"summary":"Get Organization Branding","description":"Retrieve the logo and partner badge of an organization for any of its members.\n\nThe full organization stays behind the admin route; this returns only what the top bar shows.\n\nArgs:\n    organization_service (OrganizationServiceDI): Injected organization service for business logic.\n    organization_id (UUID): ID of the organization.\n\nReturns:\n    OrganizationBrandingResponse: The organization's name and branding metadata.\n\nRaises:\n    NotFoundException: If the organization is not found.","operationId":"get_organization_branding_api_organizations__organization_id__branding_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationBrandingResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/organizations/{organization_id}":{"put":{"tags":["organizations"],"summary":"Update Organization","description":"Update an existing organization.\n\nArgs:\n    organization_service (OrganizationServiceDI): Injected organization service for business logic.\n    organization_id (UUID): ID of the organization to update.\n    update_schema (OrganizationUpdate): Organization update data with new configuration.\n    __: Authentication context for admin validation.\n    _: Dependency to ensure user is in the organization.\n\nReturns:\n    OrganizationResponse: The updated organization.\n\nRaises:\n    NotFoundException: If the organization is not found.\n    ConflictException: If another organization has the same name or VAT number.","operationId":"update_organization_api_organizations__organization_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["organizations"],"summary":"Get Organization","description":"Retrieve a specific organization by ID.\n\nArgs:\n    organization_service (OrganizationServiceDI): Injected organization service for business logic.\n    organization_id (UUID): ID of the organization to retrieve.\n    __: Authentication context for admin validation.\n    _: Dependency to ensure user is in the organization.\n\nReturns:\n    OrganizationResponse: The requested organization.\n\nRaises:\n    NotFoundException: If the organization is not found.","operationId":"get_organization_api_organizations__organization_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["organizations"],"summary":"Delete Organization","description":"Delete an organization and all its associated environments.\n\nArgs:\n    organization_manager (OrganizationManagerDI): Injected organization manager for business logic.\n    organization_id (UUID): ID of the organization to delete.\n    _: Authentication context for owner validation.\n\nRaises:\n    NotFoundException: If the organization is not found.\n    ForbiddenException: If trying to delete the owner organization.","operationId":"delete_organization_api_organizations__organization_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/environments/{environment_id}/task-groups":{"get":{"tags":["tasks"],"summary":"Get task groups.","description":"Get all task groups for an environment.","operationId":"get_task_groups_paged_api_environments__environment_id__task_groups_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"environment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Environment Id"}},{"name":"lang","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lang"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"top","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":10,"title":"Top"}},{"name":"skip","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Skip"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedResponse_TaskGroupListResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["tasks"],"summary":"Create a task group.","description":"Create a task group for an environment.","operationId":"create_task_group_api_environments__environment_id__task_groups_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"environment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Environment Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskGroupCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskGroupDetailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/environments/{environment_id}/task-groups/{task_group_id}":{"get":{"tags":["tasks"],"summary":"Get a task group.","description":"Get a task group for an environment.","operationId":"get_task_group_api_environments__environment_id__task_groups__task_group_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"environment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Environment Id"}},{"name":"task_group_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Task Group Id"}},{"name":"lang","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lang"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskGroupDetailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["tasks"],"summary":"Update a task group.","description":"Update a task group for an environment.","operationId":"update_task_group_api_environments__environment_id__task_groups__task_group_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"environment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Environment Id"}},{"name":"task_group_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Task Group Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskGroupUpdate"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["tasks"],"summary":"Delete a task group.","description":"Delete a task group from an environment.","operationId":"delete_task_group_api_environments__environment_id__task_groups__task_group_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"environment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Environment Id"}},{"name":"task_group_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Task Group Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/environments/{environment_id}/task-groups/{task_group_id}/languages":{"put":{"tags":["tasks"],"summary":"Update task group languages.","description":"Update languages for a task group.","operationId":"update_task_group_languages_api_environments__environment_id__task_groups__task_group_id__languages_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"environment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Environment Id"}},{"name":"task_group_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Task Group Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskGroupLanguageUpdateList"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/environments/{environment_id}/task-groups/{task_group_id}/categories":{"patch":{"tags":["tasks"],"summary":"Update task group categories.","description":"Update categories for a task group.","operationId":"update_task_group_categories_api_environments__environment_id__task_groups__task_group_id__categories_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"environment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Environment Id"}},{"name":"task_group_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Task Group Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskGroupCategoryPatchList"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/environments/{environment_id}/task-groups/{task_group_id}/versions":{"get":{"tags":["tasks"],"summary":"Get task group versions.","description":"Get versions for a task group.","operationId":"get_task_group_versions_paged_api_environments__environment_id__task_groups__task_group_id__versions_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"environment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Environment Id"}},{"name":"task_group_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Task Group Id"}},{"name":"lang","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lang"}},{"name":"top","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":10,"title":"Top"}},{"name":"skip","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Skip"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedResponse_TaskGroupVersionListResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["tasks"],"summary":"Create a task group version.","description":"Create a new version for a task group.","operationId":"create_task_group_version_api_environments__environment_id__task_groups__task_group_id__versions_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"environment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Environment Id"}},{"name":"task_group_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Task Group Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskGroupVersionCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskGroupVersionDetailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/environments/{environment_id}/task-groups/{task_group_id}/versions/{version}":{"get":{"tags":["tasks"],"summary":"Get a task group version.","description":"Get a version for a task group.","operationId":"get_task_group_version_api_environments__environment_id__task_groups__task_group_id__versions__version__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"environment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Environment Id"}},{"name":"task_group_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Task Group Id"}},{"name":"version","in":"path","required":true,"schema":{"type":"integer","title":"Version"}},{"name":"lang","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lang"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskGroupVersionDetailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["tasks"],"summary":"Update a task group version.","description":"Update a version for a task group.","operationId":"update_task_group_version_api_environments__environment_id__task_groups__task_group_id__versions__version__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"environment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Environment Id"}},{"name":"task_group_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Task Group Id"}},{"name":"version","in":"path","required":true,"schema":{"type":"integer","title":"Version"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskGroupVersionUpdate"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["tasks"],"summary":"Delete a task group version.","description":"Delete a version for a task group.","operationId":"delete_task_group_version_api_environments__environment_id__task_groups__task_group_id__versions__version__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"environment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Environment Id"}},{"name":"task_group_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Task Group Id"}},{"name":"version","in":"path","required":true,"schema":{"type":"integer","title":"Version"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/environments/{environment_id}/task-groups/{task_group_id}/versions/clone":{"post":{"tags":["tasks"],"summary":"Clone a task group version.","description":"Create a new version for a task group, by cloning an existing version.","operationId":"create_task_group_version_clone_api_environments__environment_id__task_groups__task_group_id__versions_clone_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"environment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Environment Id"}},{"name":"task_group_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Task Group Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskGroupVersionClone"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskGroupVersionDetailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/environments/{environment_id}/task-groups/{task_group_id}/versions/{version}/translations":{"get":{"tags":["tasks"],"summary":"Get task group version translations.","description":"Get translations for a task group version.","operationId":"get_task_group_version_translations_paged_api_environments__environment_id__task_groups__task_group_id__versions__version__translations_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"environment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Environment Id"}},{"name":"task_group_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Task Group Id"}},{"name":"version","in":"path","required":true,"schema":{"type":"integer","title":"Version"}},{"name":"top","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":10,"title":"Top"}},{"name":"skip","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Skip"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedResponse_TaskGroupVersionTranslationListResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/environments/{environment_id}/task-groups/{task_group_id}/versions/{version}/translation":{"get":{"tags":["tasks"],"summary":"Get a task group version translation.","description":"Get a translation for a task group version. If a translation for the requested language was not found, it returns the default translation.","operationId":"get_task_group_version_translation_api_environments__environment_id__task_groups__task_group_id__versions__version__translation_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"environment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Environment Id"}},{"name":"task_group_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Task Group Id"}},{"name":"version","in":"path","required":true,"schema":{"type":"integer","title":"Version"}},{"name":"lang","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lang"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskGroupVersionTranslationDetailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/environments/{environment_id}/task-groups/{task_group_id}/versions/{version}/translations/{language}":{"put":{"tags":["tasks"],"summary":"Create or update a task group version translation.","description":"Create a new or update an existing translation for a task group version.","operationId":"create_or_update_task_group_version_translation_api_environments__environment_id__task_groups__task_group_id__versions__version__translations__language__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"environment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Environment Id"}},{"name":"task_group_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Task Group Id"}},{"name":"version","in":"path","required":true,"schema":{"type":"integer","title":"Version"}},{"name":"language","in":"path","required":true,"schema":{"type":"string","title":"Language"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskGroupVersionTranslationUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/TaskGroupVersionTranslationDetailResponse"},{"type":"null"}],"title":"Response Create Or Update Task Group Version Translation Api Environments  Environment Id  Task Groups  Task Group Id  Versions  Version  Translations  Language  Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["tasks"],"summary":"Delete a task group version translation.","description":"Delete an existing translation for a task group version.","operationId":"delete_task_group_version_translation_api_environments__environment_id__task_groups__task_group_id__versions__version__translations__language__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"environment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Environment Id"}},{"name":"task_group_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Task Group Id"}},{"name":"version","in":"path","required":true,"schema":{"type":"integer","title":"Version"}},{"name":"language","in":"path","required":true,"schema":{"type":"string","title":"Language"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/environments/{environment_id}/task-groups/{task_group_id}/versions/{version}/tasks":{"get":{"tags":["tasks"],"summary":"Get tasks for task group assignment.","description":"Get tasks for a task group to use during assignments to a group version.","operationId":"get_available_tasks_for_task_group_version_api_environments__environment_id__task_groups__task_group_id__versions__version__tasks_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"environment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Environment Id"}},{"name":"task_group_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Task Group Id"}},{"name":"version","in":"path","required":true,"schema":{"type":"integer","title":"Version"}},{"name":"lang","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lang"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"category","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"}},{"name":"show_assigned","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Show Assigned"}},{"name":"top","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":10,"title":"Top"}},{"name":"skip","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Skip"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedResponse_AvailableTaskResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/environments/{environment_id}/task-groups/{task_group_id}/versions/{version}/task-version-assignments":{"get":{"tags":["tasks"],"summary":"Get task group version task assignments.","description":"Get task assignments for a task group version.","operationId":"get_assigned_task_versions_for_task_group_version_api_environments__environment_id__task_groups__task_group_id__versions__version__task_version_assignments_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"environment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Environment Id"}},{"name":"task_group_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Task Group Id"}},{"name":"version","in":"path","required":true,"schema":{"type":"integer","title":"Version"}},{"name":"lang","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lang"}},{"name":"category","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"}},{"name":"top","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":10,"title":"Top"}},{"name":"skip","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Skip"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedResponse_AssignedTaskVersionResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["tasks"],"summary":"Update task group version task assignments.","description":"Update task assignments for a task group version.","operationId":"update_assigned_task_versions_for_task_group_version_api_environments__environment_id__task_groups__task_group_id__versions__version__task_version_assignments_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"environment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Environment Id"}},{"name":"task_group_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Task Group Id"}},{"name":"version","in":"path","required":true,"schema":{"type":"integer","title":"Version"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskGroupVersionAssignedItemsUpdate"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/environments/{environment_id}/task-groups/{task_group_id}/versions/{version}/tones":{"get":{"tags":["tasks"],"summary":"Get tones for task group assignment.","description":"Get tones for a task group to use during assignments to a group version.","operationId":"get_available_tones_for_task_group_version_api_environments__environment_id__task_groups__task_group_id__versions__version__tones_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"environment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Environment Id"}},{"name":"task_group_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Task Group Id"}},{"name":"version","in":"path","required":true,"schema":{"type":"integer","title":"Version"}},{"name":"lang","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lang"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"show_assigned","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Show Assigned"}},{"name":"top","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":10,"title":"Top"}},{"name":"skip","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Skip"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedResponse_AvailableToneResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/environments/{environment_id}/task-groups/{task_group_id}/versions/{version}/tone-version-assignments":{"get":{"tags":["tasks"],"summary":"Get task group version tone assignments.","description":"Get tone assignments for a task group version.","operationId":"get_assigned_tone_versions_for_task_group_version_api_environments__environment_id__task_groups__task_group_id__versions__version__tone_version_assignments_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"environment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Environment Id"}},{"name":"task_group_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Task Group Id"}},{"name":"version","in":"path","required":true,"schema":{"type":"integer","title":"Version"}},{"name":"lang","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lang"}},{"name":"top","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":10,"title":"Top"}},{"name":"skip","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Skip"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedResponse_AssignedToneVersionResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["tasks"],"summary":"Update task group version tone assignments.","description":"Update tone assignments for a task group version.","operationId":"update_assigned_tone_versions_for_task_group_version_api_environments__environment_id__task_groups__task_group_id__versions__version__tone_version_assignments_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"environment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Environment Id"}},{"name":"task_group_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Task Group Id"}},{"name":"version","in":"path","required":true,"schema":{"type":"integer","title":"Version"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskGroupVersionAssignedItemsUpdate"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/environments/{environment_id}/task-groups/{task_group_id}/tasks":{"get":{"tags":["tasks"],"summary":"Get tasks.","description":"Get all tasks for a task group.","operationId":"get_tasks_paged_api_environments__environment_id__task_groups__task_group_id__tasks_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"environment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Environment Id"}},{"name":"task_group_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Task Group Id"}},{"name":"lang","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lang"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"top","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":10,"title":"Top"}},{"name":"skip","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Skip"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedResponse_TaskListResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["tasks"],"summary":"Create a task.","description":"Create a task for a task group.","operationId":"create_task_api_environments__environment_id__task_groups__task_group_id__tasks_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"environment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Environment Id"}},{"name":"task_group_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Task Group Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskCreateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/environments/{environment_id}/task-groups/{task_group_id}/tasks/{task_id}":{"get":{"tags":["tasks"],"summary":"Get task.","description":"Get a task for a task group.","operationId":"get_task_api_environments__environment_id__task_groups__task_group_id__tasks__task_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"environment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Environment Id"}},{"name":"task_group_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Task Group Id"}},{"name":"task_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Task Id"}},{"name":"lang","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lang"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskDetailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["tasks"],"summary":"Update a task.","description":"Update a task for a task group.","operationId":"update_task_api_environments__environment_id__task_groups__task_group_id__tasks__task_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"environment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Environment Id"}},{"name":"task_group_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Task Group Id"}},{"name":"task_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Task Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskUpdate"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["tasks"],"summary":"Delete a task.","description":"Delete a task for a task group.","operationId":"delete_task_api_environments__environment_id__task_groups__task_group_id__tasks__task_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"environment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Environment Id"}},{"name":"task_group_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Task Group Id"}},{"name":"task_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Task Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/environments/{environment_id}/task-groups/{task_group_id}/tasks/{task_id}/clone":{"post":{"tags":["tasks"],"summary":"Clone a task.","description":"Create a new task for a task group, by cloning an existing task with a specified version.","operationId":"create_task_clone_api_environments__environment_id__task_groups__task_group_id__tasks__task_id__clone_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"environment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Environment Id"}},{"name":"task_group_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Task Group Id"}},{"name":"task_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Task Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskVersionClone"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskCreateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/environments/{environment_id}/tasks/{task_id}/versions":{"get":{"tags":["tasks"],"summary":"Get task versions.","description":"Get versions for a task.","operationId":"get_task_versions_paged_api_environments__environment_id__tasks__task_id__versions_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"environment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Environment Id"}},{"name":"task_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Task Id"}},{"name":"lang","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lang"}},{"name":"top","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":10,"title":"Top"}},{"name":"skip","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Skip"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedResponse_TaskVersionListResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["tasks"],"summary":"Create a task version.","description":"Create a new version for a task.","operationId":"create_task_version_api_environments__environment_id__tasks__task_id__versions_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"environment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Environment Id"}},{"name":"task_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Task Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskVersionCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskVersionDetailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/environments/{environment_id}/tasks/{task_id}/versions/{version}":{"get":{"tags":["tasks"],"summary":"Get a task version.","description":"Get a version for a task.","operationId":"get_task_version_api_environments__environment_id__tasks__task_id__versions__version__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"environment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Environment Id"}},{"name":"task_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Task Id"}},{"name":"version","in":"path","required":true,"schema":{"type":"integer","title":"Version"}},{"name":"lang","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lang"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskVersionDetailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["tasks"],"summary":"Update a task version.","description":"Update a version for a task.","operationId":"update_task_version_api_environments__environment_id__tasks__task_id__versions__version__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"environment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Environment Id"}},{"name":"task_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Task Id"}},{"name":"version","in":"path","required":true,"schema":{"type":"integer","title":"Version"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskVersionUpdate"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["tasks"],"summary":"Delete a task version.","description":"Delete a version for a task.","operationId":"delete_task_version_api_environments__environment_id__tasks__task_id__versions__version__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"environment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Environment Id"}},{"name":"task_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Task Id"}},{"name":"version","in":"path","required":true,"schema":{"type":"integer","title":"Version"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/environments/{environment_id}/tasks/{task_id}/versions/clone":{"post":{"tags":["tasks"],"summary":"Clone a task version.","description":"Create a new version for a task, by cloning an existing version.","operationId":"create_task_version_clone_api_environments__environment_id__tasks__task_id__versions_clone_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"environment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Environment Id"}},{"name":"task_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Task Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskVersionClone"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskVersionDetailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/environments/{environment_id}/tasks/{task_id}/versions/{version}/translations":{"get":{"tags":["tasks"],"summary":"Get task version translations.","description":"Get translations for a task version.","operationId":"get_task_version_translations_paged_api_environments__environment_id__tasks__task_id__versions__version__translations_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"environment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Environment Id"}},{"name":"task_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Task Id"}},{"name":"version","in":"path","required":true,"schema":{"type":"integer","title":"Version"}},{"name":"top","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":10,"title":"Top"}},{"name":"skip","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Skip"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedResponse_TaskVersionTranslationListResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/environments/{environment_id}/tasks/{task_id}/versions/{version}/translation":{"get":{"tags":["tasks"],"summary":"Get a task version translation.","description":"Get a translation for a task version. If a translation for the requested language was not found, it returns the default translation.","operationId":"get_task_version_translation_api_environments__environment_id__tasks__task_id__versions__version__translation_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"environment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Environment Id"}},{"name":"task_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Task Id"}},{"name":"version","in":"path","required":true,"schema":{"type":"integer","title":"Version"}},{"name":"lang","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lang"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskVersionTranslationDetailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/environments/{environment_id}/tasks/{task_id}/versions/{version}/translations/{language}":{"put":{"tags":["tasks"],"summary":"Create or update a task version translation.","description":"Create a new or update an existing translation for a task version.","operationId":"create_or_update_task_version_translation_api_environments__environment_id__tasks__task_id__versions__version__translations__language__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"environment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Environment Id"}},{"name":"task_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Task Id"}},{"name":"version","in":"path","required":true,"schema":{"type":"integer","title":"Version"}},{"name":"language","in":"path","required":true,"schema":{"type":"string","title":"Language"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskVersionTranslationUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/TaskVersionTranslationDetailResponse"},{"type":"null"}],"title":"Response Create Or Update Task Version Translation Api Environments  Environment Id  Tasks  Task Id  Versions  Version  Translations  Language  Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["tasks"],"summary":"Delete a task version translation.","description":"Delete a translation for a task version.","operationId":"delete_task_version_translation_api_environments__environment_id__tasks__task_id__versions__version__translations__language__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"environment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Environment Id"}},{"name":"task_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Task Id"}},{"name":"version","in":"path","required":true,"schema":{"type":"integer","title":"Version"}},{"name":"language","in":"path","required":true,"schema":{"type":"string","title":"Language"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/environments/{environment_id}/task-groups/{task_group_id}/tones":{"get":{"tags":["tasks"],"summary":"Get tones.","description":"Get all tones for a task group.","operationId":"get_tones_paged_api_environments__environment_id__task_groups__task_group_id__tones_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"environment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Environment Id"}},{"name":"task_group_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Task Group Id"}},{"name":"lang","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lang"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"top","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":10,"title":"Top"}},{"name":"skip","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Skip"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedResponse_ToneListResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["tasks"],"summary":"Create a tone.","description":"Create a tone for a task group.","operationId":"create_tone_api_environments__environment_id__task_groups__task_group_id__tones_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"environment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Environment Id"}},{"name":"task_group_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Task Group Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToneCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToneCreateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/environments/{environment_id}/task-groups/{task_group_id}/tones/{tone_id}":{"get":{"tags":["tasks"],"summary":"Get tone.","description":"Get a tone for a task group.","operationId":"get_tone_api_environments__environment_id__task_groups__task_group_id__tones__tone_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"environment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Environment Id"}},{"name":"task_group_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Task Group Id"}},{"name":"tone_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Tone Id"}},{"name":"lang","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lang"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToneDetailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["tasks"],"summary":"Delete a tone.","description":"Delete a tone for a task group.","operationId":"delete_tone_api_environments__environment_id__task_groups__task_group_id__tones__tone_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"environment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Environment Id"}},{"name":"task_group_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Task Group Id"}},{"name":"tone_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Tone Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/environments/{environment_id}/task-groups/{task_group_id}/tones/{tone_id}/clone":{"post":{"tags":["tasks"],"summary":"Clone a tone.","description":"Create a new tone for a task group, by cloning an existing tone with a specified version.","operationId":"create_tone_clone_api_environments__environment_id__task_groups__task_group_id__tones__tone_id__clone_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"environment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Environment Id"}},{"name":"task_group_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Task Group Id"}},{"name":"tone_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Tone Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToneVersionClone"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToneCreateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/environments/{environment_id}/tones/{tone_id}/versions":{"get":{"tags":["tasks"],"summary":"Get tone versions.","description":"Get versions for a tone.","operationId":"get_tone_versions_paged_api_environments__environment_id__tones__tone_id__versions_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"environment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Environment Id"}},{"name":"tone_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Tone Id"}},{"name":"lang","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lang"}},{"name":"top","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":10,"title":"Top"}},{"name":"skip","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Skip"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedResponse_ToneVersionListResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["tasks"],"summary":"Create a tone version.","description":"Create a new version for a tone.","operationId":"create_tone_version_api_environments__environment_id__tones__tone_id__versions_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"environment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Environment Id"}},{"name":"tone_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Tone Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToneVersionCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToneVersionDetailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/environments/{environment_id}/tones/{tone_id}/versions/{version}":{"get":{"tags":["tasks"],"summary":"Get a tone version.","description":"Get a version for a tone.","operationId":"get_tone_version_api_environments__environment_id__tones__tone_id__versions__version__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"environment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Environment Id"}},{"name":"tone_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Tone Id"}},{"name":"version","in":"path","required":true,"schema":{"type":"integer","title":"Version"}},{"name":"lang","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lang"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToneVersionDetailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["tasks"],"summary":"Update a tone version.","description":"Update a version for a tone.","operationId":"update_tone_version_api_environments__environment_id__tones__tone_id__versions__version__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"environment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Environment Id"}},{"name":"tone_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Tone Id"}},{"name":"version","in":"path","required":true,"schema":{"type":"integer","title":"Version"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToneVersionUpdate"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["tasks"],"summary":"Delete a tone version.","description":"Delete a version for a tone.","operationId":"delete_tone_version_api_environments__environment_id__tones__tone_id__versions__version__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"environment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Environment Id"}},{"name":"tone_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Tone Id"}},{"name":"version","in":"path","required":true,"schema":{"type":"integer","title":"Version"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/environments/{environment_id}/tones/{tone_id}/versions/clone":{"post":{"tags":["tasks"],"summary":"Clone a tone version.","description":"Create a new version for a tone, by cloning an existing version.","operationId":"create_tone_version_clone_api_environments__environment_id__tones__tone_id__versions_clone_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"environment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Environment Id"}},{"name":"tone_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Tone Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToneVersionClone"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToneVersionDetailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/environments/{environment_id}/tones/{tone_id}/versions/{version}/translations":{"get":{"tags":["tasks"],"summary":"Get tone version translations.","description":"Get translations for a tone version.","operationId":"get_tone_version_translations_paged_api_environments__environment_id__tones__tone_id__versions__version__translations_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"environment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Environment Id"}},{"name":"tone_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Tone Id"}},{"name":"version","in":"path","required":true,"schema":{"type":"integer","title":"Version"}},{"name":"top","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":10,"title":"Top"}},{"name":"skip","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Skip"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedResponse_ToneVersionTranslationListResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/environments/{environment_id}/tones/{tone_id}/versions/{version}/translation":{"get":{"tags":["tasks"],"summary":"Get a tone version translation.","description":"Get a translation for a tone version. If a translation for the requested language was not found, it returns the default translation.","operationId":"get_tone_version_translation_api_environments__environment_id__tones__tone_id__versions__version__translation_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"environment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Environment Id"}},{"name":"tone_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Tone Id"}},{"name":"version","in":"path","required":true,"schema":{"type":"integer","title":"Version"}},{"name":"lang","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lang"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToneVersionTranslationDetailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/environments/{environment_id}/tones/{tone_id}/versions/{version}/translations/{language}":{"put":{"tags":["tasks"],"summary":"Create or update a tone version translation.","description":"Create a new or update an existing translation for a tone version.","operationId":"create_or_update_tone_version_translation_api_environments__environment_id__tones__tone_id__versions__version__translations__language__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"environment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Environment Id"}},{"name":"tone_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Tone Id"}},{"name":"version","in":"path","required":true,"schema":{"type":"integer","title":"Version"}},{"name":"language","in":"path","required":true,"schema":{"type":"string","title":"Language"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToneVersionTranslationUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ToneVersionTranslationDetailResponse"},{"type":"null"}],"title":"Response Create Or Update Tone Version Translation Api Environments  Environment Id  Tones  Tone Id  Versions  Version  Translations  Language  Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["tasks"],"summary":"Delete a tone version translation.","description":"Delete a translation for a tone version.","operationId":"delete_tone_version_translation_api_environments__environment_id__tones__tone_id__versions__version__translations__language__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"environment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Environment Id"}},{"name":"tone_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Tone Id"}},{"name":"version","in":"path","required":true,"schema":{"type":"integer","title":"Version"}},{"name":"language","in":"path","required":true,"schema":{"type":"string","title":"Language"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/workspace-tree":{"get":{"tags":["workspaces"],"summary":"Get workspace environments tree.","description":"Get the full workspace folder hierarchy tree for all environments of the user.","operationId":"get_workspace_environments_tree_api_workspace_tree_get","deprecated":true,"security":[{"HTTPBearer":[]}],"parameters":[{"name":"editable_only","in":"query","required":false,"schema":{"type":"boolean","description":"Filter out non-editable folders.","default":false,"title":"Editable Only"},"description":"Filter out non-editable folders."},{"name":"top","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":10,"title":"Top"}},{"name":"skip","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Skip"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedResult_WorkspaceEnvironmentTreeResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/organizations/{organization_id}/workspace-tree":{"get":{"tags":["workspaces"],"summary":"Get workspace environments tree of an organization.","description":"Get the full workspace folder hierarchy tree for all environments of the user in an organization.","operationId":"get_organization_workspace_environments_tree_api_organizations__organization_id__workspace_tree_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}},{"name":"editable_only","in":"query","required":false,"schema":{"type":"boolean","description":"Filter out non-editable folders.","default":false,"title":"Editable Only"},"description":"Filter out non-editable folders."},{"name":"top","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":10,"title":"Top"}},{"name":"skip","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Skip"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedResult_WorkspaceEnvironmentTreeResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/environments/{environment_id}/workspace-folders/{workspace_folder_id}":{"get":{"tags":["workspaces"],"summary":"Get workspace folder.","description":"Get a workspace folder by ID.","operationId":"get_workspace_folder_api_environments__environment_id__workspace_folders__workspace_folder_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"environment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Environment Id"}},{"name":"workspace_folder_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Folder Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceFolderDetailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["workspaces"],"summary":"Update a workspace folder.","description":"Update an existing workspace folder.","operationId":"update_workspace_folder_api_environments__environment_id__workspace_folders__workspace_folder_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"environment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Environment Id"}},{"name":"workspace_folder_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Folder Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceFolderUpdate"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["workspaces"],"summary":"Delete a workspace folder.","description":"Delete an existing workspace folder .","operationId":"delete_workspace_folder_api_environments__environment_id__workspace_folders__workspace_folder_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"environment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Environment Id"}},{"name":"workspace_folder_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Folder Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/environments/{environment_id}/workspace-folders":{"post":{"tags":["workspaces"],"summary":"Create a workspace folder.","description":"Create a new workspace folder in an environment.","operationId":"create_workspace_folder_api_environments__environment_id__workspace_folders_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"environment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Environment Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceFolderCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceFolderDetailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/environments/{environment_id}/workspace-documents/{workspace_document_id}":{"get":{"tags":["workspaces"],"summary":"Get workspace document.","description":"Get a workspace document by ID.","operationId":"get_workspace_document_detail_api_environments__environment_id__workspace_documents__workspace_document_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"environment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Environment Id"}},{"name":"workspace_document_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Document Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceDocumentDetailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["workspaces"],"summary":"Update a workspace document.","description":"Update an existing workspace document.","operationId":"update_workspace_document_api_environments__environment_id__workspace_documents__workspace_document_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"environment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Environment Id"}},{"name":"workspace_document_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Document Id"}}],"requestBody":{"required":true,"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/WorkspaceDocumentUpdate"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["workspaces"],"summary":"Delete a workspace document.","description":"Delete an existing workspace document .","operationId":"delete_workspace_document_api_environments__environment_id__workspace_documents__workspace_document_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"environment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Environment Id"}},{"name":"workspace_document_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Document Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/environments/{environment_id}/workspace-documents/{workspace_document_id}/content":{"get":{"tags":["workspaces"],"summary":"Get workspace document's content.","description":"Get a workspace document's content by ID.","operationId":"get_workspace_document_content_api_environments__environment_id__workspace_documents__workspace_document_id__content_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"environment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Environment Id"}},{"name":"workspace_document_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Document Id"}}],"responses":{"200":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/environments/{environment_id}/workspace-documents":{"post":{"tags":["workspaces"],"summary":"Create a workspace document.","description":"Create a new workspace document in an environment.","operationId":"create_workspace_document_api_environments__environment_id__workspace_documents_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"environment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Environment Id"}}],"requestBody":{"required":true,"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/WorkspaceDocumentCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceDocumentDetailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/organizations/{organization_id}/marketplace-listings/task-groups":{"get":{"tags":["marketplace"],"summary":"Get task groups for marketplace listings.","description":"Get task groups for marketplace listings from the user's environments.","operationId":"get_marketplace_listing_task_groups_api_organizations__organization_id__marketplace_listings_task_groups_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}},{"name":"lang","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"(Optional) preferred language for fetching translations","title":"Lang"},"description":"(Optional) preferred language for fetching translations"},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Search task group by name","title":"Search"},"description":"Search task group by name"},{"name":"listing_status","in":"query","required":false,"schema":{"$ref":"#/components/schemas/MarketplaceListingStatus","description":"Filter task groups by listing status: listed/not listed/all. All by default","default":"all"},"description":"Filter task groups by listing status: listed/not listed/all. All by default"},{"name":"environment_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Filter by environment","title":"Environment Id"},"description":"Filter by environment"},{"name":"top","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":10,"title":"Top"}},{"name":"skip","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Skip"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedResult_MarketplaceListingEnvironmentResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/environments/{environment_id}/marketplace-listings/{listing_id}/available-organizations":{"get":{"tags":["marketplace"],"summary":"Get available organizations.","description":"Get available organizations for the marketplace listing of the publisher organization.","operationId":"get_unsubscribed_organizations_api_environments__environment_id__marketplace_listings__listing_id__available_organizations_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"environment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Environment Id"}},{"name":"listing_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Listing Id"}},{"name":"top","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":10,"title":"Top"}},{"name":"skip","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Skip"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedResult_UnsubscribedOrganizationResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/environments/{environment_id}/marketplace-listings/{listing_id}":{"get":{"tags":["marketplace"],"summary":"Get a marketplace listing.","description":"Get a marketplace listing from an environment.","operationId":"get_marketplace_listing_detail_api_environments__environment_id__marketplace_listings__listing_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"environment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Environment Id"}},{"name":"listing_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Listing Id"}},{"name":"lang","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"(Optional) preferred language for fetching translations","title":"Lang"},"description":"(Optional) preferred language for fetching translations"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarketplaceListingDetailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["marketplace"],"summary":"Update a marketplace listing.","description":"Update an existing marketplace listing for a task group.","operationId":"update_marketplace_listing_api_environments__environment_id__marketplace_listings__listing_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"environment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Environment Id"}},{"name":"listing_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Listing Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarketplaceListingUpdate"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["marketplace"],"summary":"Delete a marketplace listing.","description":"Delete an existing marketplace listing for a task group, together with it's listing versions.","operationId":"delete_marketplace_listing_api_environments__environment_id__marketplace_listings__listing_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"environment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Environment Id"}},{"name":"listing_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Listing Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/environments/{environment_id}/marketplace-listings":{"post":{"tags":["marketplace"],"summary":"Create a marketplace listing.","description":"Create a new marketplace listing for a task group.","operationId":"create_marketplace_listing_api_environments__environment_id__marketplace_listings_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"environment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Environment Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarketplaceListingCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarketplaceListingDetailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/environments/{environment_id}/marketplace-listings/{listing_id}/versions":{"get":{"tags":["marketplace"],"summary":"Get task group versions for a marketplace listing.","description":"Get a page of task group versions for a marketplace listing.","operationId":"get_marketplace_listing_task_group_versions_api_environments__environment_id__marketplace_listings__listing_id__versions_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"environment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Environment Id"}},{"name":"listing_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Listing Id"}},{"name":"listing_status","in":"query","required":false,"schema":{"$ref":"#/components/schemas/MarketplaceListingStatus","description":"Filter task group versions by listing status: listed/not listed/all. All by default","default":"all"},"description":"Filter task group versions by listing status: listed/not listed/all. All by default"},{"name":"lang","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"(Optional) preferred language for fetching translations","title":"Lang"},"description":"(Optional) preferred language for fetching translations"},{"name":"top","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":10,"title":"Top"}},{"name":"skip","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Skip"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedResult_MarketplaceListingTaskGroupVersionResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["marketplace"],"summary":"Create a marketplace listing version.","description":"Create a new marketplace listing version with a task group version.","operationId":"create_marketplace_listing_version_api_environments__environment_id__marketplace_listings__listing_id__versions_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"environment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Environment Id"}},{"name":"listing_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Listing Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarketplaceListingVersionCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarketplaceListingVersionDetailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/environments/{environment_id}/marketplace-listings/{listing_id}/versions/{listing_version_id}":{"get":{"tags":["marketplace"],"summary":"Get a marketplace listing version.","description":"Get a version of a marketplace listing.","operationId":"get_marketplace_listing_version_detail_api_environments__environment_id__marketplace_listings__listing_id__versions__listing_version_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"environment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Environment Id"}},{"name":"listing_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Listing Id"}},{"name":"listing_version_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Listing Version Id"}},{"name":"lang","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"(Optional) preferred language for fetching translations","title":"Lang"},"description":"(Optional) preferred language for fetching translations"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarketplaceListingVersionDetailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["marketplace"],"summary":"Update a marketplace listing version.","description":"Update an existing marketplace listing version’s assigned task group version and metadata.","operationId":"update_marketplace_listing_version_api_environments__environment_id__marketplace_listings__listing_id__versions__listing_version_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"environment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Environment Id"}},{"name":"listing_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Listing Id"}},{"name":"listing_version_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Listing Version Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarketplaceListingVersionUpdate"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["marketplace"],"summary":"Delete a marketplace listing version.","description":"Delete an existing marketplace listing version for a task group version (hard delete).","operationId":"delete_marketplace_listing_version_api_environments__environment_id__marketplace_listings__listing_id__versions__listing_version_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"environment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Environment Id"}},{"name":"listing_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Listing Id"}},{"name":"listing_version_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Listing Version Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/admin/mcp/servers":{"get":{"tags":["mcp-admin"],"summary":"List registered external MCP servers.","description":"Get a page of registered servers, ordered by slug.","operationId":"get_mcp_servers_api_admin_mcp_servers_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"top","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":10,"title":"Top"}},{"name":"skip","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Skip"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedResult_McpServerResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["mcp-admin"],"summary":"Register an external MCP server.","description":"Register a server by URL. Any supplied secret is stored encrypted and never returned.","operationId":"create_mcp_server_api_admin_mcp_servers_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/McpServerCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/McpServerResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/admin/mcp/servers/{server_id}":{"patch":{"tags":["mcp-admin"],"summary":"Edit a registered MCP server.","description":"Change a server's settings. Omitted fields keep their stored value, so an edit never clears the secret by accident. The slug is fixed: it prefixes every tool already imported from this server.","operationId":"update_mcp_server_api_admin_mcp_servers__server_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"server_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Server Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/McpServerUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/McpServerResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["mcp-admin"],"summary":"Unregister an external MCP server.","description":"Remove a server and every tool imported from it. Use this to take a server off the platform for good; to stop offering its tools while keeping the registration, deactivate it instead. Deliberately returns no body.","operationId":"delete_mcp_server_api_admin_mcp_servers__server_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"server_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Server Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/admin/mcp/servers/{server_id}/discover":{"post":{"tags":["mcp-admin"],"summary":"Discover and import a server's tools.","description":"Ask the remote server what it offers and import the result. Re-running refreshes descriptions and schemas without changing which tools are active. A server that runs on each user's own account is asked using yours, so connect it first.","operationId":"discover_mcp_server_tools_api_admin_mcp_servers__server_id__discover_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"server_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Server Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/McpDiscoveryResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/admin/mcp/servers/{server_id}/active-tools":{"put":{"tags":["mcp-admin"],"summary":"Replace a server's active tool selection.","description":"Make exactly the named tools active for this server and deactivate the rest.","operationId":"set_mcp_server_active_tools_api_admin_mcp_servers__server_id__active_tools_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"server_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Server Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/McpActiveToolsUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/McpPlatformToolResponse"},"title":"Response Set Mcp Server Active Tools Api Admin Mcp Servers  Server Id  Active Tools Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/admin/mcp/catalog":{"get":{"tags":["mcp-admin"],"summary":"List the platform tool catalog.","description":"Get a page of imported tools, ordered by qualified name, optionally narrowed by server, search term or activation state.","operationId":"get_mcp_catalog_api_admin_mcp_catalog_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"external_server_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Filter by registered server.","title":"External Server Id"},"description":"Filter by registered server."},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"description":"Match against the qualified name and the description, case-insensitively.","title":"Search"},"description":"Match against the qualified name and the description, case-insensitively."},{"name":"is_active","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Filter by the activation state of the tool itself.","title":"Is Active"},"description":"Filter by the activation state of the tool itself."},{"name":"top","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":10,"title":"Top"}},{"name":"skip","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Skip"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedResult_McpPlatformToolResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/admin/mcp/catalog/{qualified_name}":{"patch":{"tags":["mcp-admin"],"summary":"Switch one catalog tool on or off.","description":"Set whether a single tool may be offered to the AI, platform-wide.","operationId":"set_mcp_tool_active_api_admin_mcp_catalog__qualified_name__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"qualified_name","in":"path","required":true,"schema":{"type":"string","title":"Qualified Name"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/McpToolActivationUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/McpPlatformToolResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/mcp/connections":{"get":{"tags":["mcp-connections"],"summary":"List the services you can connect an account to.","description":"Get every service that runs on your own account, with whether you have connected it, what access you granted and when.","operationId":"get_mcp_connections_api_mcp_connections_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/McpConnectionStatusResponse"},"type":"array","title":"Response Get Mcp Connections Api Mcp Connections Get"}}}}},"security":[{"HTTPBearer":[]}]}},"/core/mcp/connections/{server_id}/connect":{"post":{"tags":["mcp-connections"],"summary":"Start connecting your account to a service.","description":"Returns the URL to send the user to so they can grant access, along with a state value that comes back when they return.","operationId":"start_mcp_connection_api_mcp_connections__server_id__connect_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"server_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Server Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/McpAuthorizationRequestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/mcp/connections/callback":{"get":{"tags":["mcp-connections"],"summary":"Finish connecting an account.","description":"Completes the connection and redirects the browser back to the app. The connection belongs to the user who started it.","operationId":"handle_mcp_connection_callback_api_mcp_connections_callback_get","parameters":[{"name":"code","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code"}},{"name":"state","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"}},{"name":"error","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}}],"responses":{"303":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/mcp/connections/{server_id}":{"delete":{"tags":["mcp-connections"],"summary":"Disconnect your account from a service.","description":"Forgets the stored access to your account. The service can be connected again at any time.","operationId":"delete_mcp_connection_api_mcp_connections__server_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"server_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Server Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/organizations/{organization_id}/models":{"get":{"tags":["model-registry"],"summary":"List organization AI models.","description":"Get a searchable, filterable page of the organization's registered models, including disabled ones. Listing never registers or assigns a model: defaults come only from an administrator's choice.","operationId":"get_models_api_organizations__organization_id__models_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Search model id or display name.","title":"Search"},"description":"Search model id or display name."},{"name":"provider","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/ModelProvider"},{"type":"null"}],"description":"Filter by provider.","title":"Provider"},"description":"Filter by provider."},{"name":"category","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/ModelCategory"},{"type":"null"}],"description":"Filter by category.","title":"Category"},"description":"Filter by category."},{"name":"is_enabled","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Filter by enabled state.","title":"Is Enabled"},"description":"Filter by enabled state."},{"name":"top","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":10,"title":"Top"}},{"name":"skip","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Skip"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedResult_ModelRegistryEntryResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["model-registry"],"summary":"Register an organization AI model.","description":"Register a model available to the organization. The owner organization may register any available catalog model; other organizations may register only models enabled by the owner. Model facts are read from the catalog.","operationId":"create_model_api_organizations__organization_id__models_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModelRegistryEntryCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModelRegistryEntryResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/organizations/{organization_id}/models/defaults":{"get":{"tags":["model-registry"],"summary":"Get the organization's default models.","description":"Resolve the chat, summarization, image, speech, SVG drawing and image-to-SVG model this organization's requests use, read at request time. Each role uses the first usable model of: the organization's assigned default, the platform owner's assigned default, the organization's other registrations in the category, then the owner's, oldest first; an automatic pick is marked is_automatic. Unusable assignments are skipped but kept. Only when nothing is usable is the role a configuration error. The SVG drawing (svg_generation) and image-to-SVG (vectorize) roles use only the organization's usable assignment, then the owner's (a chat model that accepts images); with neither, model and error are both null and the LLM service's built-in model draws. Never written, and never a catalog model.","operationId":"get_default_models_api_organizations__organization_id__models_defaults_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DefaultModelsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/organizations/{organization_id}/models/{entry_uuid}":{"get":{"tags":["model-registry"],"summary":"Get an organization AI model.","operationId":"get_model_api_organizations__organization_id__models__entry_uuid__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}},{"name":"entry_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Entry Uuid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModelRegistryEntryResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["model-registry"],"summary":"Update an organization AI model.","description":"Partially update org-owned fields, including the enabled state and default roles. The SVG drawing (is_svg_generation_default) and image-to-SVG (is_vectorize_default) roles take only an enabled chat model that accepts images (422 otherwise); true moves the role here from the organization's other entry. No other model ever takes over a default role: a disabled default stays assigned and resolves to a configuration error; clearing it makes the organization inherit the platform default. Disabling an owner model permanently removes matching registrations from other organizations, except ones they assigned to a default role.","operationId":"update_model_api_organizations__organization_id__models__entry_uuid__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}},{"name":"entry_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Entry Uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModelRegistryEntryUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModelRegistryEntryUpdateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["model-registry"],"summary":"Delete an organization AI model.","description":"Delete a model. No other model takes over its default roles: the organization inherits the platform default for them. Deleting an owner model permanently removes matching registrations from other organizations, except ones they assigned to a default role, which then resolve to a configuration error. Deliberately returns no body.","operationId":"delete_model_api_organizations__organization_id__models__entry_uuid__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}},{"name":"entry_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Entry Uuid"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/organizations/{organization_id}/model-catalog":{"get":{"tags":["model-catalog"],"summary":"Browse the organization model catalog.","description":"Get a page of available models across providers for a required category. The owner organization can browse the global catalog; other organizations see only models enabled by the owner.","operationId":"get_organization_model_catalog_api_organizations__organization_id__model_catalog_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}},{"name":"category","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ModelCategory"}},{"name":"provider","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/ModelProvider"},{"type":"null"}],"title":"Provider"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Search model id or display name.","title":"Search"},"description":"Search model id or display name."},{"name":"owner","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"description":"Filter by normalized model owner.","title":"Owner"},"description":"Filter by normalized model owner."},{"name":"first_seen_after","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Filter models first seen at or after this timestamp.","title":"First Seen After"},"description":"Filter models first seen at or after this timestamp."},{"name":"top","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":10,"title":"Top"}},{"name":"skip","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Skip"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedResult_ProviderCatalogEntryResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/organizations/{organization_id}/model-catalog/owners":{"get":{"tags":["model-catalog"],"summary":"List model catalog owners.","description":"List every model owner and matching model count for the active catalog filters.","operationId":"get_model_catalog_owners_api_organizations__organization_id__model_catalog_owners_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}},{"name":"category","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ModelCategory"}},{"name":"provider","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/ModelProvider"},{"type":"null"}],"title":"Provider"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Search model id or display name.","title":"Search"},"description":"Search model id or display name."},{"name":"first_seen_after","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Filter models first seen at or after this timestamp.","title":"First Seen After"},"description":"Filter models first seen at or after this timestamp."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CatalogOwnerResponse"},"title":"Response Get Model Catalog Owners Api Organizations  Organization Id  Model Catalog Owners Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/organizations/{organization_id}/model-catalog/{provider}":{"get":{"tags":["model-catalog"],"summary":"Browse a provider model catalog.","description":"Get a page of provider models available to the organization, with search and capability filters. The owner organization can browse the global catalog; other organizations see only models enabled by the owner.","operationId":"get_model_catalog_api_organizations__organization_id__model_catalog__provider__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}},{"name":"provider","in":"path","required":true,"schema":{"$ref":"#/components/schemas/ModelProvider"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Search model id or display name.","title":"Search"},"description":"Search model id or display name."},{"name":"capability","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/ModelCapability"},{"type":"null"}],"title":"Capability"}},{"name":"top","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":10,"title":"Top"}},{"name":"skip","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Skip"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedResult_ProviderCatalogEntryResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/admin/model-catalog/status":{"get":{"tags":["model-catalog-admin"],"summary":"List provider model catalog refresh status.","description":"Get the cached model count and last refresh time per provider. Bounded by the provider enum, so the list is not paginated.","operationId":"get_model_catalog_statuses_api_admin_model_catalog_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/CatalogStatusResponse"},"type":"array","title":"Response Get Model Catalog Statuses Api Admin Model Catalog Status Get"}}}}},"security":[{"HTTPBearer":[]}]}},"/core/admin/model-catalog/refresh":{"post":{"tags":["model-catalog-admin"],"summary":"Refresh every provider model catalog.","description":"Fetch and replace every supported provider catalog in one request.","operationId":"refresh_model_catalogs_api_admin_model_catalog_refresh_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/CatalogRefreshResponse"},"type":"array","title":"Response Refresh Model Catalogs Api Admin Model Catalog Refresh Post"}}}}},"security":[{"HTTPBearer":[]}]}},"/core/admin/model-catalog/refresh/{provider}":{"post":{"tags":["model-catalog-admin"],"summary":"Refresh a provider model catalog.","description":"Fetch the provider catalog from the LLM service and replace the cached models.","operationId":"refresh_model_catalog_api_admin_model_catalog_refresh__provider__post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"provider","in":"path","required":true,"schema":{"$ref":"#/components/schemas/ModelProvider"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CatalogRefreshResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/models/resolve-parameters":{"post":{"tags":["model-registry"],"summary":"Resolve the token limits for a model request.","description":"Resolve the context length, output limit and request budget one completion must run under. The organization is taken from the authenticated caller, never from the request, and the model must be an enabled registration that organization can use. A caller's own smaller budget is kept; a larger one is capped.","operationId":"resolve_model_parameters_api_models_resolve_parameters_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModelParameterResolutionRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModelParameterResolutionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/core/organizations/{organization_id}/fonts":{"get":{"tags":["fonts"],"summary":"List the organization's fonts.","description":"List the platform fonts shared with every organization and the organization's own uploads. Disabled fonts are listed only for those who manage them.","operationId":"get_fonts_api_organizations__organization_id__fonts_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FontLibraryResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["fonts"],"summary":"Share a catalog font.","description":"Add an Office or Google font to the fonts shared with every organization.","operationId":"register_font_api_organizations__organization_id__fonts_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FontCatalogRegistrationRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FontFamilyResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/organizations/{organization_id}/fonts/default":{"get":{"tags":["fonts"],"summary":"Get the organization's default font.","description":"Get the font the organization chose and the font in effect. An organization without a usable choice of its own uses the platform default.","operationId":"get_default_font_api_organizations__organization_id__fonts_default_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FontDefaultResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["fonts"],"summary":"Choose the organization's default font.","description":"Choose an enabled font the organization can use. Null makes an organization use the platform default again; the platform owner organization must always keep a font.","operationId":"set_default_font_api_organizations__organization_id__fonts_default_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FontDefaultUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FontDefaultResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/organizations/{organization_id}/fonts/roles":{"get":{"tags":["fonts"],"summary":"Get the organization's font roles.","description":"Get the font chosen and the font in effect for body text, titles, handwriting and playful text. A role without a usable choice of its own uses the platform's choice, then the organization's default font.","operationId":"get_font_roles_api_organizations__organization_id__fonts_roles_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FontRolesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/organizations/{organization_id}/fonts/faces/{face_id}/content":{"get":{"tags":["fonts"],"summary":"Download an uploaded font face.","description":"Download the file of an uploaded font face the organization may use.","operationId":"get_face_content_api_organizations__organization_id__fonts_faces__face_id__content_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}},{"name":"face_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Face Id"}}],"responses":{"200":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/organizations/{organization_id}/fonts/{font_id}/embed":{"post":{"tags":["fonts"],"summary":"Get a font subset for previews.","description":"Get the requested faces of a font, reduced to the characters of the text and encoded as data URLs. An Office font is answered with the open font that substitutes it.","operationId":"embed_font_api_organizations__organization_id__fonts__font_id__embed_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}},{"name":"font_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Font Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FontEmbedRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FontEmbedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/organizations/{organization_id}/fonts/{font_id}/load":{"post":{"tags":["fonts"],"summary":"Get whole font faces for documents.","description":"Get the requested faces of a font whole, as TTF or OTF data URLs, for text of any length. The faces returned state their own weight and style, which can differ from the request when the font lacks a face. An Office font is answered with the open font that substitutes it. At most 8 faces and 20 MiB of font data per request.","operationId":"load_font_api_organizations__organization_id__fonts__font_id__load_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}},{"name":"font_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Font Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FontLoadRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FontEmbedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/organizations/{organization_id}/fonts/check":{"post":{"tags":["fonts"],"summary":"Check which fonts are available.","description":"Check font family names against the organization's fonts. An unavailable name comes with the organization's default font as its substitute. Each name also states which font renders it in the end.","operationId":"check_fonts_api_organizations__organization_id__fonts_check_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FontCheckRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FontCheckResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/organizations/{organization_id}/fonts/uploads":{"post":{"tags":["fonts"],"summary":"Upload a font face.","description":"Upload one TTF, OTF or WOFF file of at most 10 MiB. It joins the family named in the file, or the family given. WOFF2 is not accepted. An organization holds at most 30 uploaded families; the platform owner's uploads are shared with every organization.","operationId":"upload_font_api_organizations__organization_id__fonts_uploads_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}}],"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FontFamilyResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","required":["file"],"properties":{"file":{"type":"string","format":"binary"},"family":{"type":"string","maxLength":64}}}}}}}},"/core/organizations/{organization_id}/fonts/roles/{role}":{"put":{"tags":["fonts"],"summary":"Choose the font of a role.","description":"Choose an enabled font the organization can use for titles, handwriting or playful text. Null makes the role use the platform's choice again, then the organization's default font. The body font is the default font and is chosen there.","operationId":"set_font_role_api_organizations__organization_id__fonts_roles__role__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}},{"name":"role","in":"path","required":true,"schema":{"$ref":"#/components/schemas/FontRole"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FontRoleUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FontRolesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/organizations/{organization_id}/fonts/{font_id}":{"put":{"tags":["fonts"],"summary":"Enable or disable a font.","description":"Enable or disable a font the organization owns. Organizations that chose a disabled font use the platform default until it is enabled again. The platform default cannot be disabled.","operationId":"update_font_api_organizations__organization_id__fonts__font_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}},{"name":"font_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Font Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FontUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FontFamilyResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["fonts"],"summary":"Remove a font.","description":"Remove a font the organization owns, with its faces. Organizations that chose it use the platform default. The platform default cannot be removed.","operationId":"delete_font_api_organizations__organization_id__fonts__font_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}},{"name":"font_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Font Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/organizations/{organization_id}/fonts/faces/{face_id}":{"delete":{"tags":["fonts"],"summary":"Remove an uploaded font face.","description":"Remove one uploaded face. Removing the last face removes its font.","operationId":"delete_face_api_organizations__organization_id__fonts_faces__face_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}},{"name":"face_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Face Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/organizations/{organization_id}/fonts/catalog":{"get":{"tags":["fonts"],"summary":"Search the font catalog.","description":"Search the Office and Google fonts the platform can share. A Google font outside the bundled list is found by its exact name.","operationId":"get_catalog_api_organizations__organization_id__fonts_catalog_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}},{"name":"source","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/FontSource"},{"type":"null"}],"title":"Source"}},{"name":"query","in":"query","required":false,"schema":{"type":"string","maxLength":64,"default":"","title":"Query"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":50,"minimum":1,"default":20,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FontCatalogResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/organizations/{organization_id}/subscriptions":{"get":{"tags":["marketplace-subscriptions"],"summary":"Get subscriptions.","description":"Get marketplace listing subscriptions for the subscriber organization.","operationId":"get_subscribed_subscriptions_api_organizations__organization_id__subscriptions_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}},{"name":"lang","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"(Optional) preferred language for fetching translations","title":"Lang"},"description":"(Optional) preferred language for fetching translations"},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Search marketplace listing by name","title":"Search"},"description":"Search marketplace listing by name"},{"name":"top","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":10,"title":"Top"}},{"name":"skip","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Skip"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedResult_OrganizationSubscriptionSubscribedResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/organizations/{organization_id}/subscriptions/stats":{"get":{"tags":["marketplace-subscriptions"],"summary":"Get subscription stats.","description":"Get statistics of all marketplace listing subscriptions for the subscriber organization.","operationId":"get_subscribed_subscription_stats_api_organizations__organization_id__subscriptions_stats_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationSubscriptionStatsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/organizations/{organization_id}/subscriptions/{subscription_id}":{"get":{"tags":["marketplace-subscriptions"],"summary":"Get a subscription.","description":"Get a marketplace listing subscription for the subscriber organization.","operationId":"get_subscribed_subscription_detail_api_organizations__organization_id__subscriptions__subscription_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}},{"name":"subscription_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Subscription Id"}},{"name":"lang","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"(Optional) preferred language for fetching translations","title":"Lang"},"description":"(Optional) preferred language for fetching translations"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationSubscriptionDetailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/organizations/{organization_id}/subscriptions/{subscription_id}/versions":{"get":{"tags":["marketplace-subscriptions"],"summary":"Get subscription versions.","description":"Get marketplace listing subscription versions for the subscriber organization.","operationId":"get_subscribed_subscription_versions_api_organizations__organization_id__subscriptions__subscription_id__versions_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}},{"name":"subscription_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Subscription Id"}},{"name":"top","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":10,"title":"Top"}},{"name":"skip","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Skip"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedResult_OrganizationSubscriptionSubscribedVersionResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/organizations/{organization_id}/published-subscriptions":{"get":{"tags":["marketplace-subscriptions"],"summary":"Get published subscriptions.","description":"Get marketplace listing subscriptions for the publisher organization.","operationId":"get_published_subscriptions_api_organizations__organization_id__published_subscriptions_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}},{"name":"lang","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"(Optional) preferred language for fetching translations","title":"Lang"},"description":"(Optional) preferred language for fetching translations"},{"name":"sort","in":"query","required":false,"schema":{"$ref":"#/components/schemas/OrganizationSubscriptionSort","description":"Sorting of subscriptions","default":"status"},"description":"Sorting of subscriptions"},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Search subscription by name","title":"Search"},"description":"Search subscription by name"},{"name":"listing_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Filter subscriptions by marketplace listing","title":"Listing Id"},"description":"Filter subscriptions by marketplace listing"},{"name":"subscription_status","in":"query","required":false,"schema":{"$ref":"#/components/schemas/OrganizationSubscriptionStatusFilter","description":"Filter subscriptions by status","default":"all"},"description":"Filter subscriptions by status"},{"name":"subscriber_organization_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Filter subscriptions by subscriber organization","title":"Subscriber Organization Id"},"description":"Filter subscriptions by subscriber organization"},{"name":"top","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":10,"title":"Top"}},{"name":"skip","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Skip"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedResult_OrganizationSubscriptionPublishedResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/environments/{environment_id}/subscriptions/{subscription_id}":{"get":{"tags":["marketplace-subscriptions"],"summary":"Get a published subscription.","description":"Get a marketplace listing subscription from an environment for the publisher organization.","operationId":"get_published_subscription_detail_api_environments__environment_id__subscriptions__subscription_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"environment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Environment Id"}},{"name":"subscription_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Subscription Id"}},{"name":"lang","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"(Optional) preferred language for fetching translations","title":"Lang"},"description":"(Optional) preferred language for fetching translations"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationSubscriptionPublishedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["marketplace-subscriptions"],"summary":"Update a subscription.","description":"Update an existing marketplace listing subscription for an organization.","operationId":"update_subscription_api_environments__environment_id__subscriptions__subscription_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"environment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Environment Id"}},{"name":"subscription_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Subscription Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationSubscriptionUpdate"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["marketplace-subscriptions"],"summary":"Delete a subscription.","description":"Delete an existing marketplace listing subscription for an organization (temporary hard delete).","operationId":"delete_subscription_api_environments__environment_id__subscriptions__subscription_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"environment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Environment Id"}},{"name":"subscription_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Subscription Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/environments/{environment_id}/subscriptions":{"post":{"tags":["marketplace-subscriptions"],"summary":"Create a subscription.","description":"Create a new marketplace listing subscription for an organization.","operationId":"create_subscription_api_environments__environment_id__subscriptions_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"environment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Environment Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationSubscriptionCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationSubscriptionPublishedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/organizations/{organization_id}/subscriptions/{subscription_id}/activations":{"get":{"tags":["marketplace-subscriptions"],"summary":"Get environments for a subscription.","description":"Get environments from the subscriber organization and user's environments, extended with activations if found.","operationId":"get_environments_for_activations_api_organizations__organization_id__subscriptions__subscription_id__activations_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}},{"name":"subscription_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Subscription Id"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Search environment by name","title":"Search"},"description":"Search environment by name"},{"name":"activation_status","in":"query","required":false,"schema":{"$ref":"#/components/schemas/EnvironmentActivationStatus","description":"Filter environments by activation status: active/not active/all. All by default","default":"all"},"description":"Filter environments by activation status: active/not active/all. All by default"},{"name":"top","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":10,"title":"Top"}},{"name":"skip","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Skip"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedResult_EnvironmentActivationEnvironmentResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["marketplace-subscriptions"],"summary":"Patch environment activations for a subscription.","description":"Create/update/delete environment activations for an organization subscription.","operationId":"patch_environment_activations_api_organizations__organization_id__subscriptions__subscription_id__activations_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}},{"name":"subscription_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Subscription Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnvironmentActivationPatchList"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/organizations/{organization_id}/activation-tasks":{"get":{"tags":["activation-tasks"],"summary":"Get activation tasks.","description":"Get tasks from user's environments with activations.","operationId":"get_activation_tasks_api_organizations__organization_id__activation_tasks_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}},{"name":"lang","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"(Optional) preferred language for fetching translations","title":"Lang"},"description":"(Optional) preferred language for fetching translations"},{"name":"visibility","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/MarketplaceVisibility"},{"type":"null"}],"title":"Visibility"}},{"name":"top","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":10,"title":"Top"}},{"name":"skip","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Skip"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedResult_ActivationTaskCategoryResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/organizations/{organization_id}/activation-tasks/{task_id}/versions/{version}":{"get":{"tags":["activation-tasks"],"summary":"Get an activation task.","description":"Get a task from user's environments with activations.","operationId":"get_activation_task_detail_api_organizations__organization_id__activation_tasks__task_id__versions__version__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}},{"name":"task_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Task Id"}},{"name":"version","in":"path","required":true,"schema":{"type":"integer","title":"Version"}},{"name":"lang","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"(Optional) preferred language for fetching translations","title":"Lang"},"description":"(Optional) preferred language for fetching translations"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActivationTaskDetailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/organizations/{organization_id}/activation-tasks/{task_id}/versions/{version}/execute":{"post":{"tags":["activation-tasks"],"summary":"Execute an activation task.","description":"Execute a task from user's environments with activations.","operationId":"execute_activation_task_api_organizations__organization_id__activation_tasks__task_id__versions__version__execute_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}},{"name":"task_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Task Id"}},{"name":"version","in":"path","required":true,"schema":{"type":"integer","title":"Version"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActivationTaskExecutionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/organizations/{organization_id}/tasks/{task_id}/data":{"get":{"tags":["task-data"],"summary":"Get a task data page.","description":"Get a paged list of task data for a task and the current user.","operationId":"get_paged_task_data_api_organizations__organization_id__tasks__task_id__data_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}},{"name":"task_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Task Id"}},{"name":"entity_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"},{"type":"null"}],"description":"Filter by entity type","title":"Entity Type"},"description":"Filter by entity type"},{"name":"parent_data_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Filter by parent data ID","title":"Parent Data Id"},"description":"Filter by parent data ID"},{"name":"top","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":10,"title":"Top"}},{"name":"skip","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Skip"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedResult_TaskDataResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["task-data"],"summary":"Create task data.","description":"Create a new task data entity.","operationId":"create_task_data_api_organizations__organization_id__tasks__task_id__data_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}},{"name":"task_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Task Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskDataCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskDataResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/organizations/{organization_id}/tasks/{task_id}/data/{data_id}":{"get":{"tags":["task-data"],"summary":"Get task data.","description":"Get a single task data entity for a task and the current user.","operationId":"get_task_data_api_organizations__organization_id__tasks__task_id__data__data_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}},{"name":"task_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Task Id"}},{"name":"data_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Data Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskDataResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["task-data"],"summary":"Update task data.","description":"Update an existing task data entity.","operationId":"update_task_data_api_organizations__organization_id__tasks__task_id__data__data_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}},{"name":"task_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Task Id"}},{"name":"data_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Data Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskDataUpdate"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["task-data"],"summary":"Delete task data.","description":"Delete an existing task data entity, including child entities and files.","operationId":"delete_task_data_api_organizations__organization_id__tasks__task_id__data__data_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}},{"name":"task_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Task Id"}},{"name":"data_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Data Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/organizations/{organization_id}/tasks/{task_id}/data/bulk-delete":{"post":{"tags":["task-data"],"summary":"Bulk delete task data.","description":"Bulk delete task data entities, including child entities and files.","operationId":"bulk_delete_task_data_api_organizations__organization_id__tasks__task_id__data_bulk_delete_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}},{"name":"task_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Task Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskDataBulkDelete"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/organizations/{organization_id}/tasks/{task_id}/data/{data_id}/files/{file_id}/download":{"get":{"tags":["task-data"],"summary":"Download a task data file.","description":"Download a task data file by ID. Returns the file content as a streaming response.","operationId":"download_task_data_file_api_organizations__organization_id__tasks__task_id__data__data_id__files__file_id__download_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}},{"name":"task_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Task Id"}},{"name":"data_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Data Id"}},{"name":"file_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"File Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/organizations/{organization_id}/tasks/{task_id}/data/{data_id}/files":{"post":{"tags":["task-data"],"summary":"Create a task data file.","description":"Create a file attached to a task data entity.","operationId":"create_task_data_file_api_organizations__organization_id__tasks__task_id__data__data_id__files_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}},{"name":"task_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Task Id"}},{"name":"data_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Data Id"}}],"requestBody":{"required":true,"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/TaskDataFileCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskDataFileResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/organizations/{organization_id}/tasks/{task_id}/data/{data_id}/files/{file_id}":{"put":{"tags":["task-data"],"summary":"Update a task data file.","description":"Update a file attached to a task data entity.","operationId":"update_task_data_file_api_organizations__organization_id__tasks__task_id__data__data_id__files__file_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}},{"name":"task_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Task Id"}},{"name":"data_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Data Id"}},{"name":"file_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"File Id"}}],"requestBody":{"required":true,"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/TaskDataFileUpdate"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["task-data"],"summary":"Delete a task data file.","description":"Delete a file attachment from a task data entity.","operationId":"delete_task_data_file_api_organizations__organization_id__tasks__task_id__data__data_id__files__file_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}},{"name":"task_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Task Id"}},{"name":"data_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Data Id"}},{"name":"file_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"File Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/organizations/{organization_id}/tasks/{task_id}/chat-document-versions":{"post":{"tags":["task-data"],"summary":"Save a chat document version.","description":"Save one immutable code document version as a chat row of the current user, with its source as the file 'source'. A retry with the same operation ID returns the version it already saved. The row is stored, and answered, as task data, or as module data when the storage is 'module_data'.","operationId":"create_chat_document_version_api_organizations__organization_id__tasks__task_id__chat_document_versions_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}},{"name":"task_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Task Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatDocumentVersionCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/TaskDataResponse"},{"$ref":"#/components/schemas/ModuleDataResponse"}],"title":"Response Create Chat Document Version Api Organizations  Organization Id  Tasks  Task Id  Chat Document Versions Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/organizations/{organization_id}/tasks/{task_id}/chat-attachment-overviews":{"get":{"tags":["task-data"],"summary":"Get the attachment overviews of a chat conversation.","description":"Get every file of the current user's conversation, newest first: uploads, saved code document versions and saved image versions, each with its title, summary, status and what the summary covered. A file without a prepared overview is 'pending'. Never returns file content.","operationId":"get_chat_attachment_overviews_api_organizations__organization_id__tasks__task_id__chat_attachment_overviews_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}},{"name":"task_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Task Id"}},{"name":"storage","in":"query","required":false,"schema":{"$ref":"#/components/schemas/ChatStorage","description":"(Optional) table holding the chat's rows; Task Data when absent","default":"task_data"},"description":"(Optional) table holding the chat's rows; Task Data when absent"},{"name":"module_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1,"maxLength":100},{"type":"null"}],"description":"Module holding the chat's rows; required with Module Data storage and only accepted with it","title":"Module Id"},"description":"Module holding the chat's rows; required with Module Data storage and only accepted with it"},{"name":"namespace","in":"query","required":true,"schema":{"type":"string","description":"Module namespace holding the conversation","title":"Namespace"},"description":"Module namespace holding the conversation"},{"name":"conversation_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","description":"The chat_conversation row whose files are listed","title":"Conversation Id"},"description":"The chat_conversation row whose files are listed"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ChatAttachmentOverviewResponse"},"title":"Response Get Chat Attachment Overviews Api Organizations  Organization Id  Tasks  Task Id  Chat Attachment Overviews Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/organizations/{organization_id}/modules/{module_id}/entities/{entity_type}":{"get":{"tags":["module-data"],"summary":"Get a page of module entities.","description":"Get a page of entities stored by a module. Pages are read by cursor: pass the 'next_cursor' of a page to read the one after it, and stop when it is null. Keep 'order_by' and 'direction' unchanged while paging.","operationId":"get_module_data_page_api_organizations__organization_id__modules__module_id__entities__entity_type__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}},{"name":"module_id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100,"description":"Module the entities belong to, matched regardless of case","title":"Module Id"},"description":"Module the entities belong to, matched regardless of case"},{"name":"entity_type","in":"path","required":true,"schema":{"type":"string","description":"Entity type classification (e.g. 'session', 'chat-message'), matched regardless of case","title":"Entity Type"},"description":"Entity type classification (e.g. 'session', 'chat-message'), matched regardless of case"},{"name":"order_by","in":"query","required":false,"schema":{"$ref":"#/components/schemas/ModuleDataOrderBy","description":"Field to order the entities by","default":"created_at"},"description":"Field to order the entities by"},{"name":"direction","in":"query","required":false,"schema":{"$ref":"#/components/schemas/SortDirection","description":"Direction to order the entities in","default":"asc"},"description":"Direction to order the entities in"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":50,"title":"Limit"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},{"name":"where","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"JSON object matching entities on equality, for example {\"status\":\"draft\"}. Keys match top-level fields of 'data', with string values. 'parent_id' matches the parent instead, and {\"parent_id\":null} lists only entities without one.","title":"Where"},"description":"JSON object matching entities on equality, for example {\"status\":\"draft\"}. Keys match top-level fields of 'data', with string values. 'parent_id' matches the parent instead, and {\"parent_id\":null} lists only entities without one."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CursorPaginatedResult_ModuleDataResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["module-data"],"summary":"Create a module entity.","description":"Create a new entity for a module.","operationId":"create_module_data_api_organizations__organization_id__modules__module_id__entities__entity_type__post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}},{"name":"module_id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100,"description":"Module the entities belong to, matched regardless of case","title":"Module Id"},"description":"Module the entities belong to, matched regardless of case"},{"name":"entity_type","in":"path","required":true,"schema":{"type":"string","description":"Entity type classification (e.g. 'session', 'chat-message'), matched regardless of case","title":"Entity Type"},"description":"Entity type classification (e.g. 'session', 'chat-message'), matched regardless of case"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModuleDataCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModuleDataResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/organizations/{organization_id}/modules/{module_id}/entities/{entity_type}/{data_id}":{"get":{"tags":["module-data"],"summary":"Get a module entity.","description":"Get a single entity stored by a module.","operationId":"get_module_data_api_organizations__organization_id__modules__module_id__entities__entity_type___data_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}},{"name":"module_id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100,"description":"Module the entities belong to, matched regardless of case","title":"Module Id"},"description":"Module the entities belong to, matched regardless of case"},{"name":"entity_type","in":"path","required":true,"schema":{"type":"string","description":"Entity type classification (e.g. 'session', 'chat-message'), matched regardless of case","title":"Entity Type"},"description":"Entity type classification (e.g. 'session', 'chat-message'), matched regardless of case"},{"name":"data_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Data Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModuleDataResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["module-data"],"summary":"Update a module entity.","description":"Update an existing entity of a module. The payload replaces the stored one, so send the entity as it should end up; fields left out keep their stored value, and a null parent detaches the entity from its parent.","operationId":"update_module_data_api_organizations__organization_id__modules__module_id__entities__entity_type___data_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}},{"name":"module_id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100,"description":"Module the entities belong to, matched regardless of case","title":"Module Id"},"description":"Module the entities belong to, matched regardless of case"},{"name":"entity_type","in":"path","required":true,"schema":{"type":"string","description":"Entity type classification (e.g. 'session', 'chat-message'), matched regardless of case","title":"Entity Type"},"description":"Entity type classification (e.g. 'session', 'chat-message'), matched regardless of case"},{"name":"data_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Data Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModuleDataUpdate"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["module-data"],"summary":"Delete a module entity.","description":"Delete an existing entity of a module, including its child entities.","operationId":"delete_module_data_api_organizations__organization_id__modules__module_id__entities__entity_type___data_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}},{"name":"module_id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100,"description":"Module the entities belong to, matched regardless of case","title":"Module Id"},"description":"Module the entities belong to, matched regardless of case"},{"name":"entity_type","in":"path","required":true,"schema":{"type":"string","description":"Entity type classification (e.g. 'session', 'chat-message'), matched regardless of case","title":"Entity Type"},"description":"Entity type classification (e.g. 'session', 'chat-message'), matched regardless of case"},{"name":"data_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Data Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/organizations/{organization_id}/modules/{module_id}/entities/{entity_type}/bulk-delete":{"post":{"tags":["module-data"],"summary":"Bulk delete module entities.","description":"Delete several entities of a module, including their child entities. Nothing is deleted unless every entity in the request can be reached.","operationId":"bulk_delete_module_data_api_organizations__organization_id__modules__module_id__entities__entity_type__bulk_delete_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}},{"name":"module_id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100,"description":"Module the entities belong to, matched regardless of case","title":"Module Id"},"description":"Module the entities belong to, matched regardless of case"},{"name":"entity_type","in":"path","required":true,"schema":{"type":"string","description":"Entity type classification (e.g. 'session', 'chat-message'), matched regardless of case","title":"Entity Type"},"description":"Entity type classification (e.g. 'session', 'chat-message'), matched regardless of case"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModuleDataBulkDelete"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/organizations/{organization_id}/modules/{module_id}/entities/{entity_type}/{data_id}/files/{file_id}/download":{"get":{"tags":["module-data"],"summary":"Download a module entity file.","description":"Download a file attached to an entity of a module.","operationId":"download_module_data_file_api_organizations__organization_id__modules__module_id__entities__entity_type___data_id__files__file_id__download_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}},{"name":"module_id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100,"description":"Module the entities belong to, matched regardless of case","title":"Module Id"},"description":"Module the entities belong to, matched regardless of case"},{"name":"entity_type","in":"path","required":true,"schema":{"type":"string","description":"Entity type classification (e.g. 'session', 'chat-message'), matched regardless of case","title":"Entity Type"},"description":"Entity type classification (e.g. 'session', 'chat-message'), matched regardless of case"},{"name":"data_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Data Id"}},{"name":"file_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"File Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/organizations/{organization_id}/modules/{module_id}/entities/{entity_type}/{data_id}/files":{"post":{"tags":["module-data"],"summary":"Upload a module entity file.","description":"Upload a file under a field of an entity of a module. An entity holds one file per field, so uploading under a field that already holds one replaces that file.","operationId":"create_or_update_module_data_file_api_organizations__organization_id__modules__module_id__entities__entity_type___data_id__files_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}},{"name":"module_id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100,"description":"Module the entities belong to, matched regardless of case","title":"Module Id"},"description":"Module the entities belong to, matched regardless of case"},{"name":"entity_type","in":"path","required":true,"schema":{"type":"string","description":"Entity type classification (e.g. 'session', 'chat-message'), matched regardless of case","title":"Entity Type"},"description":"Entity type classification (e.g. 'session', 'chat-message'), matched regardless of case"},{"name":"data_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Data Id"}}],"requestBody":{"required":true,"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/ModuleDataFileCreateOrUpdate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModuleDataFileResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/organizations/{organization_id}/modules/{module_id}/entities/{entity_type}/{data_id}/files/{file_id}":{"delete":{"tags":["module-data"],"summary":"Delete a module entity file.","description":"Delete a file attached to an entity of a module.","operationId":"delete_module_data_file_api_organizations__organization_id__modules__module_id__entities__entity_type___data_id__files__file_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}},{"name":"module_id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100,"description":"Module the entities belong to, matched regardless of case","title":"Module Id"},"description":"Module the entities belong to, matched regardless of case"},{"name":"entity_type","in":"path","required":true,"schema":{"type":"string","description":"Entity type classification (e.g. 'session', 'chat-message'), matched regardless of case","title":"Entity Type"},"description":"Entity type classification (e.g. 'session', 'chat-message'), matched regardless of case"},{"name":"data_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Data Id"}},{"name":"file_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"File Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/organizations/{organization_id}/modules/{module_id}/chat-conversations/search":{"get":{"tags":["module-data"],"summary":"Search the chat conversations of a module.","description":"Get a page of the chat conversations whose title, preview or any message contains 'query', most recently changed first. A conversation comes back once however many of its messages match, and messages themselves never come back. Pass the 'next_cursor' of a page to read the one after it, with the same query.","operationId":"search_chat_conversations_api_organizations__organization_id__modules__module_id__chat_conversations_search_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}},{"name":"module_id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100,"description":"Module the entities belong to, matched regardless of case","title":"Module Id"},"description":"Module the entities belong to, matched regardless of case"},{"name":"query","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":200,"description":"Text a conversation's title, preview or one of its messages contains, ignoring case; '%' and '_' match only themselves","title":"Query"},"description":"Text a conversation's title, preview or one of its messages contains, ignoring case; '%' and '_' match only themselves"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":50,"title":"Limit"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CursorPaginatedResult_ModuleDataResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/organizations/{organization_id}/workspace-v2/items/search":{"get":{"tags":["workspace-v2"],"summary":"Search everything you can open in Files.","description":"Find the folders, documents and files in your own space and in what was shared with you, at any depth, whose name or owner's name holds some text; folders first, then by name. Each one says whether it is yours or shared with you, and names the folders above it that you can open, from the top down. Pages are read by cursor: pass the 'next_cursor' of a page to read the one after it, and stop when it is null.","operationId":"search_items_page_api_organizations__organization_id__workspace_v2_items_search_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}},{"name":"q","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":200,"description":"Text an item's name or its owner's name contains, ignoring case and accents; '%' and '_' match only themselves","title":"Q"},"description":"Text an item's name or its owner's name contains, ignoring case and accents; '%' and '_' match only themselves"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":50,"title":"Limit"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CursorPaginatedResult_WorkspaceV2ItemSearchResultResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/organizations/{organization_id}/workspace-v2/items/root":{"get":{"tags":["workspace-v2"],"summary":"Get a page of the items at the root of your own space.","description":"Get the folders, documents and files at the top of your own space, folders first and then by name. Keep only those whose name or owner's name holds some text and whose last change falls between two dates; every filter given must match. Name a module to get its own items there instead, its containers first. Pages are read by cursor: pass the 'next_cursor' of a page to read the one after it, and stop when it is null.","operationId":"get_root_items_page_api_organizations__organization_id__workspace_v2_items_root_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}},{"name":"module","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":100,"pattern":"^[a-z][a-z0-9-]*$"},{"type":"null"}],"description":"(Optional) module whose own items are listed instead of Files' items","title":"Module"},"description":"(Optional) module whose own items are listed instead of Files' items"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":50,"title":"Limit"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"minLength":1,"maxLength":200,"description":"Keep the items whose name or owner's name contains this text, ignoring case and accents; '%' and '_' match only themselves","title":"Search"},"description":"Keep the items whose name or owner's name contains this text, ignoring case and accents; '%' and '_' match only themselves"},{"name":"name","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"minLength":1,"maxLength":200,"description":"Keep the items whose name contains this text, ignoring case and accents; '%' and '_' match only themselves","title":"Name"},"description":"Keep the items whose name contains this text, ignoring case and accents; '%' and '_' match only themselves"},{"name":"owner","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"minLength":1,"maxLength":200,"description":"Keep the items whose owner's name contains this text, ignoring case and accents; '%' and '_' match only themselves","title":"Owner"},"description":"Keep the items whose owner's name contains this text, ignoring case and accents; '%' and '_' match only themselves"},{"name":"sort","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/WorkspaceV2ItemSortKey"},{"type":"null"}],"description":"Order the items by their name, last change, owner's name or size, folders among the files; items without a size come last. Without it, folders come first, then by name","title":"Sort"},"description":"Order the items by their name, last change, owner's name or size, folders among the files; items without a size come last. Without it, folders come first, then by name"},{"name":"direction","in":"query","required":false,"schema":{"$ref":"#/components/schemas/SortDirection","description":"Which way the sort runs","default":"asc"},"description":"Which way the sort runs"},{"name":"from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Filter from this date (inclusive)","title":"From"},"description":"Filter from this date (inclusive)"},{"name":"to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Filter to this date (inclusive)","title":"To"},"description":"Filter to this date (inclusive)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CursorPaginatedResult_WorkspaceV2ItemResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/organizations/{organization_id}/workspace-v2/items/shared":{"get":{"tags":["workspace-v2"],"summary":"Get the items shared with you.","description":"Get the items colleagues shared with you, directly or through your environment or organization. Name a module to get its own items instead.","operationId":"get_shared_items_api_organizations__organization_id__workspace_v2_items_shared_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}},{"name":"module","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":100,"pattern":"^[a-z][a-z0-9-]*$"},{"type":"null"}],"description":"(Optional) module whose own items are listed instead of Files' items","title":"Module"},"description":"(Optional) module whose own items are listed instead of Files' items"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/WorkspaceV2ItemResponse"},"title":"Response Get Shared Items Api Organizations  Organization Id  Workspace V2 Items Shared Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/organizations/{organization_id}/workspace-v2/items/trash":{"get":{"tags":["workspace-v2"],"summary":"Get the items in your trash.","description":"Get the items in the trash that you own or may restore, whoever trashed them, most recently trashed first. Name a module to get its own items instead.","operationId":"get_trashed_items_api_organizations__organization_id__workspace_v2_items_trash_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}},{"name":"module","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":100,"pattern":"^[a-z][a-z0-9-]*$"},{"type":"null"}],"description":"(Optional) module whose own items are listed instead of Files' items","title":"Module"},"description":"(Optional) module whose own items are listed instead of Files' items"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/WorkspaceV2ItemResponse"},"title":"Response Get Trashed Items Api Organizations  Organization Id  Workspace V2 Items Trash Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/organizations/{organization_id}/workspace-v2/items/{item_id}":{"get":{"tags":["workspace-v2"],"summary":"Get a workspace item.","description":"Get an item and your role on it.","operationId":"get_item_api_organizations__organization_id__workspace_v2_items__item_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}},{"name":"item_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Item Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceV2ItemResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["workspace-v2"],"summary":"Rename or move a workspace item.","description":"Rename an item or move it to another folder. Send the revision you last read: if someone changed the item since, nothing is changed and you get a conflict, so reload and try again.","operationId":"update_item_api_organizations__organization_id__workspace_v2_items__item_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}},{"name":"item_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Item Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceV2ItemUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceV2ItemResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/organizations/{organization_id}/workspace-v2/items/{item_id}/children":{"get":{"tags":["workspace-v2"],"summary":"Get a page of the items inside a folder.","description":"Get the items directly inside a folder you may view, folders first and then by name. Keep only those whose name or owner's name holds some text and whose last change falls between two dates; every filter given must match. Name a module to get its own items inside one of its containers instead. Pages are read by cursor: pass the 'next_cursor' of a page to read the one after it, and stop when it is null.","operationId":"get_child_items_page_api_organizations__organization_id__workspace_v2_items__item_id__children_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}},{"name":"item_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Item Id"}},{"name":"module","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":100,"pattern":"^[a-z][a-z0-9-]*$"},{"type":"null"}],"description":"(Optional) module whose own items are listed instead of Files' items","title":"Module"},"description":"(Optional) module whose own items are listed instead of Files' items"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":50,"title":"Limit"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"minLength":1,"maxLength":200,"description":"Keep the items whose name or owner's name contains this text, ignoring case and accents; '%' and '_' match only themselves","title":"Search"},"description":"Keep the items whose name or owner's name contains this text, ignoring case and accents; '%' and '_' match only themselves"},{"name":"name","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"minLength":1,"maxLength":200,"description":"Keep the items whose name contains this text, ignoring case and accents; '%' and '_' match only themselves","title":"Name"},"description":"Keep the items whose name contains this text, ignoring case and accents; '%' and '_' match only themselves"},{"name":"owner","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"minLength":1,"maxLength":200,"description":"Keep the items whose owner's name contains this text, ignoring case and accents; '%' and '_' match only themselves","title":"Owner"},"description":"Keep the items whose owner's name contains this text, ignoring case and accents; '%' and '_' match only themselves"},{"name":"sort","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/WorkspaceV2ItemSortKey"},{"type":"null"}],"description":"Order the items by their name, last change, owner's name or size, folders among the files; items without a size come last. Without it, folders come first, then by name","title":"Sort"},"description":"Order the items by their name, last change, owner's name or size, folders among the files; items without a size come last. Without it, folders come first, then by name"},{"name":"direction","in":"query","required":false,"schema":{"$ref":"#/components/schemas/SortDirection","description":"Which way the sort runs","default":"asc"},"description":"Which way the sort runs"},{"name":"from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Filter from this date (inclusive)","title":"From"},"description":"Filter from this date (inclusive)"},{"name":"to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Filter to this date (inclusive)","title":"To"},"description":"Filter to this date (inclusive)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CursorPaginatedResult_WorkspaceV2ItemResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/organizations/{organization_id}/workspace-v2/items/{item_id}/media":{"get":{"tags":["workspace-v2"],"summary":"Get the media inside an item.","description":"Get the media uploaded into an item you may view, such as a document's images, oldest first, each with where it stands. Media shows in no other list; media trashed on its own is left out here too.","operationId":"get_media_api_organizations__organization_id__workspace_v2_items__item_id__media_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}},{"name":"item_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Item Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/WorkspaceV2ItemResponse"},"title":"Response Get Media Api Organizations  Organization Id  Workspace V2 Items  Item Id  Media Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/organizations/{organization_id}/workspace-v2/items":{"post":{"tags":["workspace-v2"],"summary":"Create a workspace item.","description":"Create a folder or a document in your own space or in a folder you may edit, or an item of a module's kind at the root or in a container of that module, as the module declares.","operationId":"create_item_api_organizations__organization_id__workspace_v2_items_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceV2ItemCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceV2ItemResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/organizations/{organization_id}/workspace-v2/items/{item_id}/trash":{"post":{"tags":["workspace-v2"],"summary":"Move a workspace item to the trash.","description":"Move an item you manage, or edit when its kind declares editor-trash, and everything inside it, to the trash. Media inside an item, such as a document's image, is trashed by anyone who may edit that item, and does not come back on its own.","operationId":"trash_item_api_organizations__organization_id__workspace_v2_items__item_id__trash_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}},{"name":"item_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Item Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceV2ItemResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/organizations/{organization_id}/workspace-v2/items/{item_id}/restore":{"post":{"tags":["workspace-v2"],"summary":"Restore a workspace item from the trash.","description":"Bring an item you manage, or edit when its kind declares editor-trash, back from the trash, into the folder it was trashed from.","operationId":"restore_item_api_organizations__organization_id__workspace_v2_items__item_id__restore_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}},{"name":"item_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Item Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceV2ItemResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/organizations/{organization_id}/workspace-v2/items/{item_id}/descendants":{"get":{"tags":["workspace-v2"],"summary":"Get a page of an item with the items below it.","description":"Get an item you may view and the live items below it, down to the given depth, as one flat list: the item first, then the shallowest level, each level containers first and then by name. The item comes with your role on it, and only when it is of the kinds asked for; the items below are read either way. Each item names its parent, so the tree is rebuilt from the list. Name a module to get its own items instead of Files' items. Pages are read by cursor: pass the 'next_cursor' of a page to read the one after it, and stop when it is null.","operationId":"get_descendants_page_api_organizations__organization_id__workspace_v2_items__item_id__descendants_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}},{"name":"item_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Item Id"}},{"name":"depth","in":"query","required":false,"schema":{"type":"integer","maximum":2,"minimum":1,"description":"Levels below the item to read, its children being the first","default":1,"title":"Depth"},"description":"Levels below the item to read, its children being the first"},{"name":"module","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":100,"pattern":"^[a-z][a-z0-9-]*$"},{"type":"null"}],"description":"(Optional) module whose own items are listed instead of Files' items","title":"Module"},"description":"(Optional) module whose own items are listed instead of Files' items"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":50,"title":"Limit"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CursorPaginatedResult_WorkspaceV2ItemResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/organizations/{organization_id}/workspace-v2/items/{item_id}/state":{"get":{"tags":["workspace-v2"],"summary":"Get the current content of a document.","description":"Get what a document holds now, as the Yjs state an editor loads, without joining its live editing session, such as for a preview or an export. A document nobody wrote in yet answers the state of an empty document.","operationId":"get_state_api_organizations__organization_id__workspace_v2_items__item_id__state_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}},{"name":"item_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Item Id"}}],"responses":{"200":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/organizations/{organization_id}/workspace-v2/items/{item_id}/content":{"post":{"tags":["workspace-v2"],"summary":"Write the first content of a document.","description":"Write the content of a document nobody wrote in yet, such as a chat saved to Files, in one request instead of through the live editing session. Needs the editor role on the document. Sending the same content again changes nothing, so a request whose answer was lost can be retried.","operationId":"create_document_content_api_organizations__organization_id__workspace_v2_items__item_id__content_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}},{"name":"item_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Item Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceV2DocumentContentCreate"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/organizations/{organization_id}/workspace-v2/items/{item_id}/chat-session/entities/{entity_type}":{"get":{"tags":["workspace-v2"],"summary":"Get a page of the rows of a shared chat session.","description":"Get a page of the rows directly beneath the session a Files item opens, whatever parent the filter names. Paged like module data: pass 'next_cursor' on, keeping the order unchanged.","operationId":"get_chat_session_rows_page_api_organizations__organization_id__workspace_v2_items__item_id__chat_session_entities__entity_type__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}},{"name":"item_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Item Id"}},{"name":"entity_type","in":"path","required":true,"schema":{"type":"string","description":"Entity type classification (e.g. 'session', 'chat-message'), matched regardless of case","title":"Entity Type"},"description":"Entity type classification (e.g. 'session', 'chat-message'), matched regardless of case"},{"name":"order_by","in":"query","required":false,"schema":{"$ref":"#/components/schemas/ModuleDataOrderBy","description":"Field to order the rows by","default":"created_at"},"description":"Field to order the rows by"},{"name":"direction","in":"query","required":false,"schema":{"$ref":"#/components/schemas/SortDirection","description":"Direction to order the rows in","default":"asc"},"description":"Direction to order the rows in"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":50,"title":"Limit"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},{"name":"where","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"JSON object matching entities on equality, for example {\"status\":\"draft\"}. Keys match top-level fields of 'data', with string values. 'parent_id' matches the parent instead, and {\"parent_id\":null} lists only entities without one.","title":"Where"},"description":"JSON object matching entities on equality, for example {\"status\":\"draft\"}. Keys match top-level fields of 'data', with string values. 'parent_id' matches the parent instead, and {\"parent_id\":null} lists only entities without one."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CursorPaginatedResult_ModuleDataResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/organizations/{organization_id}/workspace-v2/items/{item_id}/chat-session":{"get":{"tags":["workspace-v2"],"summary":"Get the chat session a Files item opens.","description":"Get the session a Files item opens and what you may do with it; its ID is null once it was deleted.","operationId":"get_chat_session_api_organizations__organization_id__workspace_v2_items__item_id__chat_session_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}},{"name":"item_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Item Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceV2ChatSessionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/organizations/{organization_id}/workspace-v2/items/{item_id}/chat-session/entities/{entity_type}/{data_id}":{"get":{"tags":["workspace-v2"],"summary":"Get a row of a shared chat session.","description":"Get the session a Files item opens, or one row directly beneath it.","operationId":"get_chat_session_row_api_organizations__organization_id__workspace_v2_items__item_id__chat_session_entities__entity_type___data_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}},{"name":"item_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Item Id"}},{"name":"entity_type","in":"path","required":true,"schema":{"type":"string","description":"Entity type classification (e.g. 'session', 'chat-message'), matched regardless of case","title":"Entity Type"},"description":"Entity type classification (e.g. 'session', 'chat-message'), matched regardless of case"},{"name":"data_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Data Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModuleDataResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/organizations/{organization_id}/workspace-v2/items/{item_id}/chat-session/entities/{entity_type}/{data_id}/files/{file_id}/download":{"get":{"tags":["workspace-v2"],"summary":"Download a file of a shared chat session.","description":"Download a file of the session a Files item opens, or of a row directly beneath it.","operationId":"download_chat_session_file_api_organizations__organization_id__workspace_v2_items__item_id__chat_session_entities__entity_type___data_id__files__file_id__download_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}},{"name":"item_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Item Id"}},{"name":"entity_type","in":"path","required":true,"schema":{"type":"string","description":"Entity type classification (e.g. 'session', 'chat-message'), matched regardless of case","title":"Entity Type"},"description":"Entity type classification (e.g. 'session', 'chat-message'), matched regardless of case"},{"name":"data_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Data Id"}},{"name":"file_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"File Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/organizations/{organization_id}/workspace-v2/chat-sessions":{"post":{"tags":["workspace-v2"],"summary":"Save one of your chat sessions to Files.","description":"Save a Files item that opens one of your own ChatPRO+ sessions, in your own space or in a folder you may edit. Sharing the item lets others read the session; it stays yours to continue.","operationId":"create_chat_session_api_organizations__organization_id__workspace_v2_chat_sessions_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceV2ChatSessionCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceV2ChatSessionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/organizations/{organization_id}/workspace-v2/items/{item_id}/chat-session/copies":{"post":{"tags":["workspace-v2"],"summary":"Continue a shared chat session in a private copy.","description":"Copy the session a Files item opens, as it is saved now, into a private session of your own. Needs the editor role on the item. A retry with the same operation ID returns the same copy.","operationId":"create_chat_session_copy_api_organizations__organization_id__workspace_v2_items__item_id__chat_session_copies_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}},{"name":"item_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Item Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceV2ChatSessionCopyCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceV2ChatSessionCopyResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/organizations/{organization_id}/workspace-v2/items/{item_id}/image-session/copies":{"post":{"tags":["workspace-v2"],"summary":"Continue a shared Image Plus session in a private copy.","operationId":"create_image_session_copy_api_organizations__organization_id__workspace_v2_items__item_id__image_session_copies_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}},{"name":"item_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Item Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceV2ImageSessionCopyCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceV2ImageSessionCopyResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/organizations/{organization_id}/workspace-v2/items/{item_id}/session/copies":{"post":{"tags":["workspace-v2"],"summary":"Continue a shared module session in a private copy.","operationId":"create_session_copy_api_organizations__organization_id__workspace_v2_items__item_id__session_copies_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}},{"name":"item_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Item Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceV2ImageSessionCopyCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceV2SessionCopyResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/organizations/{organization_id}/workspace-v2/items/{item_id}/grants":{"get":{"tags":["workspace-v2"],"summary":"Get who a workspace item is shared with.","description":"Get everyone with access to an item, including access given on the folders above it.","operationId":"get_grants_api_organizations__organization_id__workspace_v2_items__item_id__grants_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}},{"name":"item_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Item Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/WorkspaceV2GrantResponse"},"title":"Response Get Grants Api Organizations  Organization Id  Workspace V2 Items  Item Id  Grants Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["workspace-v2"],"summary":"Share a workspace item.","description":"Share an item you manage with a user, an environment or the whole organization. Sharing again with the same one changes their role.","operationId":"create_or_update_grant_api_organizations__organization_id__workspace_v2_items__item_id__grants_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}},{"name":"item_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Item Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceV2GrantUpsert"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceV2GrantResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/organizations/{organization_id}/workspace-v2/items/{item_id}/grants/children":{"get":{"tags":["workspace-v2"],"summary":"Get what one person may do with each item in a folder.","description":"For a folder you manage, list the items directly inside it with the role one user, environment or the organization holds on each, and whether that role follows the folder or was set on the item.","operationId":"get_child_grants_api_organizations__organization_id__workspace_v2_items__item_id__grants_children_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}},{"name":"item_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Item Id"}},{"name":"principal_type","in":"query","required":true,"schema":{"$ref":"#/components/schemas/WorkspaceV2PrincipalType"}},{"name":"principal_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Principal Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/WorkspaceV2ChildGrantResponse"},"title":"Response Get Child Grants Api Organizations  Organization Id  Workspace V2 Items  Item Id  Grants Children Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/organizations/{organization_id}/workspace-v2/items/{item_id}/grants/{grant_id}":{"delete":{"tags":["workspace-v2"],"summary":"Stop sharing a workspace item.","description":"Remove access given on an item you manage. Access given on a folder above is removed on that folder.","operationId":"delete_grant_api_organizations__organization_id__workspace_v2_items__item_id__grants__grant_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}},{"name":"item_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Item Id"}},{"name":"grant_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Grant Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/organizations/{organization_id}/workspace-v2/items/{item_id}/image-links/read":{"post":{"tags":["workspace-v2"],"summary":"Read the pictures a course uses.","description":"For a course you may view, get each picture you ask for with its versions, their files and the name of the session it comes from. A picture the course does not use answers 'unlinked'.","operationId":"get_linked_stacks_api_organizations__organization_id__workspace_v2_items__item_id__image_links_read_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}},{"name":"item_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Item Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceV2ImageLinks"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/WorkspaceV2LinkedStackResponse"},"title":"Response Get Linked Stacks Api Organizations  Organization Id  Workspace V2 Items  Item Id  Image Links Read Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/organizations/{organization_id}/workspace-v2/items/{item_id}/image-links/urls":{"post":{"tags":["workspace-v2"],"summary":"Get links to the files of pictures a course uses.","description":"For a course you may view, get a link that reads each file you ask for, and its thumbnail, for an hour. A file of a picture the course does not use answers 'unlinked'.","operationId":"get_file_urls_api_organizations__organization_id__workspace_v2_items__item_id__image_links_urls_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}},{"name":"item_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Item Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceV2LinkedFiles"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/WorkspaceV2LinkedFileUrlResponse"},"title":"Response Get File Urls Api Organizations  Organization Id  Workspace V2 Items  Item Id  Image Links Urls Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/organizations/{organization_id}/workspace-v2/items/{item_id}/image-links":{"post":{"tags":["workspace-v2"],"summary":"Record pictures a course uses.","description":"For a course you may edit, record pictures placed in it, so every member of the course can see them. Only pictures you can see yourself are recorded; any other answers 'refused'.","operationId":"create_links_api_organizations__organization_id__workspace_v2_items__item_id__image_links_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}},{"name":"item_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Item Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceV2ImageLinks"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/WorkspaceV2ImageLinkResultResponse"},"title":"Response Create Links Api Organizations  Organization Id  Workspace V2 Items  Item Id  Image Links Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["workspace-v2"],"summary":"Set the pictures a course uses.","description":"For a course you may edit, send every picture it uses as found by a scan. They are recorded as above, and pictures the scan did not find stop being shown, unless they were recorded after the scan started.","operationId":"replace_links_api_organizations__organization_id__workspace_v2_items__item_id__image_links_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}},{"name":"item_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Item Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceV2ImageLinksReplace"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/organizations/{organization_id}/workspace-v2/items/{item_id}/access-requests/mine":{"get":{"tags":["workspace-v2"],"summary":"Get your latest request for access to a session.","description":"Get your latest request for access to a session and its answer, or null when you never asked.","operationId":"get_my_request_api_organizations__organization_id__workspace_v2_items__item_id__access_requests_mine_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}},{"name":"item_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Item Id"}},{"name":"via_item_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The course you see one of the session's pictures in","title":"Via Item Id"},"description":"The course you see one of the session's pictures in"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WorkspaceV2AccessRequestResponse"},{"type":"null"}],"title":"Response Get My Request Api Organizations  Organization Id  Workspace V2 Items  Item Id  Access Requests Mine Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/organizations/{organization_id}/workspace-v2/items/{item_id}/access-requests/{request_id}":{"get":{"tags":["workspace-v2"],"summary":"Get a request for access to a session you manage.","description":"Get who asked, the role asked, their message, and the answer once there is one.","operationId":"get_request_api_organizations__organization_id__workspace_v2_items__item_id__access_requests__request_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}},{"name":"item_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Item Id"}},{"name":"request_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Request Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceV2AccessRequestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/organizations/{organization_id}/workspace-v2/items/{item_id}/access-requests":{"post":{"tags":["workspace-v2"],"summary":"Ask for access to a session.","description":"Ask the managers of a session to let you view or edit it, with an optional short message. They are notified and answer; nothing changes until they do. While a request waits for an answer, asking again returns it.","operationId":"create_request_api_organizations__organization_id__workspace_v2_items__item_id__access_requests_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}},{"name":"item_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Item Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceV2AccessRequestCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceV2AccessRequestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/organizations/{organization_id}/workspace-v2/items/{item_id}/access-requests/{request_id}/decision":{"post":{"tags":["workspace-v2"],"summary":"Answer a request for access to a session you manage.","description":"Give the person view or edit access, or decline. A role they already hold is never lowered. They are notified of the answer. A request is answered once.","operationId":"decide_request_api_organizations__organization_id__workspace_v2_items__item_id__access_requests__request_id__decision_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}},{"name":"item_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Item Id"}},{"name":"request_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Request Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceV2AccessDecision"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceV2AccessRequestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/organizations/{organization_id}/workspace-v2/people":{"get":{"tags":["workspace-v2"],"summary":"Find colleagues to share with.","description":"Find active members of your organization by name or email, to share a workspace item with.","operationId":"get_people_api_organizations__organization_id__workspace_v2_people_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}},{"name":"search","in":"query","required":false,"schema":{"type":"string","maxLength":100,"description":"Text to find in a colleague's name or email","default":"","title":"Search"},"description":"Text to find in a colleague's name or email"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":20,"minimum":1,"description":"Maximum number of colleagues","default":20,"title":"Limit"},"description":"Maximum number of colleagues"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/WorkspaceV2PersonResponse"},"title":"Response Get People Api Organizations  Organization Id  Workspace V2 People Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/organizations/{organization_id}/workspace-v2/items/{item_id}/versions":{"get":{"tags":["workspace-v2"],"summary":"Get the history of a document.","description":"Get the versions of a document you may view, newest first, with the people who changed each one.","operationId":"get_versions_api_organizations__organization_id__workspace_v2_items__item_id__versions_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}},{"name":"item_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Item Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/WorkspaceV2VersionResponse"},"title":"Response Get Versions Api Organizations  Organization Id  Workspace V2 Items  Item Id  Versions Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/organizations/{organization_id}/workspace-v2/items/{item_id}/versions/{version_id}/state":{"get":{"tags":["workspace-v2"],"summary":"Get the content of a document version.","description":"Get the Yjs state of a version, the bytes the editor loads to show it.","operationId":"get_version_state_api_organizations__organization_id__workspace_v2_items__item_id__versions__version_id__state_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}},{"name":"item_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Item Id"}},{"name":"version_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Version Id"}}],"responses":{"200":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/organizations/{organization_id}/workspace-v2/items/{item_id}/versions/{version_id}/restore":{"post":{"tags":["workspace-v2"],"summary":"Save the current content before restoring a version.","description":"Save the document's current content as a restore point, so restoring the version loses nothing. The client then replaces the live content with the version's content.","operationId":"create_restore_point_api_organizations__organization_id__workspace_v2_items__item_id__versions__version_id__restore_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}},{"name":"item_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Item Id"}},{"name":"version_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Version Id"}}],"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceV2VersionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/organizations/{organization_id}/workspace-v2/items/{item_id}/versions/{version_id}":{"patch":{"tags":["workspace-v2"],"summary":"Name a document version.","description":"Give a version a name. A named version is kept as it is.","operationId":"update_version_api_organizations__organization_id__workspace_v2_items__item_id__versions__version_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}},{"name":"item_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Item Id"}},{"name":"version_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Version Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceV2VersionUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceV2VersionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/organizations/{organization_id}/workspace-v2/items/{item_id}/comment-threads":{"get":{"tags":["workspace-v2"],"summary":"Get the comments on a document.","description":"Get the comment threads of a document you may view, open ones first, each with its comments.","operationId":"get_threads_api_organizations__organization_id__workspace_v2_items__item_id__comment_threads_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}},{"name":"item_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Item Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/WorkspaceV2CommentThreadResponse"},"title":"Response Get Threads Api Organizations  Organization Id  Workspace V2 Items  Item Id  Comment Threads Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["workspace-v2"],"summary":"Start a comment thread.","description":"Comment on a passage of a document, or on the whole document, starting a thread.","operationId":"create_thread_api_organizations__organization_id__workspace_v2_items__item_id__comment_threads_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}},{"name":"item_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Item Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceV2CommentThreadCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceV2CommentThreadResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/organizations/{organization_id}/workspace-v2/items/{item_id}/comment-threads/{thread_id}/comments":{"post":{"tags":["workspace-v2"],"summary":"Reply in a comment thread.","description":"Add a reply to a thread on a document you may comment on.","operationId":"create_comment_api_organizations__organization_id__workspace_v2_items__item_id__comment_threads__thread_id__comments_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}},{"name":"item_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Item Id"}},{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Thread Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceV2CommentBody"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceV2CommentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/organizations/{organization_id}/workspace-v2/items/{item_id}/comment-threads/{thread_id}/comments/{comment_id}":{"patch":{"tags":["workspace-v2"],"summary":"Edit your comment.","description":"Change the text of a comment you wrote, while you may still comment on the document.","operationId":"update_comment_api_organizations__organization_id__workspace_v2_items__item_id__comment_threads__thread_id__comments__comment_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}},{"name":"item_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Item Id"}},{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Thread Id"}},{"name":"comment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Comment Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceV2CommentBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceV2CommentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["workspace-v2"],"summary":"Delete a comment.","description":"Delete a comment you wrote, or any comment on a document you manage. Deleting the comment that started a thread deletes the thread.","operationId":"delete_comment_api_organizations__organization_id__workspace_v2_items__item_id__comment_threads__thread_id__comments__comment_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}},{"name":"item_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Item Id"}},{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Thread Id"}},{"name":"comment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Comment Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/organizations/{organization_id}/workspace-v2/items/{item_id}/comment-threads/{thread_id}/resolve":{"post":{"tags":["workspace-v2"],"summary":"Resolve a comment thread.","description":"Mark a thread as done. Its author or anyone who may edit the document can resolve it.","operationId":"resolve_thread_api_organizations__organization_id__workspace_v2_items__item_id__comment_threads__thread_id__resolve_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}},{"name":"item_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Item Id"}},{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Thread Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceV2CommentThreadResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/organizations/{organization_id}/workspace-v2/items/{item_id}/comment-threads/{thread_id}/reopen":{"post":{"tags":["workspace-v2"],"summary":"Reopen a comment thread.","description":"Open a resolved thread again. Its author or anyone who may edit the document can reopen it.","operationId":"reopen_thread_api_organizations__organization_id__workspace_v2_items__item_id__comment_threads__thread_id__reopen_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}},{"name":"item_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Item Id"}},{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Thread Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceV2CommentThreadResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/organizations/{organization_id}/workspace-v2/items/{item_id}/suggestions":{"post":{"tags":["workspace-v2"],"summary":"Suggest a change.","description":"Propose replacing a passage of a document with other text. It starts a thread with no comment.","operationId":"create_suggestion_api_organizations__organization_id__workspace_v2_items__item_id__suggestions_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}},{"name":"item_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Item Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceV2SuggestionBody"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceV2CommentThreadResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/organizations/{organization_id}/workspace-v2/items/{item_id}/suggestions/{suggestion_id}":{"patch":{"tags":["workspace-v2"],"summary":"Amend your suggestion.","description":"Change the range and texts of a suggestion you made, while it is open and you may still comment.","operationId":"update_suggestion_api_organizations__organization_id__workspace_v2_items__item_id__suggestions__suggestion_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}},{"name":"item_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Item Id"}},{"name":"suggestion_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Suggestion Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceV2SuggestionBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceV2CommentThreadResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["workspace-v2"],"summary":"Delete a suggestion thread.","description":"Delete a suggestion with its replies. Anyone who manages the document can.","operationId":"delete_suggestion_api_organizations__organization_id__workspace_v2_items__item_id__suggestions__suggestion_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}},{"name":"item_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Item Id"}},{"name":"suggestion_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Suggestion Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/organizations/{organization_id}/workspace-v2/items/{item_id}/suggestions/{suggestion_id}/accept":{"post":{"tags":["workspace-v2"],"summary":"Accept a suggestion.","description":"Mark an open suggestion accepted and resolve its thread. Anyone who may edit the document can. Answers 409 when it is no longer open. Your editor then applies the change to the text.","operationId":"accept_suggestion_api_organizations__organization_id__workspace_v2_items__item_id__suggestions__suggestion_id__accept_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}},{"name":"item_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Item Id"}},{"name":"suggestion_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Suggestion Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceV2CommentThreadResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/organizations/{organization_id}/workspace-v2/items/{item_id}/suggestions/{suggestion_id}/reopen":{"post":{"tags":["workspace-v2"],"summary":"Undo accepting a suggestion.","description":"Open a suggestion again. Only the person who accepted it can, within the undo window; otherwise 409.","operationId":"reopen_suggestion_api_organizations__organization_id__workspace_v2_items__item_id__suggestions__suggestion_id__reopen_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}},{"name":"item_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Item Id"}},{"name":"suggestion_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Suggestion Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceV2CommentThreadResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/organizations/{organization_id}/workspace-v2/items/{item_id}/suggestions/{suggestion_id}/reject":{"post":{"tags":["workspace-v2"],"summary":"Reject a suggestion.","description":"Mark an open suggestion rejected and resolve its thread. Anyone who may edit the document can.","operationId":"reject_suggestion_api_organizations__organization_id__workspace_v2_items__item_id__suggestions__suggestion_id__reject_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}},{"name":"item_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Item Id"}},{"name":"suggestion_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Suggestion Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceV2CommentThreadResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/organizations/{organization_id}/workspace-v2/items/{item_id}/suggestions/{suggestion_id}/withdraw":{"post":{"tags":["workspace-v2"],"summary":"Withdraw your suggestion.","description":"Take back an open suggestion you made and resolve its thread. Answers 409 when it is no longer open.","operationId":"withdraw_suggestion_api_organizations__organization_id__workspace_v2_items__item_id__suggestions__suggestion_id__withdraw_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}},{"name":"item_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Item Id"}},{"name":"suggestion_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Suggestion Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceV2CommentThreadResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/organizations/{organization_id}/workspace-v2/uploads":{"post":{"tags":["workspace-v2"],"summary":"Start uploading a file.","description":"Create a file, image or video you own and get the link to put its bytes to.","operationId":"start_upload_api_organizations__organization_id__workspace_v2_uploads_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceV2UploadCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceV2UploadResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/organizations/{organization_id}/workspace-v2/uploads/{item_id}/versions":{"post":{"tags":["workspace-v2"],"summary":"Start uploading a new version of a file.","description":"Get the link to put the bytes of a new version of a file you may edit to; refused if someone changed the file since you read it.","operationId":"start_version_upload_api_organizations__organization_id__workspace_v2_uploads__item_id__versions_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}},{"name":"item_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Item Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceV2VersionUploadCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceV2UploadResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/organizations/{organization_id}/workspace-v2/uploads/{item_id}/versions/{version}/complete":{"post":{"tags":["workspace-v2"],"summary":"Complete an upload.","description":"Tell that all bytes of your upload reached storage; the content is checked before anyone can read it.","operationId":"complete_upload_api_organizations__organization_id__workspace_v2_uploads__item_id__versions__version__complete_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}},{"name":"item_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Item Id"}},{"name":"version","in":"path","required":true,"schema":{"type":"integer","title":"Version"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceV2UploadComplete"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceV2FileVersionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/organizations/{organization_id}/workspace-v2/uploads/{item_id}/versions/{version}":{"delete":{"tags":["workspace-v2"],"summary":"Cancel an upload.","description":"Drop your upload in progress; a new file goes with it when this was its first version.","operationId":"cancel_upload_api_organizations__organization_id__workspace_v2_uploads__item_id__versions__version__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}},{"name":"item_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Item Id"}},{"name":"version","in":"path","required":true,"schema":{"type":"integer","title":"Version"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/organizations/{organization_id}/workspace-v2/items/{item_id}/illustration":{"get":{"tags":["workspace-v2"],"summary":"Inspect illustration pages.","operationId":"inspect_illustration_api_organizations__organization_id__workspace_v2_items__item_id__illustration_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}},{"name":"item_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Item Id"}},{"name":"version","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"description":"(Optional) version to inspect; left out, the current one","title":"Version"},"description":"(Optional) version to inspect; left out, the current one"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceV2IllustrationInspectionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["workspace-v2"],"summary":"Prepare an illustration page.","operationId":"render_illustration_api_organizations__organization_id__workspace_v2_items__item_id__illustration_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}},{"name":"item_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Item Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceV2IllustrationRender"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceV2IllustrationRenderResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/organizations/{organization_id}/workspace-v2/items/{item_id}/illustration-preview":{"get":{"tags":["workspace-v2"],"summary":"Preview an illustration page.","operationId":"preview_illustration_api_organizations__organization_id__workspace_v2_items__item_id__illustration_preview_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}},{"name":"item_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Item Id"}},{"name":"version","in":"query","required":true,"schema":{"type":"integer","minimum":1,"description":"Version to preview","title":"Version"},"description":"Version to preview"},{"name":"page","in":"query","required":true,"schema":{"type":"integer","minimum":1,"description":"One-based page to preview","title":"Page"},"description":"One-based page to preview"}],"responses":{"200":{"description":"Successful Response","content":{"image/png":{}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/organizations/{organization_id}/workspace-v2/items/{item_id}/file-versions":{"get":{"tags":["workspace-v2"],"summary":"Get the versions of a file.","description":"Get the versions of a file that can be opened, newest first.","operationId":"get_file_versions_api_organizations__organization_id__workspace_v2_items__item_id__file_versions_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}},{"name":"item_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Item Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/WorkspaceV2FileVersionSummaryResponse"},"title":"Response Get File Versions Api Organizations  Organization Id  Workspace V2 Items  Item Id  File Versions Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/organizations/{organization_id}/workspace-v2/items/{item_id}/content-url":{"get":{"tags":["workspace-v2"],"summary":"Get a link to a file.","description":"Get a link that reads the current version of a file, or the version you ask for, for an hour. Images, videos, audio and pdfs open in the page unless you ask for a download; other files always download.","operationId":"get_content_url_api_organizations__organization_id__workspace_v2_items__item_id__content_url_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}},{"name":"item_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Item Id"}},{"name":"disposition","in":"query","required":false,"schema":{"enum":["inline","attachment"],"type":"string","default":"inline","title":"Disposition"}},{"name":"version","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"description":"(Optional) version to read; left out, the current one","title":"Version"},"description":"(Optional) version to read; left out, the current one"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceV2SignedUrlResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/organizations/{organization_id}/workspace-v2/items/{item_id}/thumbnail-url":{"get":{"tags":["workspace-v2"],"summary":"Get a link to the thumbnail of an image or video.","description":"Get a link that reads the thumbnail of the current version of an image or video, or the version you ask for, for an hour.","operationId":"get_thumbnail_url_api_organizations__organization_id__workspace_v2_items__item_id__thumbnail_url_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}},{"name":"item_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Item Id"}},{"name":"version","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"description":"(Optional) version to read; left out, the current one","title":"Version"},"description":"(Optional) version to read; left out, the current one"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceV2SignedUrlResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/organizations/{organization_id}/workspace-v2/usage":{"get":{"tags":["workspace-v2"],"summary":"Get the storage the organization's files take.","description":"Get the bytes of every stored version of every file in the organization, trash included.","operationId":"get_usage_api_organizations__organization_id__workspace_v2_usage_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceV2UsageResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/organizations/{organization_id}/workspace-v2/items/{item_id}/file-versions/{version}/make-current":{"post":{"tags":["workspace-v2"],"summary":"Make an earlier version of a file current.","description":"Make an earlier version of a file you may edit its newest version again; refused if someone changed the file since you read it.","operationId":"make_current_api_organizations__organization_id__workspace_v2_items__item_id__file_versions__version__make_current_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}},{"name":"item_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Item Id"}},{"name":"version","in":"path","required":true,"schema":{"type":"integer","title":"Version"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceV2MakeCurrent"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceV2ItemResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/organizations/{organization_id}/feedback/module-mine":{"get":{"tags":["feedback"],"summary":"Get your module feedback.","operationId":"get_my_module_feedback_api_organizations__organization_id__feedback_module_mine_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}},{"name":"module","in":"query","required":true,"schema":{"enum":["plantyn","image-plus"],"type":"string","title":"Module"}},{"name":"target_type","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/FeedbackTargetType"},{"type":"null"}],"title":"Target Type"}},{"name":"item_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Item Id"}},{"name":"image_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":50,"title":"Limit"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CursorPaginatedResult_ModuleFeedbackSummaryResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/organizations/{organization_id}/feedback/module-context":{"post":{"tags":["feedback"],"summary":"Preview what module feedback will share.","operationId":"get_module_feedback_context_api_organizations__organization_id__feedback_module_context_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModuleFeedbackTargetRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModuleFeedbackContextResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/organizations/{organization_id}/feedback/module-submissions":{"post":{"tags":["feedback"],"summary":"Submit module feedback with optional screenshots.","description":"Send a JSON metadata field and optional screenshot files. Accept the sharing summary before submitting.","operationId":"create_module_feedback_api_organizations__organization_id__feedback_module_submissions_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}}],"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeedbackDetailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/organizations/{organization_id}/feedback/mine":{"get":{"tags":["feedback"],"summary":"Get a page of your feedback.","description":"Get a page of the feedback you submitted. Pages are read by cursor: pass the 'next_cursor' of a page to read the one after it, and stop when it is null. Keep 'order_by' and 'direction' unchanged while paging.","operationId":"get_my_feedback_page_api_organizations__organization_id__feedback_mine_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}},{"name":"target_type","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/FeedbackTargetType"},{"type":"null"}],"description":"(Optional) only feedback on this kind of response","title":"Target Type"},"description":"(Optional) only feedback on this kind of response"},{"name":"module","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":50},{"type":"null"}],"title":"Module"}},{"name":"target_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"(Optional) only feedback on this response","title":"Target Id"},"description":"(Optional) only feedback on this response"},{"name":"order_by","in":"query","required":false,"schema":{"$ref":"#/components/schemas/FeedbackOrderBy","description":"Field to order the feedback by","default":"created_at"},"description":"Field to order the feedback by"},{"name":"direction","in":"query","required":false,"schema":{"$ref":"#/components/schemas/SortDirection","description":"Direction to order the feedback in","default":"asc"},"description":"Direction to order the feedback in"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":50,"title":"Limit"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CursorPaginatedResult_FeedbackResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/organizations/{organization_id}/feedback/{feedback_id}":{"get":{"tags":["feedback"],"summary":"Get feedback.","description":"Get a submitted feedback with the conversation shared with it and its files. You can read the feedback you submitted; reviewers can read every feedback of the organization.","operationId":"get_feedback_api_organizations__organization_id__feedback__feedback_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}},{"name":"feedback_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Feedback Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeedbackDetailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["feedback"],"summary":"Update your feedback.","description":"Change the rating or the comment of feedback you submitted. Fields left out keep their value, and a blank comment clears it. What was shared with the feedback cannot be changed.","operationId":"update_feedback_api_organizations__organization_id__feedback__feedback_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}},{"name":"feedback_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Feedback Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeedbackUpdateRequest"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/organizations/{organization_id}/feedback/{feedback_id}/attachments/{attachment_id}":{"get":{"tags":["feedback"],"summary":"Download a file shared with feedback.","description":"Download a file that was shared with a feedback. It can be downloaded by whoever can read the feedback.","operationId":"download_feedback_attachment_api_organizations__organization_id__feedback__feedback_id__attachments__attachment_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}},{"name":"feedback_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Feedback Id"}},{"name":"attachment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Attachment Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/organizations/{organization_id}/feedback/context":{"post":{"tags":["feedback"],"summary":"Get what feedback on a response would share.","description":"Get a summary of what submitting feedback on a response would share with the organization's reviewers, the files that could be shared with it, and the limits to stay within. Nothing is submitted. Send the 'revision' and 'consent_version' it returns back when submitting the feedback.","operationId":"get_feedback_context_api_organizations__organization_id__feedback_context_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeedbackTargetRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeedbackContextResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/organizations/{organization_id}/feedback":{"post":{"tags":["feedback"],"summary":"Submit feedback on a response.","description":"Rate a response, optionally explain the rating, and share a frozen, filtered copy of the conversation up to that response and of what was recorded about its model calls while it was generated, with any files chosen, with the organization's reviewers. The author must have accepted the sharing consent, which covers sharing that copy, and the revision must be the one the summary returned. If the conversation changed since then, the submission is refused and the summary has to be read again. Sending the same 'idempotency_key' and request again returns the feedback already submitted.","operationId":"create_feedback_api_organizations__organization_id__feedback_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeedbackCreateRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeedbackDetailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["feedback"],"summary":"Get a page of the organization's feedback.","description":"Get a page of the feedback submitted in the organization, by every author. Pages are read by cursor: pass the 'next_cursor' of a page to read the one after it, and stop when it is null. Keep the filters, 'order_by' and 'direction' unchanged while paging.","operationId":"get_feedback_page_api_organizations__organization_id__feedback_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}},{"name":"rating","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/FeedbackRating"},{"type":"null"}],"description":"(Optional) only feedback with this rating","title":"Rating"},"description":"(Optional) only feedback with this rating"},{"name":"review_status","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/FeedbackReviewStatus"},{"type":"null"}],"description":"(Optional) only feedback in this review status","title":"Review Status"},"description":"(Optional) only feedback in this review status"},{"name":"module","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1,"maxLength":50},{"type":"null"}],"description":"(Optional) only feedback given in this module","title":"Module"},"description":"(Optional) only feedback given in this module"},{"name":"order_by","in":"query","required":false,"schema":{"$ref":"#/components/schemas/FeedbackOrderBy","description":"Field to order the feedback by","default":"created_at"},"description":"Field to order the feedback by"},{"name":"direction","in":"query","required":false,"schema":{"$ref":"#/components/schemas/SortDirection","description":"Direction to order the feedback in","default":"asc"},"description":"Direction to order the feedback in"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":50,"title":"Limit"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CursorPaginatedResult_FeedbackResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/organizations/{organization_id}/feedback/{feedback_id}/review":{"patch":{"tags":["feedback"],"summary":"Update the review status of feedback.","description":"Set where the review of a feedback stands.","operationId":"update_feedback_review_api_organizations__organization_id__feedback__feedback_id__review_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}},{"name":"feedback_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Feedback Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeedbackReviewRequest"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/notifications":{"get":{"tags":["notifications"],"summary":"Get a page of your notifications.","description":"Get a page of your notifications, newest first. Pages are read by cursor: pass the 'next_cursor' of a page to read the one after it, and stop when it is null. Unless you turned cleanup off in your settings, notifications you have read that are older than your chosen age are removed first.","operationId":"get_notification_page_api_notifications_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"unread_only","in":"query","required":false,"schema":{"type":"boolean","description":"Only notifications you have not read yet","default":false,"title":"Unread Only"},"description":"Only notifications you have not read yet"},{"name":"organization_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Filter by organization","title":"Organization Id"},"description":"Filter by organization"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":50,"title":"Limit"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CursorPaginatedResult_NotificationResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/notifications/unread-count":{"get":{"tags":["notifications"],"summary":"Count your unread notifications.","description":"Count the notifications you have not read yet, for the badge on the notification bell.","operationId":"get_unread_notification_count_api_notifications_unread_count_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Filter by organization","title":"Organization Id"},"description":"Filter by organization"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationCountResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/notifications/{notification_id}/read":{"post":{"tags":["notifications"],"summary":"Mark a notification as read.","description":"Mark one of your notifications as read. Marking one that is already read changes nothing.","operationId":"update_notification_read_api_notifications__notification_id__read_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"notification_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Notification Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/notifications/read-all":{"post":{"tags":["notifications"],"summary":"Mark all your notifications as read.","description":"Mark all your unread notifications as read and get how many there were.","operationId":"update_all_notifications_read_api_notifications_read_all_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Filter by organization","title":"Organization Id"},"description":"Filter by organization"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationCountResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/html-previews/{preview_id}":{"get":{"tags":["html-previews"],"summary":"Serve a hosted HTML preview.","description":"Serve a hosted document to a browser holding its capability token. Unauthenticated by design: an iframe cannot attach the app's bearer header, so the short-lived token in the URL is the only credential.","operationId":"serve_html_preview_api_html_previews__preview_id__get","parameters":[{"name":"preview_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Preview Id"}},{"name":"t","in":"query","required":false,"schema":{"type":"string","description":"Capability token issued with the preview","default":"","title":"T"},"description":"Capability token issued with the preview"}],"responses":{"200":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["html-previews"],"summary":"Stop a hosted HTML preview.","description":"Stop a preview owned by the current user. Idempotent: a preview that is already gone, or that belongs to someone else, answers identically.","operationId":"revoke_html_preview_api_html_previews__preview_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"preview_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Preview Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/html-previews/{preview_id}/assets/{image_version_id}":{"get":{"tags":["html-previews"],"summary":"Serve a chat image a hosted HTML preview loads.","description":"Serve one saved chat image to the preview that references it. Unauthenticated for the same reason as the document: the asset token in the URL, issued with the preview, is the only credential.","operationId":"serve_html_preview_asset_api_html_previews__preview_id__assets__image_version_id__get","parameters":[{"name":"preview_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Preview Id"}},{"name":"image_version_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Image Version Id"}},{"name":"t","in":"query","required":false,"schema":{"type":"string","description":"Asset token issued with the preview","default":"","title":"T"},"description":"Asset token issued with the preview"}],"responses":{"200":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/html-previews":{"post":{"tags":["html-previews"],"summary":"Host an HTML preview.","description":"Host a document for the current user and return its expiring view URL.","operationId":"create_html_preview_api_html_previews_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HtmlPreviewCreate"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HtmlPreviewCreated"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/core/organizations/{organization_id}/jobs":{"get":{"tags":["jobs"],"summary":"List Jobs","operationId":"list_jobs_api_organizations__organization_id__jobs_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/JobResponse"},"title":"Response List Jobs Api Organizations  Organization Id  Jobs Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["jobs"],"summary":"Create Job","operationId":"create_job_api_organizations__organization_id__jobs_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/RecipeJobRequest"},{"oneOf":[{"$ref":"#/components/schemas/AudioTranscriptionJobRequest"},{"$ref":"#/components/schemas/DocxExtractMarkersJobRequest"},{"$ref":"#/components/schemas/DocxFillFieldsJobRequest"},{"$ref":"#/components/schemas/DocxGenerateJobRequest"},{"$ref":"#/components/schemas/ImageGenerationJobRequest"},{"$ref":"#/components/schemas/LlmCompletionJobRequest"},{"$ref":"#/components/schemas/LlmStreamJobRequest"}],"discriminator":{"propertyName":"kind","mapping":{"audio.transcribe":"#/components/schemas/AudioTranscriptionJobRequest","docx.extract_markers":"#/components/schemas/DocxExtractMarkersJobRequest","docx.fill_fields":"#/components/schemas/DocxFillFieldsJobRequest","docx.generate":"#/components/schemas/DocxGenerateJobRequest","image.generate":"#/components/schemas/ImageGenerationJobRequest","llm.complete":"#/components/schemas/LlmCompletionJobRequest","llm.stream":"#/components/schemas/LlmStreamJobRequest"}}}],"title":"Create Schema"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/organizations/{organization_id}/jobs/{job_id}":{"get":{"tags":["jobs"],"summary":"Get Job","operationId":"get_job_api_organizations__organization_id__jobs__job_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}},{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/organizations/{organization_id}/jobs/{job_id}/response-details":{"get":{"tags":["jobs"],"summary":"Get Response Details","description":"A reply's model, timing and sources; its tool activity, tokens and LLM cost only for an Owner.","operationId":"get_response_details_api_organizations__organization_id__jobs__job_id__response_details_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}},{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseDetailsResponse"},{"$ref":"#/components/schemas/ResponseDetailsExpandedResponse"}],"title":"Response Get Response Details Api Organizations  Organization Id  Jobs  Job Id  Response Details Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/organizations/{organization_id}/jobs/{job_id}/cancel":{"post":{"tags":["jobs"],"summary":"Cancel Job","operationId":"cancel_job_api_organizations__organization_id__jobs__job_id__cancel_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}},{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/organizations/{organization_id}/jobs/{job_id}/stream":{"get":{"tags":["jobs"],"summary":"Stream Job","operationId":"stream_job_api_organizations__organization_id__jobs__job_id__stream_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}},{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/organizations/{organization_id}/recipes":{"get":{"tags":["ai-recipes"],"summary":"List available AI job definitions","operationId":"list_recipe_definitions_api_organizations__organization_id__recipes_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/RecipeDefinitionResponse"},"title":"Response List Recipe Definitions Api Organizations  Organization Id  Recipes Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/organizations/{organization_id}/recipes/{recipe_id}/execute":{"post":{"tags":["ai-recipes"],"summary":"Execute Recipe","operationId":"execute_recipe_api_organizations__organization_id__recipes__recipe_id__execute_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}},{"name":"recipe_id","in":"path","required":true,"schema":{"type":"string","title":"Recipe Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecipeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecipeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/organizations/{organization_id}/recipes/{recipe_id}/stream":{"post":{"tags":["ai-recipes"],"summary":"Stream Recipe","operationId":"stream_recipe_api_organizations__organization_id__recipes__recipe_id__stream_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}},{"name":"recipe_id","in":"path","required":true,"schema":{"type":"string","title":"Recipe Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecipeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/usage-logs":{"get":{"tags":["usage-logs"],"summary":"Get usage logs.","description":"Get usage logs for LLM requests as a subscriber organization","operationId":"get_usage_logs_api_usage_logs_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"lang","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"(Optional) preferred language for fetching translations","title":"Lang"},"description":"(Optional) preferred language for fetching translations"},{"name":"task_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Filter by task","title":"Task Id"},"description":"Filter by task"},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by status","title":"Status"},"description":"Filter by status"},{"name":"organization_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Filter by organization","title":"Organization Id"},"description":"Filter by organization"},{"name":"user_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Filter by user","title":"User Id"},"description":"Filter by user"},{"name":"from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Filter from this date (inclusive)","title":"From"},"description":"Filter from this date (inclusive)"},{"name":"to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Filter to this date (inclusive)","title":"To"},"description":"Filter to this date (inclusive)"},{"name":"top","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":10,"title":"Top"}},{"name":"skip","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Skip"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedResult_Union_UsageLogResponse__UsageLogExpandedResponse__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["usage-logs"],"summary":"Create a usage log.","description":"Create a new usage log entry for a LLM request.","operationId":"create_usage_log_api_usage_logs_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UsageLogCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UsageLogResponse"},{"$ref":"#/components/schemas/UsageLogExpandedResponse"}],"title":"Response Create Usage Log Api Usage Logs Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/tasks/stats":{"get":{"tags":["stats"],"summary":"Get statistics for tasks.","description":"Get usage statistics for tasks matching the filters.","operationId":"get_tasks_stats_list_api_tasks_stats_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"lang","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"(Optional) preferred language for fetching translations","title":"Lang"},"description":"(Optional) preferred language for fetching translations"},{"name":"top","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":10,"title":"Top"}},{"name":"skip","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Skip"}},{"name":"organization_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Filter by organization","title":"Organization Id"},"description":"Filter by organization"},{"name":"user_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Filter by user","title":"User Id"},"description":"Filter by user"},{"name":"from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Filter from this date (inclusive)","title":"From"},"description":"Filter from this date (inclusive)"},{"name":"to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Filter to this date (inclusive)","title":"To"},"description":"Filter to this date (inclusive)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedResult_Union_TaskStatsListResponse__TaskStatsListExpandedResponse__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/tasks/{task_id}/stats":{"get":{"tags":["stats"],"summary":"Get task statistics.","description":"Get detailed usage statistics for a specific task.","operationId":"get_task_stats_detail_api_tasks__task_id__stats_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Task Id"}},{"name":"lang","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"(Optional) preferred language for fetching translations","title":"Lang"},"description":"(Optional) preferred language for fetching translations"},{"name":"organization_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Filter by organization","title":"Organization Id"},"description":"Filter by organization"},{"name":"user_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Filter by user","title":"User Id"},"description":"Filter by user"},{"name":"from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Filter from this date (inclusive)","title":"From"},"description":"Filter from this date (inclusive)"},{"name":"to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Filter to this date (inclusive)","title":"To"},"description":"Filter to this date (inclusive)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/TaskStatsDetailResponse"},{"$ref":"#/components/schemas/TaskStatsDetailExpandedResponse"}],"title":"Response Get Task Stats Detail Api Tasks  Task Id  Stats Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/roz/stats/summary":{"get":{"tags":["stats"],"summary":"Get ROZ stats.","description":"Get ROZ stats across all usage logs.","operationId":"get_roz_summary_api_roz_stats_summary_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Filter by organization","title":"Organization Id"},"description":"Filter by organization"},{"name":"user_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Filter by user","title":"User Id"},"description":"Filter by user"},{"name":"from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Filter from this date (inclusive)","title":"From"},"description":"Filter from this date (inclusive)"},{"name":"to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Filter to this date (inclusive)","title":"To"},"description":"Filter to this date (inclusive)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RozStatsSummaryResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/roz/stats/histogram":{"get":{"tags":["stats"],"summary":"Get ROZ histogram.","description":"Get histogram of task ROZ frequency, averaging task ROZ values.","operationId":"get_roz_histogram_api_roz_stats_histogram_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"bin_width","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"ROZ bin width","default":5,"title":"Bin Width"},"description":"ROZ bin width"},{"name":"top","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":10,"title":"Top"}},{"name":"skip","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Skip"}},{"name":"organization_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Filter by organization","title":"Organization Id"},"description":"Filter by organization"},{"name":"user_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Filter by user","title":"User Id"},"description":"Filter by user"},{"name":"from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Filter from this date (inclusive)","title":"From"},"description":"Filter from this date (inclusive)"},{"name":"to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Filter to this date (inclusive)","title":"To"},"description":"Filter to this date (inclusive)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedResult_RozStatsHistogramItem_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/roz/stats/time-series":{"get":{"tags":["stats"],"summary":"Get ROZ time series.","description":"Get time series of average ROZ values over time.","operationId":"get_roz_time_series_api_roz_stats_time_series_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"interval","in":"query","required":false,"schema":{"$ref":"#/components/schemas/Interval","description":"Aggregation interval","default":"day"},"description":"Aggregation interval"},{"name":"top","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":10,"title":"Top"}},{"name":"skip","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Skip"}},{"name":"organization_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Filter by organization","title":"Organization Id"},"description":"Filter by organization"},{"name":"user_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Filter by user","title":"User Id"},"description":"Filter by user"},{"name":"from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Filter from this date (inclusive)","title":"From"},"description":"Filter from this date (inclusive)"},{"name":"to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Filter to this date (inclusive)","title":"To"},"description":"Filter to this date (inclusive)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedResult_RozStatsTimeSeriesItem_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/providers/stats":{"get":{"tags":["stats"],"summary":"Get provider stats.","description":"Get aggregated stats per provider and provider model.","operationId":"get_provider_stats_api_providers_stats_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"top","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":10,"title":"Top"}},{"name":"skip","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Skip"}},{"name":"organization_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Filter by organization","title":"Organization Id"},"description":"Filter by organization"},{"name":"user_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Filter by user","title":"User Id"},"description":"Filter by user"},{"name":"from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Filter from this date (inclusive)","title":"From"},"description":"Filter from this date (inclusive)"},{"name":"to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Filter to this date (inclusive)","title":"To"},"description":"Filter to this date (inclusive)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedResult_Union_ProviderStatsResponse__ProviderStatsExpandedResponse__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/providers/{provider}/models/{provider_model}/stats":{"get":{"tags":["stats"],"summary":"Get provider model stats.","description":"Get detailed stats for a specific provider and provider model.","operationId":"get_provider_model_stats_api_providers__provider__models__provider_model__stats_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"provider","in":"path","required":true,"schema":{"type":"string","title":"Provider"}},{"name":"provider_model","in":"path","required":true,"schema":{"type":"string","title":"Provider Model"}},{"name":"organization_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Filter by organization","title":"Organization Id"},"description":"Filter by organization"},{"name":"user_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Filter by user","title":"User Id"},"description":"Filter by user"},{"name":"from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Filter from this date (inclusive)","title":"From"},"description":"Filter from this date (inclusive)"},{"name":"to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Filter to this date (inclusive)","title":"To"},"description":"Filter to this date (inclusive)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderModelStatsResponse"},{"$ref":"#/components/schemas/ProviderModelStatsExpandedResponse"}],"title":"Response Get Provider Model Stats Api Providers  Provider  Models  Provider Model  Stats Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/users/stats":{"get":{"tags":["stats"],"summary":"Get statistics for users.","description":"Get usage statistics for every user of the organization, most active first. The usage of deleted users is combined in one row without a user per organization. An owner's rows add the organization name.","operationId":"get_users_stats_list_api_users_stats_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"top","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":10,"title":"Top"}},{"name":"skip","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Skip"}},{"name":"organization_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Filter by organization","title":"Organization Id"},"description":"Filter by organization"},{"name":"from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Filter from this date (inclusive)","title":"From"},"description":"Filter from this date (inclusive)"},{"name":"to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Filter to this date (inclusive)","title":"To"},"description":"Filter to this date (inclusive)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedResult_Union_UserStatsListResponse__UserStatsListExpandedResponse__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/core/health":{"get":{"summary":"Health Check","description":"Health check endpoint","operationId":"health_check_api_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}}},"components":{"schemas":{"ActivationTaskCategoryResponse":{"properties":{"category":{"type":"string","title":"Category"},"tasks":{"items":{"$ref":"#/components/schemas/ActivationTaskResponse"},"type":"array","title":"Tasks"}},"type":"object","required":["category","tasks"],"title":"ActivationTaskCategoryResponse"},"ActivationTaskDetailResponse":{"properties":{"category_name":{"type":"string","title":"Category Name"},"category_language":{"type":"string","title":"Category Language"},"id":{"type":"string","format":"uuid","title":"Id"},"version":{"type":"integer","title":"Version"},"name":{"type":"string","title":"Name"},"language":{"type":"string","title":"Language"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"form":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Form"},"meta_data":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Meta Data"}},"type":"object","required":["category_name","category_language","id","version","name","language","description","form","meta_data"],"title":"ActivationTaskDetailResponse"},"ActivationTaskExecutionRequest":{"properties":{"language":{"type":"string","title":"Language","description":"Language for the LLM request to respond in"},"context":{"type":"string","title":"Context","description":"Context for the LLM request"},"provider_name":{"type":"string","title":"Provider Name","description":"Name of the LLM provider"},"model_type":{"type":"string","title":"Model Type","description":"Name of the LLM model type"},"temperature":{"type":"number","title":"Temperature","description":"Temperature of LLM request","default":0.5},"max_tokens":{"type":"integer","title":"Max Tokens","description":"Max tokens usable during LLM request","default":5000}},"type":"object","required":["language","context","provider_name","model_type"],"title":"ActivationTaskExecutionRequest"},"ActivationTaskResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"version":{"type":"integer","title":"Version"},"name":{"type":"string","title":"Name"},"language":{"type":"string","title":"Language"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"meta_data":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Meta Data"}},"type":"object","required":["id","version","name","language","description","meta_data"],"title":"ActivationTaskResponse"},"AssignedTaskVersionResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"version":{"type":"integer","title":"Version"},"name":{"type":"string","title":"Name"},"category":{"type":"string","title":"Category"},"language":{"type":"string","title":"Language"},"count_versions":{"type":"integer","title":"Count Versions"},"is_latest_version":{"type":"boolean","title":"Is Latest Version"}},"type":"object","required":["id","version","name","category","language","count_versions","is_latest_version"],"title":"AssignedTaskVersionResponse"},"AssignedToneVersionResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"version":{"type":"integer","title":"Version"},"name":{"type":"string","title":"Name"},"language":{"type":"string","title":"Language"},"count_versions":{"type":"integer","title":"Count Versions"},"is_latest_version":{"type":"boolean","title":"Is Latest Version"}},"type":"object","required":["id","version","name","language","count_versions","is_latest_version"],"title":"AssignedToneVersionResponse"},"AudioTranscriptionJobRequest":{"properties":{"kind":{"type":"string","const":"audio.transcribe","title":"Kind"},"payload":{"$ref":"#/components/schemas/AudioTranscriptionPayload"},"origin":{"anyOf":[{"oneOf":[{"$ref":"#/components/schemas/TasksOrigin"},{"$ref":"#/components/schemas/WorkspacesOrigin"}],"discriminator":{"propertyName":"route","mapping":{"tasks":"#/components/schemas/TasksOrigin","workspaces":"#/components/schemas/WorkspacesOrigin"}}},{"type":"null"}],"title":"Origin"},"destination":{"$ref":"#/components/schemas/WorkspaceDocumentDestination"}},"additionalProperties":false,"type":"object","required":["kind","payload","destination"],"title":"AudioTranscriptionJobRequest"},"AudioTranscriptionPayload":{"properties":{"task_id":{"type":"string","format":"uuid","title":"Task Id"},"data_id":{"type":"string","format":"uuid","title":"Data Id"},"file_id":{"type":"string","format":"uuid","title":"File Id"},"language":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Language"},"prompt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prompt"},"task_context":{"type":"string","title":"Task Context"}},"additionalProperties":false,"type":"object","required":["task_id","data_id","file_id","task_context"],"title":"AudioTranscriptionPayload"},"AvailableTaskResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"category":{"type":"string","title":"Category"},"language":{"type":"string","title":"Language"},"latest_version":{"type":"integer","title":"Latest Version"},"is_assigned":{"type":"boolean","title":"Is Assigned"}},"type":"object","required":["id","name","category","language","latest_version","is_assigned"],"title":"AvailableTaskResponse"},"AvailableToneResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"language":{"type":"string","title":"Language"},"latest_version":{"type":"integer","title":"Latest Version"},"is_assigned":{"type":"boolean","title":"Is Assigned"}},"type":"object","required":["id","name","language","latest_version","is_assigned"],"title":"AvailableToneResponse"},"Body_import_users_api_organizations__organization_id__users_import_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"},"sso_invite_providers":{"anyOf":[{"items":{"$ref":"#/components/schemas/SsoProvider"},"type":"array"},{"type":"null"}],"title":"Sso Invite Providers","description":"Invite the imported users to sign in with these single sign-on providers. Repeat the field to invite for several providers at once."}},"type":"object","required":["file"],"title":"Body_import_users_api_organizations__organization_id__users_import_post"},"CatalogOwnerResponse":{"properties":{"owner":{"type":"string","title":"Owner"},"count":{"type":"integer","title":"Count"}},"type":"object","required":["owner","count"],"title":"CatalogOwnerResponse"},"CatalogRefreshResponse":{"properties":{"provider":{"$ref":"#/components/schemas/ModelProvider"},"count":{"type":"integer","title":"Count"},"fetched_at":{"type":"string","format":"date-time","title":"Fetched At"}},"type":"object","required":["provider","count","fetched_at"],"title":"CatalogRefreshResponse"},"CatalogStatusResponse":{"properties":{"provider":{"$ref":"#/components/schemas/ModelProvider"},"count":{"type":"integer","title":"Count"},"fetched_at":{"type":"string","format":"date-time","title":"Fetched At"}},"type":"object","required":["provider","count","fetched_at"],"title":"CatalogStatusResponse"},"ChatAttachmentOverviewCoverage":{"properties":{"unit":{"type":"string","title":"Unit"},"total_units":{"type":"integer","title":"Total Units"},"inspected_units":{"type":"integer","title":"Inspected Units"},"partial_units":{"type":"integer","title":"Partial Units"},"truncation_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Truncation Reason"}},"type":"object","required":["unit","total_units","inspected_units","partial_units"],"title":"ChatAttachmentOverviewCoverage","description":"What an overview inspected: units read whole, units read in part, and why it stopped."},"ChatAttachmentOverviewResponse":{"properties":{"document_id":{"type":"string","title":"Document Id"},"filename":{"type":"string","title":"Filename"},"mime_type":{"type":"string","title":"Mime Type"},"size_bytes":{"type":"integer","title":"Size Bytes"},"file_hash":{"type":"string","title":"File Hash"},"origin":{"type":"string","title":"Origin"},"artifact_version_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Artifact Version Id"},"version_number":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Version Number"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"status":{"type":"string","title":"Status"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"error_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Code"},"coverage":{"anyOf":[{"$ref":"#/components/schemas/ChatAttachmentOverviewCoverage"},{"type":"null"}]},"processing_version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Processing Version"},"created_at":{"type":"string","title":"Created At"},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Updated At"}},"type":"object","required":["document_id","filename","mime_type","size_bytes","file_hash","origin","status","created_at"],"title":"ChatAttachmentOverviewResponse","description":"One file of a conversation and its overview; never its content."},"ChatDocumentAuthorType":{"type":"string","enum":["assistant","user"],"title":"ChatDocumentAuthorType","description":"Enum defining who wrote a saved chat document version.\n\nThe assistant writes the first version from its reply; the user writes\nevery version saved from an edit in the module."},"ChatDocumentVersionCreate":{"properties":{"storage":{"$ref":"#/components/schemas/ChatStorage","description":"(Optional) table holding the chat's rows; Task Data when absent","default":"task_data"},"module_id":{"anyOf":[{"type":"string","maxLength":100,"minLength":1},{"type":"null"}],"title":"Module Id","description":"Module holding the chat's rows; required with Module Data storage and only accepted with it"},"namespace":{"type":"string","title":"Namespace","description":"Module data namespace holding the conversation"},"conversation_id":{"type":"string","format":"uuid","title":"Conversation Id","description":"The chat_conversation row the version belongs to"},"operation_id":{"type":"string","title":"Operation Id","description":"Retries of one save carry the same ID and get the same version"},"source":{"type":"string","title":"Source","description":"Source text, stored byte for byte"},"language":{"type":"string","title":"Language","description":"Language of the source, e.g. 'html' or 'python'"},"filename":{"type":"string","title":"Filename","description":"File name of the source"},"author_type":{"$ref":"#/components/schemas/ChatDocumentAuthorType","description":"Who wrote this version"},"message_entity_id":{"type":"string","format":"uuid","title":"Message Entity Id","description":"The chatter_message row the document came from"},"block_id":{"type":"string","title":"Block Id","description":"The fenced block within that reply, e.g. 'b0'"},"document_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Document Id","description":"(Optional) document to revise; absent starts a new one"},"source_version_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Source Version Id","description":"(Optional) version this one revises"},"asset_references":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Asset References","description":"chat_image_version IDs the source names"}},"type":"object","required":["namespace","conversation_id","operation_id","source","language","filename","author_type","message_entity_id","block_id"],"title":"ChatDocumentVersionCreate","description":"Request schema for saving a code document version from a chat conversation.\n\nThe field rules live in the service, next to the authorization they guard;\nthis schema only types the body."},"ChatStorage":{"type":"string","enum":["task_data","module_data"],"title":"ChatStorage","description":"Enum naming the table a chat's rows are stored in.\n\nA chat on Task Data keeps its rows under the task it was opened from; a chat on\nModule Data keeps them under its module in the organization, each row private to\nthe user who created it. Either way the task stays the chat's context."},"ChatterMessageDestination":{"properties":{"type":{"type":"string","const":"chatter_message","title":"Type"},"task_id":{"type":"string","format":"uuid","title":"Task Id"},"data_id":{"type":"string","format":"uuid","title":"Data Id"},"assistant_message_id":{"type":"string","minLength":1,"title":"Assistant Message Id"}},"additionalProperties":false,"type":"object","required":["type","task_id","data_id","assistant_message_id"],"title":"ChatterMessageDestination"},"ContextHistory":{"properties":{"status":{"$ref":"#/components/schemas/ContextStatus"},"reason":{"type":"string","title":"Reason"},"evidence":{"type":"string","title":"Evidence"},"summary":{"type":"string","title":"Summary"},"text":{"type":"string","title":"Text"},"note":{"type":"string","title":"Note"},"count":{"type":"integer","title":"Count"},"window":{"items":{"$ref":"#/components/schemas/HistoryEntry"},"type":"array","title":"Window"},"segments_omitted":{"type":"integer","title":"Segments Omitted"},"attachments_removed":{"type":"integer","title":"Attachments Removed"},"embedded_data_removed":{"type":"integer","title":"Embedded Data Removed"}},"type":"object","required":["status"],"title":"ContextHistory"},"ContextItem":{"properties":{"status":{"$ref":"#/components/schemas/ContextStatus"},"reason":{"type":"string","title":"Reason"},"evidence":{"type":"string","title":"Evidence"},"summary":{"type":"string","title":"Summary"},"text":{"type":"string","title":"Text"},"note":{"type":"string","title":"Note"},"count":{"type":"integer","title":"Count"}},"type":"object","required":["status"],"title":"ContextItem","description":"One piece of context, and whether it was recorded, not used, not recorded, or deliberately left out."},"ContextProvenance":{"properties":{"status":{"$ref":"#/components/schemas/ContextStatus"},"reason":{"type":"string","title":"Reason"},"evidence":{"type":"string","title":"Evidence"},"summary":{"type":"string","title":"Summary"},"text":{"type":"string","title":"Text"},"note":{"type":"string","title":"Note"},"count":{"type":"integer","title":"Count"},"version":{"type":"integer","title":"Version"},"messages":{"items":{"$ref":"#/components/schemas/ProvenanceMessage"},"type":"array","title":"Messages"},"image_source_version_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image Source Version Id"},"unselected_refs":{"type":"integer","title":"Unselected Refs"}},"type":"object","required":["status"],"title":"ContextProvenance","description":"The job's verified context manifest: which saved messages, files and versions the model was sent."},"ContextStatus":{"type":"string","enum":["recorded","not_used","not_recorded","omitted"]},"CsvSeparator":{"type":"string","enum":["comma","semicolon"],"title":"CsvSeparator"},"CursorPaginatedResult_FeedbackResponse_":{"properties":{"rows":{"items":{"$ref":"#/components/schemas/FeedbackResponse"},"type":"array","title":"Rows"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor","description":"Pass as 'cursor' to read the next page; null on the last page"}},"type":"object","required":["rows"],"title":"CursorPaginatedResult[FeedbackResponse]"},"CursorPaginatedResult_ModuleDataResponse_":{"properties":{"rows":{"items":{"$ref":"#/components/schemas/ModuleDataResponse"},"type":"array","title":"Rows"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor","description":"Pass as 'cursor' to read the next page; null on the last page"}},"type":"object","required":["rows"],"title":"CursorPaginatedResult[ModuleDataResponse]"},"CursorPaginatedResult_ModuleFeedbackSummaryResponse_":{"properties":{"rows":{"items":{"$ref":"#/components/schemas/ModuleFeedbackSummaryResponse"},"type":"array","title":"Rows"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor","description":"Pass as 'cursor' to read the next page; null on the last page"}},"type":"object","required":["rows"],"title":"CursorPaginatedResult[ModuleFeedbackSummaryResponse]"},"CursorPaginatedResult_NotificationResponse_":{"properties":{"rows":{"items":{"$ref":"#/components/schemas/NotificationResponse"},"type":"array","title":"Rows"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor","description":"Pass as 'cursor' to read the next page; null on the last page"}},"type":"object","required":["rows"],"title":"CursorPaginatedResult[NotificationResponse]"},"CursorPaginatedResult_WorkspaceV2ItemResponse_":{"properties":{"rows":{"items":{"$ref":"#/components/schemas/WorkspaceV2ItemResponse"},"type":"array","title":"Rows"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor","description":"Pass as 'cursor' to read the next page; null on the last page"}},"type":"object","required":["rows"],"title":"CursorPaginatedResult[WorkspaceV2ItemResponse]"},"CursorPaginatedResult_WorkspaceV2ItemSearchResultResponse_":{"properties":{"rows":{"items":{"$ref":"#/components/schemas/WorkspaceV2ItemSearchResultResponse"},"type":"array","title":"Rows"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor","description":"Pass as 'cursor' to read the next page; null on the last page"}},"type":"object","required":["rows"],"title":"CursorPaginatedResult[WorkspaceV2ItemSearchResultResponse]"},"DefaultModelResolutionResponse":{"properties":{"model":{"anyOf":[{"$ref":"#/components/schemas/ResolvedModelResponse"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}},"type":"object","required":["model","error"],"title":"DefaultModelResolutionResponse","description":"The role's model, or the configuration error an administrator has to fix."},"DefaultModelsResponse":{"properties":{"chat":{"$ref":"#/components/schemas/DefaultModelResolutionResponse"},"summarization":{"$ref":"#/components/schemas/DefaultModelResolutionResponse"},"image":{"$ref":"#/components/schemas/DefaultModelResolutionResponse"},"audio":{"$ref":"#/components/schemas/DefaultModelResolutionResponse"},"svg_generation":{"$ref":"#/components/schemas/DefaultModelResolutionResponse"},"vectorize":{"$ref":"#/components/schemas/DefaultModelResolutionResponse"}},"type":"object","required":["chat","summarization","image","audio","svg_generation","vectorize"],"title":"DefaultModelsResponse"},"DeviceClient":{"type":"string","enum":["indesign"],"title":"DeviceClient","description":"Enum identifying an application outside the browser that signs in through the device flow."},"DeviceSignInPendingResponse":{"properties":{"client":{"type":"string","title":"Client"},"device_name":{"type":"string","title":"Device Name"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["client","device_name","created_at"],"title":"DeviceSignInPendingResponse"},"DeviceSignInStartRequest":{"properties":{"client":{"$ref":"#/components/schemas/DeviceClient","description":"The application that is signing in."},"device_name":{"type":"string","maxLength":80,"minLength":1,"title":"Device Name","description":"A name for the device, shown to the user who confirms the sign-in."}},"type":"object","required":["client","device_name"],"title":"DeviceSignInStartRequest"},"DeviceSignInStartResponse":{"properties":{"device_code":{"type":"string","title":"Device Code","description":"Kept by the device and used to ask for its tokens."},"user_code":{"type":"string","title":"User Code","description":"Shown to the user, who enters it in the browser."},"expires_in":{"type":"integer","title":"Expires In","description":"Seconds until the sign-in can no longer be confirmed."},"interval":{"type":"integer","title":"Interval","description":"Seconds the device waits between two requests for its tokens."}},"type":"object","required":["device_code","user_code","expires_in","interval"],"title":"DeviceSignInStartResponse"},"DeviceSignInTokenErrorResponse":{"properties":{"error":{"type":"string","enum":["authorization_pending","expired_token","access_denied"],"title":"Error"}},"type":"object","required":["error"],"title":"DeviceSignInTokenErrorResponse"},"DeviceSignInTokenRequest":{"properties":{"device_code":{"type":"string","maxLength":256,"minLength":1,"title":"Device Code"}},"type":"object","required":["device_code"],"title":"DeviceSignInTokenRequest"},"DeviceSignInUserCodeRequest":{"properties":{"user_code":{"type":"string","maxLength":32,"minLength":1,"title":"User Code","description":"The code shown on the device. Dashes, spaces and case are ignored."}},"type":"object","required":["user_code"],"title":"DeviceSignInUserCodeRequest"},"DeviceTokenLogoutRequest":{"properties":{"refresh_token":{"type":"string","maxLength":4096,"minLength":1,"title":"Refresh Token"}},"type":"object","required":["refresh_token"],"title":"DeviceTokenLogoutRequest"},"DeviceTokenRefreshRequest":{"properties":{"refresh_token":{"type":"string","maxLength":4096,"minLength":1,"title":"Refresh Token"}},"type":"object","required":["refresh_token"],"title":"DeviceTokenRefreshRequest"},"DeviceTokenResponse":{"properties":{"access_token":{"type":"string","title":"Access Token"},"refresh_token":{"type":"string","title":"Refresh Token"},"token_type":{"type":"string","title":"Token Type","default":"bearer"},"expires_in":{"type":"integer","title":"Expires In","description":"Seconds until the access token expires."}},"type":"object","required":["access_token","refresh_token","expires_in"],"title":"DeviceTokenResponse"},"DocxExtractMarkersJobRequest":{"properties":{"kind":{"type":"string","const":"docx.extract_markers","title":"Kind"},"payload":{"$ref":"#/components/schemas/DocxFilePayload"},"origin":{"$ref":"#/components/schemas/TasksOrigin"},"destination":{"$ref":"#/components/schemas/DocxSessionDestination"}},"additionalProperties":false,"type":"object","required":["kind","payload","origin","destination"],"title":"DocxExtractMarkersJobRequest"},"DocxField":{"properties":{"field_name":{"type":"string","minLength":1,"title":"Field Name"},"label":{"type":"string","minLength":1,"title":"Label"},"instruction":{"type":"string","minLength":1,"title":"Instruction"},"is_date":{"type":"boolean","title":"Is Date","default":false}},"additionalProperties":false,"type":"object","required":["field_name","label","instruction"],"title":"DocxField"},"DocxFilePayload":{"properties":{"task_id":{"type":"string","format":"uuid","title":"Task Id"},"data_id":{"type":"string","format":"uuid","title":"Data Id"},"file_id":{"type":"string","format":"uuid","title":"File Id"},"marker_config":{"$ref":"#/components/schemas/DocxMarkerConfig"}},"additionalProperties":false,"type":"object","required":["task_id","data_id","file_id","marker_config"],"title":"DocxFilePayload"},"DocxFillFieldsJobRequest":{"properties":{"kind":{"type":"string","const":"docx.fill_fields","title":"Kind"},"payload":{"$ref":"#/components/schemas/DocxFillFieldsPayload"},"origin":{"$ref":"#/components/schemas/TasksOrigin"},"destination":{"$ref":"#/components/schemas/DocxSessionDestination"}},"additionalProperties":false,"type":"object","required":["kind","payload","origin","destination"],"title":"DocxFillFieldsJobRequest"},"DocxFillFieldsPayload":{"properties":{"task_id":{"type":"string","format":"uuid","title":"Task Id"},"data_id":{"type":"string","format":"uuid","title":"Data Id"},"fields":{"items":{"$ref":"#/components/schemas/DocxField"},"type":"array","minItems":1,"title":"Fields"},"context":{"type":"string","minLength":1,"title":"Context"},"provider_name":{"type":"string","minLength":1,"title":"Provider Name"},"model_type":{"type":"string","minLength":1,"title":"Model Type"},"task_context":{"type":"string","title":"Task Context"}},"additionalProperties":false,"type":"object","required":["task_id","data_id","fields","context","provider_name","model_type","task_context"],"title":"DocxFillFieldsPayload"},"DocxGenerateJobRequest":{"properties":{"kind":{"type":"string","const":"docx.generate","title":"Kind"},"payload":{"$ref":"#/components/schemas/DocxGeneratePayload"},"origin":{"$ref":"#/components/schemas/TasksOrigin"},"destination":{"$ref":"#/components/schemas/TaskDataFileDestination"}},"additionalProperties":false,"type":"object","required":["kind","payload","origin","destination"],"title":"DocxGenerateJobRequest"},"DocxGeneratePayload":{"properties":{"task_id":{"type":"string","format":"uuid","title":"Task Id"},"data_id":{"type":"string","format":"uuid","title":"Data Id"},"file_id":{"type":"string","format":"uuid","title":"File Id"},"marker_config":{"$ref":"#/components/schemas/DocxMarkerConfig"},"values":{"additionalProperties":{"type":"string"},"type":"object","title":"Values"}},"additionalProperties":false,"type":"object","required":["task_id","data_id","file_id","marker_config","values"],"title":"DocxGeneratePayload"},"DocxMarkerConfig":{"properties":{"start_marker":{"type":"string","minLength":1,"title":"Start Marker"},"end_marker":{"type":"string","minLength":1,"title":"End Marker"},"separator":{"type":"string","minLength":1,"title":"Separator"}},"additionalProperties":false,"type":"object","required":["start_marker","end_marker","separator"],"title":"DocxMarkerConfig"},"DocxSessionDestination":{"properties":{"type":{"type":"string","const":"docx_session","title":"Type"},"task_id":{"type":"string","format":"uuid","title":"Task Id"},"data_id":{"type":"string","format":"uuid","title":"Data Id"}},"additionalProperties":false,"type":"object","required":["type","task_id","data_id"],"title":"DocxSessionDestination"},"EmbeddedFontFaceResponse":{"properties":{"weight":{"type":"integer","title":"Weight"},"style":{"$ref":"#/components/schemas/FontStyle"},"mime_type":{"type":"string","title":"Mime Type"},"data_url":{"type":"string","title":"Data Url"},"embedding":{"$ref":"#/components/schemas/FontEmbedding","description":"What the font's license lets an exported file carry: installable or editable fonts go anywhere, print fonts only into files that are not edited, restricted fonts into none."}},"type":"object","required":["weight","style","mime_type","data_url","embedding"],"title":"EmbeddedFontFaceResponse"},"EnvironmentActivationEnvironmentResponse":{"properties":{"environment_id":{"type":"string","format":"uuid","title":"Environment Id"},"environment_name":{"type":"string","title":"Environment Name"},"environment_is_core":{"type":"boolean","title":"Environment Is Core"},"activation_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Activation Id"},"activation_version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Activation Version"},"activation_tag":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Activation Tag"}},"type":"object","required":["environment_id","environment_name","environment_is_core","activation_id","activation_version","activation_tag"],"title":"EnvironmentActivationEnvironmentResponse"},"EnvironmentActivationPatchAdd":{"properties":{"environment_id":{"type":"string","format":"uuid","title":"Environment Id","description":"Environment of the activation"},"version":{"type":"integer","exclusiveMinimum":0.0,"title":"Version","description":"Version of the subscription"},"action":{"type":"string","const":"add","title":"Action"}},"type":"object","required":["environment_id","version","action"],"title":"EnvironmentActivationPatchAdd"},"EnvironmentActivationPatchDelete":{"properties":{"environment_id":{"type":"string","format":"uuid","title":"Environment Id","description":"Environment of the activation"},"action":{"type":"string","const":"delete","title":"Action"}},"type":"object","required":["environment_id","action"],"title":"EnvironmentActivationPatchDelete"},"EnvironmentActivationPatchList":{"items":{"anyOf":[{"$ref":"#/components/schemas/EnvironmentActivationPatchAdd"},{"$ref":"#/components/schemas/EnvironmentActivationPatchUpdate"},{"$ref":"#/components/schemas/EnvironmentActivationPatchDelete"}]},"type":"array","title":"EnvironmentActivationPatchList"},"EnvironmentActivationPatchUpdate":{"properties":{"environment_id":{"type":"string","format":"uuid","title":"Environment Id","description":"Environment of the activation"},"version":{"type":"integer","exclusiveMinimum":0.0,"title":"Version","description":"Version of the subscription"},"action":{"type":"string","const":"update","title":"Action"}},"type":"object","required":["environment_id","version","action"],"title":"EnvironmentActivationPatchUpdate"},"EnvironmentActivationStatus":{"type":"string","enum":["all","active","inactive"],"title":"EnvironmentActivationStatus","description":"Enum to filter environments by activation status."},"EnvironmentCreate":{"properties":{"name":{"type":"string","maxLength":255,"minLength":1,"title":"Name","description":"Name of the environment"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description","description":"Description of the environment"}},"type":"object","required":["name"],"title":"EnvironmentCreate","description":"Schema for creating a new environment.\n\nAttributes:\n    name (str): Name of the environment.\n    description (str | None): Description of the environment."},"EnvironmentResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"is_active":{"type":"boolean","title":"Is Active"},"last_updated":{"type":"string","format":"date-time","title":"Last Updated"},"creation_date":{"type":"string","format":"date-time","title":"Creation Date"},"organization_id":{"type":"string","format":"uuid","title":"Organization Id"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"}},"type":"object","required":["id","is_active","last_updated","creation_date","organization_id","name","description"],"title":"EnvironmentResponse","description":"Schema for environment response data.\n\nAttributes:\n    id (UUID): ID of the environment.\n    is_active (bool): Flag if the environment is active.\n    last_updated (datetime): Timestamp of the last update.\n    creation_date (datetime): Timestamp of creation.\n    organization_id (UUID): ID of the organization.\n    name (str): Name of the environment.\n    description (str | None): Description of the environment."},"EnvironmentUpdate":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":255,"minLength":1},{"type":"null"}],"title":"Name","description":"Name of the environment"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description","description":"Description of the environment"},"is_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active","description":"Flag if the environment is active"}},"type":"object","title":"EnvironmentUpdate","description":"Schema for updating an environment.\n\nAttributes:\n    name (str | None): Name of the environment.\n    description (str | None): Description of the environment.\n    is_active (bool | None): Flag if the environment is active."},"EnvironmentUserResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"email":{"type":"string","title":"Email"},"is_active":{"type":"boolean","title":"Is Active"},"role":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Role"},"is_role_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Role Active"}},"type":"object","required":["id","name","email","is_active","role","is_role_active"],"title":"EnvironmentUserResponse"},"ExecutionCall":{"properties":{"index":{"type":"integer","title":"Index"},"round":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Round"},"kind":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Kind"},"source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"},"requested_model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Requested Model"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"},"messages":{"items":{"$ref":"#/components/schemas/ExecutionMessage"},"type":"array","title":"Messages"},"citations":{"items":{"additionalProperties":{"$ref":"#/components/schemas/SnapshotScalar"},"type":"object"},"type":"array","title":"Citations"},"note":{"type":"string","title":"Note"}},"type":"object","required":["index","round","kind","source","requested_model","model","messages","citations"],"title":"ExecutionCall"},"ExecutionFileRef":{"properties":{"kind":{"type":"string","enum":["image_version","document_version"],"title":"Kind"},"id":{"type":"string","title":"Id"},"via":{"type":"string","title":"Via"}},"type":"object","required":["kind","id","via"],"title":"ExecutionFileRef"},"ExecutionMessage":{"properties":{"role":{"type":"string","title":"Role"},"status":{"type":"string","enum":["kept","filtered","omitted"],"title":"Status"},"content":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Content"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"tool_calls":{"items":{"$ref":"#/components/schemas/ExecutionToolCallRef"},"type":"array","title":"Tool Calls"},"tool_call_id":{"type":"string","title":"Tool Call Id"}},"type":"object","required":["role","status","content","reason"],"title":"ExecutionMessage","description":"One message of a model call's input: kept, filtered (partly left out) or omitted, and why."},"ExecutionRedactions":{"properties":{"system_messages":{"type":"integer","title":"System Messages"},"attachment_text":{"type":"integer","title":"Attachment Text"},"possibly_file_derived":{"type":"integer","title":"Possibly File Derived"},"images":{"type":"integer","title":"Images"},"unselected_file_refs":{"type":"integer","title":"Unselected File Refs"},"truncated":{"type":"integer","title":"Truncated"}},"type":"object","required":["system_messages","attachment_text","possibly_file_derived","images","unselected_file_refs","truncated"],"title":"ExecutionRedactions","description":"How often each kind of text was left out, counted per occurrence across calls."},"ExecutionToolCall":{"properties":{"round":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Round"},"call_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Call Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"arguments":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Arguments"},"output":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Output"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"duration_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Duration Ms"},"redacted":{"items":{"type":"string","enum":["arguments","output"]},"type":"array","title":"Redacted"}},"type":"object","required":["round","call_id","name","arguments","output","status","duration_ms","redacted"],"title":"ExecutionToolCall","description":"A tool the model ran; ``redacted`` names the fields withheld because they could derive from a file."},"ExecutionToolCallRef":{"properties":{"call_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Call Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"arguments":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Arguments"}},"type":"object","required":["call_id","name","arguments"],"title":"ExecutionToolCallRef","description":"A tool call as an assistant message asked for it; ``arguments`` is null when redacted."},"FeedbackConsentRequest":{"properties":{"version":{"type":"string","maxLength":50,"minLength":1,"title":"Version","description":"Version of the sharing consent the author was shown"},"accepted":{"type":"boolean","const":true,"title":"Accepted","description":"Must be true: feedback is only submitted with the author's consent"}},"type":"object","required":["version","accepted"],"title":"FeedbackConsentRequest","description":"Request schema for the author's consent to share a frozen, filtered copy with reviewers.\n\nThe copy covers the conversation up to the reply and what was recorded about its model calls\nwhile it was generated; the consent is to sharing that copy, not to the recording."},"FeedbackContextResponse":{"properties":{"revision":{"type":"string","title":"Revision","description":"Version of the conversation shown; send it back when submitting the feedback"},"consent_version":{"type":"string","title":"Consent Version","description":"Version of the sharing consent shown; send it back when submitting the feedback"},"sharing_scope":{"$ref":"#/components/schemas/FeedbackSharingScopeResponse"},"limits":{"$ref":"#/components/schemas/FeedbackLimitsResponse"},"eligible_files":{"items":{"$ref":"#/components/schemas/FeedbackEligibleFileResponse"},"type":"array","title":"Eligible Files","description":"Files the author may choose to share"}},"type":"object","required":["revision","consent_version","sharing_scope","limits","eligible_files"],"title":"FeedbackContextResponse","description":"Response schema for the summary of what submitting feedback on a response would share."},"FeedbackCreateRequest":{"properties":{"target":{"$ref":"#/components/schemas/FeedbackTargetRequest"},"expected_revision":{"type":"string","maxLength":64,"minLength":64,"title":"Expected Revision","description":"Revision of the conversation summary the author was shown"},"consent":{"$ref":"#/components/schemas/FeedbackConsentRequest"},"idempotency_key":{"type":"string","maxLength":128,"minLength":8,"title":"Idempotency Key","description":"Value chosen by the client for this submission; send the same value when retrying it, so the feedback is not submitted twice"},"rating":{"$ref":"#/components/schemas/FeedbackRating"},"category":{"anyOf":[{"type":"string","maxLength":50},{"type":"null"}],"title":"Category","description":"(Optional) category the author picked for the feedback"},"comment":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Comment","description":"(Optional) explanation of the rating"},"file_ids":{"items":{"type":"string","format":"uuid"},"type":"array","maxItems":10,"title":"File Ids","description":"Files of the conversation the author chose to share"}},"type":"object","required":["target","expected_revision","consent","idempotency_key","rating"],"title":"FeedbackCreateRequest","description":"Request schema for submitting feedback on a response."},"FeedbackDetailResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"organization_id":{"type":"string","format":"uuid","title":"Organization Id"},"author_user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Author User Id"},"task_id":{"type":"string","format":"uuid","title":"Task Id"},"module":{"type":"string","title":"Module"},"target_type":{"$ref":"#/components/schemas/FeedbackTargetType"},"target_id":{"type":"string","format":"uuid","title":"Target Id"},"rating":{"anyOf":[{"$ref":"#/components/schemas/FeedbackRating"},{"type":"null"}]},"category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"},"comment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Comment"},"consent_version":{"type":"string","title":"Consent Version"},"consented_at":{"type":"string","format":"date-time","title":"Consented At"},"review_status":{"$ref":"#/components/schemas/FeedbackReviewStatus"},"submission_kind":{"type":"string","title":"Submission Kind","default":"rating"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"submitted_at":{"type":"string","format":"date-time","title":"Submitted At"},"reviewed_by_user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Reviewed By User Id"},"reviewed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Reviewed At"},"target_revision":{"type":"string","title":"Target Revision","description":"Revision of the conversation the feedback was submitted on"},"snapshot":{"anyOf":[{"$ref":"#/components/schemas/FeedbackSnapshot"},{"$ref":"#/components/schemas/ModuleFeedbackSnapshot"}],"title":"Snapshot","description":"The conversation and the filtered record of the reply's model calls shared with reviewers, as they were when the feedback was submitted"},"files":{"items":{"$ref":"#/components/schemas/FeedbackFileResponse"},"type":"array","title":"Files"}},"type":"object","required":["id","organization_id","author_user_id","task_id","module","target_type","target_id","rating","category","comment","consent_version","consented_at","review_status","created_at","updated_at","submitted_at","reviewed_by_user_id","reviewed_at","target_revision","snapshot","files"],"title":"FeedbackDetailResponse","description":"Response schema for feedback with the conversation shared with reviewers and the files shared with it."},"FeedbackEligibleFileResponse":{"properties":{"file_id":{"type":"string","format":"uuid","title":"File Id"},"source":{"$ref":"#/components/schemas/FeedbackFileSource"},"message_row_id":{"type":"string","format":"uuid","title":"Message Row Id","description":"Message of the conversation the file belongs to"},"filename":{"type":"string","title":"Filename"},"mime_type":{"type":"string","title":"Mime Type"},"file_size_bytes":{"type":"integer","title":"File Size Bytes"}},"type":"object","required":["file_id","source","message_row_id","filename","mime_type","file_size_bytes"],"title":"FeedbackEligibleFileResponse","description":"Response schema for a file of the conversation that may be shared with feedback."},"FeedbackFileResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"source":{"$ref":"#/components/schemas/FeedbackFileSource"},"filename":{"type":"string","title":"Filename"},"mime_type":{"type":"string","title":"Mime Type"},"file_size_bytes":{"type":"integer","title":"File Size Bytes"}},"type":"object","required":["id","source","filename","mime_type","file_size_bytes"],"title":"FeedbackFileResponse","description":"Response schema for a file shared with feedback."},"FeedbackFileSource":{"type":"string","enum":["screenshot","saved_content","attachment","generated_image","code_document"],"title":"FeedbackFileSource","description":"Enum identifying where in the conversation a file offered with feedback came from."},"FeedbackLimitsResponse":{"properties":{"comment_max_length":{"type":"integer","title":"Comment Max Length"},"files_max_count":{"type":"integer","title":"Files Max Count"},"file_max_bytes":{"type":"integer","title":"File Max Bytes"},"files_total_max_bytes":{"type":"integer","title":"Files Total Max Bytes"}},"type":"object","required":["comment_max_length","files_max_count","file_max_bytes","files_total_max_bytes"],"title":"FeedbackLimitsResponse","description":"Response schema for the bounds a submission has to stay within."},"FeedbackOrderBy":{"type":"string","enum":["created_at"],"title":"FeedbackOrderBy","description":"Enum defining the fields a feedback page may be ordered by.\n\nThe allow-list is deliberate: the cursor encodes the ordering field's value, and each\nfield here has an index of its own to walk. A field outside this set would have\nneither, and would let a caller sort the whole collection by anything it named."},"FeedbackRating":{"type":"string","enum":["positive","negative"],"title":"FeedbackRating","description":"Enum identifying whether the author judged the reviewed response good or bad."},"FeedbackResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"organization_id":{"type":"string","format":"uuid","title":"Organization Id"},"author_user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Author User Id"},"task_id":{"type":"string","format":"uuid","title":"Task Id"},"module":{"type":"string","title":"Module"},"target_type":{"$ref":"#/components/schemas/FeedbackTargetType"},"target_id":{"type":"string","format":"uuid","title":"Target Id"},"rating":{"anyOf":[{"$ref":"#/components/schemas/FeedbackRating"},{"type":"null"}]},"category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"},"comment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Comment"},"consent_version":{"type":"string","title":"Consent Version"},"consented_at":{"type":"string","format":"date-time","title":"Consented At"},"review_status":{"$ref":"#/components/schemas/FeedbackReviewStatus"},"submission_kind":{"type":"string","title":"Submission Kind","default":"rating"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"submitted_at":{"type":"string","format":"date-time","title":"Submitted At"},"reviewed_by_user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Reviewed By User Id"},"reviewed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Reviewed At"}},"type":"object","required":["id","organization_id","author_user_id","task_id","module","target_type","target_id","rating","category","comment","consent_version","consented_at","review_status","created_at","updated_at","submitted_at","reviewed_by_user_id","reviewed_at"],"title":"FeedbackResponse","description":"Response schema for feedback, without the shared conversation and files."},"FeedbackReviewRequest":{"properties":{"review_status":{"$ref":"#/components/schemas/FeedbackReviewStatus"}},"type":"object","required":["review_status"],"title":"FeedbackReviewRequest","description":"Request schema for a reviewer setting where they stand on feedback."},"FeedbackReviewStatus":{"type":"string","enum":["new","in_review","resolved","dismissed"],"title":"FeedbackReviewStatus","description":"Enum identifying where a reviewer stands on a submitted piece of feedback.\n\nIndependent of ``FeedbackSubmissionState``: it describes the reviewer's handling of the\nfeedback, not whether the author finished submitting it."},"FeedbackSharingScopeResponse":{"properties":{"includes":{"items":{"type":"string"},"type":"array","title":"Includes","description":"Keys naming what is shared with the organization's reviewers"},"excludes":{"items":{"type":"string"},"type":"array","title":"Excludes","description":"Keys naming what is never shared"},"message_count":{"type":"integer","title":"Message Count","description":"Number of messages of the conversation that are shared"}},"type":"object","required":["includes","excludes","message_count"],"title":"FeedbackSharingScopeResponse","description":"Response schema for what submitting feedback shares and what it withholds."},"FeedbackSnapshot":{"properties":{"schema_version":{"type":"integer","title":"Schema Version"},"captured_at":{"type":"string","title":"Captured At"},"target":{"$ref":"#/components/schemas/SnapshotTarget"},"conversation":{"$ref":"#/components/schemas/SnapshotConversation"},"generation":{"$ref":"#/components/schemas/SnapshotGeneration"},"context":{"$ref":"#/components/schemas/SnapshotContext"},"execution":{"$ref":"#/components/schemas/SnapshotExecution"},"artifacts":{"$ref":"#/components/schemas/SnapshotArtifacts"},"files":{"items":{"$ref":"#/components/schemas/SnapshotFile"},"type":"array","title":"Files"},"diagnostics":{"$ref":"#/components/schemas/SnapshotDiagnostics"}},"type":"object","required":["schema_version","captured_at","target","conversation","generation","context","execution","artifacts","files","diagnostics"],"title":"FeedbackSnapshot"},"FeedbackTargetRequest":{"properties":{"storage":{"$ref":"#/components/schemas/ChatStorage","description":"(Optional) table holding the chat's rows; Task Data when absent","default":"task_data"},"module_id":{"anyOf":[{"type":"string","maxLength":100,"minLength":1},{"type":"null"}],"title":"Module Id","description":"Module holding the chat's rows; required with Module Data storage and only accepted with it"},"module":{"type":"string","maxLength":50,"minLength":1,"title":"Module","description":"Module the response was given in"},"target_type":{"$ref":"#/components/schemas/FeedbackTargetType","description":"Kind of response the feedback is about"},"task_id":{"type":"string","format":"uuid","title":"Task Id","description":"Task the conversation was opened from"},"conversation_id":{"type":"string","format":"uuid","title":"Conversation Id","description":"Conversation the response belongs to"},"target_id":{"type":"string","format":"uuid","title":"Target Id","description":"Response the feedback is about"}},"type":"object","required":["module","target_type","task_id","conversation_id","target_id"],"title":"FeedbackTargetRequest","description":"Request schema naming the response feedback is about; also the request for its sharing summary."},"FeedbackTargetType":{"type":"string","enum":["chat_message","module","part","image"],"title":"FeedbackTargetType","description":"Enum identifying the kind of thing feedback is about.\n\nA chat message is the only target for now; a new kind of target adds a member here\ntogether with the code that can snapshot it."},"FeedbackUpdateRequest":{"properties":{"rating":{"anyOf":[{"$ref":"#/components/schemas/FeedbackRating"},{"type":"null"}],"description":"(Optional) new rating"},"comment":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Comment","description":"(Optional) new explanation of the rating; blank clears it"}},"type":"object","title":"FeedbackUpdateRequest","description":"Request schema for the author changing their own feedback."},"FontCatalogEntryResponse":{"properties":{"source":{"$ref":"#/components/schemas/FontSource"},"family":{"type":"string","title":"Family"},"category":{"$ref":"#/components/schemas/FontCategory"},"metric_compatible":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Metric Compatible"},"is_registered":{"type":"boolean","title":"Is Registered"}},"type":"object","required":["source","family","category","metric_compatible","is_registered"],"title":"FontCatalogEntryResponse"},"FontCatalogRegistrationRequest":{"properties":{"source":{"type":"string","enum":["office","google"],"title":"Source"},"family":{"type":"string","maxLength":64,"minLength":1,"title":"Family"}},"type":"object","required":["source","family"],"title":"FontCatalogRegistrationRequest"},"FontCatalogResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/FontCatalogEntryResponse"},"type":"array","title":"Items"}},"type":"object","required":["items"],"title":"FontCatalogResponse"},"FontCategory":{"type":"string","enum":["sans","serif","mono","display","handwriting"],"title":"FontCategory","description":"Enum grouping font families by their look, used to filter the library and pick substitutes."},"FontCheckRequest":{"properties":{"families":{"items":{"type":"string","maxLength":100},"type":"array","maxItems":40,"minItems":1,"title":"Families"}},"type":"object","required":["families"],"title":"FontCheckRequest"},"FontCheckResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/FontCheckResultResponse"},"type":"array","title":"Items"}},"type":"object","required":["items"],"title":"FontCheckResponse"},"FontCheckResultResponse":{"properties":{"name":{"type":"string","title":"Name"},"is_available":{"type":"boolean","title":"Is Available"},"font":{"anyOf":[{"$ref":"#/components/schemas/FontReferenceResponse"},{"type":"null"}]},"substitute":{"anyOf":[{"$ref":"#/components/schemas/FontReferenceResponse"},{"type":"null"}],"description":"The organization's default font, when the name is unavailable."},"rendering":{"anyOf":[{"$ref":"#/components/schemas/FontRenderingResponse"},{"type":"null"}],"description":"What renders the name; null when no font is available."}},"type":"object","required":["name","is_available","font","substitute","rendering"],"title":"FontCheckResultResponse"},"FontDefaultResponse":{"properties":{"assigned_font_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Assigned Font Id","description":"The organization's own choice; null when it inherits."},"font":{"anyOf":[{"$ref":"#/components/schemas/FontFamilyResponse"},{"type":"null"}],"description":"The font in effect; null when the platform default is unavailable."},"is_inherited":{"type":"boolean","title":"Is Inherited","description":"The platform default is in effect."},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}},"type":"object","required":["assigned_font_id","font","is_inherited","error"],"title":"FontDefaultResponse"},"FontDefaultUpdateRequest":{"properties":{"font_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Font Id","description":"The font to use by default; null inherits the platform default."}},"type":"object","required":["font_id"],"title":"FontDefaultUpdateRequest"},"FontEmbedRequest":{"properties":{"text":{"type":"string","maxLength":2000,"title":"Text","description":"Text the font must cover."},"faces":{"items":{"type":"string","pattern":"^[1-9]00i?$"},"type":"array","maxItems":8,"title":"Faces","description":"Faces as a weight with an optional i for italic, such as 400 or 700i; the regular face when empty."}},"type":"object","required":["text"],"title":"FontEmbedRequest"},"FontEmbedResponse":{"properties":{"family":{"type":"string","title":"Family"},"rendered_family":{"type":"string","title":"Rendered Family","description":"The family the faces belong to; differs from family when a substitute renders it."},"faces":{"items":{"$ref":"#/components/schemas/EmbeddedFontFaceResponse"},"type":"array","title":"Faces"}},"type":"object","required":["family","rendered_family","faces"],"title":"FontEmbedResponse"},"FontEmbedding":{"type":"string","enum":["installable","editable","print","restricted"],"title":"FontEmbedding","description":"Enum identifying what a font's license lets an export do with its files, from OpenType `fsType`.\n\nINSTALLABLE and EDITABLE fonts may go into any file, PRINT fonts only into files that are printed\nor viewed (not edited), and RESTRICTED fonts into none. Showing text on screen or drawing it into\npixels embeds no font, so it needs none of these."},"FontFaceResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"weight":{"type":"integer","title":"Weight"},"style":{"$ref":"#/components/schemas/FontStyle"},"format":{"$ref":"#/components/schemas/FontFormat"},"size_bytes":{"type":"integer","title":"Size Bytes"}},"type":"object","required":["id","weight","style","format","size_bytes"],"title":"FontFaceResponse"},"FontFamilyResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"family":{"type":"string","title":"Family"},"source":{"$ref":"#/components/schemas/FontSource"},"category":{"$ref":"#/components/schemas/FontCategory"},"metric_compatible":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Metric Compatible"},"is_enabled":{"type":"boolean","title":"Is Enabled"},"is_shared":{"type":"boolean","title":"Is Shared","description":"Offered by the platform to every organization."},"can_manage":{"type":"boolean","title":"Can Manage","description":"The caller may enable, disable or remove it here."},"faces":{"items":{"$ref":"#/components/schemas/FontFaceResponse"},"type":"array","title":"Faces"}},"type":"object","required":["id","family","source","category","metric_compatible","is_enabled","is_shared","can_manage","faces"],"title":"FontFamilyResponse"},"FontFormat":{"type":"string","enum":["ttf","otf","woff"],"title":"FontFormat","description":"Enum identifying the file format of an uploaded font face.\n\nWOFF2 is deliberately absent: its brotli stream cannot be unpacked within a size limit, so it is\nnever read."},"FontLibraryResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/FontFamilyResponse"},"type":"array","title":"Items"},"limits":{"$ref":"#/components/schemas/FontLimitsResponse"}},"type":"object","required":["items"],"title":"FontLibraryResponse"},"FontLimitsResponse":{"properties":{"max_file_bytes":{"type":"integer","title":"Max File Bytes","default":10485760},"max_uploaded_families":{"type":"integer","title":"Max Uploaded Families","default":30},"formats":{"items":{"$ref":"#/components/schemas/FontFormat"},"type":"array","title":"Formats"}},"type":"object","title":"FontLimitsResponse"},"FontLoadRequest":{"properties":{"faces":{"items":{"type":"string","pattern":"^[1-9]00i?$"},"type":"array","maxItems":8,"title":"Faces","description":"Faces as a weight with an optional i for italic, such as 400 or 700i; the regular face when empty."}},"type":"object","title":"FontLoadRequest"},"FontReferenceResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"family":{"type":"string","title":"Family"},"source":{"$ref":"#/components/schemas/FontSource"}},"type":"object","required":["id","family","source"],"title":"FontReferenceResponse"},"FontRenderingResponse":{"properties":{"font_id":{"type":"string","format":"uuid","title":"Font Id","description":"The library font to load or embed."},"family":{"type":"string","title":"Family","description":"The family whose files are returned for it."},"is_substituted":{"type":"boolean","title":"Is Substituted","description":"The files belong to another family than the one asked for."}},"type":"object","required":["font_id","family","is_substituted"],"title":"FontRenderingResponse"},"FontRole":{"type":"string","enum":["body","title","handwriting","playful"],"title":"FontRole","description":"Enum identifying what an organization uses a font for.\n\nBODY is the organization's default font and is stored as that default. TITLE, HANDWRITING and\nPLAYFUL are assigned separately; one without a usable assignment follows the platform's\nassignment, then the organization's default font."},"FontRoleResponse":{"properties":{"role":{"$ref":"#/components/schemas/FontRole"},"assigned_font_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Assigned Font Id","description":"The organization's own choice; null when the role follows its fallback."},"font":{"anyOf":[{"$ref":"#/components/schemas/FontFamilyResponse"},{"type":"null"}],"description":"The font in effect; null when no font is available."},"source":{"$ref":"#/components/schemas/FontRoleSource","description":"Whose choice is in effect: the organization's, the platform's, or the default font."},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"rendering":{"anyOf":[{"$ref":"#/components/schemas/FontRenderingResponse"},{"type":"null"}],"description":"What renders the font in effect."}},"type":"object","required":["role","assigned_font_id","font","source","error","rendering"],"title":"FontRoleResponse"},"FontRoleSource":{"type":"string","enum":["organization","platform","default"],"title":"FontRoleSource","description":"Enum identifying whose choice a font role resolves to.\n\nORGANIZATION is the organization's own assignment, PLATFORM the platform owner's, and DEFAULT\nthe organization's default font, which answers when neither assignment is usable."},"FontRoleUpdateRequest":{"properties":{"font_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Font Id","description":"The font to use for the role; null makes the role follow the platform's choice, then the default font."}},"type":"object","required":["font_id"],"title":"FontRoleUpdateRequest"},"FontRolesResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/FontRoleResponse"},"type":"array","title":"Items"}},"type":"object","required":["items"],"title":"FontRolesResponse"},"FontSource":{"type":"string","enum":["office","google","uploaded"],"title":"FontSource","description":"Enum identifying where a font family comes from.\n\nOFFICE families describe fonts Microsoft Office ships; no font files are stored for them. GOOGLE\nfamilies are served by Google Fonts. UPLOADED families hold the faces an organization uploaded."},"FontStyle":{"type":"string","enum":["normal","italic"],"title":"FontStyle","description":"Enum identifying whether a font face is upright or italic."},"FontUpdateRequest":{"properties":{"is_enabled":{"type":"boolean","title":"Is Enabled"}},"type":"object","required":["is_enabled"],"title":"FontUpdateRequest"},"GenerationSettings":{"properties":{"provider":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider"},"model_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model Type"},"web_search":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Web Search"},"language":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Language"},"language_mode":{"anyOf":[{"type":"string","enum":["pinned","auto"]},{"type":"null"}],"title":"Language Mode"},"max_tokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Tokens"},"temperature":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Temperature"}},"type":"object","required":["provider","model_type","web_search","language","language_mode","max_tokens","temperature"],"title":"GenerationSettings"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"HistoryEntry":{"properties":{"role":{"type":"string","title":"Role"},"matched":{"type":"boolean","title":"Matched"},"row_id":{"type":"string","title":"Row Id"},"content":{"type":"string","title":"Content"}},"type":"object","required":["role","matched"],"title":"HistoryEntry"},"HtmlPreviewAssets":{"properties":{"storage":{"$ref":"#/components/schemas/ChatStorage","description":"(Optional) table holding the chat's rows; Task Data when absent","default":"task_data"},"module_id":{"anyOf":[{"type":"string","maxLength":100,"minLength":1},{"type":"null"}],"title":"Module Id","description":"Module holding the chat's rows; required with Module Data storage and only accepted with it"},"namespace":{"type":"string","maxLength":200,"minLength":1,"title":"Namespace","description":"Module data namespace holding the conversation and its images"},"conversation_id":{"type":"string","format":"uuid","title":"Conversation Id","description":"Conversation the images belong to"},"image_version_ids":{"items":{"type":"string","format":"uuid"},"type":"array","maxItems":50,"title":"Image Version Ids","description":"Image versions the document references"}},"type":"object","required":["namespace","conversation_id","image_version_ids"],"title":"HtmlPreviewAssets","description":"The saved chat images a document may load as ``zaia-asset:<id>``.\n\nEvery id is checked against the caller's own conversation before anything\nis stored; one that is not refuses the whole create."},"HtmlPreviewCreate":{"properties":{"html":{"type":"string","maxLength":16777216,"minLength":1,"title":"Html","description":"The document to host"},"mode":{"type":"string","const":"interactive","title":"Mode","description":"Only interactive previews are hosted","default":"interactive"},"title":{"anyOf":[{"type":"string","maxLength":200,"minLength":1},{"type":"null"}],"title":"Title","description":"(Optional) title; derived from the document when absent"},"source":{"anyOf":[{"$ref":"#/components/schemas/HtmlPreviewSource"},{"type":"null"}],"description":"(Optional) provenance of the HTML"},"assets":{"anyOf":[{"$ref":"#/components/schemas/HtmlPreviewAssets"},{"type":"null"}],"description":"(Optional) saved chat images the document loads"}},"type":"object","required":["html"],"title":"HtmlPreviewCreate","description":"Request schema to host an HTML document for preview."},"HtmlPreviewCreated":{"properties":{"preview_id":{"type":"string","format":"uuid","title":"Preview Id"},"view_url":{"type":"string","title":"View Url"},"expires_at":{"type":"string","format":"date-time","title":"Expires At"},"mode":{"type":"string","const":"interactive","title":"Mode","default":"interactive"}},"type":"object","required":["preview_id","view_url","expires_at"],"title":"HtmlPreviewCreated","description":"Response schema after hosting an HTML document."},"HtmlPreviewSource":{"properties":{"module_id":{"anyOf":[{"type":"string","maxLength":255,"minLength":1},{"type":"null"}],"title":"Module Id","description":"(Optional) module that produced the HTML"},"conversation_id":{"anyOf":[{"type":"string","maxLength":255,"minLength":1},{"type":"null"}],"title":"Conversation Id","description":"(Optional) conversation the HTML came from"},"message_id":{"anyOf":[{"type":"string","maxLength":255,"minLength":1},{"type":"null"}],"title":"Message Id","description":"(Optional) assistant message the HTML came from"}},"type":"object","title":"HtmlPreviewSource","description":"Where the HTML came from.\n\nProvenance for support and debugging only: the preview's owner and\norganization are taken from the authenticated session, never from here."},"ImageGenerationJobRequest":{"properties":{"kind":{"type":"string","const":"image.generate","title":"Kind"},"payload":{"$ref":"#/components/schemas/ImageGenerationPayload"},"origin":{"anyOf":[{"oneOf":[{"$ref":"#/components/schemas/TasksOrigin"},{"$ref":"#/components/schemas/WorkspacesOrigin"}],"discriminator":{"propertyName":"route","mapping":{"tasks":"#/components/schemas/TasksOrigin","workspaces":"#/components/schemas/WorkspacesOrigin"}}},{"type":"null"}],"title":"Origin"},"destination":{"type":"null","title":"Destination"}},"additionalProperties":false,"type":"object","required":["kind","payload"],"title":"ImageGenerationJobRequest"},"ImageGenerationPayload":{"properties":{"prompt":{"type":"string","minLength":1,"title":"Prompt"},"provider_name":{"type":"string","minLength":1,"title":"Provider Name"},"model":{"type":"string","minLength":1,"title":"Model"},"aspect_ratio":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Aspect Ratio"},"num_images":{"type":"integer","maximum":4.0,"minimum":1.0,"title":"Num Images","default":1},"task_context":{"type":"string","title":"Task Context"}},"additionalProperties":false,"type":"object","required":["prompt","provider_name","model","task_context"],"title":"ImageGenerationPayload"},"Interval":{"type":"string","enum":["day","week","month"],"title":"Interval"},"JobKind":{"type":"string","enum":["audio.transcribe","chat.attachment_overview","docx.extract_markers","docx.fill_fields","docx.generate","image.generate","image.upscale","model3d.generate","svg.generate","llm.complete","llm.stream"],"title":"JobKind"},"JobResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"recipe_id":{"type":"string","title":"Recipe Id"},"kind":{"$ref":"#/components/schemas/JobKind"},"status":{"$ref":"#/components/schemas/JobStatus"},"result":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Result"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"destination_error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Destination Error"},"origin":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Origin"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Started At"},"completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Completed At"},"destination_written_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Destination Written At"}},"type":"object","required":["id","recipe_id","kind","status","result","error","destination_error","origin","created_at","updated_at","started_at","completed_at","destination_written_at"],"title":"JobResponse"},"JobStatus":{"type":"string","enum":["pending","running","completed","failed","canceled"],"title":"JobStatus"},"LanguageResponse":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"}},"type":"object","required":["id","name"],"title":"LanguageResponse"},"LanguageUpdate":{"properties":{"name":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"Name","description":"Name of the language"}},"type":"object","title":"LanguageUpdate"},"LinkedDeviceResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"client":{"type":"string","title":"Client"},"device_name":{"type":"string","title":"Device Name"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"last_used_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Used At"}},"type":"object","required":["id","client","device_name","created_at","last_used_at"],"title":"LinkedDeviceResponse"},"LlmCompletionJobRequest":{"properties":{"kind":{"type":"string","const":"llm.complete","title":"Kind"},"payload":{"$ref":"#/components/schemas/LlmCompletionPayload"},"origin":{"$ref":"#/components/schemas/TasksOrigin"},"destination":{"type":"null","title":"Destination"}},"additionalProperties":false,"type":"object","required":["kind","payload","origin"],"title":"LlmCompletionJobRequest"},"LlmCompletionPayload":{"properties":{"task_id":{"type":"string","format":"uuid","title":"Task Id"},"system_prompt":{"type":"string","title":"System Prompt"},"user_prompt":{"type":"string","title":"User Prompt"},"provider_name":{"type":"string","minLength":1,"title":"Provider Name"},"model_type":{"type":"string","minLength":1,"title":"Model Type"},"language":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Language"},"temperature":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Temperature"},"max_tokens":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Max Tokens"},"output_format":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Output Format"},"context_data":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Context Data"},"files":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Files"},"web_search":{"type":"boolean","title":"Web Search","default":false},"search_domain_filter":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search Domain Filter"},"search_recency_filter":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search Recency Filter"},"task_context":{"type":"string","title":"Task Context"}},"additionalProperties":false,"type":"object","required":["task_id","system_prompt","user_prompt","provider_name","model_type","task_context"],"title":"LlmCompletionPayload"},"LlmStreamJobRequest":{"properties":{"kind":{"type":"string","const":"llm.stream","title":"Kind"},"payload":{"$ref":"#/components/schemas/LlmCompletionPayload"},"origin":{"$ref":"#/components/schemas/TasksOrigin"},"destination":{"anyOf":[{"$ref":"#/components/schemas/ChatterMessageDestination"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["kind","payload","origin"],"title":"LlmStreamJobRequest"},"MarketplaceAccessLevel":{"type":"string","enum":["internal","external"],"title":"MarketplaceAccessLevel","description":"Enum defining the listing access levels.\n\nValues:\n- internal - can only be subscribed to internally by the publisher organization\n- external - external organization can subscribe"},"MarketplaceListingCreate":{"properties":{"task_group_id":{"type":"string","format":"uuid","title":"Task Group Id","description":"ID of the task group to list"},"task_group_version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Task Group Version","description":"Task group version to auto-provision for listing. Defaults to latest version. If specified version is not found, request will fail."},"visibility":{"$ref":"#/components/schemas/MarketplaceVisibility","description":"Visibility of the listing","default":"default"},"access_level":{"$ref":"#/components/schemas/MarketplaceAccessLevel","description":"Access level of the listing","default":"internal"}},"type":"object","required":["task_group_id"],"title":"MarketplaceListingCreate"},"MarketplaceListingDetailResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"task_group_id":{"type":"string","format":"uuid","title":"Task Group Id"},"name":{"type":"string","title":"Name"},"language":{"type":"string","title":"Language"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"latest_version":{"type":"integer","title":"Latest Version"},"latest_status":{"$ref":"#/components/schemas/TaskGroupVersionStatus"},"visibility":{"$ref":"#/components/schemas/MarketplaceVisibility"},"access_level":{"$ref":"#/components/schemas/MarketplaceAccessLevel"},"has_internal_subscriptions":{"type":"boolean","title":"Has Internal Subscriptions"},"has_external_subscriptions":{"type":"boolean","title":"Has External Subscriptions"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"created_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"updated_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Updated By"}},"type":"object","required":["id","task_group_id","name","language","description","latest_version","latest_status","visibility","access_level","has_internal_subscriptions","has_external_subscriptions","created_at","created_by","updated_at","updated_by"],"title":"MarketplaceListingDetailResponse"},"MarketplaceListingEnvironmentResponse":{"properties":{"environment_id":{"type":"string","format":"uuid","title":"Environment Id"},"environment_name":{"type":"string","title":"Environment Name"},"is_core":{"type":"boolean","title":"Is Core"},"task_groups":{"items":{"$ref":"#/components/schemas/MarketplaceListingTaskGroupResponse"},"type":"array","title":"Task Groups"}},"type":"object","required":["environment_id","environment_name","is_core","task_groups"],"title":"MarketplaceListingEnvironmentResponse"},"MarketplaceListingStatus":{"type":"string","enum":["all","listed","unlisted"],"title":"MarketplaceListingStatus","description":"Enum to filter marketplace listings and versions by status."},"MarketplaceListingTaskGroupResponse":{"properties":{"task_group_id":{"type":"string","format":"uuid","title":"Task Group Id"},"task_group_name":{"type":"string","title":"Task Group Name"},"task_group_language":{"type":"string","title":"Task Group Language"},"task_group_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Task Group Description"},"task_group_latest_version":{"type":"integer","title":"Task Group Latest Version"},"task_group_latest_status":{"$ref":"#/components/schemas/TaskGroupVersionStatus"},"listing_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Listing Id"},"listing_visibility":{"anyOf":[{"$ref":"#/components/schemas/MarketplaceVisibility"},{"type":"null"}]},"listing_access_level":{"anyOf":[{"$ref":"#/components/schemas/MarketplaceAccessLevel"},{"type":"null"}]},"has_internal_subscriptions":{"type":"boolean","title":"Has Internal Subscriptions"},"has_external_subscriptions":{"type":"boolean","title":"Has External Subscriptions"},"listing_created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Listing Created At"},"listing_created_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Listing Created By"},"listing_updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Listing Updated At"},"listing_updated_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Listing Updated By"}},"type":"object","required":["task_group_id","task_group_name","task_group_language","task_group_description","task_group_latest_version","task_group_latest_status","listing_id","listing_visibility","listing_access_level","has_internal_subscriptions","has_external_subscriptions","listing_created_at","listing_created_by","listing_updated_at","listing_updated_by"],"title":"MarketplaceListingTaskGroupResponse"},"MarketplaceListingTaskGroupVersionResponse":{"properties":{"task_group_id":{"type":"string","format":"uuid","title":"Task Group Id"},"task_group_version":{"type":"integer","title":"Task Group Version"},"task_group_version_status":{"$ref":"#/components/schemas/TaskGroupVersionStatus"},"task_group_version_name":{"type":"string","title":"Task Group Version Name"},"language":{"type":"string","title":"Language"},"listing_version_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Listing Version Id"},"access_level":{"anyOf":[{"$ref":"#/components/schemas/MarketplaceAccessLevel"},{"type":"null"}]},"tag":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tag"},"has_internal_activations":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Has Internal Activations"},"has_external_activations":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Has External Activations"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"created_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"},"updated_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Updated By"}},"type":"object","required":["task_group_id","task_group_version","task_group_version_status","task_group_version_name","language","listing_version_id","access_level","tag","has_internal_activations","has_external_activations","created_at","created_by","updated_at","updated_by"],"title":"MarketplaceListingTaskGroupVersionResponse"},"MarketplaceListingUpdate":{"properties":{"visibility":{"anyOf":[{"$ref":"#/components/schemas/MarketplaceVisibility"},{"type":"null"}],"description":"Visibility of the listing"},"access_level":{"anyOf":[{"$ref":"#/components/schemas/MarketplaceAccessLevel"},{"type":"null"}],"description":"Access level of the listing"}},"type":"object","title":"MarketplaceListingUpdate"},"MarketplaceListingVersionCreate":{"properties":{"task_group_version":{"type":"integer","minimum":1.0,"title":"Task Group Version","description":"Version number of the task group"},"access_level":{"$ref":"#/components/schemas/MarketplaceAccessLevel","description":"Access level of the listing version","default":"internal"},"tag":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tag","description":"(Optional) tag for the listing version"}},"type":"object","required":["task_group_version"],"title":"MarketplaceListingVersionCreate"},"MarketplaceListingVersionDetailResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"task_group_id":{"type":"string","format":"uuid","title":"Task Group Id"},"task_group_version":{"type":"integer","title":"Task Group Version"},"task_group_version_status":{"$ref":"#/components/schemas/TaskGroupVersionStatus"},"name":{"type":"string","title":"Name"},"language":{"type":"string","title":"Language"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"access_level":{"$ref":"#/components/schemas/MarketplaceAccessLevel"},"tag":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tag"},"has_internal_activations":{"type":"boolean","title":"Has Internal Activations"},"has_external_activations":{"type":"boolean","title":"Has External Activations"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"created_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"updated_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Updated By"}},"type":"object","required":["id","task_group_id","task_group_version","task_group_version_status","name","language","description","access_level","tag","has_internal_activations","has_external_activations","created_at","created_by","updated_at","updated_by"],"title":"MarketplaceListingVersionDetailResponse"},"MarketplaceListingVersionUpdate":{"properties":{"task_group_version":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Task Group Version","description":"Version number of the task group"},"access_level":{"anyOf":[{"$ref":"#/components/schemas/MarketplaceAccessLevel"},{"type":"null"}],"description":"Access level of the listing version"},"tag":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tag","description":"(Optional) tag for the listing version"}},"type":"object","title":"MarketplaceListingVersionUpdate"},"MarketplaceVisibility":{"type":"string","enum":["default","internal","workspace"],"title":"MarketplaceVisibility","description":"Enum defining the listing visibilities.\n\nValues:\n- default - general purpose\n- internal - internal functionalities\n- workspace - intended for use with workspace documents"},"McpActiveToolsUpdate":{"properties":{"qualified_names":{"items":{"type":"string"},"type":"array","title":"Qualified Names"}},"type":"object","title":"McpActiveToolsUpdate"},"McpAuthType":{"type":"string","enum":["none","bearer","header","user_oauth"],"title":"McpAuthType","description":"Enum identifying the authentication method for an external MCP server.\n\nThe first three are platform-wide: one shared secret per server, used for\nevery caller. ``USER_OAUTH`` is the per-user mode -- each user connects\ntheir own account and the server is called with that user's own access\ntoken -- so a personal data source is reachable without any caller ever\nborrowing another's credentials."},"McpAuthorizationRequestResponse":{"properties":{"authorization_url":{"type":"string","title":"Authorization Url"},"state":{"type":"string","format":"uuid","title":"State"}},"type":"object","required":["authorization_url","state"],"title":"McpAuthorizationRequestResponse"},"McpConnectionStatusResponse":{"properties":{"server_id":{"type":"string","format":"uuid","title":"Server Id"},"slug":{"type":"string","title":"Slug"},"display_name":{"type":"string","title":"Display Name"},"is_connected":{"type":"boolean","title":"Is Connected"},"scopes":{"items":{"type":"string"},"type":"array","title":"Scopes"},"connected_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Connected At"},"access_token_expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Access Token Expires At"}},"type":"object","required":["server_id","slug","display_name","is_connected","scopes","connected_at","access_token_expires_at"],"title":"McpConnectionStatusResponse"},"McpDiscoveryResponse":{"properties":{"server_id":{"type":"string","format":"uuid","title":"Server Id"},"imported":{"type":"integer","title":"Imported"},"tools":{"items":{"$ref":"#/components/schemas/McpPlatformToolResponse"},"type":"array","title":"Tools"},"skipped":{"items":{"type":"string"},"type":"array","title":"Skipped"}},"type":"object","required":["server_id","imported","tools","skipped"],"title":"McpDiscoveryResponse"},"McpPlatformToolResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"external_server_id":{"type":"string","format":"uuid","title":"External Server Id"},"qualified_name":{"type":"string","title":"Qualified Name"},"remote_name":{"type":"string","title":"Remote Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"input_schema":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Input Schema"},"is_active":{"type":"boolean","title":"Is Active"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"}},"type":"object","required":["id","external_server_id","qualified_name","remote_name","description","input_schema","is_active","created_at","updated_at"],"title":"McpPlatformToolResponse"},"McpServerCreate":{"properties":{"slug":{"type":"string","maxLength":64,"title":"Slug"},"display_name":{"type":"string","maxLength":200,"title":"Display Name"},"base_url":{"type":"string","maxLength":500,"title":"Base Url"},"auth_type":{"$ref":"#/components/schemas/McpAuthType","default":"none"},"auth_header_name":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Auth Header Name"},"secret":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Secret"},"oauth_authorization_endpoint":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Oauth Authorization Endpoint","description":"Where a user is sent to grant access to their account."},"oauth_token_endpoint":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Oauth Token Endpoint","description":"Where the provider issues and renews access tokens."},"oauth_client_id":{"anyOf":[{"type":"string","maxLength":256},{"type":"null"}],"title":"Oauth Client Id"},"oauth_scopes":{"items":{"type":"string","maxLength":200},"type":"array","title":"Oauth Scopes","description":"The access each user is asked to grant."}},"additionalProperties":false,"type":"object","required":["slug","display_name","base_url"],"title":"McpServerCreate","description":"Register a server.\n\n``secret`` is what the server is authenticated with: the shared credential\nfor bearer and header servers, and the OAuth client secret for a\n``user_oauth`` one. It is stored encrypted and never returned.\n\nThe ``oauth_*`` fields configure ``user_oauth`` and are rejected on any\nother authentication type."},"McpServerResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"slug":{"type":"string","title":"Slug"},"display_name":{"type":"string","title":"Display Name"},"base_url":{"type":"string","title":"Base Url"},"auth_type":{"$ref":"#/components/schemas/McpAuthType"},"auth_header_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auth Header Name"},"has_secret":{"type":"boolean","title":"Has Secret"},"oauth_authorization_endpoint":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Oauth Authorization Endpoint"},"oauth_token_endpoint":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Oauth Token Endpoint"},"oauth_client_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Oauth Client Id"},"oauth_scopes":{"items":{"type":"string"},"type":"array","title":"Oauth Scopes"},"is_active":{"type":"boolean","title":"Is Active"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","slug","display_name","base_url","auth_type","auth_header_name","has_secret","oauth_authorization_endpoint","oauth_token_endpoint","oauth_client_id","oauth_scopes","is_active","created_at","updated_at"],"title":"McpServerResponse"},"McpServerUpdate":{"properties":{"display_name":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Display Name"},"base_url":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Base Url"},"auth_type":{"anyOf":[{"$ref":"#/components/schemas/McpAuthType"},{"type":"null"}]},"auth_header_name":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Auth Header Name"},"secret":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Secret"},"oauth_authorization_endpoint":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Oauth Authorization Endpoint"},"oauth_token_endpoint":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Oauth Token Endpoint"},"oauth_client_id":{"anyOf":[{"type":"string","maxLength":256},{"type":"null"}],"title":"Oauth Client Id"},"oauth_scopes":{"anyOf":[{"items":{"type":"string","maxLength":200},"type":"array"},{"type":"null"}],"title":"Oauth Scopes"},"is_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"}},"additionalProperties":false,"type":"object","title":"McpServerUpdate","description":"Partial edit. Omitted fields keep their stored value.\n\n``slug`` cannot be changed: it prefixes the qualified name of every tool\nalready imported from this server."},"McpToolActivationUpdate":{"properties":{"is_active":{"type":"boolean","title":"Is Active"}},"type":"object","required":["is_active"],"title":"McpToolActivationUpdate"},"ModelCapability":{"type":"string","enum":["chat","vision","image_generation","text_to_speech","model3d_generation"],"title":"ModelCapability","description":"Enum defining governed model capabilities derived from modalities."},"ModelCategory":{"type":"string","enum":["chat","image","audio","model3d"],"title":"ModelCategory","description":"Enum defining high-level model registry categories."},"ModelParameterResolutionRequest":{"properties":{"provider":{"$ref":"#/components/schemas/ModelProvider"},"model_id":{"type":"string","maxLength":256,"minLength":1,"title":"Model Id"},"max_tokens":{"anyOf":[{"type":"integer","exclusiveMinimum":0.0},{"type":"null"}],"title":"Max Tokens"}},"type":"object","required":["provider","model_id"],"title":"ModelParameterResolutionRequest"},"ModelParameterResolutionResponse":{"properties":{"context_length":{"type":"integer","title":"Context Length"},"max_output_tokens":{"type":"integer","title":"Max Output Tokens"},"max_tokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Tokens"}},"type":"object","required":["context_length","max_output_tokens","max_tokens"],"title":"ModelParameterResolutionResponse"},"ModelParametersResponse":{"properties":{"context_length":{"type":"integer","title":"Context Length"},"max_output_tokens":{"type":"integer","title":"Max Output Tokens"}},"type":"object","required":["context_length","max_output_tokens"],"title":"ModelParametersResponse","description":"Backend-resolved token limits; null for a model that emits no text."},"ModelProvider":{"type":"string","enum":["openrouter","replicate","groq","perplexity","meshy"],"title":"ModelProvider","description":"Enum defining governed AI model providers."},"ModelRegistryEntryCreate":{"properties":{"model_id":{"type":"string","maxLength":256,"minLength":1,"title":"Model Id"},"provider":{"$ref":"#/components/schemas/ModelProvider"},"description":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Description"},"options":{"additionalProperties":true,"type":"object","title":"Options"},"is_enabled":{"type":"boolean","title":"Is Enabled","default":true},"is_default":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Default"}},"type":"object","required":["model_id","provider"],"title":"ModelRegistryEntryCreate"},"ModelRegistryEntryResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"organization_id":{"type":"string","format":"uuid","title":"Organization Id"},"provider":{"$ref":"#/components/schemas/ModelProvider"},"model_id":{"type":"string","title":"Model Id"},"display_name":{"type":"string","title":"Display Name"},"category":{"$ref":"#/components/schemas/ModelCategory"},"has_category_drift":{"type":"boolean","title":"Has Category Drift"},"capabilities":{"items":{"$ref":"#/components/schemas/ModelCapability"},"type":"array","title":"Capabilities"},"catalog_entry":{"$ref":"#/components/schemas/ProviderCatalogEntryResponse"},"default_parameters":{"anyOf":[{"$ref":"#/components/schemas/ModelParametersResponse"},{"type":"null"}]},"effective_parameters":{"anyOf":[{"$ref":"#/components/schemas/ModelParametersResponse"},{"type":"null"}]},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"options":{"additionalProperties":true,"type":"object","title":"Options"},"is_enabled":{"type":"boolean","title":"Is Enabled"},"is_default":{"type":"boolean","title":"Is Default"},"is_summarization_default":{"type":"boolean","title":"Is Summarization Default"},"is_svg_generation_default":{"type":"boolean","title":"Is Svg Generation Default"},"is_vectorize_default":{"type":"boolean","title":"Is Vectorize Default"},"created_by":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Created By"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_by":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Updated By"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","organization_id","provider","model_id","display_name","category","has_category_drift","capabilities","catalog_entry","default_parameters","effective_parameters","description","options","is_enabled","is_default","is_summarization_default","is_svg_generation_default","is_vectorize_default","created_by","created_at","updated_by","updated_at"],"title":"ModelRegistryEntryResponse"},"ModelRegistryEntryUpdate":{"properties":{"description":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Description"},"options":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Options"},"is_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Enabled"},"is_default":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Default"},"is_summarization_default":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Summarization Default"},"is_svg_generation_default":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Svg Generation Default"},"is_vectorize_default":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Vectorize Default"}},"type":"object","title":"ModelRegistryEntryUpdate"},"ModelRegistryEntryUpdateResponse":{"properties":{"entry":{"$ref":"#/components/schemas/ModelRegistryEntryResponse"}},"type":"object","required":["entry"],"title":"ModelRegistryEntryUpdateResponse"},"ModuleChatterMessageDestination":{"properties":{"type":{"type":"string","const":"module_chatter_message","title":"Type"},"task_id":{"type":"string","format":"uuid","title":"Task Id"},"module_id":{"type":"string","maxLength":100,"minLength":1,"title":"Module Id"},"data_id":{"type":"string","format":"uuid","title":"Data Id"},"assistant_message_id":{"type":"string","minLength":1,"title":"Assistant Message Id"}},"additionalProperties":false,"type":"object","required":["type","task_id","module_id","data_id","assistant_message_id"],"title":"ModuleChatterMessageDestination","description":"The assistant message of a chat row the module keeps in Module Data; the task stays the context."},"ModuleDataBulkDelete":{"properties":{"ids":{"items":{"type":"string","format":"uuid"},"type":"array","maxItems":500,"minItems":1,"title":"Ids","description":"List of module data IDs to delete"}},"type":"object","required":["ids"],"title":"ModuleDataBulkDelete","description":"Request schema for bulk deleting module data."},"ModuleDataCreate":{"properties":{"parent_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Parent Id","description":"(Optional) parent of the entity"},"schema_version":{"type":"integer","minimum":1.0,"title":"Schema Version","description":"Version of the payload shape, owned by the module","default":1},"data":{"additionalProperties":true,"type":"object","title":"Data","description":"Flexible JSON payload"},"meta_data":{"additionalProperties":true,"type":"object","title":"Meta Data","description":"Metadata payload"}},"type":"object","required":["data"],"title":"ModuleDataCreate","description":"Request schema for creating module data."},"ModuleDataFileCreateOrUpdate":{"properties":{"field":{"type":"string","maxLength":100,"minLength":1,"title":"Field","description":"Field of the entity the file is attached under, matched regardless of case; uploading to a field that holds a file replaces it"},"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File","description":"Content of the module data file"}},"type":"object","required":["field","file"],"title":"ModuleDataFileCreateOrUpdate","description":"Request schema for uploading a module data file."},"ModuleDataFileResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"mime":{"type":"string","title":"Mime"},"size":{"type":"integer","title":"Size"},"hash":{"type":"string","title":"Hash"},"created_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By"},"updated_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Updated By"}},"type":"object","required":["id","name","mime","size","hash","created_by","updated_by"],"title":"ModuleDataFileResponse","description":"Response schema for module data file."},"ModuleDataOrderBy":{"type":"string","enum":["created_at","updated_at"],"title":"ModuleDataOrderBy","description":"Enum defining the fields a module data page may be ordered by.\n\nThe allow-list is deliberate: the cursor encodes the ordering field's value, and each\nfield here has an index of its own to walk. A field outside this set would have\nneither, and would let a caller sort the whole collection by anything it named."},"ModuleDataResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"organization_id":{"type":"string","format":"uuid","title":"Organization Id"},"module_id":{"type":"string","title":"Module Id"},"entity_type":{"type":"string","title":"Entity Type"},"parent_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Parent Id"},"schema_version":{"type":"integer","title":"Schema Version"},"data":{"additionalProperties":true,"type":"object","title":"Data"},"files":{"additionalProperties":{"$ref":"#/components/schemas/ModuleDataFileResponse"},"type":"object","title":"Files"},"created_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Updated By"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"meta_data":{"additionalProperties":true,"type":"object","title":"Meta Data"}},"type":"object","required":["id","organization_id","module_id","entity_type","parent_id","schema_version","data","files","created_by","created_at","updated_by","updated_at","meta_data"],"title":"ModuleDataResponse","description":"Response schema for module data."},"ModuleDataUpdate":{"properties":{"parent_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Parent Id","description":"(Optional) parent of the entity; send null to detach it from its parent"},"schema_version":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Schema Version","description":"(Optional) version of the payload shape, owned by the module"},"data":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Data","description":"(Optional) flexible JSON payload, replacing the stored one entirely"},"meta_data":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Meta Data","description":"(Optional) metadata payload"}},"type":"object","title":"ModuleDataUpdate","description":"Request schema for updating module data."},"ModuleFeedbackClientContextRequest":{"properties":{"module_revision":{"anyOf":[{"type":"string","pattern":"^[0-9a-f]{40}$"},{"type":"null"}],"title":"Module Revision"},"host_version":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Host Version"},"module_version":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Module Version"},"sdk_version":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Sdk Version"},"browser":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"title":"Browser"},"language":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Language"},"time_zone":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Time Zone"},"events":{"items":{"$ref":"#/components/schemas/ModuleFeedbackDiagnosticEventRequest"},"type":"array","maxItems":100,"title":"Events"},"events_truncated":{"type":"boolean","title":"Events Truncated","default":false}},"additionalProperties":false,"type":"object","title":"ModuleFeedbackClientContextRequest"},"ModuleFeedbackContextResponse":{"properties":{"revision":{"type":"string","title":"Revision","description":"Version of the conversation shown; send it back when submitting the feedback"},"consent_version":{"type":"string","title":"Consent Version","description":"Version of the sharing consent shown; send it back when submitting the feedback"},"sharing_scope":{"$ref":"#/components/schemas/FeedbackSharingScopeResponse"},"limits":{"$ref":"#/components/schemas/FeedbackLimitsResponse"},"eligible_files":{"items":{"$ref":"#/components/schemas/FeedbackEligibleFileResponse"},"type":"array","title":"Eligible Files","description":"Files the author may choose to share"},"label":{"type":"string","title":"Label"},"has_content":{"type":"boolean","title":"Has Content"},"diagnostics":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Diagnostics"}},"type":"object","required":["revision","consent_version","sharing_scope","limits","eligible_files","label","has_content"],"title":"ModuleFeedbackContextResponse"},"ModuleFeedbackDiagnosticEventRequest":{"properties":{"source":{"type":"string","enum":["job","tool","notification"],"title":"Source"},"operation":{"type":"string","maxLength":128,"title":"Operation"},"status":{"type":"string","enum":["started","submitted","queued","running","completed","failed","cancelled"],"title":"Status"},"at":{"type":"string","maxLength":40,"title":"At"},"operationId":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Operationid"},"jobId":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Jobid"},"model":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Model"},"error":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Error"}},"additionalProperties":false,"type":"object","required":["source","operation","status","at"],"title":"ModuleFeedbackDiagnosticEventRequest"},"ModuleFeedbackSnapshot":{"properties":{"schema_version":{"type":"integer","const":3,"title":"Schema Version"},"captured_at":{"type":"string","title":"Captured At"},"target":{"$ref":"#/components/schemas/ModuleSnapshotTarget"},"content":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Content"},"files":{"items":{"type":"string"},"type":"array","title":"Files"},"diagnostics":{"additionalProperties":true,"type":"object","title":"Diagnostics"}},"type":"object","required":["schema_version","captured_at","target","content","files"],"title":"ModuleFeedbackSnapshot"},"ModuleFeedbackSummaryResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"organization_id":{"type":"string","format":"uuid","title":"Organization Id"},"author_user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Author User Id"},"task_id":{"type":"string","format":"uuid","title":"Task Id"},"module":{"type":"string","title":"Module"},"target_type":{"$ref":"#/components/schemas/FeedbackTargetType"},"target_id":{"type":"string","format":"uuid","title":"Target Id"},"rating":{"anyOf":[{"$ref":"#/components/schemas/FeedbackRating"},{"type":"null"}]},"category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"},"comment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Comment"},"consent_version":{"type":"string","title":"Consent Version"},"consented_at":{"type":"string","format":"date-time","title":"Consented At"},"review_status":{"$ref":"#/components/schemas/FeedbackReviewStatus"},"submission_kind":{"type":"string","title":"Submission Kind","default":"rating"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"submitted_at":{"type":"string","format":"date-time","title":"Submitted At"},"reviewed_by_user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Reviewed By User Id"},"reviewed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Reviewed At"},"target_revision":{"type":"string","title":"Target Revision"}},"type":"object","required":["id","organization_id","author_user_id","task_id","module","target_type","target_id","rating","category","comment","consent_version","consented_at","review_status","created_at","updated_at","submitted_at","reviewed_by_user_id","reviewed_at","target_revision"],"title":"ModuleFeedbackSummaryResponse"},"ModuleFeedbackTargetRequest":{"properties":{"module":{"type":"string","enum":["plantyn","image-plus"],"title":"Module"},"kind":{"type":"string","enum":["module","part","image"],"title":"Kind"},"task_id":{"type":"string","format":"uuid","title":"Task Id"},"item_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Item Id"},"image_id":{"anyOf":[{"type":"string","maxLength":128,"minLength":1},{"type":"null"}],"title":"Image Id"},"image_field":{"type":"string","maxLength":100,"minLength":1,"title":"Image Field","default":"src"},"include_diagnostics":{"type":"boolean","title":"Include Diagnostics","default":false},"client_context":{"anyOf":[{"$ref":"#/components/schemas/ModuleFeedbackClientContextRequest"},{"type":"null"}]},"feedback_kind":{"type":"string","enum":["rating","issue","suggestion"],"title":"Feedback Kind","default":"rating"}},"additionalProperties":false,"type":"object","required":["module","kind","task_id"],"title":"ModuleFeedbackTargetRequest"},"ModuleSnapshotTarget":{"properties":{"module":{"type":"string","title":"Module"},"target_type":{"type":"string","title":"Target Type"},"task_id":{"type":"string","title":"Task Id"},"item_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Item Id"},"image_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image Id"},"revision":{"type":"string","title":"Revision"},"label":{"type":"string","title":"Label"}},"type":"object","required":["module","target_type","task_id","item_id","image_id","revision","label"],"title":"ModuleSnapshotTarget"},"NotificationCountResponse":{"properties":{"count":{"type":"integer","title":"Count","description":"Number of notifications."}},"type":"object","required":["count"],"title":"NotificationCountResponse"},"NotificationResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id","description":"ID of the notification."},"organization_id":{"type":"string","format":"uuid","title":"Organization Id","description":"Organization the activity happened in."},"actor_user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Actor User Id","description":"User who did the activity, if any."},"source":{"type":"string","title":"Source","description":"Area that produced the notification, such as 'workspace_v2'."},"type":{"type":"string","title":"Type","description":"Kind of activity, such as 'comment.mentioned'."},"content":{"additionalProperties":true,"type":"object","title":"Content","description":"Values to render the notification text from."},"target_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Target Type","description":"Kind of thing the notification is about."},"target_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Target Id","description":"The thing the notification is about."},"target":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Target","description":"Further ids to link to the right place."},"created_at":{"type":"string","format":"date-time","title":"Created At","description":"When the activity happened."},"read_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Read At","description":"When you read the notification; null while unread."}},"type":"object","required":["id","organization_id","actor_user_id","source","type","content","target_type","target_id","target","created_at","read_at"],"title":"NotificationResponse"},"OrganizationBrandingResponse":{"properties":{"name":{"type":"string","title":"Name"},"meta_data":{"additionalProperties":true,"type":"object","title":"Meta Data"}},"type":"object","required":["name","meta_data"],"title":"OrganizationBrandingResponse","description":"Schema for the branding every member of an organization sees in the top bar.\n\nAttributes:\n    name (str): Name of the organization.\n    meta_data (dict): Only the branding entries of the organization's metadata."},"OrganizationCreate":{"properties":{"name":{"type":"string","minLength":1,"title":"Name","description":"Name of the organization"},"vat_number":{"type":"string","minLength":1,"title":"Vat Number","description":"VAT number of the organization"},"address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Address","description":"Address of the organization"},"country":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Country","description":"Country of the organization"},"location":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Location","description":"Location of the organization"},"meta_data":{"additionalProperties":true,"type":"object","title":"Meta Data","description":"Meta data of the organization"}},"type":"object","required":["name","vat_number"],"title":"OrganizationCreate","description":"Schema for creating a new organization.\n\nAttributes:\n    name (str): Name of the organization.\n    vat_number (str): VAT number of the organization.\n    address (str | None): Address of the organization.\n    country (str | None): Country of the organization.\n    location (str | None): Location of the organization.\n    meta_data (dict): Metadata for the organization."},"OrganizationListResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"is_owner":{"type":"boolean","title":"Is Owner"},"is_active":{"type":"boolean","title":"Is Active"}},"type":"object","required":["id","name","is_owner","is_active"],"title":"OrganizationListResponse","description":"Schema for organization list response data.\n\nAttributes:\n    id (UUID): ID of the organization.\n    name (str): Name of the organization.\n    is_owner (bool): Flag if the organization is the owner.\n    is_active (bool): Flag if the organization is active."},"OrganizationResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"is_active":{"type":"boolean","title":"Is Active"},"meta_data":{"additionalProperties":true,"type":"object","title":"Meta Data"},"last_updated":{"type":"string","format":"date-time","title":"Last Updated"},"creation_date":{"type":"string","format":"date-time","title":"Creation Date"},"name":{"type":"string","title":"Name"},"is_owner":{"type":"boolean","title":"Is Owner"},"vat_number":{"type":"string","title":"Vat Number"},"address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Address"},"country":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Country"},"location":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Location"}},"type":"object","required":["id","is_active","meta_data","last_updated","creation_date","name","is_owner","vat_number","address","country","location"],"title":"OrganizationResponse","description":"Schema for organization response data.\n\nAttributes:\n    id (UUID): ID of the organization.\n    is_active (bool): Flag if the organization is active.\n    meta_data (dict): Metadata for the organization.\n    last_updated (datetime): Timestamp of the last update.\n    creation_date (datetime): Timestamp of creation.\n    name (str): Name of the organization.\n    is_owner (bool): Flag if the organization is the owner.\n    vat_number (str): VAT number of the organization.\n    address (str | None): Address of the organization.\n    country (str | None): Country of the organization.\n    location (str | None): Location of the organization."},"OrganizationSubscriptionCreate":{"properties":{"subscriber_organization_id":{"type":"string","format":"uuid","title":"Subscriber Organization Id","description":"Organization subscribing to the marketplace listing"},"listing_id":{"type":"string","format":"uuid","title":"Listing Id","description":"Marketplace listing to subscribe to"},"start_at":{"type":"string","format":"date-time","title":"Start At","description":"Start time of the subscription"},"end_at":{"type":"string","format":"date-time","title":"End At","description":"End time of the subscription"}},"type":"object","required":["subscriber_organization_id","listing_id","start_at","end_at"],"title":"OrganizationSubscriptionCreate"},"OrganizationSubscriptionDetailResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"publisher_organization_name":{"type":"string","title":"Publisher Organization Name"},"status":{"$ref":"#/components/schemas/OrganizationSubscriptionStatus"},"start_at":{"type":"string","format":"date-time","title":"Start At"},"end_at":{"type":"string","format":"date-time","title":"End At"},"total_environment_count":{"type":"integer","title":"Total Environment Count"},"active_environment_count":{"type":"integer","title":"Active Environment Count"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"language":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Language"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"}},"type":"object","required":["id","publisher_organization_name","status","start_at","end_at","total_environment_count","active_environment_count","name","language","description"],"title":"OrganizationSubscriptionDetailResponse"},"OrganizationSubscriptionPublishedResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"subscriber_organization_name":{"type":"string","title":"Subscriber Organization Name"},"environment_id":{"type":"string","format":"uuid","title":"Environment Id"},"environment_name":{"type":"string","title":"Environment Name"},"listing_id":{"type":"string","format":"uuid","title":"Listing Id"},"listing_latest_version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Listing Latest Version"},"listing_tag":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Listing Tag"},"status":{"$ref":"#/components/schemas/OrganizationSubscriptionStatus"},"start_at":{"type":"string","format":"date-time","title":"Start At"},"end_at":{"type":"string","format":"date-time","title":"End At"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"language":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Language"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"}},"type":"object","required":["id","subscriber_organization_name","environment_id","environment_name","listing_id","listing_latest_version","listing_tag","status","start_at","end_at","name","language","description"],"title":"OrganizationSubscriptionPublishedResponse"},"OrganizationSubscriptionSort":{"type":"string","enum":["status","subscriber"],"title":"OrganizationSubscriptionSort","description":"Enum to determine sorting of organization subscriptions."},"OrganizationSubscriptionStatsResponse":{"properties":{"total_subscriptions_count":{"type":"integer","title":"Total Subscriptions Count"},"active_subscriptions_count":{"type":"integer","title":"Active Subscriptions Count"},"expiring_subscriptions_within_30_days_count":{"type":"integer","title":"Expiring Subscriptions Within 30 Days Count"}},"type":"object","required":["total_subscriptions_count","active_subscriptions_count","expiring_subscriptions_within_30_days_count"],"title":"OrganizationSubscriptionStatsResponse"},"OrganizationSubscriptionStatus":{"type":"string","enum":["active","inactive"],"title":"OrganizationSubscriptionStatus","description":"Enum defining organization subscription statuses."},"OrganizationSubscriptionStatusFilter":{"type":"string","enum":["all","active","inactive"],"title":"OrganizationSubscriptionStatusFilter","description":"Enum to filter organization subscriptions by activation status."},"OrganizationSubscriptionSubscribedResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"publisher_organization_name":{"type":"string","title":"Publisher Organization Name"},"status":{"$ref":"#/components/schemas/OrganizationSubscriptionStatus"},"start_at":{"type":"string","format":"date-time","title":"Start At"},"end_at":{"type":"string","format":"date-time","title":"End At"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"language":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Language"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"}},"type":"object","required":["id","publisher_organization_name","status","start_at","end_at","name","language","description"],"title":"OrganizationSubscriptionSubscribedResponse"},"OrganizationSubscriptionSubscribedVersionResponse":{"properties":{"subscription_id":{"type":"string","format":"uuid","title":"Subscription Id"},"version":{"type":"integer","title":"Version"},"tag":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tag"}},"type":"object","required":["subscription_id","version","tag"],"title":"OrganizationSubscriptionSubscribedVersionResponse"},"OrganizationSubscriptionUpdate":{"properties":{"status":{"anyOf":[{"$ref":"#/components/schemas/OrganizationSubscriptionStatus"},{"type":"null"}],"description":"Status of the subscription"},"start_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Start At","description":"Start time of the subscription"},"end_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"End At","description":"End time of the subscription"}},"type":"object","title":"OrganizationSubscriptionUpdate"},"OrganizationUpdate":{"properties":{"name":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"Name","description":"Name of the organization"},"vat_number":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"Vat Number","description":"VAT number of the organization"},"address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Address","description":"Address of the organization"},"country":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Country","description":"Country of the organization"},"location":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Location","description":"Location of the organization"},"meta_data":{"additionalProperties":true,"type":"object","title":"Meta Data","description":"Meta data of the organization"}},"type":"object","title":"OrganizationUpdate","description":"Schema for updating an organization.\n\nAttributes:\n    name (str | None): Name of the organization.\n    vat_number (str | None): VAT number of the organization.\n    address (str | None): Address of the organization.\n    country (str | None): Country of the organization.\n    location (str | None): Location of the organization.\n    meta_data (dict): Metadata for the organization."},"OrganizationUserDetailResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"organization_id":{"type":"string","format":"uuid","title":"Organization Id"},"name":{"type":"string","title":"Name"},"email":{"type":"string","title":"Email"},"is_active":{"type":"boolean","title":"Is Active"},"full_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Full Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"meta_data":{"additionalProperties":true,"type":"object","title":"Meta Data"},"environments":{"items":{"$ref":"#/components/schemas/UserEnvironmentDetailResponse"},"type":"array","title":"Environments"},"sso":{"items":{"$ref":"#/components/schemas/UserSsoLinkResponse"},"type":"array","title":"Sso","description":"The user's current single sign-on access, one entry per provider."}},"type":"object","required":["id","organization_id","name","email","is_active","meta_data","environments"],"title":"OrganizationUserDetailResponse"},"OrganizationUserResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"organization_id":{"type":"string","format":"uuid","title":"Organization Id"},"name":{"type":"string","title":"Name"},"email":{"type":"string","title":"Email"},"is_active":{"type":"boolean","title":"Is Active"},"full_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Full Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"environments":{"items":{"$ref":"#/components/schemas/app__schemas__user_schemas__UserEnvironmentResponse"},"type":"array","title":"Environments"}},"type":"object","required":["id","organization_id","name","email","is_active","environments"],"title":"OrganizationUserResponse"},"PaginatedResponse_AssignedTaskVersionResponse_":{"properties":{"top":{"type":"integer","title":"Top"},"skip":{"type":"integer","title":"Skip"},"count":{"type":"integer","title":"Count"},"total":{"type":"integer","title":"Total"},"items":{"items":{"$ref":"#/components/schemas/AssignedTaskVersionResponse"},"type":"array","title":"Items"}},"type":"object","required":["top","skip","count","total","items"],"title":"PaginatedResponse[AssignedTaskVersionResponse]"},"PaginatedResponse_AssignedToneVersionResponse_":{"properties":{"top":{"type":"integer","title":"Top"},"skip":{"type":"integer","title":"Skip"},"count":{"type":"integer","title":"Count"},"total":{"type":"integer","title":"Total"},"items":{"items":{"$ref":"#/components/schemas/AssignedToneVersionResponse"},"type":"array","title":"Items"}},"type":"object","required":["top","skip","count","total","items"],"title":"PaginatedResponse[AssignedToneVersionResponse]"},"PaginatedResponse_AvailableTaskResponse_":{"properties":{"top":{"type":"integer","title":"Top"},"skip":{"type":"integer","title":"Skip"},"count":{"type":"integer","title":"Count"},"total":{"type":"integer","title":"Total"},"items":{"items":{"$ref":"#/components/schemas/AvailableTaskResponse"},"type":"array","title":"Items"}},"type":"object","required":["top","skip","count","total","items"],"title":"PaginatedResponse[AvailableTaskResponse]"},"PaginatedResponse_AvailableToneResponse_":{"properties":{"top":{"type":"integer","title":"Top"},"skip":{"type":"integer","title":"Skip"},"count":{"type":"integer","title":"Count"},"total":{"type":"integer","title":"Total"},"items":{"items":{"$ref":"#/components/schemas/AvailableToneResponse"},"type":"array","title":"Items"}},"type":"object","required":["top","skip","count","total","items"],"title":"PaginatedResponse[AvailableToneResponse]"},"PaginatedResponse_EnvironmentUserResponse_":{"properties":{"top":{"type":"integer","title":"Top"},"skip":{"type":"integer","title":"Skip"},"count":{"type":"integer","title":"Count"},"total":{"type":"integer","title":"Total"},"items":{"items":{"$ref":"#/components/schemas/EnvironmentUserResponse"},"type":"array","title":"Items"}},"type":"object","required":["top","skip","count","total","items"],"title":"PaginatedResponse[EnvironmentUserResponse]"},"PaginatedResponse_LanguageResponse_":{"properties":{"top":{"type":"integer","title":"Top"},"skip":{"type":"integer","title":"Skip"},"count":{"type":"integer","title":"Count"},"total":{"type":"integer","title":"Total"},"items":{"items":{"$ref":"#/components/schemas/LanguageResponse"},"type":"array","title":"Items"}},"type":"object","required":["top","skip","count","total","items"],"title":"PaginatedResponse[LanguageResponse]"},"PaginatedResponse_OrganizationListResponse_":{"properties":{"top":{"type":"integer","title":"Top"},"skip":{"type":"integer","title":"Skip"},"count":{"type":"integer","title":"Count"},"total":{"type":"integer","title":"Total"},"items":{"items":{"$ref":"#/components/schemas/OrganizationListResponse"},"type":"array","title":"Items"}},"type":"object","required":["top","skip","count","total","items"],"title":"PaginatedResponse[OrganizationListResponse]"},"PaginatedResponse_OrganizationUserResponse_":{"properties":{"top":{"type":"integer","title":"Top"},"skip":{"type":"integer","title":"Skip"},"count":{"type":"integer","title":"Count"},"total":{"type":"integer","title":"Total"},"items":{"items":{"$ref":"#/components/schemas/OrganizationUserResponse"},"type":"array","title":"Items"}},"type":"object","required":["top","skip","count","total","items"],"title":"PaginatedResponse[OrganizationUserResponse]"},"PaginatedResponse_RoleResponse_":{"properties":{"top":{"type":"integer","title":"Top"},"skip":{"type":"integer","title":"Skip"},"count":{"type":"integer","title":"Count"},"total":{"type":"integer","title":"Total"},"items":{"items":{"$ref":"#/components/schemas/RoleResponse"},"type":"array","title":"Items"}},"type":"object","required":["top","skip","count","total","items"],"title":"PaginatedResponse[RoleResponse]"},"PaginatedResponse_TaskGroupListResponse_":{"properties":{"top":{"type":"integer","title":"Top"},"skip":{"type":"integer","title":"Skip"},"count":{"type":"integer","title":"Count"},"total":{"type":"integer","title":"Total"},"items":{"items":{"$ref":"#/components/schemas/TaskGroupListResponse"},"type":"array","title":"Items"}},"type":"object","required":["top","skip","count","total","items"],"title":"PaginatedResponse[TaskGroupListResponse]"},"PaginatedResponse_TaskGroupVersionListResponse_":{"properties":{"top":{"type":"integer","title":"Top"},"skip":{"type":"integer","title":"Skip"},"count":{"type":"integer","title":"Count"},"total":{"type":"integer","title":"Total"},"items":{"items":{"$ref":"#/components/schemas/TaskGroupVersionListResponse"},"type":"array","title":"Items"}},"type":"object","required":["top","skip","count","total","items"],"title":"PaginatedResponse[TaskGroupVersionListResponse]"},"PaginatedResponse_TaskGroupVersionTranslationListResponse_":{"properties":{"top":{"type":"integer","title":"Top"},"skip":{"type":"integer","title":"Skip"},"count":{"type":"integer","title":"Count"},"total":{"type":"integer","title":"Total"},"items":{"items":{"$ref":"#/components/schemas/TaskGroupVersionTranslationListResponse"},"type":"array","title":"Items"}},"type":"object","required":["top","skip","count","total","items"],"title":"PaginatedResponse[TaskGroupVersionTranslationListResponse]"},"PaginatedResponse_TaskListResponse_":{"properties":{"top":{"type":"integer","title":"Top"},"skip":{"type":"integer","title":"Skip"},"count":{"type":"integer","title":"Count"},"total":{"type":"integer","title":"Total"},"items":{"items":{"$ref":"#/components/schemas/TaskListResponse"},"type":"array","title":"Items"}},"type":"object","required":["top","skip","count","total","items"],"title":"PaginatedResponse[TaskListResponse]"},"PaginatedResponse_TaskVersionListResponse_":{"properties":{"top":{"type":"integer","title":"Top"},"skip":{"type":"integer","title":"Skip"},"count":{"type":"integer","title":"Count"},"total":{"type":"integer","title":"Total"},"items":{"items":{"$ref":"#/components/schemas/TaskVersionListResponse"},"type":"array","title":"Items"}},"type":"object","required":["top","skip","count","total","items"],"title":"PaginatedResponse[TaskVersionListResponse]"},"PaginatedResponse_TaskVersionTranslationListResponse_":{"properties":{"top":{"type":"integer","title":"Top"},"skip":{"type":"integer","title":"Skip"},"count":{"type":"integer","title":"Count"},"total":{"type":"integer","title":"Total"},"items":{"items":{"$ref":"#/components/schemas/TaskVersionTranslationListResponse"},"type":"array","title":"Items"}},"type":"object","required":["top","skip","count","total","items"],"title":"PaginatedResponse[TaskVersionTranslationListResponse]"},"PaginatedResponse_ToneListResponse_":{"properties":{"top":{"type":"integer","title":"Top"},"skip":{"type":"integer","title":"Skip"},"count":{"type":"integer","title":"Count"},"total":{"type":"integer","title":"Total"},"items":{"items":{"$ref":"#/components/schemas/ToneListResponse"},"type":"array","title":"Items"}},"type":"object","required":["top","skip","count","total","items"],"title":"PaginatedResponse[ToneListResponse]"},"PaginatedResponse_ToneVersionListResponse_":{"properties":{"top":{"type":"integer","title":"Top"},"skip":{"type":"integer","title":"Skip"},"count":{"type":"integer","title":"Count"},"total":{"type":"integer","title":"Total"},"items":{"items":{"$ref":"#/components/schemas/ToneVersionListResponse"},"type":"array","title":"Items"}},"type":"object","required":["top","skip","count","total","items"],"title":"PaginatedResponse[ToneVersionListResponse]"},"PaginatedResponse_ToneVersionTranslationListResponse_":{"properties":{"top":{"type":"integer","title":"Top"},"skip":{"type":"integer","title":"Skip"},"count":{"type":"integer","title":"Count"},"total":{"type":"integer","title":"Total"},"items":{"items":{"$ref":"#/components/schemas/ToneVersionTranslationListResponse"},"type":"array","title":"Items"}},"type":"object","required":["top","skip","count","total","items"],"title":"PaginatedResponse[ToneVersionTranslationListResponse]"},"PaginatedResponse_UserEnvironmentResponse_":{"properties":{"top":{"type":"integer","title":"Top"},"skip":{"type":"integer","title":"Skip"},"count":{"type":"integer","title":"Count"},"total":{"type":"integer","title":"Total"},"items":{"items":{"$ref":"#/components/schemas/app__schemas__environment_schemas__UserEnvironmentResponse"},"type":"array","title":"Items"}},"type":"object","required":["top","skip","count","total","items"],"title":"PaginatedResponse[UserEnvironmentResponse]"},"PaginatedResponse_UserRoleResponse_":{"properties":{"top":{"type":"integer","title":"Top"},"skip":{"type":"integer","title":"Skip"},"count":{"type":"integer","title":"Count"},"total":{"type":"integer","title":"Total"},"items":{"items":{"$ref":"#/components/schemas/UserRoleResponse"},"type":"array","title":"Items"}},"type":"object","required":["top","skip","count","total","items"],"title":"PaginatedResponse[UserRoleResponse]"},"PaginatedResult_ActivationTaskCategoryResponse_":{"properties":{"top":{"type":"integer","title":"Top"},"skip":{"type":"integer","title":"Skip"},"count":{"type":"integer","title":"Count"},"total":{"type":"integer","title":"Total"},"items":{"items":{"$ref":"#/components/schemas/ActivationTaskCategoryResponse"},"type":"array","title":"Items"}},"type":"object","required":["top","skip","count","total","items"],"title":"PaginatedResult[ActivationTaskCategoryResponse]"},"PaginatedResult_EnvironmentActivationEnvironmentResponse_":{"properties":{"top":{"type":"integer","title":"Top"},"skip":{"type":"integer","title":"Skip"},"count":{"type":"integer","title":"Count"},"total":{"type":"integer","title":"Total"},"items":{"items":{"$ref":"#/components/schemas/EnvironmentActivationEnvironmentResponse"},"type":"array","title":"Items"}},"type":"object","required":["top","skip","count","total","items"],"title":"PaginatedResult[EnvironmentActivationEnvironmentResponse]"},"PaginatedResult_MarketplaceListingEnvironmentResponse_":{"properties":{"top":{"type":"integer","title":"Top"},"skip":{"type":"integer","title":"Skip"},"count":{"type":"integer","title":"Count"},"total":{"type":"integer","title":"Total"},"items":{"items":{"$ref":"#/components/schemas/MarketplaceListingEnvironmentResponse"},"type":"array","title":"Items"}},"type":"object","required":["top","skip","count","total","items"],"title":"PaginatedResult[MarketplaceListingEnvironmentResponse]"},"PaginatedResult_MarketplaceListingTaskGroupVersionResponse_":{"properties":{"top":{"type":"integer","title":"Top"},"skip":{"type":"integer","title":"Skip"},"count":{"type":"integer","title":"Count"},"total":{"type":"integer","title":"Total"},"items":{"items":{"$ref":"#/components/schemas/MarketplaceListingTaskGroupVersionResponse"},"type":"array","title":"Items"}},"type":"object","required":["top","skip","count","total","items"],"title":"PaginatedResult[MarketplaceListingTaskGroupVersionResponse]"},"PaginatedResult_McpPlatformToolResponse_":{"properties":{"top":{"type":"integer","title":"Top"},"skip":{"type":"integer","title":"Skip"},"count":{"type":"integer","title":"Count"},"total":{"type":"integer","title":"Total"},"items":{"items":{"$ref":"#/components/schemas/McpPlatformToolResponse"},"type":"array","title":"Items"}},"type":"object","required":["top","skip","count","total","items"],"title":"PaginatedResult[McpPlatformToolResponse]"},"PaginatedResult_McpServerResponse_":{"properties":{"top":{"type":"integer","title":"Top"},"skip":{"type":"integer","title":"Skip"},"count":{"type":"integer","title":"Count"},"total":{"type":"integer","title":"Total"},"items":{"items":{"$ref":"#/components/schemas/McpServerResponse"},"type":"array","title":"Items"}},"type":"object","required":["top","skip","count","total","items"],"title":"PaginatedResult[McpServerResponse]"},"PaginatedResult_ModelRegistryEntryResponse_":{"properties":{"top":{"type":"integer","title":"Top"},"skip":{"type":"integer","title":"Skip"},"count":{"type":"integer","title":"Count"},"total":{"type":"integer","title":"Total"},"items":{"items":{"$ref":"#/components/schemas/ModelRegistryEntryResponse"},"type":"array","title":"Items"}},"type":"object","required":["top","skip","count","total","items"],"title":"PaginatedResult[ModelRegistryEntryResponse]"},"PaginatedResult_OrganizationEnvironmentResponse_":{"properties":{"top":{"type":"integer","title":"Top"},"skip":{"type":"integer","title":"Skip"},"count":{"type":"integer","title":"Count"},"total":{"type":"integer","title":"Total"},"items":{"items":{"$ref":"#/components/schemas/app__api__schemas__environments__environment_schemas__OrganizationEnvironmentResponse"},"type":"array","title":"Items"}},"type":"object","required":["top","skip","count","total","items"],"title":"PaginatedResult[OrganizationEnvironmentResponse]"},"PaginatedResult_OrganizationSubscriptionPublishedResponse_":{"properties":{"top":{"type":"integer","title":"Top"},"skip":{"type":"integer","title":"Skip"},"count":{"type":"integer","title":"Count"},"total":{"type":"integer","title":"Total"},"items":{"items":{"$ref":"#/components/schemas/OrganizationSubscriptionPublishedResponse"},"type":"array","title":"Items"}},"type":"object","required":["top","skip","count","total","items"],"title":"PaginatedResult[OrganizationSubscriptionPublishedResponse]"},"PaginatedResult_OrganizationSubscriptionSubscribedResponse_":{"properties":{"top":{"type":"integer","title":"Top"},"skip":{"type":"integer","title":"Skip"},"count":{"type":"integer","title":"Count"},"total":{"type":"integer","title":"Total"},"items":{"items":{"$ref":"#/components/schemas/OrganizationSubscriptionSubscribedResponse"},"type":"array","title":"Items"}},"type":"object","required":["top","skip","count","total","items"],"title":"PaginatedResult[OrganizationSubscriptionSubscribedResponse]"},"PaginatedResult_OrganizationSubscriptionSubscribedVersionResponse_":{"properties":{"top":{"type":"integer","title":"Top"},"skip":{"type":"integer","title":"Skip"},"count":{"type":"integer","title":"Count"},"total":{"type":"integer","title":"Total"},"items":{"items":{"$ref":"#/components/schemas/OrganizationSubscriptionSubscribedVersionResponse"},"type":"array","title":"Items"}},"type":"object","required":["top","skip","count","total","items"],"title":"PaginatedResult[OrganizationSubscriptionSubscribedVersionResponse]"},"PaginatedResult_ProviderCatalogEntryResponse_":{"properties":{"top":{"type":"integer","title":"Top"},"skip":{"type":"integer","title":"Skip"},"count":{"type":"integer","title":"Count"},"total":{"type":"integer","title":"Total"},"items":{"items":{"$ref":"#/components/schemas/ProviderCatalogEntryResponse"},"type":"array","title":"Items"}},"type":"object","required":["top","skip","count","total","items"],"title":"PaginatedResult[ProviderCatalogEntryResponse]"},"PaginatedResult_RozStatsHistogramItem_":{"properties":{"top":{"type":"integer","title":"Top"},"skip":{"type":"integer","title":"Skip"},"count":{"type":"integer","title":"Count"},"total":{"type":"integer","title":"Total"},"items":{"items":{"$ref":"#/components/schemas/RozStatsHistogramItem"},"type":"array","title":"Items"}},"type":"object","required":["top","skip","count","total","items"],"title":"PaginatedResult[RozStatsHistogramItem]"},"PaginatedResult_RozStatsTimeSeriesItem_":{"properties":{"top":{"type":"integer","title":"Top"},"skip":{"type":"integer","title":"Skip"},"count":{"type":"integer","title":"Count"},"total":{"type":"integer","title":"Total"},"items":{"items":{"$ref":"#/components/schemas/RozStatsTimeSeriesItem"},"type":"array","title":"Items"}},"type":"object","required":["top","skip","count","total","items"],"title":"PaginatedResult[RozStatsTimeSeriesItem]"},"PaginatedResult_TaskDataResponse_":{"properties":{"top":{"type":"integer","title":"Top"},"skip":{"type":"integer","title":"Skip"},"count":{"type":"integer","title":"Count"},"total":{"type":"integer","title":"Total"},"items":{"items":{"$ref":"#/components/schemas/TaskDataResponse"},"type":"array","title":"Items"}},"type":"object","required":["top","skip","count","total","items"],"title":"PaginatedResult[TaskDataResponse]"},"PaginatedResult_Union_ProviderStatsResponse__ProviderStatsExpandedResponse__":{"properties":{"top":{"type":"integer","title":"Top"},"skip":{"type":"integer","title":"Skip"},"count":{"type":"integer","title":"Count"},"total":{"type":"integer","title":"Total"},"items":{"items":{"anyOf":[{"$ref":"#/components/schemas/ProviderStatsResponse"},{"$ref":"#/components/schemas/ProviderStatsExpandedResponse"}]},"type":"array","title":"Items"}},"type":"object","required":["top","skip","count","total","items"],"title":"PaginatedResult[Union[ProviderStatsResponse, ProviderStatsExpandedResponse]]"},"PaginatedResult_Union_TaskStatsListResponse__TaskStatsListExpandedResponse__":{"properties":{"top":{"type":"integer","title":"Top"},"skip":{"type":"integer","title":"Skip"},"count":{"type":"integer","title":"Count"},"total":{"type":"integer","title":"Total"},"items":{"items":{"anyOf":[{"$ref":"#/components/schemas/TaskStatsListResponse"},{"$ref":"#/components/schemas/TaskStatsListExpandedResponse"}]},"type":"array","title":"Items"}},"type":"object","required":["top","skip","count","total","items"],"title":"PaginatedResult[Union[TaskStatsListResponse, TaskStatsListExpandedResponse]]"},"PaginatedResult_Union_UsageLogResponse__UsageLogExpandedResponse__":{"properties":{"top":{"type":"integer","title":"Top"},"skip":{"type":"integer","title":"Skip"},"count":{"type":"integer","title":"Count"},"total":{"type":"integer","title":"Total"},"items":{"items":{"anyOf":[{"$ref":"#/components/schemas/UsageLogResponse"},{"$ref":"#/components/schemas/UsageLogExpandedResponse"}]},"type":"array","title":"Items"}},"type":"object","required":["top","skip","count","total","items"],"title":"PaginatedResult[Union[UsageLogResponse, UsageLogExpandedResponse]]"},"PaginatedResult_Union_UserStatsListResponse__UserStatsListExpandedResponse__":{"properties":{"top":{"type":"integer","title":"Top"},"skip":{"type":"integer","title":"Skip"},"count":{"type":"integer","title":"Count"},"total":{"type":"integer","title":"Total"},"items":{"items":{"anyOf":[{"$ref":"#/components/schemas/UserStatsListResponse"},{"$ref":"#/components/schemas/UserStatsListExpandedResponse"}]},"type":"array","title":"Items"}},"type":"object","required":["top","skip","count","total","items"],"title":"PaginatedResult[Union[UserStatsListResponse, UserStatsListExpandedResponse]]"},"PaginatedResult_UnsubscribedOrganizationResponse_":{"properties":{"top":{"type":"integer","title":"Top"},"skip":{"type":"integer","title":"Skip"},"count":{"type":"integer","title":"Count"},"total":{"type":"integer","title":"Total"},"items":{"items":{"$ref":"#/components/schemas/UnsubscribedOrganizationResponse"},"type":"array","title":"Items"}},"type":"object","required":["top","skip","count","total","items"],"title":"PaginatedResult[UnsubscribedOrganizationResponse]"},"PaginatedResult_WorkspaceEnvironmentTreeResponse_":{"properties":{"top":{"type":"integer","title":"Top"},"skip":{"type":"integer","title":"Skip"},"count":{"type":"integer","title":"Count"},"total":{"type":"integer","title":"Total"},"items":{"items":{"$ref":"#/components/schemas/WorkspaceEnvironmentTreeResponse"},"type":"array","title":"Items"}},"type":"object","required":["top","skip","count","total","items"],"title":"PaginatedResult[WorkspaceEnvironmentTreeResponse]"},"ProvenanceFile":{"properties":{"file_id":{"type":"string","title":"File Id"},"delivery":{"type":"string","title":"Delivery"},"extracted_chars":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Extracted Chars"},"sent_chars":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sent Chars"},"truncated":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Truncated"}},"type":"object","required":["file_id","delivery","extracted_chars","sent_chars","truncated"],"title":"ProvenanceFile","description":"A file a message carried to the model: how it went, and how much of its text."},"ProvenanceMessage":{"properties":{"role":{"type":"string","title":"Role"},"row_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Row Id"},"files":{"items":{"$ref":"#/components/schemas/ProvenanceFile"},"type":"array","title":"Files"},"document_version_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Document Version Id"}},"type":"object","required":["role","row_id","files","document_version_id"],"title":"ProvenanceMessage","description":"One message of the window sent; ``row_id`` is 'None' for text the module composed."},"ProviderCatalogEntryResponse":{"properties":{"provider":{"$ref":"#/components/schemas/ModelProvider"},"owner":{"type":"string","title":"Owner"},"model_id":{"type":"string","title":"Model Id"},"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name"},"input_modalities":{"items":{"type":"string"},"type":"array","title":"Input Modalities"},"output_modalities":{"items":{"type":"string"},"type":"array","title":"Output Modalities"},"context_length":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Context Length"},"max_output_tokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Output Tokens"},"supported_parameters":{"items":{"type":"string"},"type":"array","title":"Supported Parameters"},"pricing":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Pricing"},"raw":{"additionalProperties":true,"type":"object","title":"Raw"},"category":{"anyOf":[{"$ref":"#/components/schemas/ModelCategory"},{"type":"null"}]},"capabilities":{"items":{"$ref":"#/components/schemas/ModelCapability"},"type":"array","title":"Capabilities"},"is_available":{"type":"boolean","title":"Is Available"},"fetched_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Fetched At"},"first_seen_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"First Seen At"},"default_parameters":{"anyOf":[{"$ref":"#/components/schemas/ModelParametersResponse"},{"type":"null"}]},"effective_parameters":{"anyOf":[{"$ref":"#/components/schemas/ModelParametersResponse"},{"type":"null"}]}},"type":"object","required":["provider","owner","model_id","display_name","input_modalities","output_modalities","context_length","max_output_tokens","supported_parameters","pricing","raw","category","capabilities","is_available","fetched_at","first_seen_at","default_parameters","effective_parameters"],"title":"ProviderCatalogEntryResponse"},"ProviderModelStatsExpandedResponse":{"properties":{"provider":{"type":"string","title":"Provider","description":"Provider name"},"provider_model":{"type":"string","title":"Provider Model","description":"Provider model name"},"usage_count":{"type":"integer","title":"Usage Count","description":"Number of times the provider model was used"},"usage_percentage":{"type":"number","title":"Usage Percentage","description":"Percentage of total usage"},"task_count":{"type":"integer","title":"Task Count","description":"Number of tasks completed at least once using the provider model"},"task_percentage":{"type":"number","title":"Task Percentage","description":"Percentage of tasks completed at least once using the provider model"},"total_cost":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Total Cost","description":"Total cost in USD, or null when any included request has an unknown cost"},"average_cost":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Average Cost","description":"Average cost in USD, or null when any included request has an unknown cost"}},"type":"object","required":["provider","provider_model","usage_count","usage_percentage","task_count","task_percentage","total_cost","average_cost"],"title":"ProviderModelStatsExpandedResponse","description":"Schema for expanded provider model stats response."},"ProviderModelStatsResponse":{"properties":{"provider":{"type":"string","title":"Provider","description":"Provider name"},"provider_model":{"type":"string","title":"Provider Model","description":"Provider model name"},"usage_count":{"type":"integer","title":"Usage Count","description":"Number of times the provider model was used"},"usage_percentage":{"type":"number","title":"Usage Percentage","description":"Percentage of total usage"},"task_count":{"type":"integer","title":"Task Count","description":"Number of tasks completed at least once using the provider model"},"task_percentage":{"type":"number","title":"Task Percentage","description":"Percentage of tasks completed at least once using the provider model"}},"type":"object","required":["provider","provider_model","usage_count","usage_percentage","task_count","task_percentage"],"title":"ProviderModelStatsResponse","description":"Schema for provider model stats response."},"ProviderStatsExpandedResponse":{"properties":{"provider":{"type":"string","title":"Provider","description":"Provider name"},"provider_model":{"type":"string","title":"Provider Model","description":"Provider model name"},"usage_count":{"type":"integer","title":"Usage Count","description":"Number of times the provider model was used"},"usage_percentage":{"type":"number","title":"Usage Percentage","description":"Percentage of total usage"},"total_cost":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Total Cost","description":"Total cost in USD, or null when any included request has an unknown cost"},"average_cost":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Average Cost","description":"Average cost in USD, or null when any included request has an unknown cost"}},"type":"object","required":["provider","provider_model","usage_count","usage_percentage","total_cost","average_cost"],"title":"ProviderStatsExpandedResponse","description":"Schema for expanded provider stats response."},"ProviderStatsResponse":{"properties":{"provider":{"type":"string","title":"Provider","description":"Provider name"},"provider_model":{"type":"string","title":"Provider Model","description":"Provider model name"},"usage_count":{"type":"integer","title":"Usage Count","description":"Number of times the provider model was used"},"usage_percentage":{"type":"number","title":"Usage Percentage","description":"Percentage of total usage"}},"type":"object","required":["provider","provider_model","usage_count","usage_percentage"],"title":"ProviderStatsResponse","description":"Schema for provider stats response."},"RecipeDefinitionResponse":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description"},"modes":{"items":{"type":"string"},"type":"array","title":"Modes"},"cost_class":{"type":"string","title":"Cost Class"}},"type":"object","required":["id","name","description","modes","cost_class"],"title":"RecipeDefinitionResponse"},"RecipeJobRequest":{"properties":{"recipe_id":{"type":"string","maxLength":128,"minLength":1,"title":"Recipe Id"},"payload":{"additionalProperties":true,"type":"object","title":"Payload"},"origin":{"anyOf":[{"oneOf":[{"$ref":"#/components/schemas/TasksOrigin"},{"$ref":"#/components/schemas/WorkspacesOrigin"}],"discriminator":{"propertyName":"route","mapping":{"tasks":"#/components/schemas/TasksOrigin","workspaces":"#/components/schemas/WorkspacesOrigin"}}},{"type":"null"}],"title":"Origin"},"destination":{"anyOf":[{"oneOf":[{"$ref":"#/components/schemas/WorkspaceDocumentDestination"},{"$ref":"#/components/schemas/TaskDataFileDestination"},{"$ref":"#/components/schemas/DocxSessionDestination"},{"$ref":"#/components/schemas/ChatterMessageDestination"},{"$ref":"#/components/schemas/ModuleChatterMessageDestination"},{"$ref":"#/components/schemas/WorkspaceV2RoomDestination"}],"discriminator":{"propertyName":"type","mapping":{"chatter_message":"#/components/schemas/ChatterMessageDestination","docx_session":"#/components/schemas/DocxSessionDestination","module_chatter_message":"#/components/schemas/ModuleChatterMessageDestination","task_data_file":"#/components/schemas/TaskDataFileDestination","workspace_document":"#/components/schemas/WorkspaceDocumentDestination","workspace_v2_room":"#/components/schemas/WorkspaceV2RoomDestination"}}},{"type":"null"}],"title":"Destination"},"idempotency_key":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9._:-]{1,128}$"},{"type":"null"}],"title":"Idempotency Key","description":"Names this piece of work; submitting again under the same key returns the job it started"}},"additionalProperties":false,"type":"object","required":["recipe_id","payload"],"title":"RecipeJobRequest"},"RecipeRequest":{"properties":{"payload":{"additionalProperties":true,"type":"object","title":"Payload"}},"additionalProperties":false,"type":"object","required":["payload"],"title":"RecipeRequest"},"RecipeResponse":{"properties":{"recipe_id":{"type":"string","title":"Recipe Id"},"result":{"additionalProperties":true,"type":"object","title":"Result"}},"type":"object","required":["recipe_id","result"],"title":"RecipeResponse"},"ResolvedModelResponse":{"properties":{"provider":{"$ref":"#/components/schemas/ModelProvider"},"model_id":{"type":"string","title":"Model Id"},"display_name":{"type":"string","title":"Display Name"},"category":{"$ref":"#/components/schemas/ModelCategory"},"capabilities":{"items":{"$ref":"#/components/schemas/ModelCapability"},"type":"array","title":"Capabilities"},"supports_input_images":{"type":"boolean","title":"Supports Input Images"},"parameters":{"anyOf":[{"$ref":"#/components/schemas/ModelParametersResponse"},{"type":"null"}]},"is_inherited":{"type":"boolean","title":"Is Inherited"},"is_automatic":{"type":"boolean","title":"Is Automatic"},"media_options":{"additionalProperties":true,"type":"object","title":"Media Options"}},"type":"object","required":["provider","model_id","display_name","category","capabilities","supports_input_images","parameters","is_inherited","is_automatic"],"title":"ResolvedModelResponse","description":"A role's model and public media capabilities as requests use them.\nOwner registration ids, private options and authors stay with the owner."},"ResponseCitation":{"properties":{"url":{"type":"string","title":"Url"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"}},"type":"object","required":["url"],"title":"ResponseCitation"},"ResponseDetailsExpandedResponse":{"properties":{"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"},"model_source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model Source"},"requested_model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Requested Model"},"call_count":{"type":"integer","title":"Call Count"},"duration_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Duration Ms"},"citations":{"items":{"$ref":"#/components/schemas/ResponseCitation"},"type":"array","title":"Citations"},"documents":{"items":{"$ref":"#/components/schemas/ResponseDocumentSource"},"type":"array","title":"Documents","default":[]},"document_use":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Document Use"},"document_notices":{"items":{"type":"string"},"type":"array","title":"Document Notices","default":[]},"unverified_citations":{"items":{"type":"string"},"type":"array","title":"Unverified Citations","default":[]},"steps":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Steps"},"tools_offered":{"items":{"type":"string"},"type":"array","title":"Tools Offered"},"tools":{"items":{"$ref":"#/components/schemas/ResponseToolActivity"},"type":"array","title":"Tools"},"usage":{"$ref":"#/components/schemas/ResponseUsage"},"llm_cost":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Llm Cost"}},"type":"object","required":["model","model_source","requested_model","call_count","duration_ms","citations","tools_offered","tools","usage","llm_cost"],"title":"ResponseDetailsExpandedResponse","description":"Adds tool activity, token counts and the LLM cost of this reply's own model calls; only an Owner receives it."},"ResponseDetailsResponse":{"properties":{"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"},"model_source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model Source"},"requested_model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Requested Model"},"call_count":{"type":"integer","title":"Call Count"},"duration_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Duration Ms"},"citations":{"items":{"$ref":"#/components/schemas/ResponseCitation"},"type":"array","title":"Citations"},"documents":{"items":{"$ref":"#/components/schemas/ResponseDocumentSource"},"type":"array","title":"Documents","default":[]},"document_use":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Document Use"},"document_notices":{"items":{"type":"string"},"type":"array","title":"Document Notices","default":[]},"unverified_citations":{"items":{"type":"string"},"type":"array","title":"Unverified Citations","default":[]},"steps":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Steps"}},"type":"object","required":["model","model_source","requested_model","call_count","duration_ms","citations"],"title":"ResponseDetailsResponse","description":"What any reader of a reply may see; no prompt, credential, tool activity, token count or cost."},"ResponseDocumentSource":{"properties":{"document_id":{"type":"string","title":"Document Id"},"filename":{"type":"string","title":"Filename"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"origin":{"type":"string","title":"Origin"},"artifact_version_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Artifact Version Id"},"version_number":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Version Number"},"file_hash":{"type":"string","title":"File Hash"},"unit":{"type":"string","title":"Unit"},"total_units":{"type":"integer","title":"Total Units"},"read_units":{"type":"integer","title":"Read Units"},"read":{"type":"string","title":"Read"},"is_partial":{"type":"boolean","title":"Is Partial"},"continue_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Continue Cursor"}},"type":"object","required":["document_id","filename","origin","file_hash","unit","total_units","read_units","read","is_partial"],"title":"ResponseDocumentSource","description":"A conversation file this reply read, with the exact version and units delivered to the model."},"ResponseToolActivity":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"duration_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Duration Ms"},"count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Count"},"outcome":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Outcome"},"round":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Round"},"intent":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Intent"},"requested":{"additionalProperties":{"anyOf":[{"type":"string"},{"type":"integer"},{"type":"number"},{"type":"boolean"}]},"type":"object","title":"Requested","default":{}},"returned":{"additionalProperties":true,"type":"object","title":"Returned","default":{}}},"type":"object","title":"ResponseToolActivity","description":"One tool call: its timing, status, bounded arguments and the coverage it returned, never its content."},"ResponseUsage":{"properties":{"prompt_tokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Prompt Tokens"},"completion_tokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Completion Tokens"},"total_tokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total Tokens"},"cached_tokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Cached Tokens"},"reasoning_tokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Reasoning Tokens"}},"type":"object","title":"ResponseUsage"},"RoleResponse":{"properties":{"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"}},"type":"object","required":["name","description"],"title":"RoleResponse"},"RozStatsHistogramItem":{"properties":{"roz_bin_start":{"type":"integer","title":"Roz Bin Start"},"task_count":{"type":"integer","title":"Task Count"}},"type":"object","required":["roz_bin_start","task_count"],"title":"RozStatsHistogramItem","description":"Schema for ROZ histogram item."},"RozStatsSummaryResponse":{"properties":{"total_roz":{"type":"integer","title":"Total Roz"},"average_roz":{"type":"number","title":"Average Roz"},"task_count":{"type":"integer","title":"Task Count"}},"type":"object","required":["total_roz","average_roz","task_count"],"title":"RozStatsSummaryResponse","description":"Schema for ROZ summary."},"RozStatsTimeSeriesItem":{"properties":{"period_start":{"type":"string","format":"date-time","title":"Period Start"},"average_roz":{"type":"number","title":"Average Roz"}},"type":"object","required":["period_start","average_roz"],"title":"RozStatsTimeSeriesItem","description":"Schema for ROZ time series item."},"SnapshotArtifacts":{"properties":{"images":{"items":{"$ref":"#/components/schemas/SnapshotImageRef"},"type":"array","title":"Images"},"documents":{"items":{"additionalProperties":{"$ref":"#/components/schemas/SnapshotScalar"},"type":"object"},"type":"array","title":"Documents"}},"type":"object","required":["images","documents"],"title":"SnapshotArtifacts"},"SnapshotContext":{"properties":{"memory":{"$ref":"#/components/schemas/ContextItem"},"history":{"$ref":"#/components/schemas/ContextHistory"},"module_instructions":{"$ref":"#/components/schemas/ContextItem"},"system_prompt":{"$ref":"#/components/schemas/ContextItem"},"current_message":{"$ref":"#/components/schemas/ContextItem"},"images":{"$ref":"#/components/schemas/ContextItem"},"provenance":{"$ref":"#/components/schemas/ContextProvenance"},"unavailable":{"items":{"$ref":"#/components/schemas/UnavailableContext"},"type":"array","title":"Unavailable"}},"type":"object","required":["memory","history","module_instructions","system_prompt","current_message","images","unavailable"],"title":"SnapshotContext"},"SnapshotConversation":{"properties":{"note":{"type":"string","title":"Note"},"ordering":{"type":"string","title":"Ordering"},"messages":{"items":{"$ref":"#/components/schemas/SnapshotMessage"},"type":"array","title":"Messages"}},"type":"object","required":["note","ordering","messages"],"title":"SnapshotConversation"},"SnapshotDiagnostics":{"properties":{"omitted":{"items":{"type":"string"},"type":"array","title":"Omitted"},"not_shared_file_count":{"type":"integer","title":"Not Shared File Count"},"embedded_data_removed":{"type":"integer","title":"Embedded Data Removed"}},"type":"object","required":["omitted","not_shared_file_count","embedded_data_removed"],"title":"SnapshotDiagnostics"},"SnapshotExecution":{"properties":{"status":{"type":"string","enum":["recorded","not_recorded"],"title":"Status"},"reason":{"anyOf":[{"type":"string","enum":["no_response_ref","no_execution_record"]},{"type":"null"}],"title":"Reason"},"attempt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Attempt"},"record_status":{"anyOf":[{"type":"string","enum":["completed","interrupted"]},{"type":"null"}],"title":"Record Status"},"answer_matches_saved_reply":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Answer Matches Saved Reply"},"note":{"type":"string","title":"Note"},"calls":{"items":{"$ref":"#/components/schemas/ExecutionCall"},"type":"array","title":"Calls"},"tool_calls":{"items":{"$ref":"#/components/schemas/ExecutionToolCall"},"type":"array","title":"Tool Calls"},"file_refs":{"items":{"$ref":"#/components/schemas/ExecutionFileRef"},"type":"array","title":"File Refs"},"redactions":{"$ref":"#/components/schemas/ExecutionRedactions"},"record_truncated":{"type":"boolean","title":"Record Truncated"}},"type":"object","required":["status","reason","attempt","record_status","answer_matches_saved_reply","note","calls","tool_calls","file_refs","redactions","record_truncated"],"title":"SnapshotExecution","description":"The filtered record of what the reply's generation attempt sent to and received from the model.\n\nRecorded during generation, copied here only when the author shares feedback; never an exact replay."},"SnapshotFile":{"properties":{"file_id":{"type":"string","title":"File Id"},"source":{"type":"string","title":"Source"},"message_row_id":{"type":"string","title":"Message Row Id"},"filename":{"type":"string","title":"Filename"},"mime_type":{"type":"string","title":"Mime Type"},"file_size_bytes":{"type":"integer","title":"File Size Bytes"},"content_hash":{"type":"string","title":"Content Hash"}},"type":"object","required":["file_id","source","message_row_id","filename","mime_type","file_size_bytes","content_hash"],"title":"SnapshotFile"},"SnapshotGeneration":{"properties":{"status":{"type":"string","enum":["recorded","not_recorded"],"title":"Status"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"job_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Job Id"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"},"model_source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model Source"},"requested_model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Requested Model"},"call_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Call Count"},"duration_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Duration Ms"},"tools_offered":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Tools Offered"},"tools":{"anyOf":[{"items":{"additionalProperties":{"$ref":"#/components/schemas/SnapshotScalar"},"type":"object"},"type":"array"},{"type":"null"}],"title":"Tools"},"citations":{"anyOf":[{"items":{"additionalProperties":{"$ref":"#/components/schemas/SnapshotScalar"},"type":"object"},"type":"array"},{"type":"null"}],"title":"Citations"},"settings":{"$ref":"#/components/schemas/GenerationSettings"},"withheld":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Withheld"}},"type":"object","required":["status","reason","job_id","model","model_source","requested_model","call_count","duration_ms","tools_offered","tools","citations","settings","withheld"],"title":"SnapshotGeneration"},"SnapshotImageRef":{"properties":{"version_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Version Id"},"group_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Group Id"},"version_number":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Version Number"}},"type":"object","required":["version_id","group_id","version_number"],"title":"SnapshotImageRef"},"SnapshotMessage":{"properties":{"row_id":{"type":"string","title":"Row Id"},"message_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message Id"},"role":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Role"},"content":{"type":"string","title":"Content"},"timestamp":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Timestamp"},"created_at":{"type":"string","title":"Created At"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"},"model_source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model Source"},"response_ref":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Response Ref"},"steps":{"items":{"$ref":"#/components/schemas/SnapshotStep"},"type":"array","title":"Steps"},"widgets":{"items":{"$ref":"#/components/schemas/SnapshotWidget"},"type":"array","title":"Widgets"},"shared_file_ids":{"items":{"type":"string"},"type":"array","title":"Shared File Ids"}},"type":"object","required":["row_id","message_id","role","content","timestamp","created_at","model","model_source","response_ref","steps","widgets","shared_file_ids"],"title":"SnapshotMessage"},"SnapshotScalar":{"anyOf":[{"type":"string"},{"type":"integer"},{"type":"number"},{"type":"boolean"},{"type":"null"}]},"SnapshotStep":{"properties":{"id":{"type":"string","title":"Id"},"phase":{"type":"string","title":"Phase"},"status":{"type":"string","title":"Status"},"tool":{"type":"string","title":"Tool"},"subject":{"type":"string","title":"Subject"},"intent":{"type":"string","title":"Intent"},"outcome":{"type":"string","title":"Outcome"},"revision":{"type":"integer","title":"Revision"},"round":{"type":"integer","title":"Round"},"count":{"type":"integer","title":"Count"},"duration_ms":{"type":"integer","title":"Duration Ms"}},"type":"object","title":"SnapshotStep"},"SnapshotTarget":{"properties":{"module":{"type":"string","title":"Module"},"target_type":{"type":"string","title":"Target Type"},"task_id":{"type":"string","title":"Task Id"},"conversation_id":{"type":"string","title":"Conversation Id"},"message_row_id":{"type":"string","title":"Message Row Id"},"message_id":{"type":"string","title":"Message Id"},"revision":{"type":"string","title":"Revision"}},"type":"object","required":["module","target_type","task_id","conversation_id","message_row_id","message_id","revision"],"title":"SnapshotTarget"},"SnapshotWidget":{"properties":{"id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id"},"tool":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tool"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"images":{"items":{"$ref":"#/components/schemas/SnapshotImageRef"},"type":"array","title":"Images"}},"type":"object","required":["id","tool","status","images"],"title":"SnapshotWidget"},"SortDirection":{"type":"string","enum":["asc","desc"],"title":"SortDirection","description":"Enum defining the direction a collection is ordered in."},"SsoIdentityBulkRevokeItemResponse":{"properties":{"user_id":{"type":"string","format":"uuid","title":"User Id"},"status":{"$ref":"#/components/schemas/SsoIdentityRevokeStatus"}},"type":"object","required":["user_id","status"],"title":"SsoIdentityBulkRevokeItemResponse"},"SsoIdentityBulkRevokeRequest":{"properties":{"user_ids":{"items":{"type":"string","format":"uuid"},"type":"array","maxItems":100,"minItems":1,"title":"User Ids","description":"Target user IDs whose SSO identities should be revoked."}},"type":"object","required":["user_ids"],"title":"SsoIdentityBulkRevokeRequest"},"SsoIdentityBulkRevokeResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/SsoIdentityBulkRevokeItemResponse"},"type":"array","title":"Items"},"counts_by_status":{"additionalProperties":{"type":"integer"},"propertyNames":{"$ref":"#/components/schemas/SsoIdentityRevokeStatus"},"type":"object","title":"Counts By Status"}},"type":"object","required":["items","counts_by_status"],"title":"SsoIdentityBulkRevokeResponse"},"SsoIdentityRevokeStatus":{"type":"string","enum":["revoked","invite_revoked","skipped_not_linked"],"title":"SsoIdentityRevokeStatus","description":"Per-user outcome of a bulk SSO identity revocation."},"SsoInviteBulkCreateItemResponse":{"properties":{"user_id":{"type":"string","format":"uuid","title":"User Id"},"status":{"$ref":"#/components/schemas/SsoInviteCreateStatus"}},"type":"object","required":["user_id","status"],"title":"SsoInviteBulkCreateItemResponse"},"SsoInviteBulkCreateRequest":{"properties":{"user_ids":{"items":{"type":"string","format":"uuid"},"type":"array","maxItems":100,"minItems":1,"title":"User Ids","description":"Target user IDs. Duplicates are deduplicated server-side."}},"type":"object","required":["user_ids"],"title":"SsoInviteBulkCreateRequest"},"SsoInviteBulkCreateResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/SsoInviteBulkCreateItemResponse"},"type":"array","title":"Items"},"counts_by_status":{"additionalProperties":{"type":"integer"},"propertyNames":{"$ref":"#/components/schemas/SsoInviteCreateStatus"},"type":"object","title":"Counts By Status"}},"type":"object","required":["items","counts_by_status"],"title":"SsoInviteBulkCreateResponse"},"SsoInviteCreateStatus":{"type":"string","enum":["invited","skipped_user_not_found","skipped_user_inactive","skipped_already_linked","skipped_invite_pending","email_send_failed"],"title":"SsoInviteCreateStatus","description":"Per-user outcome of a bulk SSO invite creation.\n\nDistinguishes between admin intent (INVITED, EMAIL_SEND_FAILED) and the\nvarious reasons a user might be skipped — so the admin can act on each."},"SsoLinkStatus":{"type":"string","enum":["linked","invited"],"title":"SsoLinkStatus","description":"State of a user's single sign-on access, as reported to administrators.\n\nLINKED means an identity row exists and the user can sign in with the\nprovider today; INVITED means an invitation is outstanding but has not been\naccepted yet."},"SsoLoginUrlResponse":{"properties":{"authorization_url":{"type":"string","title":"Authorization Url"},"state":{"type":"string","title":"State"}},"type":"object","required":["authorization_url","state"],"title":"SsoLoginUrlResponse"},"SsoProvider":{"type":"string","enum":["microsoft","google"],"title":"SsoProvider","description":"Enum identifying a Single Sign-On identity provider."},"TaskCreate":{"properties":{"name":{"type":"string","minLength":1,"title":"Name","description":"Name of the task version translation"},"category_id":{"type":"string","format":"uuid","title":"Category Id","description":"Category of the task"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description","description":"Description of the task version translation"},"prompt":{"type":"string","title":"Prompt","description":"Prompt of the task version","default":""},"form":{"type":"string","title":"Form","description":"Form of the task version translation","default":""},"meta_data":{"additionalProperties":true,"type":"object","title":"Meta Data","description":"Meta data of the task version"}},"type":"object","required":["name","category_id"],"title":"TaskCreate"},"TaskCreateResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"language":{"type":"string","title":"Language"},"category":{"type":"string","title":"Category"},"latest_version":{"type":"integer","title":"Latest Version"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"},"prompt":{"type":"string","title":"Prompt"},"form":{"type":"string","title":"Form"},"meta_data":{"additionalProperties":true,"type":"object","title":"Meta Data"}},"type":"object","required":["id","name","language","category","latest_version","prompt","form","meta_data"],"title":"TaskCreateResponse"},"TaskDataBulkDelete":{"properties":{"data_ids":{"items":{"type":"string","format":"uuid"},"type":"array","minItems":1,"title":"Data Ids","description":"List of task data IDs to delete"}},"type":"object","required":["data_ids"],"title":"TaskDataBulkDelete","description":"Request schema for bulk deleting task data."},"TaskDataCreate":{"properties":{"entity_type":{"type":"string","maxLength":100,"minLength":1,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$","title":"Entity Type","description":"Entity type classification (e.g., 'conversation', 'chat-message')"},"parent_data_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Parent Data Id","description":"(Optional) parent of the data"},"name":{"anyOf":[{"type":"string","maxLength":255,"minLength":1},{"type":"null"}],"title":"Name","description":"(Optional) name of the data"},"data":{"additionalProperties":true,"type":"object","title":"Data","description":"Flexible JSON payload"},"meta_data":{"additionalProperties":true,"type":"object","title":"Meta Data","description":"Metadata payload"}},"type":"object","required":["entity_type","data"],"title":"TaskDataCreate","description":"Request schema for creating task data."},"TaskDataFileCreate":{"properties":{"entity_type":{"type":"string","maxLength":100,"minLength":1,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$","title":"Entity Type","description":"Entity type classification (e.g., 'attachment', 'document')"},"name":{"anyOf":[{"type":"string","maxLength":255,"minLength":1},{"type":"null"}],"title":"Name","description":"(Optional) name of the task data file"},"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File","description":"Content of the task data file"}},"type":"object","required":["entity_type","file"],"title":"TaskDataFileCreate","description":"Request schema to create a file for a task data entity."},"TaskDataFileDestination":{"properties":{"type":{"type":"string","const":"task_data_file","title":"Type"},"task_id":{"type":"string","format":"uuid","title":"Task Id"},"data_id":{"type":"string","format":"uuid","title":"Data Id"},"entity_type":{"type":"string","minLength":1,"title":"Entity Type"},"filename":{"type":"string","minLength":1,"title":"Filename"}},"additionalProperties":false,"type":"object","required":["type","task_id","data_id","entity_type","filename"],"title":"TaskDataFileDestination"},"TaskDataFileResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"data_id":{"type":"string","format":"uuid","title":"Data Id"},"entity_type":{"type":"string","title":"Entity Type"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"file_hash":{"type":"string","title":"File Hash"},"filename":{"type":"string","title":"Filename"},"file_size_bytes":{"type":"integer","title":"File Size Bytes"},"mime_type":{"type":"string","title":"Mime Type"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","data_id","entity_type","name","file_hash","filename","file_size_bytes","mime_type","created_at","updated_at"],"title":"TaskDataFileResponse","description":"Response schema for task data file."},"TaskDataFileUpdate":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":255,"minLength":1},{"type":"null"}],"title":"Name","description":"(Optional) name of the task data file"},"file":{"anyOf":[{"type":"string","contentMediaType":"application/octet-stream"},{"type":"null"}],"title":"File","description":"(Optional) new content for the task data file"}},"type":"object","title":"TaskDataFileUpdate","description":"Request schema to update a file for a task data entity."},"TaskDataResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"task_id":{"type":"string","format":"uuid","title":"Task Id"},"parent_data_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Parent Data Id"},"entity_type":{"type":"string","title":"Entity Type"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"data":{"additionalProperties":true,"type":"object","title":"Data"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"meta_data":{"additionalProperties":true,"type":"object","title":"Meta Data"},"files":{"items":{"$ref":"#/components/schemas/TaskDataFileResponse"},"type":"array","title":"Files"}},"type":"object","required":["id","task_id","parent_data_id","entity_type","name","data","created_at","updated_at","meta_data","files"],"title":"TaskDataResponse","description":"Response schema for task data."},"TaskDataUpdate":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":255,"minLength":1},{"type":"null"}],"title":"Name","description":"(Optional) name of the data"},"data":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Data","description":"(Optional) flexible JSON payload"},"meta_data":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Meta Data","description":"(Optional) metadata payload"}},"type":"object","title":"TaskDataUpdate","description":"Request schema for updating task data."},"TaskDetailResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"language":{"type":"string","title":"Language"},"category":{"type":"string","title":"Category"},"latest_version":{"type":"integer","title":"Latest Version"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"}},"type":"object","required":["id","name","language","category","latest_version"],"title":"TaskDetailResponse"},"TaskGroupCategoryPatchAdd":{"properties":{"action":{"type":"string","const":"add","title":"Action"},"translations":{"items":{"$ref":"#/components/schemas/TaskGroupCategoryTranslationPatchAdd"},"type":"array","title":"Translations"},"sequence":{"type":"integer","title":"Sequence","description":"Ordering position for display priority, lower values appear first","default":2147483647}},"type":"object","required":["action","translations"],"title":"TaskGroupCategoryPatchAdd"},"TaskGroupCategoryPatchDelete":{"properties":{"action":{"type":"string","const":"delete","title":"Action"},"id":{"type":"string","format":"uuid","title":"Id"},"move_tasks_to":{"type":"string","format":"uuid","title":"Move Tasks To"}},"type":"object","required":["action","id","move_tasks_to"],"title":"TaskGroupCategoryPatchDelete"},"TaskGroupCategoryPatchList":{"items":{"anyOf":[{"$ref":"#/components/schemas/TaskGroupCategoryPatchAdd"},{"$ref":"#/components/schemas/TaskGroupCategoryPatchUpdate"},{"$ref":"#/components/schemas/TaskGroupCategoryPatchDelete"}]},"type":"array","title":"TaskGroupCategoryPatchList"},"TaskGroupCategoryPatchUpdate":{"properties":{"action":{"type":"string","const":"update","title":"Action"},"id":{"type":"string","format":"uuid","title":"Id"},"translations":{"items":{"anyOf":[{"$ref":"#/components/schemas/TaskGroupCategoryTranslationPatchAdd"},{"$ref":"#/components/schemas/TaskGroupCategoryTranslationPatchUpdate"},{"$ref":"#/components/schemas/TaskGroupCategoryTranslationPatchDelete"}]},"type":"array","title":"Translations"},"sequence":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sequence","description":"Ordering position for display priority, lower values appear first"}},"type":"object","required":["action","id"],"title":"TaskGroupCategoryPatchUpdate"},"TaskGroupCategoryResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"language":{"type":"string","title":"Language"},"sequence":{"type":"integer","title":"Sequence"}},"type":"object","required":["id","name","language","sequence"],"title":"TaskGroupCategoryResponse"},"TaskGroupCategoryTranslationPatchAdd":{"properties":{"action":{"type":"string","const":"add","title":"Action"},"language":{"type":"string","title":"Language"},"name":{"type":"string","title":"Name"}},"type":"object","required":["action","language","name"],"title":"TaskGroupCategoryTranslationPatchAdd"},"TaskGroupCategoryTranslationPatchDelete":{"properties":{"action":{"type":"string","const":"delete","title":"Action"},"language":{"type":"string","title":"Language"}},"type":"object","required":["action","language"],"title":"TaskGroupCategoryTranslationPatchDelete"},"TaskGroupCategoryTranslationPatchUpdate":{"properties":{"action":{"type":"string","const":"update","title":"Action"},"language":{"type":"string","title":"Language"},"name":{"type":"string","title":"Name"}},"type":"object","required":["action","language","name"],"title":"TaskGroupCategoryTranslationPatchUpdate"},"TaskGroupCreate":{"properties":{"name":{"type":"string","minLength":1,"title":"Name","description":"Name of the task group"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description","description":"Description of the task group"},"is_multilingual":{"type":"boolean","title":"Is Multilingual","description":"Flag if the task group supports multiple languages","default":false},"categories":{"items":{"type":"string"},"type":"array","minItems":1,"title":"Categories","description":"Categories of the task group"},"supported_languages":{"items":{"$ref":"#/components/schemas/TaskGroupLanguageUpdate"},"type":"array","minItems":1,"title":"Supported Languages","description":"Languages supported by the task group"}},"type":"object","required":["name","categories","supported_languages"],"title":"TaskGroupCreate"},"TaskGroupDetailResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"language":{"type":"string","title":"Language"},"latest_version":{"type":"integer","title":"Latest Version"},"latest_status":{"$ref":"#/components/schemas/TaskGroupVersionStatus"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"is_multilingual":{"type":"boolean","title":"Is Multilingual"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"},"categories":{"items":{"$ref":"#/components/schemas/TaskGroupCategoryResponse"},"type":"array","title":"Categories"},"supported_languages":{"items":{"$ref":"#/components/schemas/TaskGroupLanguageListResponse"},"type":"array","title":"Supported Languages"}},"type":"object","required":["id","name","language","latest_version","latest_status","is_multilingual","categories","supported_languages"],"title":"TaskGroupDetailResponse"},"TaskGroupLanguageListResponse":{"properties":{"language":{"type":"string","title":"Language"},"is_default":{"type":"boolean","title":"Is Default"}},"type":"object","required":["language","is_default"],"title":"TaskGroupLanguageListResponse"},"TaskGroupLanguageUpdate":{"properties":{"language":{"type":"string","title":"Language","description":"ID of the language, following ISO 639-1"},"is_default":{"type":"boolean","title":"Is Default","description":"Flag if the language is the default for the task group","default":false}},"type":"object","required":["language"],"title":"TaskGroupLanguageUpdate"},"TaskGroupLanguageUpdateList":{"items":{"$ref":"#/components/schemas/TaskGroupLanguageUpdate"},"type":"array","title":"TaskGroupLanguageUpdateList"},"TaskGroupListResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"language":{"type":"string","title":"Language"},"latest_version":{"type":"integer","title":"Latest Version"},"latest_status":{"$ref":"#/components/schemas/TaskGroupVersionStatus"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"categories":{"items":{"type":"string"},"type":"array","title":"Categories"},"supported_languages":{"items":{"type":"string"},"type":"array","title":"Supported Languages"}},"type":"object","required":["id","name","language","latest_version","latest_status","categories","supported_languages"],"title":"TaskGroupListResponse"},"TaskGroupUpdate":{"properties":{"is_multilingual":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Multilingual","description":"Flag if the task group supports multiple languages"}},"type":"object","title":"TaskGroupUpdate"},"TaskGroupVersionAssignedItemUpdate":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"version":{"type":"integer","title":"Version"}},"type":"object","required":["id","version"],"title":"TaskGroupVersionAssignedItemUpdate"},"TaskGroupVersionAssignedItemsUpdate":{"properties":{"versions":{"items":{"$ref":"#/components/schemas/TaskGroupVersionAssignedItemUpdate"},"type":"array","title":"Versions"}},"type":"object","required":["versions"],"title":"TaskGroupVersionAssignedItemsUpdate"},"TaskGroupVersionClone":{"properties":{"version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Version","description":"Number of task group version to clone. If not specified, the latest version is used by default"}},"type":"object","title":"TaskGroupVersionClone"},"TaskGroupVersionCreate":{"properties":{"name":{"type":"string","minLength":1,"title":"Name","description":"Name of the task group version translation"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description","description":"Description of the task group version translation"}},"type":"object","required":["name"],"title":"TaskGroupVersionCreate"},"TaskGroupVersionDetailResponse":{"properties":{"version":{"type":"integer","title":"Version"},"name":{"type":"string","title":"Name"},"status":{"$ref":"#/components/schemas/TaskGroupVersionStatus"},"language":{"type":"string","title":"Language"},"locked_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Locked By"},"locked_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Locked At"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"count_tasks":{"type":"integer","title":"Count Tasks"},"count_tones":{"type":"integer","title":"Count Tones"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"created_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"},"updated_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Updated By"},"supported_languages":{"items":{"type":"string"},"type":"array","title":"Supported Languages"}},"type":"object","required":["version","name","status","language","count_tasks","count_tones","supported_languages"],"title":"TaskGroupVersionDetailResponse"},"TaskGroupVersionListResponse":{"properties":{"version":{"type":"integer","title":"Version"},"name":{"type":"string","title":"Name"},"status":{"$ref":"#/components/schemas/TaskGroupVersionStatus"},"language":{"type":"string","title":"Language"},"locked_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Locked At"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"count_tasks":{"type":"integer","title":"Count Tasks"},"count_tones":{"type":"integer","title":"Count Tones"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"created_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By"}},"type":"object","required":["version","name","status","language","count_tasks","count_tones"],"title":"TaskGroupVersionListResponse"},"TaskGroupVersionStatus":{"type":"string","enum":["in_progress","review","published"],"title":"TaskGroupVersionStatus"},"TaskGroupVersionTranslationDetailResponse":{"properties":{"language":{"type":"string","title":"Language"},"name":{"type":"string","title":"Name"},"is_default":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Default"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"}},"type":"object","required":["language","name"],"title":"TaskGroupVersionTranslationDetailResponse"},"TaskGroupVersionTranslationListResponse":{"properties":{"language":{"type":"string","title":"Language"},"name":{"type":"string","title":"Name"},"is_default":{"type":"boolean","title":"Is Default"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"}},"type":"object","required":["language","name","is_default"],"title":"TaskGroupVersionTranslationListResponse"},"TaskGroupVersionTranslationUpdate":{"properties":{"name":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"Name","description":"Name of the task group version translation"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description","description":"Description of the task group version translation"}},"type":"object","title":"TaskGroupVersionTranslationUpdate"},"TaskGroupVersionUpdate":{"properties":{"status":{"anyOf":[{"$ref":"#/components/schemas/TaskGroupVersionStatus"},{"type":"null"}],"description":"Status of the task group version"},"is_locked":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Locked","description":"Flag if the task group version is locked"}},"type":"object","title":"TaskGroupVersionUpdate"},"TaskListResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"language":{"type":"string","title":"Language"},"category":{"type":"string","title":"Category"},"latest_version":{"type":"integer","title":"Latest Version"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"}},"type":"object","required":["id","name","language","category","latest_version"],"title":"TaskListResponse"},"TaskStatsDetailExpandedResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"language":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Language"},"usage_count":{"type":"integer","title":"Usage Count"},"total_roz":{"type":"integer","title":"Total Roz"},"usage_percentage":{"type":"number","title":"Usage Percentage"},"total_cost":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Total Cost","description":"Total cost in USD, or null when any included request has an unknown cost"},"average_cost":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Average Cost","description":"Average cost in USD, or null when any included request has an unknown cost"},"steps":{"items":{"$ref":"#/components/schemas/TaskStatsStepExpandedResponse"},"type":"array","title":"Steps"},"models":{"items":{"$ref":"#/components/schemas/TaskStatsModelExpandedResponse"},"type":"array","title":"Models"}},"type":"object","required":["id","name","language","usage_count","total_roz","usage_percentage","total_cost","average_cost","steps","models"],"title":"TaskStatsDetailExpandedResponse"},"TaskStatsDetailResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"language":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Language"},"usage_count":{"type":"integer","title":"Usage Count"},"total_roz":{"type":"integer","title":"Total Roz"},"usage_percentage":{"type":"number","title":"Usage Percentage"},"steps":{"items":{"$ref":"#/components/schemas/TaskStatsStepResponse"},"type":"array","title":"Steps"},"models":{"items":{"$ref":"#/components/schemas/TaskStatsModelResponse"},"type":"array","title":"Models"}},"type":"object","required":["id","name","language","usage_count","total_roz","usage_percentage","steps","models"],"title":"TaskStatsDetailResponse"},"TaskStatsListExpandedResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"language":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Language"},"usage_count":{"type":"integer","title":"Usage Count"},"total_roz":{"type":"integer","title":"Total Roz"},"usage_percentage":{"type":"number","title":"Usage Percentage"},"total_cost":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Total Cost","description":"Total cost in USD, or null when any included request has an unknown cost"},"average_cost":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Average Cost","description":"Average cost in USD, or null when any included request has an unknown cost"}},"type":"object","required":["id","name","language","usage_count","total_roz","usage_percentage","total_cost","average_cost"],"title":"TaskStatsListExpandedResponse"},"TaskStatsListResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"language":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Language"},"usage_count":{"type":"integer","title":"Usage Count"},"total_roz":{"type":"integer","title":"Total Roz"},"usage_percentage":{"type":"number","title":"Usage Percentage"}},"type":"object","required":["id","name","language","usage_count","total_roz","usage_percentage"],"title":"TaskStatsListResponse"},"TaskStatsModelExpandedResponse":{"properties":{"provider":{"type":"string","title":"Provider"},"provider_model":{"type":"string","title":"Provider Model"},"usage_count":{"type":"integer","title":"Usage Count"},"usage_percentage":{"type":"number","title":"Usage Percentage"},"total_cost":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Total Cost","description":"Total cost in USD, or null when any included request has an unknown cost"},"average_cost":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Average Cost","description":"Average cost in USD, or null when any included request has an unknown cost"}},"type":"object","required":["provider","provider_model","usage_count","usage_percentage","total_cost","average_cost"],"title":"TaskStatsModelExpandedResponse"},"TaskStatsModelResponse":{"properties":{"provider":{"type":"string","title":"Provider"},"provider_model":{"type":"string","title":"Provider Model"},"usage_count":{"type":"integer","title":"Usage Count"},"usage_percentage":{"type":"number","title":"Usage Percentage"}},"type":"object","required":["provider","provider_model","usage_count","usage_percentage"],"title":"TaskStatsModelResponse"},"TaskStatsStepExpandedResponse":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"usage_count":{"type":"integer","title":"Usage Count"},"usage_percentage":{"type":"number","title":"Usage Percentage"},"total_cost":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Total Cost","description":"Total cost in USD, or null when any included request has an unknown cost"},"average_cost":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Average Cost","description":"Average cost in USD, or null when any included request has an unknown cost"}},"type":"object","required":["name","usage_count","usage_percentage","total_cost","average_cost"],"title":"TaskStatsStepExpandedResponse"},"TaskStatsStepResponse":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"usage_count":{"type":"integer","title":"Usage Count"},"usage_percentage":{"type":"number","title":"Usage Percentage"}},"type":"object","required":["name","usage_count","usage_percentage"],"title":"TaskStatsStepResponse"},"TaskUpdate":{"properties":{"category_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Category Id","description":"Category of the task"}},"type":"object","title":"TaskUpdate"},"TaskVersionClone":{"properties":{"version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Version","description":"Number of task version to clone. If not specified, the latest version is used by default"}},"type":"object","title":"TaskVersionClone"},"TaskVersionCreate":{"properties":{"name":{"type":"string","minLength":1,"title":"Name","description":"Name of the task version translation"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description","description":"Description of the task version translation"},"prompt":{"type":"string","title":"Prompt","description":"Prompt of the task version","default":""},"form":{"type":"string","title":"Form","description":"Form of the task version translation","default":""},"meta_data":{"additionalProperties":true,"type":"object","title":"Meta Data","description":"Meta data of the task version"}},"type":"object","required":["name"],"title":"TaskVersionCreate"},"TaskVersionDetailResponse":{"properties":{"name":{"type":"string","title":"Name"},"version":{"type":"integer","title":"Version"},"language":{"type":"string","title":"Language"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"prompt":{"type":"string","title":"Prompt"},"form":{"type":"string","title":"Form"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"created_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"},"updated_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Updated By"},"supported_languages":{"items":{"type":"string"},"type":"array","title":"Supported Languages"},"meta_data":{"additionalProperties":true,"type":"object","title":"Meta Data"}},"type":"object","required":["name","version","language","prompt","form","supported_languages","meta_data"],"title":"TaskVersionDetailResponse"},"TaskVersionListResponse":{"properties":{"name":{"type":"string","title":"Name"},"version":{"type":"integer","title":"Version"},"language":{"type":"string","title":"Language"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"created_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By"}},"type":"object","required":["name","version","language"],"title":"TaskVersionListResponse"},"TaskVersionTranslationDetailResponse":{"properties":{"language":{"type":"string","title":"Language"},"name":{"type":"string","title":"Name"},"is_default":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Default"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"form":{"type":"string","title":"Form"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"}},"type":"object","required":["language","name","form"],"title":"TaskVersionTranslationDetailResponse"},"TaskVersionTranslationListResponse":{"properties":{"language":{"type":"string","title":"Language"},"name":{"type":"string","title":"Name"},"is_default":{"type":"boolean","title":"Is Default"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"form":{"type":"string","title":"Form"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"}},"type":"object","required":["language","name","is_default","form"],"title":"TaskVersionTranslationListResponse"},"TaskVersionTranslationUpdate":{"properties":{"name":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"Name","description":"Name of the task version translation"},"form":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Form","description":"Form of the task version translation"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description","description":"Description of the task version translation"}},"type":"object","title":"TaskVersionTranslationUpdate"},"TaskVersionUpdate":{"properties":{"prompt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prompt","description":"Prompt of the task version"},"meta_data":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Meta Data","description":"Meta data of the task version"}},"type":"object","title":"TaskVersionUpdate"},"TasksOrigin":{"properties":{"route":{"type":"string","const":"tasks","title":"Route"},"task_id":{"type":"string","format":"uuid","title":"Task Id"},"placement":{"type":"string","title":"Placement"},"source_extension_id":{"anyOf":[{"type":"string","maxLength":64,"minLength":1},{"type":"null"}],"title":"Source Extension Id"}},"additionalProperties":false,"type":"object","required":["route","task_id","placement"],"title":"TasksOrigin"},"TokenRequest":{"properties":{"email":{"type":"string","format":"email","title":"Email"}},"type":"object","required":["email"],"title":"TokenRequest"},"TokenResponse":{"properties":{"token":{"type":"string","title":"Token"},"access_token":{"type":"string","title":"Access Token"},"token_type":{"type":"string","title":"Token Type","default":"bearer"}},"type":"object","required":["token","access_token"],"title":"TokenResponse"},"TokenVerifyRequest":{"properties":{"email":{"type":"string","format":"email","title":"Email"},"code":{"type":"string","minLength":1,"title":"Code"}},"type":"object","required":["email","code"],"title":"TokenVerifyRequest"},"ToneCreate":{"properties":{"name":{"type":"string","minLength":1,"title":"Name","description":"Name of the tone version translation"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description","description":"Description of the tone version translation"},"definition":{"type":"string","title":"Definition","description":"Definition of the tone version","default":""},"meta_data":{"additionalProperties":true,"type":"object","title":"Meta Data","description":"Meta data of the tone version"}},"type":"object","required":["name"],"title":"ToneCreate"},"ToneCreateResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"language":{"type":"string","title":"Language"},"latest_version":{"type":"integer","title":"Latest Version"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"},"definition":{"type":"string","title":"Definition"},"meta_data":{"additionalProperties":true,"type":"object","title":"Meta Data"}},"type":"object","required":["id","name","language","latest_version","definition","meta_data"],"title":"ToneCreateResponse"},"ToneDetailResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"language":{"type":"string","title":"Language"},"latest_version":{"type":"integer","title":"Latest Version"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"}},"type":"object","required":["id","name","language","latest_version"],"title":"ToneDetailResponse"},"ToneListResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"language":{"type":"string","title":"Language"},"latest_version":{"type":"integer","title":"Latest Version"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"}},"type":"object","required":["id","name","language","latest_version"],"title":"ToneListResponse"},"ToneVersionClone":{"properties":{"version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Version","description":"Number of tone version to clone. If not specified, the latest version is used by default"}},"type":"object","title":"ToneVersionClone"},"ToneVersionCreate":{"properties":{"name":{"type":"string","minLength":1,"title":"Name","description":"Name of the tone version translation"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description","description":"Description of the tone version translation"},"definition":{"type":"string","title":"Definition","description":"Definition of the tone version","default":""},"meta_data":{"additionalProperties":true,"type":"object","title":"Meta Data","description":"Meta data of the tone version"}},"type":"object","required":["name"],"title":"ToneVersionCreate"},"ToneVersionDetailResponse":{"properties":{"name":{"type":"string","title":"Name"},"version":{"type":"integer","title":"Version"},"language":{"type":"string","title":"Language"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"definition":{"type":"string","title":"Definition"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"created_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"},"updated_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Updated By"},"supported_languages":{"items":{"type":"string"},"type":"array","title":"Supported Languages"},"meta_data":{"additionalProperties":true,"type":"object","title":"Meta Data"}},"type":"object","required":["name","version","language","definition","supported_languages","meta_data"],"title":"ToneVersionDetailResponse"},"ToneVersionListResponse":{"properties":{"name":{"type":"string","title":"Name"},"version":{"type":"integer","title":"Version"},"language":{"type":"string","title":"Language"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"created_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By"}},"type":"object","required":["name","version","language"],"title":"ToneVersionListResponse"},"ToneVersionTranslationDetailResponse":{"properties":{"language":{"type":"string","title":"Language"},"name":{"type":"string","title":"Name"},"is_default":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Default"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"}},"type":"object","required":["language","name"],"title":"ToneVersionTranslationDetailResponse"},"ToneVersionTranslationListResponse":{"properties":{"language":{"type":"string","title":"Language"},"name":{"type":"string","title":"Name"},"is_default":{"type":"boolean","title":"Is Default"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"}},"type":"object","required":["language","name","is_default"],"title":"ToneVersionTranslationListResponse"},"ToneVersionTranslationUpdate":{"properties":{"name":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"Name","description":"Name of the tone version translation"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description","description":"Description of the tone version translation"}},"type":"object","title":"ToneVersionTranslationUpdate"},"ToneVersionUpdate":{"properties":{"definition":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Definition","description":"Definition of the tone version"},"meta_data":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Meta Data","description":"Meta data of the tone version"}},"type":"object","title":"ToneVersionUpdate"},"UnavailableContext":{"properties":{"item":{"type":"string","title":"Item"},"requires":{"type":"string","enum":["client_and_module","llm_service","excluded"],"title":"Requires"},"change":{"type":"string","title":"Change"}},"type":"object","required":["item","requires","change"],"title":"UnavailableContext","description":"Context the model was given that no snapshot records yet, and which side must record it."},"UnsubscribedOrganizationResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"}},"type":"object","required":["id","name"],"title":"UnsubscribedOrganizationResponse"},"UsageLogCreate":{"properties":{"id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Id","description":"Optional ID for the usage log entry"},"task_id":{"type":"string","format":"uuid","title":"Task Id","description":"ID of the task the request belongs to"},"task_version":{"type":"integer","exclusiveMinimum":0.0,"title":"Task Version","description":"Major version of the task"},"request_type":{"type":"string","maxLength":50,"minLength":1,"title":"Request Type","description":"Type of request"},"step":{"anyOf":[{"type":"string","maxLength":255,"minLength":1},{"type":"null"}],"title":"Step","description":"Optional comment for request"},"provider":{"type":"string","maxLength":100,"minLength":1,"title":"Provider","description":"LLM provider name"},"provider_model":{"type":"string","maxLength":100,"minLength":1,"title":"Provider Model","description":"Specific LLM provider model used"},"roz":{"type":"integer","minimum":0.0,"title":"Roz","description":"Resource usage metric"},"cost":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"Cost","description":"Provider cost in USD, or null when the cost is unknown"},"status":{"type":"string","maxLength":50,"minLength":1,"title":"Status","description":"Status of the request"},"request_at":{"type":"string","format":"date-time","title":"Request At","description":"Timestamp of the request"},"meta_data":{"additionalProperties":true,"type":"object","title":"Meta Data","description":"Additional metadata"}},"type":"object","required":["task_id","task_version","request_type","provider","provider_model","roz","cost","status","request_at"],"title":"UsageLogCreate"},"UsageLogExpandedResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"organization_name":{"type":"string","title":"Organization Name"},"user_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Name"},"user_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Email"},"task_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Task Id"},"task_version":{"type":"integer","title":"Task Version"},"task_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Task Name"},"task_language":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Task Language"},"request_type":{"type":"string","title":"Request Type"},"step":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Step"},"provider":{"type":"string","title":"Provider"},"provider_model":{"type":"string","title":"Provider Model"},"roz":{"type":"integer","title":"Roz"},"cost":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Cost","description":"Provider cost in USD, or null when the cost is unknown"},"status":{"type":"string","title":"Status"},"request_at":{"type":"string","format":"date-time","title":"Request At"},"meta_data":{"additionalProperties":true,"type":"object","title":"Meta Data"}},"type":"object","required":["id","organization_name","user_name","user_email","task_id","task_version","task_name","task_language","request_type","step","provider","provider_model","roz","cost","status","request_at","meta_data"],"title":"UsageLogExpandedResponse"},"UsageLogResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"user_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Name"},"user_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Email"},"task_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Task Id"},"task_version":{"type":"integer","title":"Task Version"},"task_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Task Name"},"task_language":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Task Language"},"request_type":{"type":"string","title":"Request Type"},"step":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Step"},"provider":{"type":"string","title":"Provider"},"provider_model":{"type":"string","title":"Provider Model"},"roz":{"type":"integer","title":"Roz"},"status":{"type":"string","title":"Status"},"request_at":{"type":"string","format":"date-time","title":"Request At"}},"type":"object","required":["id","user_name","user_email","task_id","task_version","task_name","task_language","request_type","step","provider","provider_model","roz","status","request_at"],"title":"UsageLogResponse"},"UserBulkImportResponse":{"properties":{"total_rows":{"type":"integer","title":"Total Rows"},"created_count":{"type":"integer","title":"Created Count"},"failed_count":{"type":"integer","title":"Failed Count"},"errors":{"items":{"$ref":"#/components/schemas/UserBulkImportRowError"},"type":"array","title":"Errors"}},"type":"object","required":["total_rows","created_count","failed_count","errors"],"title":"UserBulkImportResponse"},"UserBulkImportRowError":{"properties":{"row_number":{"type":"integer","title":"Row Number"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"role":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Role"},"messages":{"items":{"type":"string"},"type":"array","title":"Messages"}},"type":"object","required":["row_number","messages"],"title":"UserBulkImportRowError"},"UserCreateRequest":{"properties":{"name":{"type":"string","minLength":1,"title":"Name","description":"Name of the user"},"email":{"type":"string","minLength":1,"format":"email","title":"Email","description":"Email of the user"},"full_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Full Name","description":"Full name of the user"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description","description":"Description of the user"},"meta_data":{"additionalProperties":true,"type":"object","title":"Meta Data","description":"Meta data of the user"},"sso_invite_providers":{"items":{"$ref":"#/components/schemas/SsoProvider"},"type":"array","title":"Sso Invite Providers","description":"Invite the new user to sign in with these single sign-on providers."}},"type":"object","required":["name","email"],"title":"UserCreateRequest"},"UserCreateResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"organization_id":{"type":"string","format":"uuid","title":"Organization Id"},"name":{"type":"string","title":"Name"},"email":{"type":"string","title":"Email"},"is_active":{"type":"boolean","title":"Is Active"},"full_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Full Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"meta_data":{"additionalProperties":true,"type":"object","title":"Meta Data"},"sso_invites":{"items":{"$ref":"#/components/schemas/UserSsoInviteResponse"},"type":"array","title":"Sso Invites","description":"Outcome of every single sign-on invitation requested for this user, one entry per provider."}},"type":"object","required":["id","organization_id","name","email","is_active","meta_data"],"title":"UserCreateResponse"},"UserEnvironmentDetailResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"is_core":{"type":"boolean","title":"Is Core"},"is_active":{"type":"boolean","title":"Is Active"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"role":{"type":"string","title":"Role"},"is_role_active":{"type":"boolean","title":"Is Role Active"}},"type":"object","required":["id","name","is_core","is_active","description","role","is_role_active"],"title":"UserEnvironmentDetailResponse"},"UserMigrateRequest":{"properties":{"target_organization_id":{"type":"string","format":"uuid","title":"Target Organization Id","description":"Organization to move the user to."},"role":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Role","description":"Role to grant in the target organization. Defaults to the role the user holds today."}},"type":"object","required":["target_organization_id"],"title":"UserMigrateRequest"},"UserNotificationCleanupSettings":{"properties":{"enabled":{"type":"boolean","title":"Enabled"},"age_days":{"type":"integer","maximum":365.0,"minimum":1.0,"title":"Age Days"}},"type":"object","required":["enabled","age_days"],"title":"UserNotificationCleanupSettings","description":"Whether, and how many days after they were created, a user's read notifications are deleted."},"UserResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"organization_id":{"type":"string","format":"uuid","title":"Organization Id"},"name":{"type":"string","title":"Name"},"email":{"type":"string","title":"Email"},"is_active":{"type":"boolean","title":"Is Active"},"full_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Full Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"meta_data":{"additionalProperties":true,"type":"object","title":"Meta Data"}},"type":"object","required":["id","organization_id","name","email","is_active","meta_data"],"title":"UserResponse"},"UserRoleBulkAssignError":{"properties":{"user_id":{"type":"string","format":"uuid","title":"User Id"},"messages":{"items":{"type":"string"},"type":"array","title":"Messages"}},"type":"object","required":["user_id","messages"],"title":"UserRoleBulkAssignError"},"UserRoleBulkAssignRequest":{"properties":{"user_ids":{"items":{"type":"string","format":"uuid"},"type":"array","maxItems":500,"minItems":1,"title":"User Ids","description":"List of users to assign in the environment (maximum 500 users per request)"},"role":{"type":"string","minLength":1,"title":"Role","description":"Name of the role"},"is_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active","description":"Flag if the role is active"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description","description":"Description of the role"}},"type":"object","required":["user_ids","role"],"title":"UserRoleBulkAssignRequest"},"UserRoleBulkAssignResponse":{"properties":{"total_users":{"type":"integer","title":"Total Users"},"assigned_count":{"type":"integer","title":"Assigned Count"},"failed_count":{"type":"integer","title":"Failed Count"},"errors":{"items":{"$ref":"#/components/schemas/UserRoleBulkAssignError"},"type":"array","title":"Errors"}},"type":"object","required":["total_users","assigned_count","failed_count","errors"],"title":"UserRoleBulkAssignResponse"},"UserRoleBulkDeleteError":{"properties":{"user_id":{"type":"string","format":"uuid","title":"User Id"},"messages":{"items":{"type":"string"},"type":"array","title":"Messages"}},"type":"object","required":["user_id","messages"],"title":"UserRoleBulkDeleteError"},"UserRoleBulkDeleteRequest":{"properties":{"user_ids":{"items":{"type":"string","format":"uuid"},"type":"array","maxItems":500,"minItems":1,"title":"User Ids","description":"List of users to remove from the environment (maximum 500 users per request)"}},"type":"object","required":["user_ids"],"title":"UserRoleBulkDeleteRequest"},"UserRoleBulkDeleteResponse":{"properties":{"total_users":{"type":"integer","title":"Total Users"},"removed_count":{"type":"integer","title":"Removed Count"},"failed_count":{"type":"integer","title":"Failed Count"},"errors":{"items":{"$ref":"#/components/schemas/UserRoleBulkDeleteError"},"type":"array","title":"Errors"}},"type":"object","required":["total_users","removed_count","failed_count","errors"],"title":"UserRoleBulkDeleteResponse"},"UserRoleResponse":{"properties":{"name":{"type":"string","title":"Name"},"environment_id":{"type":"string","format":"uuid","title":"Environment Id"},"environment_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Environment Name"}},"type":"object","required":["name","environment_id","environment_name"],"title":"UserRoleResponse"},"UserRoleUpdate":{"properties":{"role":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Role","description":"Name of the role"},"is_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active","description":"Flag if the role is active"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description","description":"Description of the role"}},"type":"object","title":"UserRoleUpdate"},"UserSettingsResponse":{"properties":{"language":{"type":"string","title":"Language","default":"en"},"notification_position":{"type":"string","enum":["top_left","top_right","bottom_left","bottom_right"],"title":"Notification Position","default":"bottom_right"},"notification_cleanup":{"$ref":"#/components/schemas/UserNotificationCleanupSettings"},"favorite_tasks":{"items":{"type":"string"},"type":"array","title":"Favorite Tasks"},"last_used_task_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Used Task Id"}},"type":"object","title":"UserSettingsResponse"},"UserSettingsUpdate":{"properties":{"language":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Language"},"notification_position":{"anyOf":[{"type":"string","enum":["top_left","top_right","bottom_left","bottom_right"]},{"type":"null"}],"title":"Notification Position"},"notification_cleanup":{"anyOf":[{"$ref":"#/components/schemas/UserNotificationCleanupSettings"},{"type":"null"}]},"favorite_tasks":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Favorite Tasks"},"last_used_task_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Used Task Id"}},"type":"object","title":"UserSettingsUpdate"},"UserSsoInviteResponse":{"properties":{"provider":{"$ref":"#/components/schemas/SsoProvider"},"status":{"$ref":"#/components/schemas/SsoInviteCreateStatus"}},"type":"object","required":["provider","status"],"title":"UserSsoInviteResponse"},"UserSsoLinkResponse":{"properties":{"provider":{"$ref":"#/components/schemas/SsoProvider"},"status":{"$ref":"#/components/schemas/SsoLinkStatus"}},"type":"object","required":["provider","status"],"title":"UserSsoLinkResponse","description":"A single sign-on provider a user signs in with, or has been invited to."},"UserStatsListExpandedResponse":{"properties":{"id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Id","description":"User id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name","description":"User name"},"full_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Full Name","description":"User full name"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email","description":"User email"},"usage_count":{"type":"integer","title":"Usage Count","description":"Number of successful requests"},"total_roz":{"type":"integer","title":"Total Roz","description":"Total ROZ of successful requests"},"organization_name":{"type":"string","title":"Organization Name","description":"Name of the user's organization"}},"type":"object","required":["id","name","full_name","email","usage_count","total_roz","organization_name"],"title":"UserStatsListExpandedResponse","description":"Schema for expanded user stats list item."},"UserStatsListResponse":{"properties":{"id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Id","description":"User id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name","description":"User name"},"full_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Full Name","description":"User full name"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email","description":"User email"},"usage_count":{"type":"integer","title":"Usage Count","description":"Number of successful requests"},"total_roz":{"type":"integer","title":"Total Roz","description":"Total ROZ of successful requests"}},"type":"object","required":["id","name","full_name","email","usage_count","total_roz"],"title":"UserStatsListResponse","description":"Schema for user stats list item."},"UserUpdate":{"properties":{"name":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"Name","description":"Name of the user"},"email":{"anyOf":[{"type":"string","minLength":1,"format":"email"},{"type":"null"}],"title":"Email","description":"Email of the user"},"is_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active","description":"Flag if the user is active"},"full_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Full Name","description":"Full name of the user"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description","description":"Description of the user"},"meta_data":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Meta Data","description":"Meta data of the user"}},"type":"object","title":"UserUpdate"},"ValidateTokenResponse":{"properties":{"user_id":{"type":"string","format":"uuid","title":"User Id"},"email":{"type":"string","title":"Email"},"organization_id":{"type":"string","format":"uuid","title":"Organization Id"},"full_name":{"type":"string","title":"Full Name"},"organization":{"type":"string","title":"Organization"},"environment_id":{"type":"string","format":"uuid","title":"Environment Id"},"settings":{"$ref":"#/components/schemas/UserSettingsResponse"},"can_access_all_organizations":{"type":"boolean","title":"Can Access All Organizations","description":"Whether the user may read and manage every organization: platform owners only."},"can_manage_own_organization":{"type":"boolean","title":"Can Manage Own Organization","description":"Whether the user manages their own organization: its core admin, or the platform owner."},"can_manage_usage_visibility":{"type":"boolean","title":"Can Manage Usage Visibility","description":"Whether the user can manage their organization's usage visibility."}},"type":"object","required":["user_id","email","organization_id","full_name","organization","environment_id","settings","can_access_all_organizations","can_manage_own_organization","can_manage_usage_visibility"],"title":"ValidateTokenResponse"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"WorkspaceAccessLevel":{"type":"string","enum":["private","public","environment_wide"],"title":"WorkspaceAccessLevel","description":"Enum defining the level of access and permissions."},"WorkspaceDocumentCreate":{"properties":{"folder_id":{"type":"string","format":"uuid","title":"Folder Id","description":"Parent folder of the workspace document"},"name":{"type":"string","minLength":1,"title":"Name","description":"Name of the workspace document"},"access_level":{"$ref":"#/components/schemas/WorkspaceAccessLevel","description":"Access level of the workspace document","default":"private"},"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File","description":"Content of the workspace document"},"meta_data":{"additionalProperties":true,"type":"object","title":"Meta Data","description":"Metadata of the workspace document"}},"type":"object","required":["folder_id","name","file"],"title":"WorkspaceDocumentCreate"},"WorkspaceDocumentDestination":{"properties":{"type":{"type":"string","const":"workspace_document","title":"Type"},"environment_id":{"type":"string","format":"uuid","title":"Environment Id"},"document_id":{"type":"string","format":"uuid","title":"Document Id"}},"additionalProperties":false,"type":"object","required":["type","environment_id","document_id"],"title":"WorkspaceDocumentDestination"},"WorkspaceDocumentDetailResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"folder_id":{"type":"string","format":"uuid","title":"Folder Id"},"owner_user":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Owner User"},"name":{"type":"string","title":"Name"},"is_owned":{"type":"boolean","title":"Is Owned"},"access_level":{"$ref":"#/components/schemas/WorkspaceAccessLevel"},"mime_type":{"type":"string","title":"Mime Type"},"file_size":{"type":"integer","title":"File Size"},"storage_type":{"$ref":"#/components/schemas/WorkspaceStorageType"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"meta_data":{"additionalProperties":true,"type":"object","title":"Meta Data"}},"type":"object","required":["id","folder_id","owner_user","name","is_owned","access_level","mime_type","file_size","storage_type","created_at","updated_at","meta_data"],"title":"WorkspaceDocumentDetailResponse"},"WorkspaceDocumentTreeResponse":{"properties":{"document_id":{"type":"string","format":"uuid","title":"Document Id"},"document_name":{"type":"string","title":"Document Name"},"is_owned":{"type":"boolean","title":"Is Owned"},"access_level":{"$ref":"#/components/schemas/WorkspaceAccessLevel"}},"type":"object","required":["document_id","document_name","is_owned","access_level"],"title":"WorkspaceDocumentTreeResponse"},"WorkspaceDocumentUpdate":{"properties":{"folder_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Folder Id","description":"Parent folder of the workspace document"},"name":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"Name","description":"Name of the workspace document"},"access_level":{"anyOf":[{"$ref":"#/components/schemas/WorkspaceAccessLevel"},{"type":"null"}],"description":"Access level of the workspace document"},"file":{"anyOf":[{"type":"string","contentMediaType":"application/octet-stream"},{"type":"null"}],"title":"File","description":"Content of the workspace document"},"meta_data":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Meta Data","description":"Metadata of the workspace document"}},"type":"object","title":"WorkspaceDocumentUpdate"},"WorkspaceEnvironmentTreeResponse":{"properties":{"environment_id":{"type":"string","format":"uuid","title":"Environment Id"},"environment_name":{"type":"string","title":"Environment Name"},"is_core":{"type":"boolean","title":"Is Core"},"can_edit_environment_wide":{"type":"boolean","title":"Can Edit Environment Wide"},"environment_folders":{"items":{"$ref":"#/components/schemas/WorkspaceFolderTreeResponse"},"type":"array","title":"Environment Folders"},"user_folders":{"items":{"$ref":"#/components/schemas/WorkspaceUserTreeResponse"},"type":"array","title":"User Folders"}},"type":"object","required":["environment_id","environment_name","is_core","can_edit_environment_wide","environment_folders","user_folders"],"title":"WorkspaceEnvironmentTreeResponse"},"WorkspaceFolderCreate":{"properties":{"parent_folder_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Parent Folder Id","description":"Parent of the workspace folder"},"name":{"type":"string","minLength":1,"title":"Name","description":"Name of the workspace folder"},"access_level":{"$ref":"#/components/schemas/WorkspaceAccessLevel","description":"Access level of the workspace folder","default":"private"},"meta_data":{"additionalProperties":true,"type":"object","title":"Meta Data","description":"Metadata of the workspace folder"}},"type":"object","required":["name"],"title":"WorkspaceFolderCreate"},"WorkspaceFolderDetailResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"environment_id":{"type":"string","format":"uuid","title":"Environment Id"},"parent_folder_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Parent Folder Id"},"owner_user":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Owner User"},"name":{"type":"string","title":"Name"},"is_owned":{"type":"boolean","title":"Is Owned"},"access_level":{"$ref":"#/components/schemas/WorkspaceAccessLevel"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"meta_data":{"additionalProperties":true,"type":"object","title":"Meta Data"}},"type":"object","required":["id","environment_id","parent_folder_id","owner_user","name","is_owned","access_level","created_at","updated_at","meta_data"],"title":"WorkspaceFolderDetailResponse"},"WorkspaceFolderTreeResponse":{"properties":{"folder_id":{"type":"string","format":"uuid","title":"Folder Id"},"folder_name":{"type":"string","title":"Folder Name"},"is_owned":{"type":"boolean","title":"Is Owned"},"access_level":{"$ref":"#/components/schemas/WorkspaceAccessLevel"},"folders":{"items":{"$ref":"#/components/schemas/WorkspaceFolderTreeResponse"},"type":"array","title":"Folders"},"documents":{"items":{"$ref":"#/components/schemas/WorkspaceDocumentTreeResponse"},"type":"array","title":"Documents"}},"type":"object","required":["folder_id","folder_name","is_owned","access_level","folders","documents"],"title":"WorkspaceFolderTreeResponse"},"WorkspaceFolderUpdate":{"properties":{"parent_folder_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Parent Folder Id","description":"Parent of the workspace folder"},"name":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"Name","description":"Name of the workspace folder"},"access_level":{"anyOf":[{"$ref":"#/components/schemas/WorkspaceAccessLevel"},{"type":"null"}],"description":"Access level of the workspace folder"},"meta_data":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Meta Data","description":"Metadata of the workspace folder"}},"type":"object","title":"WorkspaceFolderUpdate"},"WorkspaceStorageType":{"type":"string","enum":["internal","external"],"title":"WorkspaceStorageType","description":"Enum defining the type of storage used."},"WorkspaceUserTreeResponse":{"properties":{"user_name":{"type":"string","title":"User Name"},"is_owned":{"type":"boolean","title":"Is Owned"},"folders":{"items":{"$ref":"#/components/schemas/WorkspaceFolderTreeResponse"},"type":"array","title":"Folders"}},"type":"object","required":["user_name","is_owned","folders"],"title":"WorkspaceUserTreeResponse"},"WorkspaceV2AccessDecision":{"properties":{"decision":{"type":"string","enum":["viewer","editor","declined"],"title":"Decision","description":"Give view or edit access, or decline"}},"type":"object","required":["decision"],"title":"WorkspaceV2AccessDecision","description":"Request schema for answering a request."},"WorkspaceV2AccessRequestCreate":{"properties":{"role":{"type":"string","enum":["viewer","editor"],"title":"Role","description":"The role asked for: view or edit"},"message":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Message","description":"A short note to the managers"},"via_item_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Via Item Id","description":"The course you see one of the session's pictures in"}},"type":"object","required":["role"],"title":"WorkspaceV2AccessRequestCreate","description":"Request schema for asking the managers of a session for a role on it."},"WorkspaceV2AccessRequestResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"item_id":{"type":"string","format":"uuid","title":"Item Id"},"role":{"$ref":"#/components/schemas/WorkspaceV2Role"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"status":{"$ref":"#/components/schemas/WorkspaceV2AccessRequestStatus","description":"'pending', 'approved' or 'declined'"},"requester_name":{"type":"string","title":"Requester Name"},"decided_by_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Decided By Name"},"decided_role":{"anyOf":[{"$ref":"#/components/schemas/WorkspaceV2Role"},{"type":"null"}],"description":"The role an approval gave"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"decided_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Decided At"}},"type":"object","required":["id","item_id","role","message","status","requester_name","decided_by_name","decided_role","created_at","decided_at"],"title":"WorkspaceV2AccessRequestResponse","description":"Response schema for a request for access."},"WorkspaceV2AccessRequestStatus":{"type":"string","enum":["pending","approved","declined"],"title":"WorkspaceV2AccessRequestStatus","description":"Enum identifying where a request for access to a workspace item stands.\n\nA request is answered once: a manager approves or declines it, or it is approved when the person\nis given the role another way. Only a pending request changes."},"WorkspaceV2ChatSessionAccess":{"type":"string","enum":["owner","read","write"],"title":"WorkspaceV2ChatSessionAccess","description":"Enum identifying what someone opening a chat session saved to Files may do with it.\n\nOnly the session's owner continues the session itself, whatever their role on the Files item.\nAnyone else reads it; with the editor role or higher they may also continue in a private copy."},"WorkspaceV2ChatSessionCopyCreate":{"properties":{"operation_id":{"type":"string","maxLength":100,"minLength":1,"title":"Operation Id","description":"ID of one Continue action; a retry sending it again returns the copy that action made"},"title_suffix":{"type":"string","maxLength":40,"minLength":1,"title":"Title Suffix","description":"Text in your language added after the copy's title, such as '(copy)'"}},"type":"object","required":["operation_id","title_suffix"],"title":"WorkspaceV2ChatSessionCopyCreate","description":"Request schema for continuing a shared chat session in a private copy."},"WorkspaceV2ChatSessionCopyResponse":{"properties":{"conversation_id":{"type":"string","format":"uuid","title":"Conversation Id","description":"Your private session continuing the shared one"}},"type":"object","required":["conversation_id"],"title":"WorkspaceV2ChatSessionCopyResponse","description":"Response schema for the private copy a Continue action made."},"WorkspaceV2ChatSessionCreate":{"properties":{"conversation_id":{"type":"string","format":"uuid","title":"Conversation Id","description":"Your session to save; Files opens it rather than a copy of its text"},"parent_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Parent Id","description":"(Optional) folder to save the item in; left out, it goes to the root of your own space"},"name":{"type":"string","maxLength":255,"minLength":1,"title":"Name","description":"Name shown to users"}},"type":"object","required":["conversation_id","name"],"title":"WorkspaceV2ChatSessionCreate","description":"Request schema for saving a reference to one of your own chat sessions to Files."},"WorkspaceV2ChatSessionResponse":{"properties":{"item_id":{"type":"string","format":"uuid","title":"Item Id","description":"ID of the Files item"},"name":{"type":"string","title":"Name","description":"Name of the Files item"},"access":{"$ref":"#/components/schemas/WorkspaceV2ChatSessionAccess","description":"'owner' continues the session, 'write' may continue in a private copy, 'read' only reads it"},"conversation_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Conversation Id","description":"The session the item opens; null once it was deleted"}},"type":"object","required":["item_id","name","access","conversation_id"],"title":"WorkspaceV2ChatSessionResponse","description":"Response schema for a chat session saved to Files."},"WorkspaceV2ChildGrantResponse":{"properties":{"item_id":{"type":"string","format":"uuid","title":"Item Id"},"name":{"type":"string","title":"Name"},"kind":{"type":"string","title":"Kind"},"role":{"anyOf":[{"$ref":"#/components/schemas/WorkspaceV2Role"},{"type":"null"}]},"source":{"$ref":"#/components/schemas/WorkspaceV2GrantSource"},"inherited_role":{"anyOf":[{"$ref":"#/components/schemas/WorkspaceV2Role"},{"type":"null"}]},"grant_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Grant Id"}},"type":"object","required":["item_id","name","kind","role","source","inherited_role","grant_id"],"title":"WorkspaceV2ChildGrantResponse","description":"Response schema for an item inside a folder, with one principal's role on it and where the role comes from."},"WorkspaceV2CommentBody":{"properties":{"body":{"type":"string","maxLength":5000,"minLength":1,"title":"Body","description":"Plain text; mention someone as @[Name](user-id)"}},"type":"object","required":["body"],"title":"WorkspaceV2CommentBody","description":"Request schema for a reply, or for the new text of a comment."},"WorkspaceV2CommentResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"thread_id":{"type":"string","format":"uuid","title":"Thread Id"},"body":{"type":"string","title":"Body"},"mentioned_user_ids":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Mentioned User Ids"},"mentioned_users":{"items":{"$ref":"#/components/schemas/WorkspaceV2MentionedUserResponse"},"type":"array","title":"Mentioned Users"},"author_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Author Id"},"author_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Author Name"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"edited_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Edited At"}},"type":"object","required":["id","thread_id","body","mentioned_user_ids","mentioned_users","author_id","author_name","created_at","edited_at"],"title":"WorkspaceV2CommentResponse","description":"Response schema for a comment."},"WorkspaceV2CommentThreadCreate":{"properties":{"anchor_from":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Anchor From","description":"Yjs relative position of the start of the commented text; leave out with anchor_to for the whole document"},"anchor_to":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Anchor To","description":"Yjs relative position of the end of the commented text"},"quote":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Quote","description":"The commented text as it reads now; needs an anchor"},"body":{"type":"string","maxLength":5000,"minLength":1,"title":"Body","description":"The first comment, plain text; mention someone as @[Name](user-id)"}},"type":"object","required":["body"],"title":"WorkspaceV2CommentThreadCreate","description":"Request schema for starting a comment thread with its first comment."},"WorkspaceV2CommentThreadResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"item_id":{"type":"string","format":"uuid","title":"Item Id"},"anchor_from":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Anchor From"},"anchor_to":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Anchor To"},"quote":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quote"},"author_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Author Id"},"author_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Author Name"},"resolved_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Resolved At"},"resolved_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Resolved By"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"comments":{"items":{"$ref":"#/components/schemas/WorkspaceV2CommentResponse"},"type":"array","title":"Comments"},"suggestion":{"anyOf":[{"$ref":"#/components/schemas/WorkspaceV2SuggestionResponse"},{"type":"null"}]}},"type":"object","required":["id","item_id","anchor_from","anchor_to","quote","author_id","author_name","resolved_at","resolved_by","created_at","updated_at","comments"],"title":"WorkspaceV2CommentThreadResponse","description":"Response schema for a comment thread with its comments, oldest first."},"WorkspaceV2DocumentContentCreate":{"properties":{"state":{"type":"string","format":"base64","contentMediaType":"application/octet-stream","title":"State","description":"The content as one Yjs update, base64 encoded, in the fragment the item's editor reads: 'default' for a Files document, the module's id for a module's item"}},"type":"object","required":["state"],"title":"WorkspaceV2DocumentContentCreate","description":"Request schema for writing the first content of a document."},"WorkspaceV2FileStatus":{"type":"string","enum":["uploading","scanning","ready","blocked"],"title":"WorkspaceV2FileStatus","description":"Enum identifying where an uploaded version of a file stands.\n\nOnly a ready version is ever read: an upload is checked when it completes, then scanned for\nmalware where scanning is on, and a version the scan flags is blocked for good."},"WorkspaceV2FileVersionResponse":{"properties":{"version":{"type":"integer","title":"Version"},"status":{"$ref":"#/components/schemas/WorkspaceV2FileStatus"},"mime_type":{"type":"string","title":"Mime Type"},"size_bytes":{"type":"integer","title":"Size Bytes"},"width":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Width"},"height":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Height"},"duration_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Duration Ms"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["version","status","mime_type","size_bytes","width","height","duration_ms","created_at"],"title":"WorkspaceV2FileVersionResponse","description":"Response schema for an uploaded version of a file."},"WorkspaceV2FileVersionSummaryResponse":{"properties":{"version":{"type":"integer","title":"Version"},"size_bytes":{"type":"integer","title":"Size Bytes"},"mime_type":{"type":"string","title":"Mime Type"},"uploaded_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Uploaded By","description":"Name of who uploaded or restored the version, 'None' once their account is gone"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["version","size_bytes","mime_type","uploaded_by","created_at"],"title":"WorkspaceV2FileVersionSummaryResponse","description":"Response schema for a ready version of a file in its version list."},"WorkspaceV2GrantResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"item_id":{"type":"string","format":"uuid","title":"Item Id"},"is_inherited":{"type":"boolean","title":"Is Inherited"},"principal_type":{"$ref":"#/components/schemas/WorkspaceV2PrincipalType"},"principal_id":{"type":"string","format":"uuid","title":"Principal Id"},"principal_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Principal Name"},"role":{"$ref":"#/components/schemas/WorkspaceV2Role"},"inherited_role":{"anyOf":[{"$ref":"#/components/schemas/WorkspaceV2Role"},{"type":"null"}]},"inherited_from_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Inherited From Name"},"created_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Updated By"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","item_id","is_inherited","principal_type","principal_id","principal_name","role","inherited_role","inherited_from_name","created_by","created_at","updated_by","updated_at"],"title":"WorkspaceV2GrantResponse","description":"Response schema for a workspace grant."},"WorkspaceV2GrantSource":{"type":"string","enum":["folder","item","owner"],"title":"WorkspaceV2GrantSource","description":"Where a person's role on an item inside a folder comes from."},"WorkspaceV2GrantUpsert":{"properties":{"principal_type":{"$ref":"#/components/schemas/WorkspaceV2PrincipalType","description":"Share with one user, every member of an environment, or the whole organization"},"principal_id":{"type":"string","format":"uuid","title":"Principal Id","description":"ID of that user, environment or organization"},"role":{"$ref":"#/components/schemas/WorkspaceV2Role","description":"What they may do: view, comment, edit or manage"}},"type":"object","required":["principal_type","principal_id","role"],"title":"WorkspaceV2GrantUpsert","description":"Request schema for sharing a workspace item, or changing the role someone already has on it."},"WorkspaceV2IllustrationInspectionResponse":{"properties":{"version":{"type":"integer","title":"Version"},"format":{"type":"string","title":"Format"},"page_count":{"type":"integer","title":"Page Count"}},"type":"object","required":["version","format","page_count"],"title":"WorkspaceV2IllustrationInspectionResponse"},"WorkspaceV2IllustrationRender":{"properties":{"version":{"type":"integer","minimum":1.0,"title":"Version"},"page":{"type":"integer","minimum":1.0,"title":"Page"}},"type":"object","required":["version","page"],"title":"WorkspaceV2IllustrationRender"},"WorkspaceV2IllustrationRenderResponse":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"mime_type":{"type":"string","title":"Mime Type"},"size_bytes":{"type":"integer","title":"Size Bytes"},"source":{"$ref":"#/components/schemas/WorkspaceV2IllustrationSourceResponse"}},"type":"object","required":["id","name","mime_type","size_bytes","source"],"title":"WorkspaceV2IllustrationRenderResponse"},"WorkspaceV2IllustrationSourceResponse":{"properties":{"media_id":{"type":"string","title":"Media Id"},"version":{"type":"integer","title":"Version"},"format":{"type":"string","title":"Format"},"page":{"type":"integer","title":"Page"},"page_count":{"type":"integer","title":"Page Count"},"width":{"type":"number","title":"Width"},"height":{"type":"number","title":"Height"},"export_media_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Export Media Id"}},"type":"object","required":["media_id","version","format","page","page_count","width","height"],"title":"WorkspaceV2IllustrationSourceResponse"},"WorkspaceV2ImageLinkResultResponse":{"properties":{"source_id":{"type":"string","format":"uuid","title":"Source Id"},"stack_id":{"type":"string","title":"Stack Id"},"status":{"$ref":"#/components/schemas/WorkspaceV2ImageLinkStatus","description":"'linked', or 'refused' without a reason"}},"type":"object","required":["source_id","stack_id","status"],"title":"WorkspaceV2ImageLinkResultResponse","description":"Response schema for whether one picture is used by the item now."},"WorkspaceV2ImageLinkStatus":{"type":"string","enum":["linked","refused","unlinked","not_ready"],"title":"WorkspaceV2ImageLinkStatus","description":"Enum identifying what became of one picture asked for through an item that uses it.\n\nLINKED: the item uses the picture and it can be read through the item. REFUSED: recording\nit was refused, for no stated reason, so the answer never tells whether the session exists.\nUNLINKED: the item does not use the picture, or the picture or its session is gone or trashed.\nNOT_READY: the file exists but has no version that may be read yet, such as one still scanned."},"WorkspaceV2ImageLinks":{"properties":{"images":{"items":{"$ref":"#/components/schemas/WorkspaceV2ImageRef"},"type":"array","maxItems":200,"minItems":1,"title":"Images"}},"type":"object","required":["images"],"title":"WorkspaceV2ImageLinks","description":"Request schema for pictures used by an item."},"WorkspaceV2ImageLinksReplace":{"properties":{"images":{"items":{"$ref":"#/components/schemas/WorkspaceV2ImageRef"},"type":"array","maxItems":2000,"title":"Images"},"scanned_at":{"type":"string","format":"date-time","title":"Scanned At","description":"When the scan started; pictures recorded since are kept"}},"type":"object","required":["images","scanned_at"],"title":"WorkspaceV2ImageLinksReplace","description":"Request schema for every picture a scan found an item uses."},"WorkspaceV2ImageRef":{"properties":{"source_id":{"type":"string","format":"uuid","title":"Source Id","description":"The session the picture comes from"},"stack_id":{"type":"string","maxLength":100,"minLength":1,"title":"Stack Id","description":"The picture's key among the session's images"}},"type":"object","required":["source_id","stack_id"],"title":"WorkspaceV2ImageRef","description":"Request schema naming one picture of an Image Studio session."},"WorkspaceV2ImageSessionCopyCreate":{"properties":{"operation_id":{"type":"string","maxLength":100,"minLength":1,"title":"Operation Id","description":"ID of one Continue action; reuse it when retrying"},"title_suffix":{"type":"string","maxLength":40,"minLength":1,"title":"Title Suffix","description":"Localized text appended to the copy's name"}},"type":"object","required":["operation_id","title_suffix"],"title":"WorkspaceV2ImageSessionCopyCreate"},"WorkspaceV2ImageSessionCopyResponse":{"properties":{"item_id":{"type":"string","format":"uuid","title":"Item Id","description":"Your private Image Plus session"}},"type":"object","required":["item_id"],"title":"WorkspaceV2ImageSessionCopyResponse"},"WorkspaceV2ItemCreate":{"properties":{"parent_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Parent Id","description":"(Optional) folder or module container to create the item in; left out, it goes to the root of your own space"},"kind":{"type":"string","maxLength":100,"minLength":1,"title":"Kind","description":"'folder', 'document', or a kind a module declares, '<moduleId>.<key>'"},"name":{"type":"string","maxLength":255,"minLength":1,"title":"Name","description":"Name shown to users"},"meta_data":{"additionalProperties":true,"type":"object","title":"Meta Data","description":"Metadata payload"}},"type":"object","required":["kind","name"],"title":"WorkspaceV2ItemCreate","description":"Request schema for creating a workspace item."},"WorkspaceV2ItemResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"organization_id":{"type":"string","format":"uuid","title":"Organization Id"},"parent_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Parent Id"},"owner_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Owner Id"},"owner_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Owner Name"},"kind":{"type":"string","title":"Kind"},"name":{"type":"string","title":"Name"},"revision":{"type":"integer","title":"Revision"},"role":{"anyOf":[{"$ref":"#/components/schemas/WorkspaceV2Role"},{"type":"null"}]},"created_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Updated By"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"trashed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Trashed At"},"purge_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Purge At","description":"When an item trashed itself is deleted for good, with everything beneath it; 'None' while it is live"},"meta_data":{"additionalProperties":true,"type":"object","title":"Meta Data"},"shared_with":{"items":{"$ref":"#/components/schemas/WorkspaceV2SharedPersonResponse"},"type":"array","title":"Shared With","description":"People the item is shared with, directly or through a folder above it, leaving out its owner"},"file_status":{"anyOf":[{"$ref":"#/components/schemas/WorkspaceV2FileStatus"},{"type":"null"}],"description":"Where a file, image or video stands; only 'ready' can be opened. 'None' for folders and documents"},"mime_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mime Type","description":"Type of the version 'file_status' describes: the newest ready one, otherwise the newest; 'None' for items without versions, such as folders and documents"},"size_bytes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Size Bytes","description":"Size in bytes of that same version; 'None' until it is ready, and wherever 'mime_type' is"}},"type":"object","required":["id","organization_id","parent_id","owner_id","owner_name","kind","name","revision","role","created_by","created_at","updated_by","updated_at","trashed_at","meta_data","shared_with"],"title":"WorkspaceV2ItemResponse","description":"Response schema for a workspace item."},"WorkspaceV2ItemSearchResultResponse":{"properties":{"item":{"$ref":"#/components/schemas/WorkspaceV2ItemResponse"},"space":{"$ref":"#/components/schemas/WorkspaceV2Space"},"path":{"items":{"$ref":"#/components/schemas/WorkspaceV2PathStepResponse"},"type":"array","title":"Path"}},"type":"object","required":["item","space","path"],"title":"WorkspaceV2ItemSearchResultResponse","description":"Response schema for a found item, where it sits for you, and the folders above it you reach it through."},"WorkspaceV2ItemSortKey":{"type":"string","enum":["name","updated","owner","size"],"title":"WorkspaceV2ItemSortKey","description":"Enum defining what a paged listing of workspace items may be ordered by, as Files' explorer offers it.\n\nThe allow-list is deliberate: the cursor carries the value of the ordering, so each key here has a\nknown type to read it back as."},"WorkspaceV2ItemUpdate":{"properties":{"revision":{"type":"integer","minimum":1.0,"title":"Revision","description":"Revision of the item as you last read it; the change is refused if someone changed it since"},"name":{"anyOf":[{"type":"string","maxLength":255,"minLength":1},{"type":"null"}],"title":"Name","description":"(Optional) new name"},"parent_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Parent Id","description":"(Optional) folder or module container to move the item to; send null to move it to the root of its owner's space"},"meta_data":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Meta Data","description":"(Optional) metadata payload, replacing the stored one"}},"type":"object","required":["revision"],"title":"WorkspaceV2ItemUpdate","description":"Request schema for renaming or moving a workspace item."},"WorkspaceV2LinkedFileRef":{"properties":{"source_id":{"type":"string","format":"uuid","title":"Source Id","description":"The session the picture comes from"},"stack_id":{"type":"string","maxLength":100,"minLength":1,"title":"Stack Id","description":"The picture's key among the session's images"},"media_id":{"type":"string","format":"uuid","title":"Media Id","description":"The file, as a row of the picture names it"}},"type":"object","required":["source_id","stack_id","media_id"],"title":"WorkspaceV2LinkedFileRef","description":"Request schema naming one file of a picture."},"WorkspaceV2LinkedFileUrlResponse":{"properties":{"source_id":{"type":"string","format":"uuid","title":"Source Id"},"stack_id":{"type":"string","title":"Stack Id"},"media_id":{"type":"string","format":"uuid","title":"Media Id"},"status":{"$ref":"#/components/schemas/WorkspaceV2ImageLinkStatus","description":"'linked' with links, 'not_ready' while no version can be read, or 'unlinked'"},"content":{"anyOf":[{"$ref":"#/components/schemas/WorkspaceV2SignedUrlResponse"},{"type":"null"}]},"thumbnail":{"anyOf":[{"$ref":"#/components/schemas/WorkspaceV2SignedUrlResponse"},{"type":"null"}],"description":"'None' for a file without a thumbnail"}},"type":"object","required":["source_id","stack_id","media_id","status","content","thumbnail"],"title":"WorkspaceV2LinkedFileUrlResponse","description":"Response schema for the links reading one file of a picture."},"WorkspaceV2LinkedFiles":{"properties":{"files":{"items":{"$ref":"#/components/schemas/WorkspaceV2LinkedFileRef"},"type":"array","maxItems":200,"minItems":1,"title":"Files"}},"type":"object","required":["files"],"title":"WorkspaceV2LinkedFiles","description":"Request schema for files of pictures used by an item."},"WorkspaceV2LinkedSourceResponse":{"properties":{"name":{"type":"string","title":"Name"},"owner_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Owner Name"}},"type":"object","required":["name","owner_name"],"title":"WorkspaceV2LinkedSourceResponse","description":"Response schema for the session a linked picture comes from."},"WorkspaceV2LinkedStackResponse":{"properties":{"source_id":{"type":"string","format":"uuid","title":"Source Id"},"stack_id":{"type":"string","title":"Stack Id"},"status":{"$ref":"#/components/schemas/WorkspaceV2ImageLinkStatus","description":"'linked', or 'unlinked' with nothing else filled in"},"rows":{"additionalProperties":true,"type":"object","title":"Rows","description":"The picture's image rows by key, its versions included"},"media":{"items":{"$ref":"#/components/schemas/WorkspaceV2ItemResponse"},"type":"array","title":"Media","description":"The files those rows name, as the session's media listing shows them"},"source":{"anyOf":[{"$ref":"#/components/schemas/WorkspaceV2LinkedSourceResponse"},{"type":"null"}]}},"type":"object","required":["source_id","stack_id","status","rows","media","source"],"title":"WorkspaceV2LinkedStackResponse","description":"Response schema for one picture read through the item that uses it."},"WorkspaceV2MakeCurrent":{"properties":{"base_revision":{"type":"integer","minimum":1.0,"title":"Base Revision","description":"Revision of the file as you last read it; refused if someone changed it since"}},"type":"object","required":["base_revision"],"title":"WorkspaceV2MakeCurrent","description":"Request schema for making an earlier version of a file current."},"WorkspaceV2MentionedUserResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"}},"type":"object","required":["id","name"],"title":"WorkspaceV2MentionedUserResponse","description":"Response schema for a person a comment mentions; the name is null once their account is gone."},"WorkspaceV2PathStepResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"}},"type":"object","required":["id","name"],"title":"WorkspaceV2PathStepResponse","description":"Response schema for one folder on the way down to a found item."},"WorkspaceV2PersonResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"email":{"type":"string","title":"Email"}},"type":"object","required":["id","name","email"],"title":"WorkspaceV2PersonResponse","description":"Response schema for a colleague an item can be shared with."},"WorkspaceV2PrincipalType":{"type":"string","enum":["user","environment","organization"],"title":"WorkspaceV2PrincipalType","description":"Enum identifying who a workspace grant is given to.\n\nSharing stays inside the organization: a grant names one user, every member of one\nenvironment, or every member of the organization that owns the item."},"WorkspaceV2Role":{"type":"string","enum":["viewer","commenter","editor","manager"],"title":"WorkspaceV2Role","description":"Enum identifying what a user may do with a workspace item.\n\nThe roles are ordered: each one includes everything the roles before it allow, so a check\nasks for the weakest role that permits the action. They apply inside the workspace only;\nan environment role (USER, SUPERUSER and so on) grants nothing here."},"WorkspaceV2RoomDestination":{"properties":{"type":{"type":"string","const":"workspace_v2_room","title":"Type"},"item_id":{"type":"string","format":"uuid","title":"Item Id"},"collection":{"type":"string","pattern":"^[A-Za-z][A-Za-z0-9_-]{0,63}$","title":"Collection"},"key":{"type":"string","pattern":"^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$","title":"Key"}},"additionalProperties":false,"type":"object","required":["type","item_id","collection","key"],"title":"WorkspaceV2RoomDestination"},"WorkspaceV2SessionCopyResponse":{"properties":{"session_id":{"type":"string","format":"uuid","title":"Session Id","description":"Your private continuation in the source module"}},"type":"object","required":["session_id"],"title":"WorkspaceV2SessionCopyResponse"},"WorkspaceV2SharedPersonResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"}},"type":"object","required":["id","name"],"title":"WorkspaceV2SharedPersonResponse","description":"Response schema for a person an item is shared with."},"WorkspaceV2SignedUrlResponse":{"properties":{"url":{"type":"string","title":"Url"},"expires_at":{"type":"string","format":"date-time","title":"Expires At"}},"type":"object","required":["url","expires_at"],"title":"WorkspaceV2SignedUrlResponse","description":"Response schema for a short lived URL reading a file."},"WorkspaceV2Space":{"type":"string","enum":["mine","shared"],"title":"WorkspaceV2Space","description":"Enum naming where an item sits for a caller: in their own files, or in what was shared with them."},"WorkspaceV2SuggestionBody":{"properties":{"anchor_from":{"additionalProperties":true,"type":"object","title":"Anchor From","description":"Yjs relative position of the start of the replaced range; the same as anchor_to for a pure insert"},"anchor_to":{"additionalProperties":true,"type":"object","title":"Anchor To","description":"Yjs relative position of the end of the replaced range"},"original_text":{"type":"string","maxLength":5000,"title":"Original Text","description":"The text of the range as it reads now; empty for a pure insert"},"proposed_text":{"type":"string","maxLength":5000,"title":"Proposed Text","description":"The text proposed instead; empty for a pure delete"}},"type":"object","required":["anchor_from","anchor_to","original_text","proposed_text"],"title":"WorkspaceV2SuggestionBody","description":"Request schema for suggesting a change to a passage, or amending one's own suggestion."},"WorkspaceV2SuggestionResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"original_text":{"type":"string","title":"Original Text"},"proposed_text":{"type":"string","title":"Proposed Text"},"status":{"$ref":"#/components/schemas/WorkspaceV2SuggestionStatus"},"decided_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Decided By"},"decided_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Decided At"}},"type":"object","required":["id","original_text","proposed_text","status","decided_by","decided_at"],"title":"WorkspaceV2SuggestionResponse","description":"Response schema for a suggested change."},"WorkspaceV2SuggestionStatus":{"type":"string","enum":["open","accepted","rejected","withdrawn"],"title":"WorkspaceV2SuggestionStatus","description":"Enum identifying where a suggested change stands.\n\nOnly an open suggestion can change: it is decided (accepted, rejected) or withdrawn exactly once,\nand the one way back is the accepter's short undo."},"WorkspaceV2UploadComplete":{"properties":{"duration_ms":{"anyOf":[{"type":"integer","maximum":2147483647.0,"minimum":0.0},{"type":"null"}],"title":"Duration Ms","description":"(Optional) length of a video"}},"type":"object","title":"WorkspaceV2UploadComplete","description":"Request schema for completing an upload."},"WorkspaceV2UploadCreate":{"properties":{"parent_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Parent Id","description":"(Optional) folder to upload into, or a document for an image or video shown in it; left out, the root of your own space"},"name":{"type":"string","maxLength":255,"minLength":1,"title":"Name","description":"Name shown to users, usually the file name"},"mime_type":{"type":"string","maxLength":255,"minLength":1,"title":"Mime Type","description":"Type of the file"},"size_bytes":{"type":"integer","minimum":0.0,"title":"Size Bytes","description":"Size of the file in bytes"}},"type":"object","required":["name","mime_type","size_bytes"],"title":"WorkspaceV2UploadCreate","description":"Request schema for starting the upload of a new file."},"WorkspaceV2UploadResponse":{"properties":{"item":{"$ref":"#/components/schemas/WorkspaceV2ItemResponse"},"version":{"$ref":"#/components/schemas/WorkspaceV2FileVersionResponse"},"upload_url":{"type":"string","title":"Upload Url","description":"Put the file here in blocks; it can write this one blob only"},"poster_upload_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Poster Upload Url","description":"Put one frame of a video here as an image; 'None' for other kinds"},"expires_at":{"type":"string","format":"date-time","title":"Expires At"}},"type":"object","required":["item","version","upload_url","poster_upload_url","expires_at"],"title":"WorkspaceV2UploadResponse","description":"Response schema for a started upload: where to put the bytes, until when."},"WorkspaceV2UsageResponse":{"properties":{"bytes_used":{"type":"integer","title":"Bytes Used","description":"Bytes of every stored version of every file, trash included"}},"type":"object","required":["bytes_used"],"title":"WorkspaceV2UsageResponse","description":"Response schema for the storage an organization's workspace uses."},"WorkspaceV2VersionContributorResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"}},"type":"object","required":["id","name"],"title":"WorkspaceV2VersionContributorResponse","description":"Response schema for a person whose changes a version holds."},"WorkspaceV2VersionKind":{"type":"string","enum":["auto","named","restore_point"],"title":"WorkspaceV2VersionKind","description":"Enum identifying how a document version came to be.\n\nCompaction writes an automatic version and keeps writing into it for a short window. Naming a\nversion turns it into a named one. A restore point holds the state saved just before a\nrestore. Only an automatic version inside its window changes after it is written."},"WorkspaceV2VersionResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"kind":{"$ref":"#/components/schemas/WorkspaceV2VersionKind"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"contributors":{"items":{"$ref":"#/components/schemas/WorkspaceV2VersionContributorResponse"},"type":"array","title":"Contributors"},"created_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","kind","name","contributors","created_by","created_at","updated_at"],"title":"WorkspaceV2VersionResponse","description":"Response schema for a document version."},"WorkspaceV2VersionUpdate":{"properties":{"name":{"type":"string","maxLength":200,"minLength":1,"title":"Name","description":"Name for the version; a named version is kept as it is"}},"type":"object","required":["name"],"title":"WorkspaceV2VersionUpdate","description":"Request schema for naming a document version."},"WorkspaceV2VersionUploadCreate":{"properties":{"base_revision":{"type":"integer","minimum":1.0,"title":"Base Revision","description":"Revision of the file as you last read it; refused if someone changed it since"},"mime_type":{"type":"string","maxLength":255,"minLength":1,"title":"Mime Type","description":"Type of the file"},"size_bytes":{"type":"integer","minimum":0.0,"title":"Size Bytes","description":"Size of the file in bytes"}},"type":"object","required":["base_revision","mime_type","size_bytes"],"title":"WorkspaceV2VersionUploadCreate","description":"Request schema for starting the upload of a new version of a file."},"WorkspacesOrigin":{"properties":{"route":{"type":"string","const":"workspaces","title":"Route"},"environment_id":{"type":"string","format":"uuid","title":"Environment Id"},"document_id":{"type":"string","format":"uuid","title":"Document Id"},"source_extension_id":{"anyOf":[{"type":"string","maxLength":64,"minLength":1},{"type":"null"}],"title":"Source Extension Id"}},"additionalProperties":false,"type":"object","required":["route","environment_id","document_id"],"title":"WorkspacesOrigin"},"app__api__schemas__environments__environment_schemas__OrganizationEnvironmentResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id","description":"Environment ID"},"organization_id":{"type":"string","format":"uuid","title":"Organization Id","description":"Parent organization ID"},"is_core":{"type":"boolean","title":"Is Core","description":"Flag if the environment is core"},"is_active":{"type":"boolean","title":"Is Active","description":"Flag if the environment is active"},"role":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Role","description":"Assigned role in the environment"},"name":{"type":"string","title":"Name","description":"Environment name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description","description":"Environment description"},"creation_date":{"type":"string","format":"date-time","title":"Creation Date","description":"Creation timestamp"},"last_updated":{"type":"string","format":"date-time","title":"Last Updated","description":"Last update timestamp"}},"type":"object","required":["id","organization_id","is_core","is_active","role","name","description","creation_date","last_updated"],"title":"OrganizationEnvironmentResponse"},"app__schemas__environment_schemas__OrganizationEnvironmentResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"organization_id":{"type":"string","format":"uuid","title":"Organization Id"},"name":{"type":"string","title":"Name"},"is_core":{"type":"boolean","title":"Is Core"},"is_active":{"type":"boolean","title":"Is Active"},"last_updated":{"type":"string","format":"date-time","title":"Last Updated"},"creation_date":{"type":"string","format":"date-time","title":"Creation Date"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"}},"type":"object","required":["id","organization_id","name","is_core","is_active","last_updated","creation_date","description"],"title":"OrganizationEnvironmentResponse"},"app__schemas__environment_schemas__UserEnvironmentResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"organization_id":{"type":"string","format":"uuid","title":"Organization Id"},"name":{"type":"string","title":"Name"},"is_core":{"type":"boolean","title":"Is Core"},"is_active":{"type":"boolean","title":"Is Active"},"last_updated":{"type":"string","format":"date-time","title":"Last Updated"},"creation_date":{"type":"string","format":"date-time","title":"Creation Date"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"}},"type":"object","required":["id","organization_id","name","is_core","is_active","last_updated","creation_date","description"],"title":"UserEnvironmentResponse"},"app__schemas__user_schemas__UserEnvironmentResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"}},"type":"object","required":["id","name"],"title":"UserEnvironmentResponse"}},"securitySchemes":{"HTTPBearer":{"type":"http","scheme":"bearer"}}},"tags":[{"name":"authentication","description":"Operations for authentication."},{"name":"organizations","description":"Operations with organizations."},{"name":"environments","description":"Operations with environments."},{"name":"users","description":"Operations with users."},{"name":"roles","description":"Operations with roles."},{"name":"assets"},{"name":"marketplace","description":"Operations with marketplace listings."},{"name":"marketplace-subscriptions","description":"Operations with marketplace subscriptions."},{"name":"activation-tasks","description":"Operations with task groups, tasks and tones activated in environments."},{"name":"tasks","description":"Operations with task groups, tasks and tones."},{"name":"workspaces","description":"Operations with workspaces."},{"name":"workflow executions"},{"name":"colors"},{"name":"assistant"},{"name":"testing"},{"name":"default"}],"servers":[{"url":"https://api-exp.heyzaia.com","description":"Gateway Server"}]}